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 Address.AddressUse
addressUse
(Object field, Address.AddressUse defaultUse) protected static void
addSearchScore
(PdqPatient pdqPatient, Object response) protected Address
convertAddress
(Object xad) protected void
convertAddresses
(Object xads, List<Address> addresses) protected void
convertGender
(String gender, PdqPatient patient) protected Identifier
protected void
convertIdentifiers
(Object cxs, List<Identifier> identifiers) protected HumanName
convertName
(Object xpn) protected void
convertNames
(Object xpns, List<HumanName> names) protected ContactPoint
convertTelecom
(Object xtn, ContactPoint.ContactPointUse defaultUse, ContactPoint.ContactPointSystem defaultSystem) protected static List
<PdqPatient> handleErrorResponse
(RSP_K21 message) protected List
<PdqPatient> handleRegularSearchResponse
(Object responseCollection) protected static CodeableConcept
makeCodeableConcept
(String code, String system, String display) protected static HumanName.NameUse
nameUse
(Object field, HumanName.NameUse defaultUse) protected PdqPatient
pidToPatient
(Object response) void
void
setNationalIdentifierUri
(String nationalIdentifierUri) void
void
setPdqSupplierResourceIdentifierUri
(String pdqSupplierResourceIdentifierUri) protected static ContactPoint.ContactPointSystem
telecomSystem
(Object field, ContactPoint.ContactPointSystem defaultSystem) protected static ContactPoint.ContactPointUse
telecomUse
(Object field, 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 ContactPoint convertTelecom(Object xtn, ContactPoint.ContactPointUse defaultUse, ContactPoint.ContactPointSystem defaultSystem) -
telecomUse
protected static ContactPoint.ContactPointUse telecomUse(Object field, ContactPoint.ContactPointUse defaultUse) -
telecomSystem
protected static ContactPoint.ContactPointSystem telecomSystem(Object field, ContactPoint.ContactPointSystem defaultSystem) -
nameUse
-
addressUse
-