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

public class PixPdqV3QueryBase extends CamelService
  • Field Details

    • domainToReturnNamespace

      protected String domainToReturnNamespace
      The domain to return namespace (optional).
    • domainToReturnOid

      protected String domainToReturnOid
      The oid of the domain to return ids (optional, convenience if not other id for other domain oids are necessary) .
    • homeCommunityNamespace

      protected String homeCommunityNamespace
      The home community namespace (optional).
    • homeCommunityOid

      protected String homeCommunityOid
      The home community oid.
    • otherOidIds

      protected Set<String> otherOidIds
      oid of id domains which are not medical ids
    • pdqConsumerUri

      protected URI pdqConsumerUri
      The pdq consumer uri endpoint.
    • pixQueryUri

      protected URI pixQueryUri
      The pix query uri endpoint.
    • pixSourceUri

      protected URI pixSourceUri
      The pix source uri endpoint.
    • receiverApplicationOid

      protected String receiverApplicationOid
      The receiver application oid.
    • receiverFacilityOid

      protected String receiverFacilityOid
      The receiver facility oid.
    • senderApplicationOid

      protected String senderApplicationOid
      The sender application oid.
    • senderFacilityOid

      protected String 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

      public void setAffinityDomain(AffinityDomain affinityDomain)
    • addDemographicData

      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.
      Parameters:
      patient - the patient
      v3PixSourceMessage - 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 patient
      patient - 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 patient
      v3PixSourceMessage - 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 patient
      patient - the patient
    • addPatientAddresses

      protected void addPatientAddresses(FhirPatient patient, V3PixSourceMessageHelper v3PixSourceMessage)
      Adds the patient addresses from the patient to the pix message.
      Parameters:
      patient - the patient
      v3PixSourceMessage - 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 patient
      patient - the patient
    • addPatientIds

      protected void addPatientIds(FhirPatient patient, V3PixSourceMessageHelper v3PixSourceMessage)
      Adds the patient ids from the patient to the pix message.
      Parameters:
      patient - the patient
      v3PixSourceMessage - 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 patient
      patient - the patient
    • addPatientName

      protected void addPatientName(FhirPatient patient, V3PixSourceMessageHelper v3PixSourceMessage)
      Adds the patient name from the patient to the pix message.
      Parameters:
      patient - the patient
      v3PixSourceMessage - 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 patient
      patient - the patient
    • addPatientTelecoms

      protected void addPatientTelecoms(FhirPatient patient, V3PixSourceMessageHelper v3PixSourceMessage)
      Adds the patient telecoms from the patient to the pix message.
      Parameters:
      patient - the patient
      v3PixSourceMessage - 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 patient
      patient - the patient
    • setScopingOrganization

      protected void setScopingOrganization(FhirPatient patient, V3PixSourceMessageHelper v3PixSourceMessage)
      Sets the scoping organization from the patient to the pix message.
      Parameters:
      patient - the patient
      v3PixSourceMessage - 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 patient
      patient - the patient
    • setBirthPlace

      protected void setBirthPlace(FhirPatient patient, V3PixSourceMessageHelper v3PixSourceMessage)
      Sets the birthplace from the patient to the pix message.
      Parameters:
      patient - the patient
      v3PixSourceMessage - 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 patient
      patient - the patient
    • setDeceased

      protected void setDeceased(FhirPatient patient, V3PixSourceMessageHelper v3PixSourceMessage)
      sets the deceased status, either boolean or by datetime from the patient to the pix message.
      Parameters:
      patient - the patient
      v3PixSourceMessage - 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 patient
      patient - the patient
    • setEmployee

      protected void setEmployee(FhirPatient patient, V3PixSourceMessageHelper v3PixSourceMessage)
      Sets the employee from the patient to the pix message.
      Parameters:
      patient - the patient
      v3PixSourceMessage - 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 patient
      patient - the patient
    • setMultipeBirth

      protected void setMultipeBirth(FhirPatient patient, V3PixSourceMessageHelper v3PixSourceMessage)
      Set the patient Birth Order from the patient to the pix message.
      Parameters:
      patient - the patient
      v3PixSourceMessage - 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 patient
      patient - the patient
    • setNation

      protected void setNation(FhirPatient patient, V3PixSourceMessageHelper v3PixSourceMessage)
      Sets the nation from the patient to the pix message.
      Parameters:
      patient - the patient
      v3PixSourceMessage - 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 patient
      patient - 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 patient
      v3PixSourceMessage - 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 patient
      patient - the patient
    • setPatientGender

      protected void setPatientGender(FhirPatient patient, V3PixSourceMessageHelper v3PixSourceMessage)
      Sets the patient gender from the patient to the pix message.
      Parameters:
      patient - the patient
      v3PixSourceMessage - 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 patient
      patient - 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 patient
      v3PixSourceMessage - 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 patient
      patient - 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 patient
      v3PixSourceMessage - 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 patient
      patient - 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 patient
      v3PixSourceMessage - 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 patient
      patient - 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

      protected String getMixedValue(List<Serializable> mixed)
      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.