Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
rmrlangford committed Feb 5, 2024
1 parent 1ceef12 commit b38183f
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion input/fsh/examples.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ Instance: ChiefAtBirthRelatedPersonExample
InstanceOf: ChiefAtBirthRelatedPerson
Usage: #example
Title: "Chief at Birth"
Description: "Patient'a chief at birth."
Description: "Patient's chief at birth."
* patient = Reference(ImmunizationPatientExample)
* name[+].use = #official
* name[=].family = "Jones"
Expand Down
2 changes: 1 addition & 1 deletion input/fsh/smartcare.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ Profile: ChiefAtBirthRelatedPerson
Parent: RelationToPatient
Id: chief-at-birth-relation-to-patient
Title: "Chief at Birth"
Description: "Patient'a chief at birth."
Description: "Patient's chief at birth."
* relationship 1..1
* relationship = $SCT#303119007
* name.family 1..1
Expand Down
4 changes: 2 additions & 2 deletions input/maps/AdministrativeSexToAdministrativeGender.fml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
/// title = 'Administrative Sex To Administrative Gender'
/// status = 'active'

uses "http://openhie.org/fhir/zambia-immunizations/StructureDefinition/immunization-patient" alias srcPatient as source
uses "http://openhie.org/fhir/zambia-immunizations/StructureDefinition/immunization-patient" alias tgtPatient as target
uses "http://hl7.org/fhir/StructureDefinition/Patient" alias srcPatient as source
uses "http://hl7.org/fhir/StructureDefinition/Patient" alias tgtPatient as target

group SetPatientGender(source pat : srcPatient, target patient : tgtPatient) {
pat.gender as gender -> patient.gender = translate(gender, 'http://openhie.org/fhir/zambia-immunizations/ConceptMap/AdministrativeSexToAdministrativeGender', 'code') "SetGender";
Expand Down
12 changes: 9 additions & 3 deletions input/maps/PropietaryEducationLevelToLOINCEducationLevel.fml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
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) {
group SetPatientEducationalLevel(source obs : srcObservation, source coding: Coding, target observation : tgtObservation, target codeableConcept : CodeableConcept) {
/*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";
Expand All @@ -27,5 +27,11 @@ group SetPatientEducationalLevel(source obs : srcObservation, target observation
} "set code";
} "set";*/

//obs.value : CodeableConcept -> observation.value;
/*obs.value : CodeableConcept as value,
value first as srcValueCodeableConcept,
observation.value : CodeableConcept as dstValueCodeableConcept then {
srcValueCodeableConcept -> dstValueCodeableConcept = translate(srcValueCodeableConcept, 'http://openhie.org/fhir/zambia-immunizations/ConceptMap/ProprietaryEducationLevelToLOINCEducationLevel', 'code') "SetPatientEducation";
} "TEST";*/


}

0 comments on commit b38183f

Please sign in to comment.