|
||||||||||
| 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.Item
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.pdq.consumer.PdqConsumerResponse
public class PdqConsumerResponse
RSP^K22 Patient Demographics Response
IHE HL7 Segments: MSH,MSA,[ERR],QAK,QPD,{[PID],[PD1],[QRI]},[DSC]
IHE HL7 Standard: HL7 2.5
| Field Summary |
|---|
| Fields inherited from class org.eclipse.ohf.hl7v2.core.message.model.Item |
|---|
NODE_TYPE_COMPONENT, NODE_TYPE_CONTENT, NODE_TYPE_FIELD, NODE_TYPE_LIST, NODE_TYPE_MESSAGE, NODE_TYPE_SEGMENT, 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 | |
|---|---|
PdqConsumerResponse(org.eclipse.ohf.hl7v2.core.message.MessageManager globalFactory)
Constructs a PDQ consumer response message object. |
|
| Method Summary | |
|---|---|
java.lang.String |
getContinuationPointer()
DSC-1 Continuation Pointer This field contains the continuation pointer. |
java.lang.String |
getContinuationStyle(boolean expandString)
DSC-2 Continuation Style Indicates whether this is a fragmented message, or if it is part of an interactive continuation message. |
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. |
java.lang.String[] |
getPatientAddress(int patientIndex,
int patientAddressIndex)
PID-11 Patient Address This field contains the mailing addresses of the patient. |
java.lang.String |
getPatientAddressCensusTract(int patientIndex,
int patientAddressIndex)
PID-11-10 Patient Address - Census Tract |
java.lang.String |
getPatientAddressCity(int patientIndex,
int patientAddressIndex)
PID-11-3 Patient Address - City |
int |
getPatientAddressCount(int patientIndex)
PID-11 Patient Address The number of patient addresses returned in the query response. |
java.lang.String |
getPatientAddressCountry(int patientIndex,
int patientAddressIndex)
PID-11-6 Patient Address - Country |
java.lang.String |
getPatientAddressCountyParishCode(int patientIndex,
int patientAddressIndex)
PID-11-9 Patient Address - County Parish Code |
java.lang.String |
getPatientAddressOtherDesignation(int patientIndex,
int patientAddressIndex)
PID-11-2 Patient Address - Other Designation |
java.lang.String |
getPatientAddressOtherGeographicDesignation(int patientIndex,
int patientAddressIndex)
PID-11-8 Patient Address - Other Geographic Designation |
java.lang.String |
getPatientAddressStateOrProvince(int patientIndex,
int patientAddressIndex)
PID-11-4 Patient Address - State or Province |
java.lang.String |
getPatientAddressStreetAddress(int patientIndex,
int patientAddressIndex)
PID-11-1-1 Patient Address - Street Address |
java.lang.String |
getPatientAddressType(int patientIndex,
int patientAddressIndex)
PID-11-7 Patient Address - Address Type |
java.lang.String |
getPatientAddressZipOrPostalCode(int patientIndex,
int patientAddressIndex)
PID-11-5 Patient Address - Zip or Postal Code |
int |
getPatientCount()
The number of unique patients returned in the query response. |
java.lang.String |
getPatientDateOfBirth(int patientIndex)
PID-7 Date/Time of Birth This field contains the patient’s date and time of birth. |
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)
PID-3 Patient ID (internal) For a given patient, the number of IDs returned 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-1 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 |
int |
getPatientPhoneBusinessCount(int patientIndex)
PID-14 Business Phone The number of business phone numbers returned in the query response. |
java.lang.String |
getPatientPhoneBusinessUnformattedTelephoneNumber(int patientIndex,
int phoneIndex)
PID-14-1 Business Phone This field contains the patient’s business telephone numbers. |
int |
getPatientPhoneHomeCount(int patientIndex)
PID-13 Home Phone The number of home phone numbers returned in the query response. |
java.lang.String |
getPatientPhoneHomeUnformattedTelephoneNumber(int patientIndex,
int phoneIndex)
PID-13-1 Home Phone This field contains the patient’s personal phone numbers. |
java.lang.String |
getPatientSex(int patientIndex,
boolean expandString)
PID-8 Administrative Sex This field contains the patient’s sex. |
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 segment information within 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, forceElement, getDefaultFormat, getDelimiters, getElement, getEvent, getMessageId, getMessageType, getSegments, getStructId, getStructure, hasStructId, matches, 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.Item |
|---|
getOwner, getType, getUserData, hasOwner, isElement, setOwner, setUserData |
| Methods inherited from class org.eclipse.ohf.hl7v2.core.utilities.Worker |
|---|
condition |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PdqConsumerResponse(org.eclipse.ohf.hl7v2.core.message.MessageManager globalFactory)
throws PdqConsumerException
globalFactory - - MessageManager
PqqConsumerException
PdqConsumerException| Method Detail |
|---|
public void init()
public boolean hasError()
public java.lang.String getResponseAckCode(boolean expandString)
throws PdqConsumerException
expandString -
PdqConsumerException
public java.lang.String getControlId()
throws PdqConsumerException
PdqConsumerExceptionpublic int getErrorCountbySegment()
public int getErrorCountbyRepeat()
public java.lang.String[] getErrorLocation(int segmentIndex,
int repeatIndex)
throws PdqConsumerException
segmentIndex - - the segment to use (0 to PdqConsumerResponse.getErrorCountBySegment()-1)
use 0 for primary if multiple errors reported with repeats rather than different segmentsrepeatIndex - - the repetition to return (0 to PdqConsumerResponse.getErrorCountByRepeat()-1)
use 0 for primary if multiple errors reported in different segments rather than by repeat
PdqConsumerException
public java.lang.String[] getErrorCode(int segmentIndex)
throws PdqConsumerException
segmentIndex - - the segment to use (0 to PdqConsumerResponse.getErrorCountBySegment()-1)
use 0 for primary if multiple errors reported with repeats rather than different segments
PdqConsumerException
public java.lang.String getErrorSeverity(int segmentIndex,
boolean expandString)
throws PdqConsumerException
segmentIndex - - the segment to use (0 to PdqConsumerResponse.getErrorCountBySegment()-1)
use 0 for primary if multiple errors reported with repeats rather than different segmentsexpandString - - true = show title, false = show code
PdqConsumerException
public java.lang.String getQueryStatus(boolean expandString)
throws PdqConsumerException
expandString -
PdqConsumerException
public java.lang.String[] getQueryName()
throws PdqConsumerException
PdqConsumerException
public java.lang.String getQueryTag()
throws PdqConsumerException
PdqConsumerExceptionpublic int getPatientCount()
public int getPatientIdentifierCount(int patientIndex)
patientIndex - - the patient to use (0 to PdqConsumerResponse.getPatientCount()-1)
PdqConsumerException
public java.lang.String[] getPatientIdentifier(int patientIndex,
int identifierIndex)
throws PdqConsumerException
patientIndex - - the patient to use (0 to PdqConsumerResponse.getPatientCount()-1)identifierIndex - - the ID to return (0 to PdqConsumerResponse.getPatientIdentifierCount()-1)
PdqConsumerExceptionpublic int getPatientNameCount(int patientIndex)
patientIndex - - the patient to use (0 to PdqConsumerResponse.getPatientCount()-1)
PdqConsumerException
public java.lang.String[] getPatientName(int patientIndex,
int patientNameIndex)
throws PdqConsumerException
patientIndex - - the patient to use (0 to PdqConsumerResponse.getPatientCount()-1)patientNameIndex - - the name to return (0 to PdqConsumerResponse.getPatientNameCount()-1)
the primary or legal name of the patient is reported first
PdqConsumerException
public java.lang.String getPatientNameFamilyName(int patientIndex,
int patientNameIndex)
throws PdqConsumerException
patientIndex - - the patient to use (0 to PdqConsumerResponse.getPatientCount()-1)patientNameIndex - - the name to return (0 to PdqConsumerResponse.getPatientNameCount()-1)
the primary or legal name of the patient is reported first
PdqConsumerException
public java.lang.String getPatientNameGivenName(int patientIndex,
int patientNameIndex)
throws PdqConsumerException
patientIndex - - the patient to use (0 to PdqConsumerResponse.getPatientCount()-1)patientNameIndex - - the name to return (0 to PdqConsumerResponse.getPatientNameCount()-1)
the primary or legal name of the patient is reported first
PdqConsumerException
public java.lang.String getPatientNameOtherName(int patientIndex,
int patientNameIndex)
throws PdqConsumerException
patientIndex - - the patient to use (0 to PdqConsumerResponse.getPatientCount()-1)patientNameIndex - - the name to return (0 to PdqConsumerResponse.getPatientNameCount()-1)
the primary or legal name of the patient is reported first
PdqConsumerException
public java.lang.String getPatientNameSuffix(int patientIndex,
int patientNameIndex)
throws PdqConsumerException
patientIndex - - the patient to use (0 to PdqConsumerResponse.getPatientCount()-1)patientNameIndex - - the name to return (0 to PdqConsumerResponse.getPatientNameCount()-1)
the primary or legal name of the patient is reported first
PdqConsumerException
public java.lang.String getPatientNamePrefix(int patientIndex,
int patientNameIndex)
throws PdqConsumerException
patientIndex - - the patient to use (0 to PdqConsumerResponse.getPatientCount()-1)patientNameIndex - - the name to return (0 to PdqConsumerResponse.getPatientNameCount()-1)
the primary or legal name of the patient is reported first
PdqConsumerException
public java.lang.String getPatientNameDegree(int patientIndex,
int patientNameIndex)
throws PdqConsumerException
patientIndex - - the patient to use (0 to PdqConsumerResponse.getPatientCount()-1)patientNameIndex - - the name to return (0 to PdqConsumerResponse.getPatientNameCount()-1)
the primary or legal name of the patient is reported first
PdqConsumerException
public java.lang.String getPatientDateOfBirth(int patientIndex)
throws PdqConsumerException
patientIndex - - the patient to use (0 to PdqConsumerResponse.getPatientCount()-1)
PdqConsumerException
public java.lang.String getPatientSex(int patientIndex,
boolean expandString)
throws PdqConsumerException
patientIndex - - the patient to use (0 to PdqConsumerResponse.getPatientCount()-1)expandString - - translate string (ex F to Female)
PdqConsumerExceptionpublic int getPatientAddressCount(int patientIndex)
patientIndex - - the patient to use (0 to PdqConsumerResponse.getPatientCount()-1)
public java.lang.String[] getPatientAddress(int patientIndex,
int patientAddressIndex)
throws PdqConsumerException
patientIndex - - the patient to use (0 to PdqConsumerResponse.getPatientCount()-1)patientAddressIndex - - which address to return (0 to PdqConsumerResponse.getPatientAddressCount()-1)
PdqConsumerException
public java.lang.String getPatientAddressStreetAddress(int patientIndex,
int patientAddressIndex)
throws PdqConsumerException
patientIndex - - the patient to use (0 to PdqConsumerResponse.getPatientCount()-1)patientAddressIndex - - which address to return (0 to PdqConsumerResponse.getPatientAddressCount()-1)
PdqConsumerException
public java.lang.String getPatientAddressOtherDesignation(int patientIndex,
int patientAddressIndex)
throws PdqConsumerException
patientIndex - - the patient to use (0 to PdqConsumerResponse.getPatientCount()-1)patientAddressIndex - - which address to return (0 to PdqConsumerResponse.getPatientAddressCount()-1)
PdqConsumerException
public java.lang.String getPatientAddressCity(int patientIndex,
int patientAddressIndex)
throws PdqConsumerException
patientIndex - - the patient to use (0 to PdqConsumerResponse.getPatientCount()-1)patientAddressIndex - - which address to return (0 to PdqConsumerResponse.getPatientAddressCount()-1)
PdqConsumerException
public java.lang.String getPatientAddressStateOrProvince(int patientIndex,
int patientAddressIndex)
throws PdqConsumerException
patientIndex - - the patient to use (0 to PdqConsumerResponse.getPatientCount()-1)patientAddressIndex - - which address to return (0 to PdqConsumerResponse.getPatientAddressCount()-1)
PdqConsumerException
public java.lang.String getPatientAddressZipOrPostalCode(int patientIndex,
int patientAddressIndex)
throws PdqConsumerException
patientIndex - - the patient to use (0 to PdqConsumerResponse.getPatientCount()-1)patientAddressIndex - - which address to return (0 to PdqConsumerResponse.getPatientAddressCount()-1)
PdqConsumerException
public java.lang.String getPatientAddressCountry(int patientIndex,
int patientAddressIndex)
throws PdqConsumerException
patientIndex - - the patient to use (0 to PdqConsumerResponse.getPatientCount()-1)patientAddressIndex - - which address to return (0 to PdqConsumerResponse.getPatientAddressCount()-1)
PdqConsumerException
public java.lang.String getPatientAddressType(int patientIndex,
int patientAddressIndex)
throws PdqConsumerException
patientIndex - - the patient to use (0 to PdqConsumerResponse.getPatientCount()-1)patientAddressIndex - - which address to return (0 to PdqConsumerResponse.getPatientAddressCount()-1)
PdqConsumerException
public java.lang.String getPatientAddressOtherGeographicDesignation(int patientIndex,
int patientAddressIndex)
throws PdqConsumerException
patientIndex - - the patient to use (0 to PdqConsumerResponse.getPatientCount()-1)patientAddressIndex - - which address to return (0 to PdqConsumerResponse.getPatientAddressCount()-1)
PdqConsumerException
public java.lang.String getPatientAddressCountyParishCode(int patientIndex,
int patientAddressIndex)
throws PdqConsumerException
patientIndex - - the patient to use (0 to PdqConsumerResponse.getPatientCount()-1)patientAddressIndex - - which address to return (0 to PdqConsumerResponse.getPatientAddressCount()-1)
PdqConsumerException
public java.lang.String getPatientAddressCensusTract(int patientIndex,
int patientAddressIndex)
throws PdqConsumerException
patientIndex - - the patient to use (0 to PdqConsumerResponse.getPatientCount()-1)patientAddressIndex - - which address to return (0 to PdqConsumerResponse.getPatientAddressCount()-1)
PdqConsumerExceptionpublic int getPatientPhoneHomeCount(int patientIndex)
patientIndex - - the patient to use (0 to PdqConsumerResponse.getPatientCount()-1)
public java.lang.String getPatientPhoneHomeUnformattedTelephoneNumber(int patientIndex,
int phoneIndex)
throws PdqConsumerException
patientIndex - - the patient to use (0 to PdqConsumerResponse.getPatientCount()-1)phoneIndex - - which phone number to return (0 to PdqConsumerResponse.getPatientPhoneHomeCount()-1)
PdqConsumerExceptionpublic int getPatientPhoneBusinessCount(int patientIndex)
patientIndex - - the patient to use (0 to PdqConsumerResponse.getPatientCount()-1)
public java.lang.String getPatientPhoneBusinessUnformattedTelephoneNumber(int patientIndex,
int phoneIndex)
throws PdqConsumerException
patientIndex - - the patient to use (0 to PdqConsumerResponse.getPatientCount()-1)phoneIndex - - which phone number to return (0 to PdqConsumerResponse.getPatientPhoneBusinessCount()-1)
PdqConsumerException
public java.lang.String getContinuationPointer()
throws PdqConsumerException
PdqConsumerException
public java.lang.String getContinuationStyle(boolean expandString)
throws PdqConsumerException
expandString -
PdqConsumerException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||