Class V3PdqConsumerResponse

java.lang.Object
org.projecthusky.communication.mpi.V3Response
org.projecthusky.communication.mpi.impl.pdq.V3PdqConsumerResponse

public class V3PdqConsumerResponse extends V3Response
Author:
Anthony Larocca
  • Constructor Details

    • V3PdqConsumerResponse

      public V3PdqConsumerResponse(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

      public String[] getPatientAddress(int patientIndex)
      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

      public String[] getPatientAddress(int patientIndex, int addrIndex)
      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

      public String getPatientBirthOrderNumber(int patientIndex)
      Get the specified patient's birth order number.
      Parameters:
      patientIndex -
      Returns:
      String - patient's birth order number
    • getPatientDOB

      public String getPatientDOB(int patientIndex)
      Get Date of Birth for the specified patient.
      Parameters:
      patientIndex -
      Returns:
      String - Specified Patient's Date of Birth
    • getPatientID

      public String[] getPatientID(int patientIndex)
      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

      public String[] getPatientID(int patientIndex, int idIndex)
      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

      public String[] getPatientIds()
      Get all of the patient Ids from the response
      Returns:
      String[] - Array of Ids in HL7 format
    • getPatientMothersMaidenName

      public String[] getPatientMothersMaidenName(int patientIndex)
      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

      public String[] getPatientMothersMaidenName(int patientIndex, int nameIndex)
      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

      public String getPatientMultipleBirthIndicator(int patientIndex)
      Get the specified patient's Multiple Birth Indicator
      Parameters:
      patientIndex -
      Returns:
      String - patient's Multiple Birth Indicator
    • getPatientName

      public String[] getPatientName(int patientIndex)
      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

      public String[] getPatientName(int patientIndex, int nameIndex)
      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

      public String getPatientPhoneBusiness(int patientIndex)
      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

      public String getPatientPhoneHome(int patientIndex)
      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

      public String getPatientSex(int patientIndex)
      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

      public String getQueryAcknowledgement()
      Get the Query Acknowledgement
      Returns:
      String - the Query Acknowledgement