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 TypeMethodDescriptionvoidaddDomainToReturn(String organizationOID) Add the provided organization ID as a domain to returnvoidaddPatientAddress(org.hl7.fhir.r4.model.Address address) Add an address to the patient.voidaddPatientID(String root, String extension, String namespace) Add the provided patient ID to the queryvoidaddPatientMothersMaidenName(boolean useFuzzySearch, String family, String given, String other, String suffix, String prefix) Add Mother's Maiden name to patientvoidaddPatientName(boolean useFuzzySearch, String family, String given, String other, String suffix, String prefix) Add the provided patient ID to the queryvoidaddPatientTelecom(String telecom, String type) Add a patient telecom value of the supplied type.voidaddReceiver(String applicationOID, String facilityOID) Add the provided Receiver to the querynet.ihe.gazelle.hl7v3.prpain201305UV02.PRPAIN201305UV02QUQIMT021001UV01ControlActProcessGet the pix query control act process elementnet.ihe.gazelle.hl7v3.datatypes.IIgetId()net.ihe.gazelle.hl7v3.prpamt201306UV02.PRPAMT201306UV02MatchCriterionListGet the match criterion list.net.ihe.gazelle.hl7v3.prpamt201306UV02.PRPAMT201306UV02ParameterListGet the current parameter listGet the current query parametersnet.ihe.gazelle.hl7v3.prpain201305UV02.PRPAIN201305UV02TypeGet the root element for this Queryprotected voidprotected voidprotected voidsetId()voidsetInitialQuantity(Integer initialQuantity) Set the initial quantity of type "RD" to return in the PDQ response.voidsetInitialQuantity(Integer initialQuantity, String units) Set the initial quantity of type "units" to return in the PDQ response.protected voidvoidSet the minimum degree match to 75voidsetMinimumDegreeMatch(Integer minimumDegreeInt) Set the minimum degree match to the provided valuevoidSet the patient DOB to the provided stringvoidsetPatientSex(String sex) Set the patient sex to the provided valueprotected voidSet the processing codeprotected voidvoidsetQueryId(String root, String extension, String namespace) Set the query IDvoidSet 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:
addPatientIDin 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:
addPatientTelecomin 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:
setAcceptAckCodein classBaseRequest
-
setCreationTime
protected void setCreationTime()- Specified by:
setCreationTimein classBaseRequest
-
setId
protected void setId()- Specified by:
setIdin 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:
setITSVersionin 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:
setProcessingCodein classBaseRequest
-
setProcessingModeCode
protected void setProcessingModeCode()- Specified by:
setProcessingModeCodein classBaseRequest
-
setQueryId
Set the query ID- Parameters:
root-extension-namespace-
-
setSender
Set the sender for the query- Overrides:
setSenderin classBaseRequest- Parameters:
applicationOID- (Sender Device ID)facilityOID- (Sender Organization ID)
-