Class PdqResponseToPdqmResponseTranslator

java.lang.Object
org.openehealth.ipf.commons.ihe.fhir.iti78.PdqResponseToPdqmResponseTranslator
All Implemented Interfaces:
GroovyObject, ToFhirTranslator<Message>

public class PdqResponseToPdqmResponseTranslator extends Object implements ToFhirTranslator<Message>, GroovyObject
  • Constructor Details

    • PdqResponseToPdqmResponseTranslator

      public PdqResponseToPdqmResponseTranslator(UriMapper uriMapper)
  • Method Details

    • getMetaClass

      public MetaClass getMetaClass()
      Specified by:
      getMetaClass in interface GroovyObject
    • setMetaClass

      public void setMetaClass(MetaClass mc)
      Specified by:
      setMetaClass in interface GroovyObject
    • getPdqSupplierResourceIdentifierUri

      public String getPdqSupplierResourceIdentifierUri()
    • getPdqSupplierResourceIdentifierOid

      public String getPdqSupplierResourceIdentifierOid()
    • setPdqSupplierResourceIdentifierOid

      public void setPdqSupplierResourceIdentifierOid(String value)
    • getNationalIdentifierUri

      public String getNationalIdentifierUri()
    • setPdqSupplierResourceIdentifierUri

      public void setPdqSupplierResourceIdentifierUri(String pdqSupplierResourceIdentifierUri)
    • setNationalIdentifierUri

      public void setNationalIdentifierUri(String nationalIdentifierUri)
    • translateToFhir

      public List<PdqPatient> translateToFhir(Message message, Map<String,Object> parameters)
      Description copied from interface: ToFhirTranslator
      Translates something into a FHIR object
      Specified by:
      translateToFhir in interface ToFhirTranslator<Message>
      Parameters:
      message - input data
      Returns:
      FHIR data
    • handleRegularSearchResponse

      protected List<PdqPatient> handleRegularSearchResponse(Object responseCollection)
    • addSearchScore

      protected static void addSearchScore(PdqPatient pdqPatient, Object response)
    • pidToPatient

      protected PdqPatient pidToPatient(Object response)
    • convertGender

      protected void convertGender(String gender, PdqPatient patient)
    • makeCodeableConcept

      protected static org.hl7.fhir.r4.model.CodeableConcept makeCodeableConcept(String code, String system, String display)
    • handleErrorResponse

      protected static List<PdqPatient> handleErrorResponse(RSP_K21 message)
    • convertIdentifiers

      protected void convertIdentifiers(Object cxs, List<org.hl7.fhir.r4.model.Identifier> identifiers)
    • convertIdentifier

      protected org.hl7.fhir.r4.model.Identifier convertIdentifier(Object cx)
    • convertAddresses

      protected void convertAddresses(Object xads, List<org.hl7.fhir.r4.model.Address> addresses)
    • convertAddress

      protected org.hl7.fhir.r4.model.Address convertAddress(Object xad)
    • convertNames

      protected void convertNames(Object xpns, List<org.hl7.fhir.r4.model.HumanName> names)
    • convertName

      protected org.hl7.fhir.r4.model.HumanName convertName(Object xpn)
    • convertTelecom

      protected org.hl7.fhir.r4.model.ContactPoint convertTelecom(Object xtn, org.hl7.fhir.r4.model.ContactPoint.ContactPointUse defaultUse, org.hl7.fhir.r4.model.ContactPoint.ContactPointSystem defaultSystem)
    • telecomUse

      protected static org.hl7.fhir.r4.model.ContactPoint.ContactPointUse telecomUse(Object field, org.hl7.fhir.r4.model.ContactPoint.ContactPointUse defaultUse)
    • telecomSystem

      protected static org.hl7.fhir.r4.model.ContactPoint.ContactPointSystem telecomSystem(Object field, org.hl7.fhir.r4.model.ContactPoint.ContactPointSystem defaultSystem)
    • nameUse

      protected static org.hl7.fhir.r4.model.HumanName.NameUse nameUse(Object field, org.hl7.fhir.r4.model.HumanName.NameUse defaultUse)
    • addressUse

      protected static org.hl7.fhir.r4.model.Address.AddressUse addressUse(Object field, org.hl7.fhir.r4.model.Address.AddressUse defaultUse)