Skip to content

Commit

Permalink
fix brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
costateixeira authored Sep 21, 2024
1 parent 8ad7817 commit 3a0de73
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions input/maps/IMMZCQRToLM.fml
Original file line number Diff line number Diff line change
Expand Up @@ -7,37 +7,37 @@ uses "http://smart.who.int/immunizations-measles/StructureDefinition/IMMZCRegist
group QRespToIMMZC ( source qr : QResp, target immzc : IMMZC) {
qr.item as item then {

item.answer first as answer where item.linkId = 'uniqueId' then {
item.answer first as answer where (item.linkId = 'uniqueId') then {
answer.value as content -> immzc.uniqueId = content "SetIdentifier";
} "FirstAnswerForIdentifier";

item as name where item.linkId = 'name' then NameToIMMZC( name, immzc ) "SetNames";

item.answer first as answer where item.linkId = 'sex' then {
item.answer first as answer where (item.linkId = 'sex') then {
answer.value as coding then {
coding.code as content -> immzc.sex = content "SetSex";
} "ProcessCoding";
} "FirstAnswerForIdentifier";

item.answer first as answer where item.linkId = 'birthDate' then {
item.answer first as answer where (item.linkId = 'birthDate') then {
answer.value as content -> immzc.birthDate = content "SetBirthDate2";
} "FirstAnswerForBirthDate";

item.answer as caregiver where item.linkId = 'caregiver' -> immzc.caregiver as caretgt
item.answer as caregiver where (item.linkId = 'caregiver') -> immzc.caregiver as caretgt
then NameToIMMZC( caregiver, caretgt ) "SetCaregiver";

item.answer first as answer where item.linkId = 'phone' then {
item.answer first as answer where (item.linkId = 'phone') then {
answer.value as content -> immzc.phone = content "SetPhone";
} "FirstAnswerForPhone";

item.answer first as answer where item.linkId = 'administrativeArea' then {
item.answer first as answer where (item.linkId = 'administrativeArea') then {
answer.value as coding -> immzc.administrativeArea as area then {
coding -> area.coding = coding "SetCodingValue";
coding.display as display -> area.text = display "SetDisplay";
} "SetCoding";
} "FirstAnswerForAdministrativeArea";

item.answer first as answer where item.linkId = 'healthWorker' then {
item.answer first as answer where (item.linkId = 'healthWorker') then {
answer.value as content -> immzc.healthWorker = content "SetHealthWorker";
} "FirstAnswerForHealthWorker";

Expand All @@ -48,15 +48,15 @@ group QRespToIMMZC ( source qr : QResp, target immzc : IMMZC) {
group NameToIMMZC( source name, target immzc) {
name.item as item then {

item.answer first as answer where item.linkId = 'fullName' then {
item.answer first as answer where (item.linkId = 'fullName') then {
answer.value as content -> immzc.name = content "SetFullName";
} "FirstAnswerForFullName";

// item.answer first as answer where item.linkId = 'firstName' then {
// item.answer first as answer where (item.linkId = 'firstName') then {
// answer.value as content -> immzc.firstName = content "SetFirstName";
// } "FirstAnswerForFirstName";

// item.answer first as answer where item.linkId = 'familyName' then {
// item.answer first as answer where (item.linkId = 'familyName') then {
// answer.value as content -> immzc.familyName = content "SetFamilyName";
// } "FirstAnswerForFamilyName";

Expand Down

0 comments on commit 3a0de73

Please sign in to comment.