Class V3PixSourceMessageHelper
java.lang.Object
org.projecthusky.communication.mpi.impl.pix.V3PixSourceMessageHelper
The Class V3PixSourceMessageHelper.
Simplifies the api to the three different PIX Source messages implementations
and leaves the possibility to get back to elements PatientRole for
languageCommunication which are not implemented in OHT V3 Message
-
Constructor Summary
ConstructorsConstructorDescriptionV3PixSourceMessageHelper
(boolean addMessage, boolean revisedMessage, boolean mergeMessage, String senderApplicationOid, String senderFacilityOid, String receiverApplicationOid, String receiverFacilityOid) create a V3PixSourceMessageHelper with the supplied sender and receiver. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addEmployeeCode
(String employeeOccupationCode) adds an employee codevoid
addLanguageCommunication
(String languageCommunication) adds a language communication.void
addPatientAddress
(net.ihe.gazelle.hl7v3.datatypes.AD address) add an address for the patient.void
adds a confidentiality code to the patientvoid
add a patient ethnic group code to the patientvoid
addPatientID
(String extension, String root, String namespace) adds a patient identifiervoid
addPatientName
(String familyName, String givenName, String otherName, String prefixName, String suffixName) adds a patient namevoid
addPatientNation
(String nationCode) adds a nation codevoid
addPatientOtherID
(String extension, String root) add a patient other id for the patientvoid
addPatientRaceCode
(String code) adds patient race code to the patientvoid
addPatientTelecom
(String telecomValue, String useValue) adds a telecom value with the provided useValue ("HP" or "WP" or "H" or "MC")static net.ihe.gazelle.hl7v3.datatypes.TEL
create a TEL type object with the supplied telecom value and use value (if supplied) we extend the type her also for the mobile, the standard PixPdqV3Utils.createTel has only WP and HP for useValueGets the v3 merge patients message.Gets the v3 record added message.Gets the v3 record revised message.void
setPatientBirthPlace
(net.ihe.gazelle.hl7v3.datatypes.AD addressBirthPlace) sets the birth placevoid
setPatientBirthTime
(String birthTime) sets the patient birth time.void
setPatientDeceased
(boolean patientDeceased) sets whether the patient is deceasedvoid
setPatientDeceasedTime
(String patientDeceasedTime) sets the patient deceased time.void
setPatientGender
(String gender) set the patient gender to the provided value ("M", "F", or "U")void
setPatientMaritalStatus
(String maritalStatus) Set the marital status for the patientvoid
setPatientMothersMaidenName
(String family, String given, String other, String suffix, String prefix) sets a mother's maiden name for the patient.void
setPatientMultipleBirthIndicator
(boolean birthIndicator) sets whether there was a multiple birth.void
setPatientMultipleBirthOrderNumber
(int birthNumber) sets the birth order number to the provided valuevoid
setPatientReligiousAffiliation
(String religiousAffiliation) sets the religious affiliation for the patientvoid
sets the patient very important person codevoid
setScopingOrganization
(String organizationOID, String organizationName, String telecomValue) sets the scoping organization for the patient
-
Constructor Details
-
V3PixSourceMessageHelper
public V3PixSourceMessageHelper(boolean addMessage, boolean revisedMessage, boolean mergeMessage, String senderApplicationOid, String senderFacilityOid, String receiverApplicationOid, String receiverFacilityOid) create a V3PixSourceMessageHelper with the supplied sender and receiver. OHT does not set the conduction Indicator value in the MFMI_MT700701UV01/subject control act wrapper to false this is fixed in the constructor- Parameters:
addMessage
- true use V3PixSourceRecordAdded for message generationrevisedMessage
- true use V3PixSourceRecordRevised for message generationmergeMessage
- true use V3PixSourceMergePatients for message generationsenderApplicationOid
- application oid of the sendersenderFacilityOid
- facility oid of the senderreceiverApplicationOid
- receiver oid the applicationreceiverFacilityOid
- receiver oid of the facility
-
-
Method Details
-
createTEL
create a TEL type object with the supplied telecom value and use value (if supplied) we extend the type her also for the mobile, the standard PixPdqV3Utils.createTel has only WP and HP for useValue- Parameters:
telecomValue
- (the phone, web, or e-mail address value)useValue
- (original either "WP" for Work or "HP" for Home)- Returns:
- TEL type with the supplied telecom and use values.
-
addEmployeeCode
adds an employee code- Parameters:
employeeOccupationCode
- CWE:EmployeeOccupationCode
-
addLanguageCommunication
adds a language communication.- Parameters:
languageCommunication
- the language communication {CWE:HumanLanguage}
-
addPatientAddress
public void addPatientAddress(net.ihe.gazelle.hl7v3.datatypes.AD address) add an address for the patient.- Parameters:
address
-
-
addPatientConfidentialityCode
adds a confidentiality code to the patient- Parameters:
code
- confidentiality Code {CWE:Confidentiality}
-
addPatientEthnicGroupCode
add a patient ethnic group code to the patient- Parameters:
code
- patient etnnic group code {CWE:Ethnicity}
-
addPatientID
adds a patient identifier- Parameters:
extension
- patient identifierroot
- oid of patient identifier domainnamespace
- namespace of patient identifier domain
-
addPatientName
public void addPatientName(String familyName, String givenName, String otherName, String prefixName, String suffixName) adds a patient name- Parameters:
familyName
- familygivenName
- givenotherName
- otherprefixName
- prefixsuffixName
- suffix
-
addPatientNation
adds a nation code- Parameters:
nationCode
- CWE:NationEntityType
-
addPatientOtherID
add a patient other id for the patient- Parameters:
extension
- id for the patient which should be listed as otherIdroot
- oid of the patient id domain
-
addPatientRaceCode
adds patient race code to the patient- Parameters:
code
- patient race code {CWE:Race}
-
addPatientTelecom
adds a telecom value with the provided useValue ("HP" or "WP" or "H" or "MC")- Parameters:
telecomValue
- value for the telecomuseValue
- usage of telecom: "HP" or "WP" or "H" or "MC"
-
getV3MergePatientsMessage
Gets the v3 merge patients message.- Returns:
- the v3 merge patients message
-
getV3RecordAddedMessage
Gets the v3 record added message.- Returns:
- the v3 record added message
-
getV3RecordRevisedMessage
Gets the v3 record revised message.- Returns:
- the v3 record revised message
-
setPatientBirthPlace
public void setPatientBirthPlace(net.ihe.gazelle.hl7v3.datatypes.AD addressBirthPlace) sets the birth place- Parameters:
addressBirthPlace
- the birth place address
-
setPatientBirthTime
sets the patient birth time.- Parameters:
birthTime
- birthtime of the patient
-
setPatientDeceased
public void setPatientDeceased(boolean patientDeceased) sets whether the patient is deceased- Parameters:
patientDeceased
- true if patient is deceased
-
setPatientDeceasedTime
sets the patient deceased time.- Parameters:
patientDeceasedTime
- deceased time of the patient
-
setPatientGender
set the patient gender to the provided value ("M", "F", or "U")- Parameters:
gender
- gender values ("M", "F", or "U")
-
setPatientMaritalStatus
Set the marital status for the patient- Parameters:
maritalStatus
- marital status of the patient {CWE:MaritalStatus}
-
setPatientMothersMaidenName
public void setPatientMothersMaidenName(String family, String given, String other, String suffix, String prefix) sets a mother's maiden name for the patient.- Parameters:
family
- mothers maiden familygiven
- mothers maiden givenother
- mothers maiden othersuffix
- mothers maiden suffixprefix
- mothers maiden prefix
-
setPatientMultipleBirthIndicator
public void setPatientMultipleBirthIndicator(boolean birthIndicator) sets whether there was a multiple birth.- Parameters:
birthIndicator
- true if multiple birth
-
setPatientMultipleBirthOrderNumber
public void setPatientMultipleBirthOrderNumber(int birthNumber) sets the birth order number to the provided value- Parameters:
birthNumber
- birth order number
-
setPatientReligiousAffiliation
sets the religious affiliation for the patient- Parameters:
religiousAffiliation
- CWE:ReligiousAffiliation
-
setPatientVeryImportantPerson
sets the patient very important person code- Parameters:
code
- patient vip code CWE:PatientImportance}
-
setScopingOrganization
public void setScopingOrganization(String organizationOID, String organizationName, String telecomValue) sets the scoping organization for the patient- Parameters:
organizationOID
- oid of the organizationorganizationName
- organization nametelecomValue
- contact telecom value of the organization
-