|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ohf.hl7v2.core.utilities.Worker
org.eclipse.ohf.hl7v2.core.message.model.Node
org.eclipse.ohf.hl7v2.core.message.model.ModelProvider
org.eclipse.ohf.hl7v2.core.message.model.Message
org.eclipse.ohf.ihe.common.hl7v2.message.PixPdqMessage
org.eclipse.ohf.ihe.pix.consumer.PixConsumerResponse
public class PixConsumerResponse
QBP^Q23 Return Corresponding Identifiers
IHE HL7 Segments: MSH,MSA,[ERR],QAK,QPD,[PID]
IHE HL7 Standard: HL7 2.5
Within PID, only PID-3 (IDs) and PID-5 (Names) are returned.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.ohf.hl7v2.core.message.model.Node |
|---|
MODE_TYPE_SEGMENT, NODE_TYPE_COMPONENT, NODE_TYPE_FIELD, NODE_TYPE_LIST, NODE_TYPE_MESSAGE, NODE_TYPE_SUBCOMPONENT |
| Fields inherited from class org.eclipse.ohf.hl7v2.core.utilities.Worker |
|---|
hecAccepted, hecApplicationError, hecBadField, hecBadMessage, hecBadSegCode, hecConformance, hecDataTypeError, hecDefinitionError, hecDuplicateKey, hecDuplicateMsgId, hecHL7LibraryError, hecInternalError, hecNoDefinitions, hecNoTableValue, hecRecordLocked, hecRequiredField, hecRequiredSeg, hecSequenceError, hecSuperfluousSeg, hecUnknownKey, hecUnsEvntCode, hecUnsMsgType, hecUnsProcID, hecUnsVersion, hecValidationFailed, hecXML |
| Constructor Summary | |
|---|---|
PixConsumerResponse(org.eclipse.ohf.hl7v2.core.message.MessageManager globalFactory)
Constructs a PIX response message. |
|
| Method Summary | |
|---|---|
java.lang.String |
getControlId()
MSA-2 Message Control ID This field contains the message control ID of the message sent by the sending system. |
java.lang.String[] |
getErrorCode(int segmentIndex)
ERR-3 HL7 Error Code Identifies the HL7 (communications) error code. |
int |
getErrorCountByRepeat()
The number of errors found in the query response using repeats. |
int |
getErrorCountBySegment()
The number of errors found in the query response using segments. |
java.lang.String[] |
getErrorLocation(int segmentIndex,
int repeatIndex)
ERR-2 Error Location Identifies the location in a message related to the identified error, warning or message. |
java.lang.String |
getErrorSeverity(int segmentIndex,
boolean expandString)
ERR-4 Error Severity Identifies the severity of an application error. |
int |
getPatientCount()
The number of patients found in the query response. |
java.lang.String[] |
getPatientIdentifier(int patientIndex,
int identifierIndex)
PID-3 Patient ID (internal) This field contains the list of identifiers (one or more) used by the healthcare facility to uniquely identify a patient (e.g., medical record number, billing number, birth registry, national unique individual identifier, etc). |
int |
getPatientIdentifierCount(int patientIndex)
The number of patient IDs found for a patient in the query response. |
java.lang.String[] |
getPatientName(int patientIndex,
int patientNameIndex)
PID-5-1 Patient Name This field contains the names of the patient, the primary or legal name of the patient is reported first. |
int |
getPatientNameCount(int patientIndex)
PID-5 Patient Name The number of patient names found for a patient in the query response. |
java.lang.String |
getPatientNameDegree(int patientIndex,
int patientNameIndex)
PID-5-6 Patient Name - Degree |
java.lang.String |
getPatientNameFamilyName(int patientIndex,
int patientNameIndex)
PID-5-1 Patient Name - Family Name |
java.lang.String |
getPatientNameGivenName(int patientIndex,
int patientNameIndex)
PID-5-2 Patient Name - Given Name |
java.lang.String |
getPatientNameOtherName(int patientIndex,
int patientNameIndex)
PID-5-3 Patient Name - Other Name |
java.lang.String |
getPatientNamePrefix(int patientIndex,
int patientNameIndex)
PID-5-5 Patient Name - Prefix |
java.lang.String |
getPatientNameSuffix(int patientIndex,
int patientNameIndex)
PID-5-4 Patient Name - Suffix |
java.lang.String[] |
getQueryName()
QPD-1 Query Name This field contains the name of the query. |
java.lang.String |
getQueryStatus(boolean expandString)
QAK-2 Query Response Status This field may be valued by the initiating system to identify the query, and may be used to match response messages to the originating query. |
java.lang.String |
getQueryTag()
QPD-2 Query Tag This field may be valued by the initiating system to identify the query, and may be used to match response messages to the originating query. |
java.lang.String |
getResponseAckCode(boolean expandString)
MSA-1 Acknowledgement Code This field contains an acknowledgment code, see message processing rules. |
boolean |
hasError()
Response contains 1 or more error segments. |
void |
init()
Initialize message after load finished |
| Methods inherited from class org.eclipse.ohf.ihe.common.hl7v2.message.PixPdqMessage |
|---|
changeDefaultCharacterSet, changeDefaultControlId, changeDefaultProcessEnvironment, changeDefaultReceivingApplication, changeDefaultRecievingFacility, changeDefaultSendingApplication, changeDefaultSendingFacility, getCharacterSet, getMessageControlID, getProcessEnvironment, getReceivingApplication, getReceivingFacility, getSendingApplication, getSendingFacility, setField, setNonNullElement |
| Methods inherited from class org.eclipse.ohf.hl7v2.core.message.model.Message |
|---|
addMSHFromFields, addMSHFromFields, bindToMSH, clear, clearContent, elementName, equals, forceElement, getDefaultFormat, getDelimiters, getElement, getEvent, getMessageId, getMessageType, getSegments, getStructId, getStructure, hasStructId, resolveVariableTypes, setDefaultFormat, setDelimiters, setEvent, setMessageId, setMessageType, setStructId, testIsElement |
| Methods inherited from class org.eclipse.ohf.hl7v2.core.message.model.ModelProvider |
|---|
getDefinitions, getVersion, getVersionDefinition, setDefinitions, setVersion |
| Methods inherited from class org.eclipse.ohf.hl7v2.core.message.model.Node |
|---|
getOwner, hasOwner, isElement, setOwner |
| Methods inherited from class org.eclipse.ohf.hl7v2.core.utilities.Worker |
|---|
condition |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PixConsumerResponse(org.eclipse.ohf.hl7v2.core.message.MessageManager globalFactory)
throws PixConsumerException
globalFactory - - message manager
PixConsumerException| Method Detail |
|---|
public void init()
public boolean hasError()
public java.lang.String getResponseAckCode(boolean expandString)
throws PixConsumerException
expandString -
PixConsumerException
public java.lang.String getControlId()
throws PixConsumerException
PixConsumerExceptionpublic int getErrorCountBySegment()
public int getErrorCountByRepeat()
public java.lang.String[] getErrorLocation(int segmentIndex,
int repeatIndex)
throws PixConsumerException
segmentIndex - - the segment to use (0 to PixConsumerResponse.getErrorCountBySegment()-1)
use 0 for primary if multiple errors reported with repeats rather than different segmentsrepeatIndex - - the repetition to return (0 to PixConsumerResponse.getErrorCountByRepeat()-1)
use 0 for primary if multiple errors reported in different segments rather than by repeat
PixConsumerException
public java.lang.String[] getErrorCode(int segmentIndex)
throws PixConsumerException
segmentIndex - - the segment to use (0 to PixConsumerResponse.getErrorCountBySegment()-1)
use 0 for primary if multiple errors reported with repeats rather than different segments
PixConsumerException
public java.lang.String getErrorSeverity(int segmentIndex,
boolean expandString)
throws PixConsumerException
segmentIndex - - the segment to use (0 to PixConsumerResponse.getErrorCountBySegment()-1)
use 0 for primary if multiple errors reported with repeats rather than different segmentsexpandString -
PixConsumerException
public java.lang.String getQueryStatus(boolean expandString)
throws PixConsumerException
expandString -
PixConsumerException
public java.lang.String[] getQueryName()
throws PixConsumerException
PixConsumerException
public java.lang.String getQueryTag()
throws PixConsumerException
PixConsumerExceptionpublic int getPatientCount()
public int getPatientIdentifierCount(int patientIndex)
throws PixConsumerException
patientIndex - - the patient to use (0 to PixConsumerResponse.getPatientCount()-1)
PixConsumerException
public java.lang.String[] getPatientIdentifier(int patientIndex,
int identifierIndex)
throws PixConsumerException
patientIndex - - the patient to use (0 to PixConsumerResponse.getPatientCount()-1)identifierIndex - - the ID to return (0 to PixConsumerResponse.getPatientIdentifierCount()-1)
PixConsumerExceptionpublic int getPatientNameCount(int patientIndex)
patientIndex - - the patient to use (0 to PixConsumerResponse.getPatientCount()-1)
PdqConsumerException
public java.lang.String[] getPatientName(int patientIndex,
int patientNameIndex)
throws PixConsumerException
patientIndex - - the patient to use (0 to PixConsumerResponse.getPatientCount()-1)patientNameIndex - - the name to return (0 to PixConsumerResponse.getPatientNameCount()-1)
the primary or legal name of the patient is reported first
PixConsumerException
public java.lang.String getPatientNameFamilyName(int patientIndex,
int patientNameIndex)
throws PixConsumerException
patientIndex - - the patient to use (0 to PixConsumerResponse.getPatientCount()-1)patientNameIndex - - the name to return (0 to PixConsumerResponse.getPatientNameCount()-1)
the primary or legal name of the patient is reported first
PixConsumerException
public java.lang.String getPatientNameGivenName(int patientIndex,
int patientNameIndex)
throws PixConsumerException
patientIndex - - the patient to use (0 to PixConsumerResponse.getPatientCount()-1)patientNameIndex - - the name to return (0 to PixConsumerResponse.getPatientNameCount()-1)
the primary or legal name of the patient is reported first
PixConsumerException
public java.lang.String getPatientNameOtherName(int patientIndex,
int patientNameIndex)
throws PixConsumerException
patientIndex - - the patient to use (0 to PixConsumerResponse.getPatientCount()-1)patientNameIndex - - the name to return (0 to PixConsumerResponse.getPatientNameCount()-1)
the primary or legal name of the patient is reported first
PixConsumerException
public java.lang.String getPatientNameSuffix(int patientIndex,
int patientNameIndex)
throws PixConsumerException
patientIndex - - the patient to use (0 to PixConsumerResponse.getPatientCount()-1)patientNameIndex - - the name to return (0 to PixConsumerResponse.getPatientNameCount()-1)
the primary or legal name of the patient is reported first
PixConsumerException
public java.lang.String getPatientNamePrefix(int patientIndex,
int patientNameIndex)
throws PixConsumerException
patientIndex - - the patient to use (0 to PixConsumerResponse.getPatientCount()-1)patientNameIndex - - the name to return (0 to PixConsumerResponse.getPatientNameCount()-1)
the primary or legal name of the patient is reported first
PixConsumerException
public java.lang.String getPatientNameDegree(int patientIndex,
int patientNameIndex)
throws PixConsumerException
patientIndex - - the patient to use (0 to PixConsumerResponse.getPatientCount()-1)patientNameIndex - - the name to return (0 to PixConsumerResponse.getPatientNameCount()-1)
the primary or legal name of the patient is reported first
PixConsumerException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||