Class PdqSearchQueryResponse
java.lang.Object
org.projecthusky.communication.responses.BaseResponse
org.projecthusky.communication.responses.pdq.PdqSearchQueryResponse
Response class that contains all XML elements which are needed for a SearchQuery response coming from the webservice and allows the setting of their values.
Moslty a copy of the
Moslty a copy of the
V3PdqConsumerResponse
and was not reworked.- Author:
- szalai
-
Field Summary
Fields inherited from class org.projecthusky.communication.responses.BaseResponse
acknowledgementCode, acknowledgementDetailCode, acknowledgementDetailText, errorText, hasError, infoCodes, infoText, messageId, receivingApplication, receivingFacility, sendingApplication, sendingFacility
-
Constructor Summary
ConstructorsConstructorDescriptionPdqSearchQueryResponse
(net.ihe.gazelle.hl7v3.prpain201306UV02.PRPAIN201306UV02Type pdqConsumerResponseElement) Create the V3PdqConsumerResponse given the provided XML element -
Method Summary
Modifier and TypeMethodDescriptionnet.ihe.gazelle.hl7v3.datatypes.II
Get the AckQueryIDint
getNumPatientIDs
(int patientIndex) Get the number of patient ids for the specified patient.int
Get the number of records on this responseint
Get the number of records remainingString[]
getPatientAddress
(int patientIndex) Get first Address for specified patientString[]
getPatientAddress
(int patientIndex, int addrIndex) Get specified address for specified patientgetPatientBirthOrderNumber
(int patientIndex) Get the specified patient's birth order number.getPatientDOB
(int patientIndex) Get Date of Birth for the specified patient.String[]
getPatientID
(int patientIndex) Get the first id for the specified patientString[]
getPatientID
(int patientIndex, int idIndex) Get the specified ID for the specified patientString[]
Get all of the patient Ids from the responseString[]
getPatientMothersMaidenName
(int patientIndex) Get the first mother's maiden name for the specified patientString[]
getPatientMothersMaidenName
(int patientIndex, int nameIndex) Get the specified Mother's Maiden name for the specified PatientgetPatientMultipleBirthIndicator
(int patientIndex) Get the specified patient's Multiple Birth IndicatorString[]
getPatientName
(int patientIndex) Get the first patient name for the specified patientString[]
getPatientName
(int patientIndex, int nameIndex) Get the specified patient name for the specified patientgetPatientPhoneBusiness
(int patientIndex) Get the Patients Business Phone number (Use code of "WP")getPatientPhoneHome
(int patientIndex) Get the Patients Home Phone number (Use code of "HP")getPatientSex
(int patientIndex) net.ihe.gazelle.hl7v3.prpain201306UV02.PRPAIN201306UV02Type
Get the root element of the responseGet the Query AcknowledgementMethods inherited from class org.projecthusky.communication.responses.BaseResponse
getAcknowledgementCode, getAcknowledgementDetailCode, getAcknowledgementDetailText, getErrorText, getInfoCodes, getInfoText, getMessageId, hasError, setAcknowledgementCode, setAcknowledgementDetail
-
Constructor Details
-
PdqSearchQueryResponse
public PdqSearchQueryResponse(net.ihe.gazelle.hl7v3.prpain201306UV02.PRPAIN201306UV02Type pdqConsumerResponseElement) Create the V3PdqConsumerResponse given the provided XML element- Parameters:
pdqConsumerResponseElement
-
-
-
Method Details
-
getAckQueryID
public net.ihe.gazelle.hl7v3.datatypes.II getAckQueryID()Get the AckQueryID- Returns:
- II - the AckQueryID for this response
-
getNumPatientIDs
public int getNumPatientIDs(int patientIndex) Get the number of patient ids for the specified patient.- Parameters:
patientIndex
-- Returns:
- int - the number of patient ids for the specified patient.
-
getNumRecordsCurrent
public int getNumRecordsCurrent()Get the number of records on this response- Returns:
- int - the value in the "result current quantity" of the response
-
getNumRecordsRemaining
public int getNumRecordsRemaining()Get the number of records remaining- Returns:
- int - the value in the "result remaining quantity" of the response
-
getPatientAddress
Get first Address for specified patient- Parameters:
patientIndex
-- Returns:
- String[] - first address for specified patient in String Array
String[0] = Street Address Line String[1] = Additional Locator
String[2] = City String[3] = State String[4] = Postal Code String[5]
=
<not populated>
String[6] =<not populated>
String[7] =<not populated>
String[8] = County
-
getPatientAddress
Get specified address for specified patient- Parameters:
patientIndex
-addrIndex
-- Returns:
- String[] - specified address for specified patient in String Array
String[0] = Street Address Line String[1] = Additional Locator
String[2] = City String[3] = State String[4] = Postal Code String[5]
=
<not populated>
String[6] =<not populated>
String[7] =<not populated>
String[8] = County
-
getPatientBirthOrderNumber
Get the specified patient's birth order number.- Parameters:
patientIndex
-- Returns:
- String - patient's birth order number
-
getPatientDOB
Get Date of Birth for the specified patient.- Parameters:
patientIndex
-- Returns:
- String - Specified Patient's Date of Birth
-
getPatientID
Get the first id for the specified patient- Parameters:
patientIndex
-- Returns:
- String[] - Patient ID in String Array String[0] = id.getExtension(); String[1] = id.getAssigningAuthorityName(); String[2] = id.getRoot(); String[3] = "";
-
getPatientID
Get the specified ID for the specified patient- Parameters:
patientIndex
-idIndex
-- Returns:
- String[] - Patient ID in String Array String[0] = id.getExtension(); String[1] = id.getAssigningAuthorityName(); String[2] = id.getRoot(); String[3] = "";
-
getPatientIds
Get all of the patient Ids from the response- Returns:
- String[] - Array of Ids in HL7 format
-
getPatientMothersMaidenName
Get the first mother's maiden name for the specified patient- Parameters:
patientIndex
-- Returns:
- String[] - the first Mother's maiden name in String Array if available, otherwise null
-
getPatientMothersMaidenName
Get the specified Mother's Maiden name for the specified Patient- Parameters:
patientIndex
-nameIndex
-- Returns:
- String[] - Mother's maiden name in String Array if available, otherwise null
-
getPatientMultipleBirthIndicator
Get the specified patient's Multiple Birth Indicator- Parameters:
patientIndex
-- Returns:
- String - patient's Multiple Birth Indicator
-
getPatientName
Get the first patient name for the specified patient- Parameters:
patientIndex
-- Returns:
- String[] - specified patient name in String Array: String[0] = Family Name String[1] = Given Name (first instance) String[2] = Given Name (second instance, if available) String[3] = Suffix String[4] = Prefix
-
getPatientName
Get the specified patient name for the specified patient- Parameters:
patientIndex
-nameIndex
-- Returns:
- String[] - specified patient name in String Array: String[0] = Family Name String[1] = Given Name (first instance) String[2] = Given Name (second instance, if available) String[3] = Suffix String[4] = Prefix
-
getPatientPhoneBusiness
Get the Patients Business Phone number (Use code of "WP")- Parameters:
patientIndex
-- Returns:
- String - Telecom value with use code of "WP" for the specified patient, if available
-
getPatientPhoneHome
Get the Patients Home Phone number (Use code of "HP")- Parameters:
patientIndex
-- Returns:
- String - Telecom value with use code of "HP" for the specified patient, if available
-
getPatientSex
- Parameters:
patientIndex
- the patient id- Returns:
- the sex of the patient
-
getPdqResponse
public net.ihe.gazelle.hl7v3.prpain201306UV02.PRPAIN201306UV02Type getPdqResponse()Get the root element of the response- Returns:
- PRPAIN201306UV02Type - the root element
-
getQueryAcknowledgement
Get the Query Acknowledgement- Returns:
- String - the Query Acknowledgement
-