Class PixPdqV3QueryBase
java.lang.Object
org.projecthusky.communication.CamelService
org.projecthusky.communication.mpi.impl.PixPdqV3QueryBase
- All Implemented Interfaces:
org.apache.camel.CamelContextAware
- Direct Known Subclasses:
PdqV3Query
,PixV3Query
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
The domain to return namespace (optional).protected String
The oid of the domain to return ids (optional, convenience if not other id for other domain oids are necessary) .protected String
The home community namespace (optional).protected String
The home community oid.oid of id domains which are not medical idsprotected URI
The pdq consumer uri endpoint.protected URI
The pix query uri endpoint.protected URI
The pix source uri endpoint.protected String
The receiver application oid.protected String
The receiver facility oid.protected String
The sender application oid.protected String
The sender facility oid. -
Constructor Summary
ConstructorsConstructorDescriptionPixPdqV3QueryBase
(AffinityDomain affinityDomain, String homeCommunityOid, String homeCommunityNamespace, String domainToReturnOid, String domainToReturnNamespace, org.apache.camel.CamelContext context) PixPdqV3QueryBase
(AffinityDomain affinityDomain, String homeCommunityOid, org.apache.camel.CamelContext context) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addDemographicData
(net.ihe.gazelle.hl7v3.prpamt201310UV02.PRPAMT201310UV02Patient pdqPatient, FhirPatient patient) adds the demographic data from the pdq query to the fhir patient, can be overloaded if additional information of the patient needs to be providied for the mpi.protected void
addDemographicData
(FhirPatient patient, V3PixSourceMessageHelper v3PixSourceMessage) adds the demographic data to the pix queries, can be overloaded if additional information of the patient needs to be providied for the mpi.protected void
addLanguageCommunications
(net.ihe.gazelle.hl7v3.prpamt201310UV02.PRPAMT201310UV02Patient pdqPatient, FhirPatient patient) Adds the language communications from the pdq message to the patient.protected void
addLanguageCommunications
(FhirPatient patient, V3PixSourceMessageHelper v3PixSourceMessage) Adds the language communications from the patient to the pix message.protected void
addPatientAddresses
(net.ihe.gazelle.hl7v3.prpamt201310UV02.PRPAMT201310UV02Patient pdqPatient, FhirPatient patient) Adds the patient addresses from the pdq message to the patient.protected void
addPatientAddresses
(FhirPatient patient, V3PixSourceMessageHelper v3PixSourceMessage) Adds the patient addresses from the patient to the pix message.protected void
addPatientIds
(net.ihe.gazelle.hl7v3.prpamt201310UV02.PRPAMT201310UV02Patient pdqPatient, FhirPatient patient) Adds the patient ids from the pdq message to the patient.protected void
addPatientIds
(FhirPatient patient, V3PixSourceMessageHelper v3PixSourceMessage) Adds the patient ids from the patient to the pix message.protected void
addPatientName
(net.ihe.gazelle.hl7v3.prpamt201310UV02.PRPAMT201310UV02Patient pdqPatient, FhirPatient patient) Adds the patient name from the pdq message to the patient.protected void
addPatientName
(FhirPatient patient, V3PixSourceMessageHelper v3PixSourceMessage) Adds the patient name from the patient to the pix message.protected void
addPatientTelecoms
(net.ihe.gazelle.hl7v3.prpamt201310UV02.PRPAMT201310UV02Patient pdqPatient, FhirPatient patient) Adds the patient telecoms from the pdq message to the patient.protected void
addPatientTelecoms
(FhirPatient patient, V3PixSourceMessageHelper v3PixSourceMessage) Adds the patient telecoms from the patient to the pix message.protected org.hl7.fhir.r4.model.Address
getAddressFromAD
(net.ihe.gazelle.hl7v3.datatypes.AD ad) Helper function to convert the HL7 PDQ AD type to the coressponding FHIR typeprotected String
getMixedValue
(List<Serializable> mixed) Helper method which gets the value of the supplied FeatureMapprotected net.ihe.gazelle.hl7v3.datatypes.AD
getPatientAddress
(org.hl7.fhir.r4.model.Address address) void
setAffinityDomain
(AffinityDomain affinityDomain) protected void
setBirthPlace
(net.ihe.gazelle.hl7v3.prpamt201310UV02.PRPAMT201310UV02Patient pdqPatient, FhirPatient patient) Sets the birth place from the pdq message to the patient.protected void
setBirthPlace
(FhirPatient patient, V3PixSourceMessageHelper v3PixSourceMessage) Sets the birthplace from the patient to the pix message.protected void
setDeceased
(net.ihe.gazelle.hl7v3.prpamt201310UV02.PRPAMT201310UV02Patient pdqPatient, FhirPatient patient) Sets the deceased status from the pdq message to the patient.protected void
setDeceased
(FhirPatient patient, V3PixSourceMessageHelper v3PixSourceMessage) sets the deceased status, either boolean or by datetime from the patient to the pix message.protected void
setEmployee
(net.ihe.gazelle.hl7v3.prpamt201310UV02.PRPAMT201310UV02Patient pdqPatient, FhirPatient patient) Sets the employee from the pdq message to the patient.protected void
setEmployee
(FhirPatient patient, V3PixSourceMessageHelper v3PixSourceMessage) Sets the employee from the patient to the pix message.protected void
setMultipeBirth
(net.ihe.gazelle.hl7v3.prpamt201310UV02.PRPAMT201310UV02Patient pdqPatient, FhirPatient patient) Sets the multipe birth from the pdq message to the patient.protected void
setMultipeBirth
(FhirPatient patient, V3PixSourceMessageHelper v3PixSourceMessage) Set the patient Birth Order from the patient to the pix message.protected void
setNation
(net.ihe.gazelle.hl7v3.prpamt201310UV02.PRPAMT201310UV02Patient pdqPatient, FhirPatient patient) Sets the nation from the pdq message to the patient.protected void
setNation
(FhirPatient patient, V3PixSourceMessageHelper v3PixSourceMessage) Sets the nation from the patient to the pix message.protected void
setPatientBirthTime
(net.ihe.gazelle.hl7v3.prpamt201310UV02.PRPAMT201310UV02Patient pdqPatient, FhirPatient patient) Sets the patient birth time from the pdq message to the patient.protected void
setPatientBirthTime
(FhirPatient patient, V3PixSourceMessageHelper v3PixSourceMessage) Sets the patient birth time from the patient to the pix message.protected void
setPatientGender
(net.ihe.gazelle.hl7v3.prpamt201310UV02.PRPAMT201310UV02Patient pdqPatient, FhirPatient patient) Sets the patient gender from the pdq message to the patient.protected void
setPatientGender
(FhirPatient patient, V3PixSourceMessageHelper v3PixSourceMessage) Sets the patient gender from the patient to the pix message.protected void
setPatientMaritalStatus
(net.ihe.gazelle.hl7v3.prpamt201310UV02.PRPAMT201310UV02Patient pdqPatient, FhirPatient patient) Sets the patient marital status the pdq message to the patient.protected void
setPatientMaritalStatus
(FhirPatient patient, V3PixSourceMessageHelper v3PixSourceMessage) Adds the marital status from the patient to the pix message.protected void
setPatientMothersMaidenName
(net.ihe.gazelle.hl7v3.prpamt201310UV02.PRPAMT201310UV02Patient pdqPatient, FhirPatient patient) Sets the patient mothers maiden name from the pdq message to the patient.protected void
setPatientMothersMaidenName
(FhirPatient patient, V3PixSourceMessageHelper v3PixSourceMessage) Sets the patients mother maiden name from the patient to the pix message.protected void
setPatientReligiousAffiliation
(net.ihe.gazelle.hl7v3.prpamt201310UV02.PRPAMT201310UV02Patient pdqPatient, FhirPatient patient) Sets the patient religious affiliation from the pdq message to the patient.protected void
setPatientReligiousAffiliation
(FhirPatient patient, V3PixSourceMessageHelper v3PixSourceMessage) Sets the patient religious affiliation from the patient to the pix message.protected void
setScopingOrganization
(net.ihe.gazelle.hl7v3.prpamt201310UV02.PRPAMT201310UV02Patient pdqPatient, FhirPatient patient) Sets the scoping organization from the pdq message to the patient.protected void
setScopingOrganization
(FhirPatient patient, V3PixSourceMessageHelper v3PixSourceMessage) Sets the scoping organization from the patient to the pix message.Methods inherited from class org.projecthusky.communication.CamelService
addHttpHeader, addWssHeader, getAuditContext, getCamelContext, send, setAuditContext, setCamelContext
-
Field Details
-
domainToReturnNamespace
The domain to return namespace (optional). -
domainToReturnOid
The oid of the domain to return ids (optional, convenience if not other id for other domain oids are necessary) . -
homeCommunityNamespace
The home community namespace (optional). -
homeCommunityOid
The home community oid. -
otherOidIds
oid of id domains which are not medical ids -
pdqConsumerUri
The pdq consumer uri endpoint. -
pixQueryUri
The pix query uri endpoint. -
pixSourceUri
The pix source uri endpoint. -
receiverApplicationOid
The receiver application oid. -
receiverFacilityOid
The receiver facility oid. -
senderApplicationOid
The sender application oid. -
senderFacilityOid
The sender facility oid.
-
-
Constructor Details
-
PixPdqV3QueryBase
public PixPdqV3QueryBase() -
PixPdqV3QueryBase
public PixPdqV3QueryBase(AffinityDomain affinityDomain, String homeCommunityOid, String homeCommunityNamespace, String domainToReturnOid, String domainToReturnNamespace, org.apache.camel.CamelContext context) -
PixPdqV3QueryBase
public PixPdqV3QueryBase(AffinityDomain affinityDomain, String homeCommunityOid, org.apache.camel.CamelContext context)
-
-
Method Details
-
setAffinityDomain
-
addDemographicData
adds the demographic data to the pix queries, can be overloaded if additional information of the patient needs to be providied for the mpi.- Parameters:
patient
- the patientv3PixSourceMessage
- the v3 add message
-
addDemographicData
protected void addDemographicData(net.ihe.gazelle.hl7v3.prpamt201310UV02.PRPAMT201310UV02Patient pdqPatient, FhirPatient patient) adds the demographic data from the pdq query to the fhir patient, can be overloaded if additional information of the patient needs to be providied for the mpi.- Parameters:
pdqPatient
- the pdq patientpatient
- the patient
-
addLanguageCommunications
protected void addLanguageCommunications(FhirPatient patient, V3PixSourceMessageHelper v3PixSourceMessage) Adds the language communications from the patient to the pix message. FHIR language code is based on http://tools.ietf.org/html/bcp47, HL7V3 makes no requirements- Parameters:
patient
- the patientv3PixSourceMessage
- the v3 pix source message
-
addLanguageCommunications
protected void addLanguageCommunications(net.ihe.gazelle.hl7v3.prpamt201310UV02.PRPAMT201310UV02Patient pdqPatient, FhirPatient patient) Adds the language communications from the pdq message to the patient.- Parameters:
pdqPatient
- the pdq patientpatient
- the patient
-
addPatientAddresses
protected void addPatientAddresses(FhirPatient patient, V3PixSourceMessageHelper v3PixSourceMessage) Adds the patient addresses from the patient to the pix message.- Parameters:
patient
- the patientv3PixSourceMessage
- the v3 pix source message
-
getPatientAddress
protected net.ihe.gazelle.hl7v3.datatypes.AD getPatientAddress(org.hl7.fhir.r4.model.Address address) -
addPatientAddresses
protected void addPatientAddresses(net.ihe.gazelle.hl7v3.prpamt201310UV02.PRPAMT201310UV02Patient pdqPatient, FhirPatient patient) Adds the patient addresses from the pdq message to the patient.- Parameters:
pdqPatient
- the pdq patientpatient
- the patient
-
addPatientIds
Adds the patient ids from the patient to the pix message.- Parameters:
patient
- the patientv3PixSourceMessage
- the v3 pix source message
-
addPatientIds
protected void addPatientIds(net.ihe.gazelle.hl7v3.prpamt201310UV02.PRPAMT201310UV02Patient pdqPatient, FhirPatient patient) Adds the patient ids from the pdq message to the patient.- Parameters:
pdqPatient
- the pdq patientpatient
- the patient
-
addPatientName
Adds the patient name from the patient to the pix message.- Parameters:
patient
- the patientv3PixSourceMessage
- the v3 pix source message
-
addPatientName
protected void addPatientName(net.ihe.gazelle.hl7v3.prpamt201310UV02.PRPAMT201310UV02Patient pdqPatient, FhirPatient patient) Adds the patient name from the pdq message to the patient.- Parameters:
pdqPatient
- the pdq patientpatient
- the patient
-
addPatientTelecoms
Adds the patient telecoms from the patient to the pix message.- Parameters:
patient
- the patientv3PixSourceMessage
- the v3 pix source message
-
addPatientTelecoms
protected void addPatientTelecoms(net.ihe.gazelle.hl7v3.prpamt201310UV02.PRPAMT201310UV02Patient pdqPatient, FhirPatient patient) Adds the patient telecoms from the pdq message to the patient.- Parameters:
pdqPatient
- the pdq patientpatient
- the patient
-
setScopingOrganization
protected void setScopingOrganization(FhirPatient patient, V3PixSourceMessageHelper v3PixSourceMessage) Sets the scoping organization from the patient to the pix message.- Parameters:
patient
- the patientv3PixSourceMessage
- the v3 pix source message
-
setScopingOrganization
protected void setScopingOrganization(net.ihe.gazelle.hl7v3.prpamt201310UV02.PRPAMT201310UV02Patient pdqPatient, FhirPatient patient) Sets the scoping organization from the pdq message to the patient.- Parameters:
pdqPatient
- the pdq patientpatient
- the patient
-
setBirthPlace
Sets the birthplace from the patient to the pix message.- Parameters:
patient
- the patientv3PixSourceMessage
- the v3 pix source message
-
setBirthPlace
protected void setBirthPlace(net.ihe.gazelle.hl7v3.prpamt201310UV02.PRPAMT201310UV02Patient pdqPatient, FhirPatient patient) Sets the birth place from the pdq message to the patient.- Parameters:
pdqPatient
- the pdq patientpatient
- the patient
-
setDeceased
sets the deceased status, either boolean or by datetime from the patient to the pix message.- Parameters:
patient
- the patientv3PixSourceMessage
- the v3 pix source message
-
setDeceased
protected void setDeceased(net.ihe.gazelle.hl7v3.prpamt201310UV02.PRPAMT201310UV02Patient pdqPatient, FhirPatient patient) Sets the deceased status from the pdq message to the patient.- Parameters:
pdqPatient
- the pdq patientpatient
- the patient
-
setEmployee
Sets the employee from the patient to the pix message.- Parameters:
patient
- the patientv3PixSourceMessage
- the v3 pix source message
-
setEmployee
protected void setEmployee(net.ihe.gazelle.hl7v3.prpamt201310UV02.PRPAMT201310UV02Patient pdqPatient, FhirPatient patient) Sets the employee from the pdq message to the patient.- Parameters:
pdqPatient
- the pdq patientpatient
- the patient
-
setMultipeBirth
Set the patient Birth Order from the patient to the pix message.- Parameters:
patient
- the patientv3PixSourceMessage
- the v3 pix source message
-
setMultipeBirth
protected void setMultipeBirth(net.ihe.gazelle.hl7v3.prpamt201310UV02.PRPAMT201310UV02Patient pdqPatient, FhirPatient patient) Sets the multipe birth from the pdq message to the patient.- Parameters:
pdqPatient
- the pdq patientpatient
- the patient
-
setNation
Sets the nation from the patient to the pix message.- Parameters:
patient
- the patientv3PixSourceMessage
- the v3 pix source message
-
setNation
protected void setNation(net.ihe.gazelle.hl7v3.prpamt201310UV02.PRPAMT201310UV02Patient pdqPatient, FhirPatient patient) Sets the nation from the pdq message to the patient.- Parameters:
pdqPatient
- the pdq patientpatient
- the patient
-
setPatientBirthTime
protected void setPatientBirthTime(FhirPatient patient, V3PixSourceMessageHelper v3PixSourceMessage) Sets the patient birth time from the patient to the pix message.- Parameters:
patient
- the patientv3PixSourceMessage
- the v3 pix source message
-
setPatientBirthTime
protected void setPatientBirthTime(net.ihe.gazelle.hl7v3.prpamt201310UV02.PRPAMT201310UV02Patient pdqPatient, FhirPatient patient) Sets the patient birth time from the pdq message to the patient.- Parameters:
pdqPatient
- the pdq patientpatient
- the patient
-
setPatientGender
Sets the patient gender from the patient to the pix message.- Parameters:
patient
- the patientv3PixSourceMessage
- the v3 pix source message
-
setPatientGender
protected void setPatientGender(net.ihe.gazelle.hl7v3.prpamt201310UV02.PRPAMT201310UV02Patient pdqPatient, FhirPatient patient) Sets the patient gender from the pdq message to the patient.- Parameters:
pdqPatient
- the pdq patientpatient
- the patient
-
setPatientMaritalStatus
protected void setPatientMaritalStatus(FhirPatient patient, V3PixSourceMessageHelper v3PixSourceMessage) Adds the marital status from the patient to the pix message. To verify in an implementation: is the coding of marital status of fhir equivalent to HL7 V3- Parameters:
patient
- the patientv3PixSourceMessage
- the v3 pix source message
-
setPatientMaritalStatus
protected void setPatientMaritalStatus(net.ihe.gazelle.hl7v3.prpamt201310UV02.PRPAMT201310UV02Patient pdqPatient, FhirPatient patient) Sets the patient marital status the pdq message to the patient. To verify in an implementation: is the coding of marital status of fhir equivalent to HL7 V3? http://hl7.org/implement/standards/FHIR-Develop/valueset -marital-status.html- Parameters:
pdqPatient
- the pdq patientpatient
- the patient
-
setPatientMothersMaidenName
protected void setPatientMothersMaidenName(FhirPatient patient, V3PixSourceMessageHelper v3PixSourceMessage) Sets the patients mother maiden name from the patient to the pix message.- Parameters:
patient
- the patientv3PixSourceMessage
- the v3 pix source message
-
setPatientMothersMaidenName
protected void setPatientMothersMaidenName(net.ihe.gazelle.hl7v3.prpamt201310UV02.PRPAMT201310UV02Patient pdqPatient, FhirPatient patient) Sets the patient mothers maiden name from the pdq message to the patient.- Parameters:
pdqPatient
- the pdq patientpatient
- the patient
-
setPatientReligiousAffiliation
protected void setPatientReligiousAffiliation(FhirPatient patient, V3PixSourceMessageHelper v3PixSourceMessage) Sets the patient religious affiliation from the patient to the pix message.- Parameters:
patient
- the patientv3PixSourceMessage
- the v3 pix source message
-
setPatientReligiousAffiliation
protected void setPatientReligiousAffiliation(net.ihe.gazelle.hl7v3.prpamt201310UV02.PRPAMT201310UV02Patient pdqPatient, FhirPatient patient) Sets the patient religious affiliation from the pdq message to the patient.- Parameters:
pdqPatient
- the pdq patientpatient
- the patient
-
getAddressFromAD
protected org.hl7.fhir.r4.model.Address getAddressFromAD(net.ihe.gazelle.hl7v3.datatypes.AD ad) Helper function to convert the HL7 PDQ AD type to the coressponding FHIR type- Parameters:
ad
- the ad- Returns:
- the address dt from ad
-
getMixedValue
Helper method which gets the value of the supplied FeatureMap- Parameters:
mixed
- (the FeatureMap containing the value)- Returns:
- String containing the value of the supplied FeatureMap.
-