Class BaseRequest
java.lang.Object
org.projecthusky.communication.requests.BaseRequest
- Direct Known Subclasses:
PdqQuery,PixAddPatientRequest,PixMergePatientRequest,PixUpdatePatientRequest
Baseclass for requests. Is essentially a copy of
V3Message and for sake of speed it was not reworked.- Author:
- szalai
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidaddPatientAddress(net.ihe.gazelle.hl7v3.datatypes.AD patientAddress) Add an address for the patient.voidAdd a confidentiality code to the patientvoidAdd Patient Ethnic Group Code to the patientvoidaddPatientID(String extension, String root, String namespace) Set the patient idvoidaddPatientName(String familyName, String givenName, String other, String prefixName, String suffixName) Add a patient name.voidaddPatientOtherID(String extension, String root) Add a Patient Other ID for the patientvoidaddPatientRaceCode(String code) Add Patient Race Code to the patientvoidaddPatientTelecom(String telecomValue, String useValue) Add a telecom value with the provided useValue ("HP" or "WP")voidaddReceivingApplication(String applicationOID) Adds the receiving application ID providedvoidaddReceivingFacility(String facilityOID) Added the receiving facility ID providednet.ihe.gazelle.hl7v3.datatypes.IIgetReceivingApplication(int i) Gets the specified Receiving Application (Receiver Device ID)getReceivingFacility(int i) Gets the specified Receiving Facility (Receiver Organization ID)Gets the Sending Application (Sender Device ID)Gets the Sending Facility (Sender Organization ID)protected abstract voidprotected abstract voidprotected abstract voidsetId()protected abstract voidvoidsetMessageId(net.ihe.gazelle.hl7v3.datatypes.II messageId) voidsetMultipleBirthIndicator(boolean birthIndicator) Set whether there was a multiple birth.voidsetMultipleBirthOrderNumber(int birthNumber) Set the birth order number to the provided valuevoidsetPatientBirthTime(String birthTime) Set the patient birth time.voidsetPatientDeceased(boolean patientDeceased) Set whether the patient is deceasedvoidsetPatientDeceasedTime(String patientDeceasedTime) Set the patient deceased time.voidsetPatientGender(String gender) Set the patient gender to the provided value ("M", "F", or "U")voidsetPatientMaritalStatus(String maritalStatus) Set the marital status for the patientvoidsetPatientMothersMaidenName(String family, String given, String other, String suffix, String prefix) Add a mother's maiden name for the patient.voidsetPatientReligiousAffiliation(String religiousAffiliation) Set the religious affiliation for the patientvoidSet Patient Very Important Person codeprotected abstract voidprotected abstract voidvoidsetProviderOrganization(String organizationName, String telecomValue, List<String> organizationOIDs) Please note that given organizationOIDs must be withoutFhirCommon.OID_URNprefix.voidsetProviderOrganization(List<org.hl7.fhir.r4.model.Identifier> organizationIdentifiers, String organizationName, String telecomValue) voidSet the sender for the query
-
Field Details
-
itsVersion
-
processingCode
-
processingModeCode
-
acceptAckCode
-
sendingApplication
-
sendingFacility
-
messageId
protected net.ihe.gazelle.hl7v3.datatypes.II messageId -
queryControlActProcess
-
-
Constructor Details
-
BaseRequest
protected BaseRequest() -
BaseRequest
-
-
Method Details
-
addReceivingApplication
Adds the receiving application ID provided- Parameters:
applicationOID- (Receiving Device ID)
-
addReceivingFacility
Added the receiving facility ID provided- Parameters:
facilityOID- (Receiving Organization ID)
-
getReceivingApplication
Gets the specified Receiving Application (Receiver Device ID)- Parameters:
i- (the index of the receiving application to get)- Returns:
- String - Receiving Application
-
getReceivingFacility
Gets the specified Receiving Facility (Receiver Organization ID)- Parameters:
i- (the index of the receiving facility to get)- Returns:
- String - Receiving Facility
-
getSendingApplication
Gets the Sending Application (Sender Device ID)- Returns:
- String - Sending Application
-
getSendingFacility
Gets the Sending Facility (Sender Organization ID)- Returns:
- String - Sending Facility
-
getMessageId
public net.ihe.gazelle.hl7v3.datatypes.II getMessageId() -
setMessageId
public void setMessageId(net.ihe.gazelle.hl7v3.datatypes.II messageId) -
setSender
Set the sender for the query- Parameters:
applicationOID- (Sender Device ID)facilityOID- (Sender Organization ID)
-
setITSVersion
protected abstract void setITSVersion() -
setId
protected abstract void setId() -
setCreationTime
protected abstract void setCreationTime() -
setProcessingCode
protected abstract void setProcessingCode() -
setProcessingModeCode
protected abstract void setProcessingModeCode() -
setAcceptAckCode
protected abstract void setAcceptAckCode() -
addControlActProcess
protected void addControlActProcess() -
addPatientAddress
public void addPatientAddress(net.ihe.gazelle.hl7v3.datatypes.AD patientAddress) Add an address for the patient.- Parameters:
patientAddress-
-
addPatientEthnicGroupCode
Add Patient Ethnic Group Code to the patient- Parameters:
code-
-
addPatientName
public void addPatientName(String familyName, String givenName, String other, String prefixName, String suffixName) Add a patient name.- Parameters:
familyName-givenName-other-prefixName-suffixName-
-
addPatientOtherID
Add a Patient Other ID for the patient- Parameters:
extension-root-
-
addPatientRaceCode
Add Patient Race Code to the patient- Parameters:
code-
-
addPatientTelecom
Add a telecom value with the provided useValue ("HP" or "WP")- Parameters:
telecomValue-useValue-
-
setMultipleBirthIndicator
public void setMultipleBirthIndicator(boolean birthIndicator) Set whether there was a multiple birth.- Parameters:
birthIndicator-
-
setMultipleBirthOrderNumber
public void setMultipleBirthOrderNumber(int birthNumber) Set the birth order number to the provided value- Parameters:
birthNumber-
-
setPatientBirthTime
Set the patient birth time.- Parameters:
birthTime-
-
setPatientDeceased
public void setPatientDeceased(boolean patientDeceased) Set whether the patient is deceased- Parameters:
patientDeceased-
-
setPatientDeceasedTime
Set the patient deceased time.- Parameters:
patientDeceasedTime-
-
setPatientGender
Set the patient gender to the provided value ("M", "F", or "U")- Parameters:
gender-
-
setPatientMaritalStatus
Set the marital status for the patient- Parameters:
maritalStatus-
-
setPatientMothersMaidenName
public void setPatientMothersMaidenName(String family, String given, String other, String suffix, String prefix) Add a mother's maiden name for the patient.- Parameters:
family-given-other-suffix-prefix-
-
setPatientReligiousAffiliation
Set the religious affiliation for the patient- Parameters:
religiousAffiliation-
-
addPatientConfidentialityCode
Add a confidentiality code to the patient- Parameters:
code-
-
addPatientID
Set the patient id- Parameters:
extension-root-namespace-
-
setPatientVeryImportantPerson
Set Patient Very Important Person code- Parameters:
code-
-
setProviderOrganization
-
setProviderOrganization
public void setProviderOrganization(String organizationName, String telecomValue, List<String> organizationOIDs) Please note that given organizationOIDs must be withoutFhirCommon.OID_URNprefix.
-