Skip to content

Commit

Permalink
Update AdministrativeSexToAdministrativeGender.fml
Browse files Browse the repository at this point in the history
  • Loading branch information
rmrlangford committed Jan 30, 2024
1 parent fe4f28c commit 3c924ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion input/maps/AdministrativeSexToAdministrativeGender.fml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
/// url = 'http://openhie.org/fhir/zambia-immunizations/StructureMap/AdministrativeSexToAdministrativeGender'
/// name = 'AdministrativeSexToAdministrativeGender'
/// description = 'Maps the Administrative Sex codes To Administrative Gender codes.'
/// title = 'Administrative Sex To Administrative Gender'
/// status = 'active'

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

group makePatient(source pat, target patient : Patient) {
group makePatient(source pat : PatientProfile, target patient : Patient) {
pat.gender as gender -> patient.gender = translate(gender, 'http://openhie.org/fhir/zambia-immunizations/ConceptMap/AdministrativeSexToAdministrativeGender', 'code') "SetGender";
}

0 comments on commit 3c924ed

Please sign in to comment.