Class PdqQuery
java.lang.Object
org.projecthusky.communication.requests.BaseRequest
org.projecthusky.communication.requests.pdq.PdqQuery
A request class that collects all XML elements used in the transfer and allows the setting of the values.
Mostly a copy of the
Mostly a copy of the
V3PdqConsumerQuery
class and was not reworked.- Author:
- szalai
-
Field Summary
Fields inherited from class org.projecthusky.communication.requests.BaseRequest
acceptAckCode, itsVersion, messageId, processingCode, processingModeCode, queryControlActProcess, sendingApplication, sendingFacility
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDomainToReturn
(String organizationOID) Add the provided organization ID as a domain to returnvoid
addPatientAddress
(org.hl7.fhir.r4.model.Address address) Add an address to the patient.void
addPatientID
(String root, String extension, String namespace) Add the provided patient ID to the queryvoid
addPatientMothersMaidenName
(boolean useFuzzySearch, String family, String given, String other, String suffix, String prefix) Add Mother's Maiden name to patientvoid
addPatientName
(boolean useFuzzySearch, String family, String given, String other, String suffix, String prefix) Add the provided patient ID to the queryvoid
addPatientTelecom
(String telecom, String type) Add a patient telecom value of the supplied type.void
addReceiver
(String applicationOID, String facilityOID) Add the provided Receiver to the querynet.ihe.gazelle.hl7v3.prpain201305UV02.PRPAIN201305UV02QUQIMT021001UV01ControlActProcess
Get the pix query control act process elementnet.ihe.gazelle.hl7v3.datatypes.II
getId()
net.ihe.gazelle.hl7v3.prpamt201306UV02.PRPAMT201306UV02MatchCriterionList
Get the match criterion list.net.ihe.gazelle.hl7v3.prpamt201306UV02.PRPAMT201306UV02ParameterList
Get the current parameter listGet the current query parametersnet.ihe.gazelle.hl7v3.prpain201305UV02.PRPAIN201305UV02Type
Get the root element for this Queryprotected void
protected void
protected void
setId()
void
setInitialQuantity
(Integer initialQuantity) Set the initial quantity of type "RD" to return in the PDQ response.void
setInitialQuantity
(Integer initialQuantity, String units) Set the initial quantity of type "units" to return in the PDQ response.protected void
void
Set the minimum degree match to 75void
setMinimumDegreeMatch
(Integer minimumDegreeInt) Set the minimum degree match to the provided valuevoid
Set the patient DOB to the provided stringvoid
setPatientSex
(String sex) Set the patient sex to the provided valueprotected void
Set the processing codeprotected void
void
setQueryId
(String root, String extension, String namespace) Set the query IDvoid
Set the sender for the queryMethods inherited from class org.projecthusky.communication.requests.BaseRequest
addControlActProcess, addPatientAddress, addPatientConfidentialityCode, addPatientEthnicGroupCode, addPatientName, addPatientOtherID, addPatientRaceCode, addReceivingApplication, addReceivingFacility, getMessageId, getReceivingApplication, getReceivingFacility, getSendingApplication, getSendingFacility, setMessageId, setMultipleBirthIndicator, setMultipleBirthOrderNumber, setPatientBirthTime, setPatientDeceased, setPatientDeceasedTime, setPatientGender, setPatientMaritalStatus, setPatientMothersMaidenName, setPatientReligiousAffiliation, setPatientVeryImportantPerson, setProviderOrganization, setProviderOrganization
-
Constructor Details
-
PdqQuery
public PdqQuery(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
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
Add the provided patient ID to the query- Overrides:
addPatientID
in classBaseRequest
- 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
Add a patient telecom value of the supplied type.- Overrides:
addPatientTelecom
in classBaseRequest
- Parameters:
telecom
-type
- ("HP" or "WP"
-
addReceiver
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
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 classBaseRequest
-
setCreationTime
protected void setCreationTime()- Specified by:
setCreationTime
in classBaseRequest
-
setId
protected void setId()- Specified by:
setId
in classBaseRequest
-
setInitialQuantity
Set the initial quantity of type "RD" to return in the PDQ response.- Parameters:
initialQuantity
-
-
setInitialQuantity
Set the initial quantity of type "units" to return in the PDQ response.- Parameters:
initialQuantity
-units
-
-
setITSVersion
protected void setITSVersion()- Specified by:
setITSVersion
in classBaseRequest
-
setMinimumDegreeMatch
public void setMinimumDegreeMatch()Set the minimum degree match to 75 -
setMinimumDegreeMatch
Set the minimum degree match to the provided value- Parameters:
minimumDegreeInt
- - integer value of degree match (0 to 100)
-
setPatientDateOfBirth
Set the patient DOB to the provided string- Parameters:
dob
- - String representation of patient date of birth - yyyyMMdd
-
setPatientSex
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 classBaseRequest
-
setProcessingModeCode
protected void setProcessingModeCode()- Specified by:
setProcessingModeCode
in classBaseRequest
-
setQueryId
Set the query ID- Parameters:
root
-extension
-namespace
-
-
setSender
Set the sender for the query- Overrides:
setSender
in classBaseRequest
- Parameters:
applicationOID
- (Sender Device ID)facilityOID
- (Sender Organization ID)
-