generated from openhie/empty-fhir-ig-custom
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9792ab6
commit 94166d0
Showing
5 changed files
with
42 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 24 additions & 8 deletions
32
input/maps/PropietaryEducationLevelToLOINCEducationLevel.fml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,30 @@ | ||
/*/// url = 'http://openhie.org/fhir/zambia-immunizations/StructureMap/PropietaryEducationLevelToLOINCEducationLevel' | ||
/// url = 'http://openhie.org/fhir/zambia-immunizations/StructureMap/PropietaryEducationLevelToLOINCEducationLevel' | ||
/// name = 'PropietaryEducationLevelToLOINCEducationLevel' | ||
/// description = 'Maps the Propietary Educational Level codes To LOINC Educational Level codes.' | ||
/// title = 'Propietary Educational Level To LOINC Educational Level' | ||
/// status = 'active' | ||
|
||
uses "http://openhie.org/fhir/zambia-immunizations/StructureDefinition/immunization-patient" alias PatientProfile as source | ||
uses "http://openhie.org/fhir/zambia-immunizations/StructureDefinition/immunization-patient" alias Patient as target | ||
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 | ||
|
||
group SetPatientEducationalLevel(source pat : PatientProfile, target patient : Patient) { | ||
pat.extension:EduLevelAttained as eduLevelAttained -> patient as patty then { | ||
//eduLevelAttained -> patty.code = translate(eduLevelAttained, 'http://openhie.org/fhir/zambia-immunizations/ConceptMap/PropietaryEducationLevelToLOINCEducationLevel', 'code') "SetEducationalLevel"; | ||
} | ||
}*/ | ||
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 { | ||
obs.value -> coding = translate(obs.value, 'http://openhie.org/fhir/zambia-immunizations/ConceptMap/ProprietaryEducationLevelToLOINCEducationLevel', 'code') "SetPatientEducation"; | ||
} "SetEducationalLevelCoding"; | ||
} "SetEducationalLevelCode"; | ||
obs.value -> observation.value = obs.value "SetPatientEducationalLevel";*/ | ||
|
||
//pat.value as coding -> observation.value = translate(coding, 'http://openhie.org/fhir/zambia-immunizations/ConceptMap/ProprietaryEducationLevelToLOINCEducationLevel', 'code') "SetPatientEducation"; | ||
|
||
//obs.value.first() as coding -> observation.value as educationLevel then { | ||
// coding -> educationLevel.coding = translate(coding, 'http://openhie.org/fhir/zambia-immunizations/ConceptMap/ProprietaryEducationLevelToLOINCEducationLevel', 'code') "SetPatientEducation"; | ||
//} "SetEducationalLevelCode"; | ||
|
||
obs.value as srcCodeable, | ||
srcCodeable.coding as srcCoding -> | ||
observation.value as tgtCodeable, | ||
tgtCodeable.coding as tgtCoding, | ||
tgtCoding = translate(srcCoding, 'http://openhie.org/fhir/zambia-immunizations/ConceptMap/ProprietaryEducationLevelToLOINCEducationLevel', 'code') | ||
"SetPatientEducation"; | ||
} |