From 1ceef12394bea82b347f304892b261060a49c5e9 Mon Sep 17 00:00:00 2001 From: rmrlangford Date: Sun, 4 Feb 2024 19:56:52 +0200 Subject: [PATCH] updated --- input/maps/MetaDataTypesHelper.fml | 9 --------- .../PropietaryEducationLevelToLOINCEducationLevel.fml | 8 ++++---- 2 files changed, 4 insertions(+), 13 deletions(-) delete mode 100644 input/maps/MetaDataTypesHelper.fml diff --git a/input/maps/MetaDataTypesHelper.fml b/input/maps/MetaDataTypesHelper.fml deleted file mode 100644 index 384d3c867..000000000 --- a/input/maps/MetaDataTypesHelper.fml +++ /dev/null @@ -1,9 +0,0 @@ -/// url = 'http://openhie.org/fhir/zambia-immunizations/StructureMap/MetaDataTypesHelper' -/// name = 'MetaDataTypesHelper' -/// description = 'Structure maps helper.' -/// title = 'Structure Maps Helper' -/// status = 'active' - -group mapCodingtoCodeableConcept (source coding: Coding, target codeableConcept : CodeableConcept) { - coding -> codeableConcept.coding = coding "set coding"; -} \ No newline at end of file diff --git a/input/maps/PropietaryEducationLevelToLOINCEducationLevel.fml b/input/maps/PropietaryEducationLevelToLOINCEducationLevel.fml index 21bb71456..889ea9e17 100644 --- a/input/maps/PropietaryEducationLevelToLOINCEducationLevel.fml +++ b/input/maps/PropietaryEducationLevelToLOINCEducationLevel.fml @@ -4,10 +4,8 @@ /// title = 'Propietary Educational Level To LOINC Educational Level' /// status = 'active' -uses "http://openhie.org/fhir/zambia-immunizations/StructureDefinition/patient-educational-level" alias srcObservation as source -uses "http://openhie.org/fhir/zambia-immunizations/StructureDefinition/patient-educational-level" alias tgtObservation as target - -imports "http://openhie.org/fhir/zambia-immunizations/StructureMap/MetaDataTypesHelper" +uses "http://hl7.org/fhir/StructureDefinition/Observation" alias srcObservation as source +uses "http://hl7.org/fhir/StructureDefinition/Observation" alias tgtObservation as target group SetPatientEducationalLevel(source obs : srcObservation, target observation : tgtObservation) { /*obs.value -> observation.value = create('CodeableConcept') as value then { @@ -28,4 +26,6 @@ group SetPatientEducationalLevel(source obs : srcObservation, target observation valueCodeableConcept -> valueCodeableConcept then mapCodingtoCodeableConcept(valueCodeableConcept) "set code"; } "set code"; } "set";*/ + + //obs.value : CodeableConcept -> observation.value; } \ No newline at end of file