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 StringThe domain to return namespace (optional).protected StringThe oid of the domain to return ids (optional, convenience if not other id for other domain oids are necessary) .protected StringThe home community namespace (optional).protected StringThe home community oid.oid of id domains which are not medical idsprotected URIThe pdq consumer uri endpoint.protected URIThe pix query uri endpoint.protected URIThe pix source uri endpoint.protected StringThe receiver application oid.protected StringThe receiver facility oid.protected StringThe sender application oid.protected StringThe 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 voidaddDemographicData(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 voidaddDemographicData(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 voidaddLanguageCommunications(net.ihe.gazelle.hl7v3.prpamt201310UV02.PRPAMT201310UV02Patient pdqPatient, FhirPatient patient) Adds the language communications from the pdq message to the patient.protected voidaddLanguageCommunications(FhirPatient patient, V3PixSourceMessageHelper v3PixSourceMessage) Adds the language communications from the patient to the pix message.protected voidaddPatientAddresses(net.ihe.gazelle.hl7v3.prpamt201310UV02.PRPAMT201310UV02Patient pdqPatient, FhirPatient patient) Adds the patient addresses from the pdq message to the patient.protected voidaddPatientAddresses(FhirPatient patient, V3PixSourceMessageHelper v3PixSourceMessage) Adds the patient addresses from the patient to the pix message.protected voidaddPatientIds(net.ihe.gazelle.hl7v3.prpamt201310UV02.PRPAMT201310UV02Patient pdqPatient, FhirPatient patient) Adds the patient ids from the pdq message to the patient.protected voidaddPatientIds(FhirPatient patient, V3PixSourceMessageHelper v3PixSourceMessage) Adds the patient ids from the patient to the pix message.protected voidaddPatientName(net.ihe.gazelle.hl7v3.prpamt201310UV02.PRPAMT201310UV02Patient pdqPatient, FhirPatient patient) Adds the patient name from the pdq message to the patient.protected voidaddPatientName(FhirPatient patient, V3PixSourceMessageHelper v3PixSourceMessage) Adds the patient name from the patient to the pix message.protected voidaddPatientTelecoms(net.ihe.gazelle.hl7v3.prpamt201310UV02.PRPAMT201310UV02Patient pdqPatient, FhirPatient patient) Adds the patient telecoms from the pdq message to the patient.protected voidaddPatientTelecoms(FhirPatient patient, V3PixSourceMessageHelper v3PixSourceMessage) Adds the patient telecoms from the patient to the pix message.protected org.hl7.fhir.r4.model.AddressgetAddressFromAD(net.ihe.gazelle.hl7v3.datatypes.AD ad) Helper function to convert the HL7 PDQ AD type to the coressponding FHIR typeprotected StringgetMixedValue(List<Serializable> mixed) Helper method which gets the value of the supplied FeatureMapprotected net.ihe.gazelle.hl7v3.datatypes.ADgetPatientAddress(org.hl7.fhir.r4.model.Address address) voidsetAffinityDomain(AffinityDomain affinityDomain) protected voidsetBirthPlace(net.ihe.gazelle.hl7v3.prpamt201310UV02.PRPAMT201310UV02Patient pdqPatient, FhirPatient patient) Sets the birth place from the pdq message to the patient.protected voidsetBirthPlace(FhirPatient patient, V3PixSourceMessageHelper v3PixSourceMessage) Sets the birthplace from the patient to the pix message.protected voidsetDeceased(net.ihe.gazelle.hl7v3.prpamt201310UV02.PRPAMT201310UV02Patient pdqPatient, FhirPatient patient) Sets the deceased status from the pdq message to the patient.protected voidsetDeceased(FhirPatient patient, V3PixSourceMessageHelper v3PixSourceMessage) sets the deceased status, either boolean or by datetime from the patient to the pix message.protected voidsetEmployee(net.ihe.gazelle.hl7v3.prpamt201310UV02.PRPAMT201310UV02Patient pdqPatient, FhirPatient patient) Sets the employee from the pdq message to the patient.protected voidsetEmployee(FhirPatient patient, V3PixSourceMessageHelper v3PixSourceMessage) Sets the employee from the patient to the pix message.protected voidsetMultipeBirth(net.ihe.gazelle.hl7v3.prpamt201310UV02.PRPAMT201310UV02Patient pdqPatient, FhirPatient patient) Sets the multipe birth from the pdq message to the patient.protected voidsetMultipeBirth(FhirPatient patient, V3PixSourceMessageHelper v3PixSourceMessage) Set the patient Birth Order from the patient to the pix message.protected voidsetNation(net.ihe.gazelle.hl7v3.prpamt201310UV02.PRPAMT201310UV02Patient pdqPatient, FhirPatient patient) Sets the nation from the pdq message to the patient.protected voidsetNation(FhirPatient patient, V3PixSourceMessageHelper v3PixSourceMessage) Sets the nation from the patient to the pix message.protected voidsetPatientBirthTime(net.ihe.gazelle.hl7v3.prpamt201310UV02.PRPAMT201310UV02Patient pdqPatient, FhirPatient patient) Sets the patient birth time from the pdq message to the patient.protected voidsetPatientBirthTime(FhirPatient patient, V3PixSourceMessageHelper v3PixSourceMessage) Sets the patient birth time from the patient to the pix message.protected voidsetPatientGender(net.ihe.gazelle.hl7v3.prpamt201310UV02.PRPAMT201310UV02Patient pdqPatient, FhirPatient patient) Sets the patient gender from the pdq message to the patient.protected voidsetPatientGender(FhirPatient patient, V3PixSourceMessageHelper v3PixSourceMessage) Sets the patient gender from the patient to the pix message.protected voidsetPatientMaritalStatus(net.ihe.gazelle.hl7v3.prpamt201310UV02.PRPAMT201310UV02Patient pdqPatient, FhirPatient patient) Sets the patient marital status the pdq message to the patient.protected voidsetPatientMaritalStatus(FhirPatient patient, V3PixSourceMessageHelper v3PixSourceMessage) Adds the marital status from the patient to the pix message.protected voidsetPatientMothersMaidenName(net.ihe.gazelle.hl7v3.prpamt201310UV02.PRPAMT201310UV02Patient pdqPatient, FhirPatient patient) Sets the patient mothers maiden name from the pdq message to the patient.protected voidsetPatientMothersMaidenName(FhirPatient patient, V3PixSourceMessageHelper v3PixSourceMessage) Sets the patients mother maiden name from the patient to the pix message.protected voidsetPatientReligiousAffiliation(net.ihe.gazelle.hl7v3.prpamt201310UV02.PRPAMT201310UV02Patient pdqPatient, FhirPatient patient) Sets the patient religious affiliation from the pdq message to the patient.protected voidsetPatientReligiousAffiliation(FhirPatient patient, V3PixSourceMessageHelper v3PixSourceMessage) Sets the patient religious affiliation from the patient to the pix message.protected voidsetScopingOrganization(net.ihe.gazelle.hl7v3.prpamt201310UV02.PRPAMT201310UV02Patient pdqPatient, FhirPatient patient) Sets the scoping organization from the pdq message to the patient.protected voidsetScopingOrganization(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.
-