Class MasterPatientIndexQuery

java.lang.Object
org.projecthusky.communication.MasterPatientIndexQuery

public class MasterPatientIndexQuery extends Object
Convenience class MasterPatientIndexQuery adds the MpiQuery functionality for the Patient Demographics Query (PDQ) ITI-47.
  • Constructor Details

    • MasterPatientIndexQuery

      public MasterPatientIndexQuery(Destination dest)
      Instantiates a new master patient index query.
      Parameters:
      dest - the dest
  • Method Details

    • addDomainToReturn

      public MasterPatientIndexQuery addDomainToReturn(String organizationOID)
      Returned patient identifiers will include the added domain if available
      Parameters:
      organizationOID - the organization oid
      Returns:
      the query object
    • addMothersMaidenName

      public MasterPatientIndexQuery addMothersMaidenName(boolean useFuzzySearch, Name name)
      Adds the mothers maiden name to the query
      Parameters:
      useFuzzySearch - if true does not require an exact match, see Table 3.47.4.1.2-1: Model Attributes (ITI TF-2b)
      name - the name
      Returns:
      the query object
    • addMothersMaidenName

      public MasterPatientIndexQuery addMothersMaidenName(boolean useFuzzySearch, org.hl7.fhir.r4.model.HumanName name)
      Adds the mothers maiden name to the query
      Parameters:
      useFuzzySearch - if true does not require an exact match, see Table 3.47.4.1.2-1: Model Attributes (ITI TF-2b)
      name - the name
      Returns:
      the query object
    • addPatientAddress

      public MasterPatientIndexQuery addPatientAddress(Address address)
      Adds a patient address to the query.
      Parameters:
      address - the address to be queried for
      Returns:
      the query object
    • addPatientAddress

      public MasterPatientIndexQuery addPatientAddress(org.hl7.fhir.r4.model.Address address)
      Adds a patient address to the query.
      Parameters:
      address - the address to be queried for
      Returns:
      the query object
    • addPatientIdentificator

      public MasterPatientIndexQuery addPatientIdentificator(Identificator identificator)
      Adds a patient identifier to be queried for.
      Parameters:
      identificator - patient identifier
      Returns:
      the query object
    • addPatientIdentificator

      public MasterPatientIndexQuery addPatientIdentificator(org.hl7.fhir.r4.model.Identifier id)
      Adds a patient identifier to be queried for.
      Parameters:
      id - patient identifier
      Returns:
      the query object
    • addPatientName

      public MasterPatientIndexQuery addPatientName(boolean useFuzzySearch, Name name)
      Adds a patient name to the query.
      Parameters:
      useFuzzySearch - if true does not require an exact match, see Table 3.47.4.1.2-1: Model Attributes (ITI TF-2b)
      name - the name
      Returns:
      the master patient index query
    • addPatientName

      public MasterPatientIndexQuery addPatientName(boolean useFuzzySearch, org.hl7.fhir.r4.model.HumanName name)
      Adds a patient name to the query.
      Parameters:
      useFuzzySearch - if true does not require an exact match, see Table 3.47.4.1.2-1: Model Attributes (ITI TF-2b)
      name - the name
      Returns:
      the master patient index query
    • addPatientTelecom

      public MasterPatientIndexQuery addPatientTelecom(Telecom tel)
      Adds a patient telecom to be queried for.
      Parameters:
      tel - telecom
      Returns:
      the query object
    • addPatientTelecom

      public MasterPatientIndexQuery addPatientTelecom(org.hl7.fhir.r4.model.ContactPoint tel)
      Adds a patient telecom to be queried for.
      Parameters:
      tel - telecom
      Returns:
      the query object
    • cancelQuery

      public MasterPatientIndexQuery cancelQuery()
      Cancels the next query.
      Returns:
      the query object
    • continueQuery

      public MasterPatientIndexQuery continueQuery()
      Continues query for the next pageCount results.
      Returns:
      the query object
    • getV3PdqQuery

      protected V3PdqQuery getV3PdqQuery()
      gets the pdq query object
      Returns:
      query object
    • setPageCount

      public MasterPatientIndexQuery setPageCount(int pageCount)
      Sets the page count for partial lists of search results (QueryByParameter.initialQuantity).
      Parameters:
      pageCount - the page count
      Returns:
      the query object
    • setPatientDateOfBirth

      public MasterPatientIndexQuery setPatientDateOfBirth(Date birthDate)
      Sets the patient birth date for the query.
      Parameters:
      birthDate - the birth date
      Returns:
      the query object
    • setPatientSex

      public MasterPatientIndexQuery setPatientSex(AdministrativeGender adminstrativeGender)
      Sets the patient sex for the query.
      Parameters:
      adminstrativeGender - gender
      Returns:
      the query object