Class V3PdqConsumerQuery

java.lang.Object
org.projecthusky.communication.mpi.V3Message
org.projecthusky.communication.mpi.impl.pdq.V3PdqConsumerQuery

public class V3PdqConsumerQuery extends V3Message
Author:
Anthony Larocca
  • Constructor Details

    • V3PdqConsumerQuery

      public V3PdqConsumerQuery(String senderApplicationOID, String senderFacilityOID, String receiverApplicationOID, String receiverFacilityOID)
      Create the V3PdqConsumerQuery with the provided sender and receiver IDs
      Parameters:
      senderApplicationOID - (Sender Device ID)
      senderFacilityOID - (Sender Organization ID)
      receiverApplicationOID - (Receiver Device ID)
      receiverFacilityOID - (Receiver Organization ID)
  • Method Details

    • addDomainToReturn

      public void addDomainToReturn(String organizationOID)
      Add the provided organization ID as a domain to return
      Parameters:
      organizationOID -
    • addPatientAddress

      public void addPatientAddress(org.hl7.fhir.r4.model.Address address)
      Add an address to the patient.
      Parameters:
      address -
    • addPatientID

      public void addPatientID(String root, String extension, String namespace)
      Add the provided patient ID to the query
      Overrides:
      addPatientID in class V3Message
      Parameters:
      root -
      extension -
      namespace -
    • addPatientMothersMaidenName

      public void addPatientMothersMaidenName(boolean useFuzzySearch, String family, String given, String other, String suffix, String prefix)
      Add Mother's Maiden name to patient
      Parameters:
      useFuzzySearch - (whether the server should use fuzzy search for matching)
      family -
      given -
      other - (middle name, added as second given)
      suffix -
      prefix -
    • addPatientName

      public void addPatientName(boolean useFuzzySearch, String family, String given, String other, String suffix, String prefix)
      Add the provided patient ID to the query
      Parameters:
      useFuzzySearch - (whether the server should use fuzzy search for matching)
      family -
      given -
      other - (middle name, added as second given)
      suffix -
      prefix -
    • addPatientTelecom

      public void addPatientTelecom(String telecom, String type)
      Add a patient telecom value of the supplied type.
      Overrides:
      addPatientTelecom in class V3Message
      Parameters:
      telecom -
      type - ("HP" or "WP"
    • addReceiver

      public void addReceiver(String applicationOID, String facilityOID)
      Add the provided Receiver to the query
      Parameters:
      applicationOID - (Receiver Device ID)
      facilityOID - (Receiver Organization ID)
    • getControlActProcess

      public net.ihe.gazelle.hl7v3.prpain201305UV02.PRPAIN201305UV02QUQIMT021001UV01ControlActProcess getControlActProcess()
      Get the pix query control act process element
      Returns:
      PRPAIN201305UV02QUQIMT021001UV01ControlActProcess - the pix query control act process element
    • getId

      public net.ihe.gazelle.hl7v3.datatypes.II getId()
    • getMatchCriterionList

      public net.ihe.gazelle.hl7v3.prpamt201306UV02.PRPAMT201306UV02MatchCriterionList getMatchCriterionList()
      Get the match criterion list. (If one does not yet exist, it will be created)
      Returns:
      PRPAMT201306UV02MatchCriterionList - the match criterion list.
    • getParameterList

      public net.ihe.gazelle.hl7v3.prpamt201306UV02.PRPAMT201306UV02ParameterList getParameterList()
      Get the current parameter list
      Returns:
      PRPAMT201306UV02ParameterList - the current parameter list
    • getQueryParams

      public String getQueryParams()
      Get the current query parameters
      Returns:
      String - the current query parameters
    • getRootElement

      public net.ihe.gazelle.hl7v3.prpain201305UV02.PRPAIN201305UV02Type getRootElement()
      Get the root element for this Query
      Returns:
      PRPAIN201305UV02Type - the root element
    • setAcceptAckCode

      protected void setAcceptAckCode()
      Specified by:
      setAcceptAckCode in class V3Message
    • setCreationTime

      protected void setCreationTime()
      Specified by:
      setCreationTime in class V3Message
    • setId

      protected void setId()
      Specified by:
      setId in class V3Message
    • setInitialQuantity

      public void setInitialQuantity(Integer initialQuantity)
      Set the initial quantity of type "RD" to return in the PDQ response.
      Parameters:
      initialQuantity -
    • setInitialQuantity

      public void setInitialQuantity(Integer initialQuantity, String units)
      Set the initial quantity of type "units" to return in the PDQ response.
      Parameters:
      initialQuantity -
      units -
    • setITSVersion

      protected void setITSVersion()
      Specified by:
      setITSVersion in class V3Message
    • setMinimumDegreeMatch

      public void setMinimumDegreeMatch()
      Set the minimum degree match to 75
    • setMinimumDegreeMatch

      public void setMinimumDegreeMatch(Integer minimumDegreeInt)
      Set the minimum degree match to the provided value
      Parameters:
      minimumDegreeInt - - integer value of degree match (0 to 100)
    • setPatientDateOfBirth

      public void setPatientDateOfBirth(String dob)
      Set the patient DOB to the provided string
      Parameters:
      dob - - String representation of patient date of birth - yyyyMMdd
    • setPatientSex

      public void setPatientSex(String sex)
      Set the patient sex to the provided value
      Parameters:
      sex - - string representing gender (M,F,U)
    • setProcessingCode

      protected void setProcessingCode()
      Set the processing code
      Specified by:
      setProcessingCode in class V3Message
    • setProcessingModeCode

      protected void setProcessingModeCode()
      Specified by:
      setProcessingModeCode in class V3Message
    • setQueryId

      public void setQueryId(String root, String extension, String namespace)
      Set the query ID
      Parameters:
      root -
      extension -
      namespace -
    • setSender

      public void setSender(String applicationOID, String facilityOID)
      Set the sender for the query
      Overrides:
      setSender in class V3Message
      Parameters:
      applicationOID - (Sender Device ID)
      facilityOID - (Sender Organization ID)