Package org.projecthusky.communication
Class MasterPatientIndexQuery
java.lang.Object
org.projecthusky.communication.MasterPatientIndexQuery
Convenience class MasterPatientIndexQuery adds the MpiQuery functionality for
the Patient Demographics Query (PDQ) ITI-47.
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new master patient index query. -
Method Summary
Modifier and TypeMethodDescriptionaddDomainToReturn
(String organizationOID) Returned patient identifiers will include the added domain if availableaddMothersMaidenName
(boolean useFuzzySearch, org.hl7.fhir.r4.model.HumanName name) Adds the mothers maiden name to the queryaddMothersMaidenName
(boolean useFuzzySearch, Name name) Adds the mothers maiden name to the queryaddPatientAddress
(org.hl7.fhir.r4.model.Address address) Adds a patient address to the query.addPatientAddress
(Address address) Adds a patient address to the query.addPatientIdentificator
(org.hl7.fhir.r4.model.Identifier id) Adds a patient identifier to be queried for.addPatientIdentificator
(Identificator identificator) Adds a patient identifier to be queried for.addPatientName
(boolean useFuzzySearch, org.hl7.fhir.r4.model.HumanName name) Adds a patient name to the query.addPatientName
(boolean useFuzzySearch, Name name) Adds a patient name to the query.addPatientTelecom
(org.hl7.fhir.r4.model.ContactPoint tel) Adds a patient telecom to be queried for.addPatientTelecom
(Telecom tel) Adds a patient telecom to be queried for.Cancels the next query.Continues query for the next pageCount results.protected V3PdqQuery
gets the pdq query objectsetPageCount
(int pageCount) Sets the page count for partial lists of search results (QueryByParameter.initialQuantity).setPatientDateOfBirth
(Date birthDate) Sets the patient birth date for the query.setPatientSex
(AdministrativeGender adminstrativeGender) Sets the patient sex for the query.
-
Constructor Details
-
MasterPatientIndexQuery
Instantiates a new master patient index query.- Parameters:
dest
- the dest
-
-
Method Details
-
addDomainToReturn
Returned patient identifiers will include the added domain if available- Parameters:
organizationOID
- the organization oid- Returns:
- the query object
-
addMothersMaidenName
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
Adds a patient address to the query.- Parameters:
address
- the address to be queried for- Returns:
- the query object
-
addPatientAddress
Adds a patient address to the query.- Parameters:
address
- the address to be queried for- Returns:
- the query object
-
addPatientIdentificator
Adds a patient identifier to be queried for.- Parameters:
identificator
- patient identifier- Returns:
- the query object
-
addPatientIdentificator
Adds a patient identifier to be queried for.- Parameters:
id
- patient identifier- Returns:
- the query object
-
addPatientName
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
Adds a patient telecom to be queried for.- Parameters:
tel
- telecom- Returns:
- the query object
-
addPatientTelecom
Adds a patient telecom to be queried for.- Parameters:
tel
- telecom- Returns:
- the query object
-
cancelQuery
Cancels the next query.- Returns:
- the query object
-
continueQuery
Continues query for the next pageCount results.- Returns:
- the query object
-
getV3PdqQuery
gets the pdq query object- Returns:
- query object
-
setPageCount
Sets the page count for partial lists of search results (QueryByParameter.initialQuantity).- Parameters:
pageCount
- the page count- Returns:
- the query object
-
setPatientDateOfBirth
Sets the patient birth date for the query.- Parameters:
birthDate
- the birth date- Returns:
- the query object
-
setPatientSex
Sets the patient sex for the query.- Parameters:
adminstrativeGender
- gender- Returns:
- the query object
-