Class V3PdqQuery
java.lang.Object
org.projecthusky.communication.mpi.impl.pdq.V3PdqQuery
- All Implemented Interfaces:
MpiQuery
The class V3PdqQuery implements the MpiQuery functionality for the Patient
Demographics Query (PDQ) ITI-47.
-
Constructor Summary
ConstructorsConstructorDescriptionV3PdqQuery
(String senderApplicationOID, String senderFacilityOID, String receiverApplicationOID, String receiverFacilityOID) Instantiates a new v3 pdq 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 humanDt) Adds the mothers maiden name the queryaddPatientAddress
(org.hl7.fhir.r4.model.Address address) Adds a patient address to the query.addPatientIdentifier
(org.hl7.fhir.r4.model.Identifier identifier) Adds a patient identifier to be queried foraddPatientName
(boolean useFuzzySearch, org.hl7.fhir.r4.model.HumanName humanDt) Adds a patient name to the query.addPatientTelecom
(org.hl7.fhir.r4.model.ContactPoint contactPoint) Adds a patient telecom to be queried for.Cancels the next query.Continues query for the next pageCount results.boolean
if query should be canceledboolean
if query should be continuedGets the last pdq consumer response.int
gets the page count for partial lists of search results (QueryByParameter.initialQuantity).Gets the v3 consumer query object.void
setLastPdqConsumerResponse
(V3PdqConsumerResponse lastPdqConsumerResponse) Sets the pdq consumer response.setPageCount
(int pageCount) Sets the page count for partial lists of search results (QueryByParameter.initialQuantity).setPatientBirthDate
(Date date) Sets the patient birth date for the query.setPatientSex
(org.hl7.fhir.r4.model.Enumerations.AdministrativeGender administrativeGender) Sets the patient sex for the query.
-
Constructor Details
-
V3PdqQuery
public V3PdqQuery(String senderApplicationOID, String senderFacilityOID, String receiverApplicationOID, String receiverFacilityOID) Instantiates a new v3 pdq query.- Parameters:
senderApplicationOID
- the sender application oidsenderFacilityOID
- the sender facility oidreceiverApplicationOID
- the receiver application oidreceiverFacilityOID
- the receiver facility oid
-
-
Method Details
-
addDomainToReturn
Returned patient identifiers will include the added domain if available- Specified by:
addDomainToReturn
in interfaceMpiQuery
- Parameters:
organizationOID
- the organization oid- Returns:
- the query object
-
addMothersMaidenName
public MpiQuery addMothersMaidenName(boolean useFuzzySearch, org.hl7.fhir.r4.model.HumanName humanDt) Adds the mothers maiden name the query- Specified by:
addMothersMaidenName
in interfaceMpiQuery
- Parameters:
useFuzzySearch
- if true does not require an exact match, see Table 3.47.4.1.2-1: Model Attributes (ITI TF-2b)humanDt
- name- Returns:
- the query object
-
addPatientAddress
Adds a patient address to the query.- Specified by:
addPatientAddress
in interfaceMpiQuery
- Parameters:
address
- the address to be queried for- Returns:
- the query object
-
addPatientIdentifier
Adds a patient identifier to be queried for- Specified by:
addPatientIdentifier
in interfaceMpiQuery
- Parameters:
identifier
- patient identifier- Returns:
- the query object
-
addPatientName
Adds a patient name to the query.- Specified by:
addPatientName
in interfaceMpiQuery
- Parameters:
useFuzzySearch
- if true does not require an exact match, see Table 3.47.4.1.2-1: Model Attributes (ITI TF-2b)humanDt
- name- Returns:
- the query object
-
addPatientTelecom
Adds a patient telecom to be queried for.- Specified by:
addPatientTelecom
in interfaceMpiQuery
- Parameters:
contactPoint
- telecom- Returns:
- the query object
-
cancelQuery
Cancels the next query.- Specified by:
cancelQuery
in interfaceMpiQuery
- Returns:
- the query object
-
continueQuery
Continues query for the next pageCount results.- Specified by:
continueQuery
in interfaceMpiQuery
- Returns:
- continues the query for the next batch
-
doCancelQuery
public boolean doCancelQuery()if query should be canceled- Returns:
- true cancel next query
-
doContinueQuery
public boolean doContinueQuery()if query should be continued- Returns:
- true continue next query
-
getLastPdqConsumerResponse
Gets the last pdq consumer response.- Returns:
- the last pdq consumer response
-
getPageCount
public int getPageCount()gets the page count for partial lists of search results (QueryByParameter.initialQuantity).- Returns:
- the page count
-
getV3PdqConsumerQuery
Gets the v3 consumer query object.- Returns:
- the v3 pdq consumer query
-
setLastPdqConsumerResponse
Sets the pdq consumer response.- Parameters:
lastPdqConsumerResponse
- the new last pdq consumer response
-
setPageCount
Sets the page count for partial lists of search results (QueryByParameter.initialQuantity).- Specified by:
setPageCount
in interfaceMpiQuery
- Parameters:
pageCount
- the page count- Returns:
- the query object
-
setPatientBirthDate
Sets the patient birth date for the query.- Specified by:
setPatientBirthDate
in interfaceMpiQuery
- Parameters:
date
- the date- Returns:
- the query object
-
setPatientSex
public MpiQuery setPatientSex(org.hl7.fhir.r4.model.Enumerations.AdministrativeGender administrativeGender) Sets the patient sex for the query.- Specified by:
setPatientSex
in interfaceMpiQuery
- Parameters:
administrativeGender
- gender- Returns:
- the query object
-