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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static org.hl7.fhir.r4.model.Address.AddressUse
addressUse
(Object field, org.hl7.fhir.r4.model.Address.AddressUse defaultUse) protected static void
addSearchScore
(PdqPatient pdqPatient, Object response) protected org.hl7.fhir.r4.model.Address
convertAddress
(Object xad) protected void
convertAddresses
(Object xads, List<org.hl7.fhir.r4.model.Address> addresses) protected void
convertGender
(String gender, PdqPatient patient) protected org.hl7.fhir.r4.model.Identifier
protected void
convertIdentifiers
(Object cxs, List<org.hl7.fhir.r4.model.Identifier> identifiers) protected org.hl7.fhir.r4.model.HumanName
convertName
(Object xpn) protected void
convertNames
(Object xpns, List<org.hl7.fhir.r4.model.HumanName> names) 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) protected static List<PdqPatient>
handleErrorResponse
(RSP_K21 message) protected List<PdqPatient>
handleRegularSearchResponse
(Object responseCollection) protected static org.hl7.fhir.r4.model.CodeableConcept
makeCodeableConcept
(String code, String system, String display) protected static org.hl7.fhir.r4.model.HumanName.NameUse
protected PdqPatient
pidToPatient
(Object response) void
void
setNationalIdentifierUri
(String nationalIdentifierUri) void
void
setPdqSupplierResourceIdentifierUri
(String pdqSupplierResourceIdentifierUri) protected static org.hl7.fhir.r4.model.ContactPoint.ContactPointSystem
telecomSystem
(Object field, org.hl7.fhir.r4.model.ContactPoint.ContactPointSystem defaultSystem) protected static org.hl7.fhir.r4.model.ContactPoint.ContactPointUse
telecomUse
(Object field, org.hl7.fhir.r4.model.ContactPoint.ContactPointUse defaultUse) translateToFhir
(Message message, Map<String, Object> parameters) Translates something into a FHIR objectMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface groovy.lang.GroovyObject
getProperty, invokeMethod, setProperty
-
Constructor Details
-
PdqResponseToPdqmResponseTranslator
-
-
Method Details
-
getMetaClass
- Specified by:
getMetaClass
in interfaceGroovyObject
-
setMetaClass
- Specified by:
setMetaClass
in interfaceGroovyObject
-
getPdqSupplierResourceIdentifierUri
-
getPdqSupplierResourceIdentifierOid
-
setPdqSupplierResourceIdentifierOid
-
getNationalIdentifierUri
-
setPdqSupplierResourceIdentifierUri
-
setNationalIdentifierUri
-
translateToFhir
Description copied from interface:ToFhirTranslator
Translates something into a FHIR object- Specified by:
translateToFhir
in interfaceToFhirTranslator<Message>
- Parameters:
message
- input data- Returns:
- FHIR data
-
handleRegularSearchResponse
-
addSearchScore
-
pidToPatient
-
convertGender
-
makeCodeableConcept
-
handleErrorResponse
-
convertIdentifiers
-
convertIdentifier
-
convertAddresses
-
convertAddress
-
convertNames
-
convertName
-
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)
-