Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
rmrlangford committed Feb 4, 2024
1 parent da3852f commit 7e266cb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
9 changes: 9 additions & 0 deletions input/maps/MetaDataTypesHelper.fml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/// 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";
}
11 changes: 7 additions & 4 deletions input/maps/PropietaryEducationLevelToLOINCEducationLevel.fml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
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"

group SetPatientEducationalLevel(source obs : srcObservation, target observation : tgtObservation) {
/*obs.value -> observation.value = create('CodeableConcept') as value then {
obs.value -> value.coding = create('Coding') as coding then {
Expand All @@ -21,8 +23,9 @@ group SetPatientEducationalLevel(source obs : srcObservation, target observation
// coding -> educationLevel.coding = translate(coding, 'http://openhie.org/fhir/zambia-immunizations/ConceptMap/ProprietaryEducationLevelToLOINCEducationLevel', 'code') "SetPatientEducation";
//} "SetEducationalLevelCode";

obs.value as srcValue -> observation.value as tgtValue, tgtValue.coding as coding then {
srcValue.system as system -> coding.system = system "set vaccine code system";
srcValue.code as code -> coding.code = code "set vaccine code";
} "set vaccine";
/*obs.value first as valueCodeableConcept then {
valueCodeableConcept -> observation.value as educationalLevel then {
valueCodeableConcept -> valueCodeableConcept then mapCodingtoCodeableConcept(valueCodeableConcept) "set code";
} "set code";
} "set";*/
}

0 comments on commit 7e266cb

Please sign in to comment.