Starter FHIR Implementation Guide
1.0.1 - draft
Starter FHIR Implementation Guide, published by Jembi Health Systems. This guide is not an authorized publication; it is the continuous build for version 1.0.1 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/jembi/Starter-FHIR-IG/ and changes regularly. See the Directory of published versions
Official URL: http://jembi.org/fhir/StructureMap/FHIRR4PatientToCHTPatient | Version: 1.0.1 | |||
Draft as of 2024-11-08 | Computable Name: FHIRR4PatientToCHTPatient |
Generated Narrative: StructureMap FHIRR4PatientToCHTPatient
map "http://jembi.org/fhir/StructureMap/FHIRR4PatientToCHTPatient" = "FHIRR4PatientToCHTPatient" uses "http://hl7.org/fhir/StructureDefinition/Patient" as source uses "http://jembi.org/fhir/StructureDefinition/CHTPatientLogicalModel" as target group FHIRR4PatientToCHTPatient(source src : Patient, target tgt : CHTPatientLogicalModel) { src.id as srcID -> tgt._id = srcID "SetPatientResourceId"; src.name as srcName then { srcName.text as name -> tgt.name = name "SetPatientFullName"; }; src.telecom as srcPhone then { srcPhone.value as phone -> tgt.phone = phone "SetPatientTelecomValue"; }; src.birthDate as dob -> tgt.date_of_birth = dob "SetPatientBirthDate"; src.gender as gender -> tgt.sex = gender "SetPatientGender"; src.identifier as srcBusinessID then { srcBusinessID.value as businessID -> tgt.patient_id = businessID "SetBusinessIDValue"; }; src.extension as nationalityExt where (url = 'http://hl7.org/fhir/StructureDefinition/patient-nationality') then { nationalityExt.extension as countryCodeExtension where (url = 'code') then { countryCodeExtension.value : CodeableConcept as codeableConcept then { codeableConcept.coding as coding then { coding.code as code -> tgt.nationality = code "SetCountryCode"; }; }; }; }; }