From 59a3034d8dbd1b182984a225864a568adf28918d Mon Sep 17 00:00:00 2001 From: Patrick Delcroix Date: Tue, 31 Mar 2026 17:20:13 +0200 Subject: [PATCH 01/24] Update IG canonical, id, name and template --- ig.ini | 4 +- input/cql/emcarebase.cql | 16 +- input/cql/emcarecondition.cql | 2 +- input/cql/emcareobservation-valueset.cql | 2 +- input/cql/emcareobservation.cql | 2 +- input/cql/emcareobservationValueset.cql | 2 +- input/cql/emcareobservation_valueset.cql | 2 +- input/cql/emcarevalueset.cql | 2 +- input/cql/emcarezscore.cql | 2 +- input/mapping/emcare.b10-14.symptoms.2m.p.map | 78 ++-- input/mapping/emcare.b10-16.signs.2m.p.map | 342 ++++++++--------- input/mapping/emcare.b18-21.signs.2m.m.map | 140 +++---- input/mapping/emcare.b18-21.symptoms.2m.m.map | 22 +- input/mapping/emcare.b22.assessmentstests.map | 172 ++++----- input/mapping/emcare.b22.breastfeeding.map | 62 ++-- .../mapping/emcare.b22.bronchodilatortest.map | 54 +-- input/mapping/emcare.b22.fluidtest.map | 26 +- input/mapping/emcare.b22.hemoglobin.map | 14 +- input/mapping/emcare.b22.respiratoryrate.map | 26 +- .../mapping/emcare.b22.secondtemperature.map | 20 +- input/mapping/emcare.b23.classification.m.map | 60 +-- input/mapping/emcare.b23.classification.map | 234 ++++++------ input/mapping/emcare.b6.measurements.map | 60 +-- input/mapping/emcare.b7.lti-dangersigns.map | 58 +-- input/mapping/emcare.treatment.map | 2 +- input/mapping/emcarea.registration.p.map | 26 +- input/mapping/emcareb.registration.e.map | 14 +- .../profiles-emcare-communicationrequest.json | 2 +- input/profiles/profiles-emcare-condition.json | 2 +- input/profiles/profiles-emcare-encounter.json | 2 +- input/profiles/profiles-emcare-patient.json | 10 +- .../profiles-emcare-relatedperson.json | 2 +- ...efinition-emcare.b10-14.symptoms.2m.p.json | 4 +- ...tydefinition-emcare.b10-16.signs.2m.p.json | 4 +- ...tydefinition-emcare.b18-21.signs.2m.m.json | 4 +- ...efinition-emcare.b18-21.symptoms.2m.m.json | 4 +- ...efinition-emcare.b22.assessmentstests.json | 4 +- ...tydefinition-emcare.b22.breastfeeding.json | 4 +- ...inition-emcare.b22.bronchodilatortest.json | 4 +- ...tivitydefinition-emcare.b22.fluidtest.json | 4 +- ...ivitydefinition-emcare.b22.hemoglobin.json | 4 +- ...definition-emcare.b22.respiratoryrate.json | 4 +- ...finition-emcare.b22.secondtemperature.json | 4 +- ...ydefinition-emcare.b23.classification.json | 4 +- ...efinition-emcare.b23.classification.m.json | 4 +- ...vitydefinition-emcare.b6.measurements.json | 4 +- ...ydefinition-emcare.b7.lti-dangersigns.json | 4 +- .../activitydefinition-emcare.treatment.json | 4 +- ...vitydefinition-emcarea.registration.p.json | 4 +- ...vitydefinition-emcareb.registration.e.json | 4 +- .../structuredefinition-anonymous.json | 4 +- ...tructuredefinition-birthdateestimator.json | 4 +- ...structuredefinition-fathervitalstatus.json | 4 +- ...structuredefinition-mothervitalstatus.json | 4 +- .../structuredefinition-postcoordination.json | 4 +- .../structuredefinition-primarycaregiver.json | 4 +- .../structuredefinition-smsnotifications.json | 4 +- .../library-emcare.b10-14.symptoms.2m.p.json | 2 +- .../library-emcare.b10-16.signs.2m.p.json | 2 +- .../library-emcare.b18-21.signs.2m.m.json | 2 +- .../library-emcare.b18-21.symptoms.2m.m.json | 2 +- .../library-emcare.b22.assessmentstests.json | 2 +- .../library-emcare.b22.breastfeeding.json | 2 +- .../library/library-emcare.b22.fluidtest.json | 2 +- .../library-emcare.b22.respiratoryrate.json | 2 +- .../library-emcare.b22.secondtemperature.json | 2 +- .../library-emcare.b23.classification.json | 2 +- .../library-emcare.b23.classification.m.json | 2 +- .../library-emcare.b6.measurements.json | 2 +- .../library-emcare.b7.lti-dangersigns.json | 2 +- .../library-emcare.combineddataelements.json | 2 +- .../library/library-emcare.treatment.json | 2 +- .../resources/library/library-emcarebase.json | 2 +- .../library/library-emcarecondition.json | 2 +- .../resources/library/library-emcaredt01.json | 2 +- .../library-emcareobservation-valueset.json | 2 +- .../library/library-emcareobservation.json | 2 +- .../library-emcareobservationvalueset.json | 2 +- .../library/library-emcarevalueset.json | 2 +- .../library/library-emcarezscore.json | 12 +- .../plandefinition/plandefinition-emcare.json | 28 +- ...tionnaire-emcare.b10-14.symptoms.2m.p.json | 30 +- ...uestionnaire-emcare.b10-16.signs.2m.p.json | 94 ++--- ...uestionnaire-emcare.b18-21.signs.2m.m.json | 58 +-- ...tionnaire-emcare.b18-21.symptoms.2m.m.json | 12 +- ...tionnaire-emcare.b22.assessmentstests.json | 48 +-- ...uestionnaire-emcare.b22.breastfeeding.json | 6 +- ...onnaire-emcare.b22.bronchodilatortest.json | 14 +- .../questionnaire-emcare.b22.fluidtest.json | 26 +- .../questionnaire-emcare.b22.hemoglobin.json | 4 +- ...stionnaire-emcare.b22.respiratoryrate.json | 6 +- ...ionnaire-emcare.b22.secondtemperature.json | 6 +- ...estionnaire-emcare.b23.classification.json | 290 +++++++-------- ...tionnaire-emcare.b23.classification.m.json | 86 ++--- .../questionnaire-emcare.b6.measurements.json | 12 +- ...estionnaire-emcare.b7.lti-dangersigns.json | 32 +- .../questionnaire-emcare.treatment.json | 6 +- .../questionnaire-emcarea.registration.p.json | 44 +-- .../questionnaire-emcareb.registration.e.json | 24 +- .../structuredefinition-anonymous.json | 4 +- ...tructuredefinition-birthday-estimator.json | 6 +- ...tructuredefinition-dob-time-extension.json | 4 +- .../structuredefinition-emcare-condition.json | 4 +- ...tructuredefinition-emcare-observation.json | 2 +- .../structuredefinition-emcare-patient.json | 16 +- ...ructuredefinition-father-vital-status.json | 6 +- ...ructuredefinition-mother-vital-status.json | 6 +- ...structuredefinition-post-coordination.json | 6 +- ...tructuredefinition-primary-care-giver.json | 4 +- ...structuredefinition-sms-notifications.json | 4 +- ...ucturemap-emcare.b10-14.symptoms.2m.p.json | 80 ++-- ...structuremap-emcare.b10-16.signs.2m.p.json | 344 +++++++++--------- ...structuremap-emcare.b18-21.signs.2m.m.json | 142 ++++---- ...ucturemap-emcare.b18-21.symptoms.2m.m.json | 24 +- ...ucturemap-emcare.b22.assessmentstests.json | 174 ++++----- ...structuremap-emcare.b22.breastfeeding.json | 64 ++-- ...turemap-emcare.b22.bronchodilatortest.json | 56 +-- .../structuremap-emcare.b22.fluidtest.json | 28 +- .../structuremap-emcare.b22.hemoglobin.json | 16 +- ...ructuremap-emcare.b22.respiratoryrate.json | 28 +- ...cturemap-emcare.b22.secondtemperature.json | 22 +- ...tructuremap-emcare.b23.classification.json | 266 +++++++------- ...ucturemap-emcare.b23.classification.m.json | 62 ++-- .../structuremap-emcare.b6.measurements.json | 62 ++-- ...tructuremap-emcare.b7.lti-dangersigns.json | 60 +-- .../structuremap-emcare.treatment.json | 4 +- .../structuremap-emcarea.registration.p.json | 28 +- .../structuremap-emcareb.registration.e.json | 16 +- input/{emc-cds.xml => smart.who.int.ccc.xml} | 9 +- .../codesystem/codesystem-emcare.json | 2 +- .../valueset/valueset-abilitytoswallow.json | 4 +- .../vocabulary/valueset/valueset-add-pb.json | 4 +- .../valueset/valueset-agreedisagree.json | 4 +- .../valueset/valueset-appetite-test.json | 4 +- .../valueset/valueset-bioparent-status.json | 4 +- .../valueset-breastfeed-assessment.json | 4 +- .../valueset-child-last-hiv-status.json | 4 +- .../valueset-child-vaccination-status.json | 4 +- .../valueset/valueset-child-vaccines.json | 4 +- .../valueset-consultation-status.json | 4 +- .../valueset/valueset-consultation-type.json | 4 +- .../valueset/valueset-difficulty-feeding.json | 2 +- .../valueset/valueset-dob-estimator.json | 4 +- .../valueset/valueset-emcarecondition.json | 4 +- .../valueset-emcareobservation-valueset.json | 4 +- .../valueset/valueset-emcareobservation.json | 4 +- .../valueset-emcareobservationvalueset.json | 4 +- .../valueset/valueset-feeding-problem.json | 4 +- .../valueset/valueset-hiv-prevalence.json | 4 +- .../valueset/valueset-hiv-status.json | 4 +- ...valueset-inhaled-bronchodilator-trial.json | 4 +- .../valueset/valueset-is-recorded.json | 4 +- .../valueset-malaria-microscopy-species.json | 4 +- .../valueset-malaria-rdt-species.json | 4 +- .../valueset-malaria-risk-region-2.json | 4 +- .../valueset/valueset-malaria-test-type.json | 4 +- .../valueset/valueset-malaria-test.json | 4 +- .../valueset-measured-temperature.json | 2 +- .../valueset/valueset-milk-given.json | 4 +- .../valueset/valueset-milk-preparation.json | 4 +- .../valueset/valueset-more-than-14d.json | 4 +- .../valueset/valueset-more-than-7d.json | 4 +- .../valueset/valueset-movements.json | 2 +- .../valueset-mucus-membrane-pallor.json | 4 +- .../valueset-number-of-convulsions.json | 4 +- .../valueset/valueset-observation.json | 4 +- .../valueset/valueset-oral-fluid-test.json | 4 +- .../valueset/valueset-oral-sores.json | 4 +- .../valueset/valueset-oxygen-saturation.json | 4 +- .../valueset/valueset-palmar-pallor.json | 4 +- .../valueset-reason-consultation.json | 4 +- .../valueset/valueset-relatedperson.json | 2 +- .../valueset-relationship-to-client.json | 4 +- .../valueset/valueset-replacement-milk.json | 4 +- .../valueset/valueset-sex-of-the-client.json | 4 +- .../valueset/valueset-skin-pb-location.json | 4 +- .../vocabulary/valueset/valueset-skin-pb.json | 4 +- .../valueset/valueset-skin-pinch-abdomen.json | 4 +- .../valueset-temperature-measurement.json | 4 +- .../valueset/valueset-throatproblem.json | 4 +- .../valueset/valueset-underweight.json | 4 +- .../valueset/valueset-utensils-cleaned.json | 4 +- .../valueset/valueset-visit-type.json | 4 +- .../valueset/valueset-vital-status.json | 4 +- .../valueset/valueset-weight-status.json | 4 +- input/vocabulary/valueset/valueset-yesno.json | 4 +- .../vocabulary/valueset/valueset-yesnox.json | 4 +- manual/cql/emcarebase.cql | 2 +- .../library-ArmCircumferenceForAge.json | 4 +- .../resources/library/library-BMIForAge.json | 4 +- .../library-HeadCircumferenceForAge.json | 4 +- .../library/library-LengthForAge.json | 4 +- .../library/library-WeightForAge.json | 4 +- .../library/library-WeightForHeight.json | 4 +- .../library/library-WeightForLength.json | 4 +- .../resources/library/library-anthrobase.json | 2 +- .../resources/library/library-anthrotest.json | 2 +- .../library-subscapularSkinfoldForAge.json | 4 +- .../library-tricepsSkinfoldForAge.json | 4 +- 199 files changed, 2128 insertions(+), 2127 deletions(-) rename input/{emc-cds.xml => smart.who.int.ccc.xml} (97%) diff --git a/ig.ini b/ig.ini index 379b1b79..f34509f7 100644 --- a/ig.ini +++ b/ig.ini @@ -1,5 +1,5 @@ [IG] -ig = input/emc-cds.xml -template = who.fhir.template#current +ig = input/smart.who.int.ccc.xml +template = who.template.root#current usage-stats-opt-out = false fhir-version = 4.0.1 diff --git a/input/cql/emcarebase.cql b/input/cql/emcarebase.cql index 9d5472d1..0c6b804e 100644 --- a/input/cql/emcarebase.cql +++ b/input/cql/emcarebase.cql @@ -11,7 +11,7 @@ include FHIRHelpers version '4.0.1' parameter "encounterid" String //parameter "Encounter" Encounter$ -codesystem "RoleCodeSystem" : 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' +codesystem "RoleCodeSystem" : 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' code "Mother": 'MTH' from "RoleCodeSystem" context Patient @@ -47,7 +47,7 @@ define getEncounter: define function EmCareExtensions(element Patient, id String): element.extension E - where E.url = ('https://fhir.dk.swisstph-mis.ch/matchbox/fhir//StructureDefinition/' + id) + where E.url = ('https://smart.who.int/ccc/StructureDefinition/' + id) return E define function EmCareExtension(element Patient, id String): @@ -90,7 +90,7 @@ define "Person accompanying child today's Relationship to Client": define function getValue(O Observation): case when O is null then null - when O.value is CodeableConcept then Coalesce(First(O.value.coding C where C.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes'), First(O.value.coding)) + when O.value is CodeableConcept then Coalesce(First(O.value.coding C where C.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes'), First(O.value.coding)) else O.value end @@ -176,16 +176,16 @@ define function GetObsValue(id System.String, codesystem System.String): getValue(GetObservationDuringEncounter(coding(id, codesystem))) define function GetObsValue(id System.String): - getValue(GetObservationDuringEncounter(coding(id, 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes'))) + getValue(GetObservationDuringEncounter(coding(id, 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes'))) define function HasObsValueCode(id System.String, value System.Code): - HasObservationCodeDuringEncounterDone(coding(id, 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes') , value ) + HasObservationCodeDuringEncounterDone(coding(id, 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes') , value ) define function HasObsValueCode(id System.String, value System.String): - HasObservationCodeDuringEncounterDone(coding(id, 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes') , coding(value, 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes') ) + HasObservationCodeDuringEncounterDone(coding(id, 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes') , coding(value, 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes') ) define function HasObsValueCode(id System.Code, value System.String): - HasObservationCodeDuringEncounterDone(id , coding(value, 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes') ) + HasObservationCodeDuringEncounterDone(id , coding(value, 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes') ) // ************************ HasObs ************************/ /* @@ -278,7 +278,7 @@ define function coding(s FHIR.code, url System.String): define function coding(s System.String): System.Code { code: s , - system: 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' + system: 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' } diff --git a/input/cql/emcarecondition.cql b/input/cql/emcarecondition.cql index 576e131a..8dfff5e3 100644 --- a/input/cql/emcarecondition.cql +++ b/input/cql/emcarecondition.cql @@ -9,7 +9,7 @@ include FHIRHelpers version '4.0.1' called FHIRHelpers -codesystem "EmCare" : 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' +codesystem "EmCare" : 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' code "possible serious bacterial infection or very severe disease": 'EmCare.B23.DE83' from "EmCare" display 'possible serious bacterial infection or very severe disease' diff --git a/input/cql/emcareobservation-valueset.cql b/input/cql/emcareobservation-valueset.cql index 14768623..1d2e5787 100644 --- a/input/cql/emcareobservation-valueset.cql +++ b/input/cql/emcareobservation-valueset.cql @@ -9,7 +9,7 @@ include FHIRHelpers version '4.0.1' called FHIRHelpers -codesystem "EmCare" : 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' +codesystem "EmCare" : 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' code "generalised skin problem": 'EmCare.B14S2.DE07' from "EmCare" display 'generalised skin problem' diff --git a/input/cql/emcareobservation.cql b/input/cql/emcareobservation.cql index d8cbbfc4..b2bfca6d 100644 --- a/input/cql/emcareobservation.cql +++ b/input/cql/emcareobservation.cql @@ -9,7 +9,7 @@ include FHIRHelpers version '4.0.1' called FHIRHelpers -codesystem "EmCare" : 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' +codesystem "EmCare" : 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' code "is the child sick today?": 'EmCare.B3.DE05' from "EmCare" display 'is the child sick today?' diff --git a/input/cql/emcareobservationValueset.cql b/input/cql/emcareobservationValueset.cql index 8e8e8ee6..95943747 100644 --- a/input/cql/emcareobservationValueset.cql +++ b/input/cql/emcareobservationValueset.cql @@ -9,7 +9,7 @@ include FHIRHelpers version '4.0.1' called FHIRHelpers -codesystem "EmCare" : 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' +codesystem "EmCare" : 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' code "generalised skin problem": 'EmCare.B14S2.DE07' from "EmCare" display 'generalised skin problem' diff --git a/input/cql/emcareobservation_valueset.cql b/input/cql/emcareobservation_valueset.cql index c883f265..a1ec4c3e 100644 --- a/input/cql/emcareobservation_valueset.cql +++ b/input/cql/emcareobservation_valueset.cql @@ -9,7 +9,7 @@ include FHIRHelpers version '4.0.1' called FHIRHelpers -codesystem "EmCare" : 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' +codesystem "EmCare" : 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' code "generalised skin problem": 'EmCare.B14S2.DE07' from "EmCare" display 'generalised skin problem' diff --git a/input/cql/emcarevalueset.cql b/input/cql/emcarevalueset.cql index bd4ac827..47007239 100644 --- a/input/cql/emcarevalueset.cql +++ b/input/cql/emcarevalueset.cql @@ -9,7 +9,7 @@ include FHIRHelpers version '4.0.1' called FHIRHelpers -codesystem "EmCare" : 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' +codesystem "EmCare" : 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' code "female": 'EmCare.A.DE17' from "EmCare" display 'female' diff --git a/input/cql/emcarezscore.cql b/input/cql/emcarezscore.cql index d8480930..49cfc737 100644 --- a/input/cql/emcarezscore.cql +++ b/input/cql/emcarezscore.cql @@ -12,7 +12,7 @@ include WeightForHeight version '1.0.0' called wfh -//codesystem "EmCare" : 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' +//codesystem "EmCare" : 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' diff --git a/input/mapping/emcare.b10-14.symptoms.2m.p.map b/input/mapping/emcare.b10-14.symptoms.2m.p.map index 194f19ec..51e2fbd8 100644 --- a/input/mapping/emcare.b10-14.symptoms.2m.p.map +++ b/input/mapping/emcare.b10-14.symptoms.2m.p.map @@ -1,8 +1,8 @@ -map 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcare.b10-14.symptoms.2m.p' = 'emcare.b10-14.symptoms.2m.p' +map 'https://smart.who.int/ccc/StructureMap/emcare.b10-14.symptoms.2m.p' = 'emcare.b10-14.symptoms.2m.p' uses 'http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse' alias 'questionnaireResponse' as source uses 'http://hl7.org/fhir/StructureDefinition/Bundle' alias 'Bundle' as target -uses 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/observation' alias 'Observation' as target -uses 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation' alias 'EmCare Observation' as produced +uses 'https://smart.who.int/ccc/StructureDefinition/observation' alias 'Observation' as target +uses 'https://smart.who.int/ccc/StructureDefinition/emcareobservation' alias 'EmCare Observation' as produced group bundletrans(source src : questionnaireResponse,target bundle : Bundle){ src -> bundle.id = uuid() 'id'; src -> bundle.type = 'batch' 'type'; @@ -161,9 +161,9 @@ group emcareobservationemcareb10s1de05(source src,target tgt){ 'id-emcareb10s1de05'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B10S1.DE05' 'code-emcareb10s1de05'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -189,9 +189,9 @@ group emcareobservationemcareb10s1de06(source src,target tgt){ 'id-emcareb10s1de06'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B10S1.DE06' 'code-emcareb10s1de06'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -219,9 +219,9 @@ group emcareobservationemcareb10s1de01(source src,target tgt){ 'id-emcareb10s1de01'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B10S1.DE01' 'code-emcareb10s1de01'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -247,9 +247,9 @@ group emcareobservationemcareb10s1de02(source src,target tgt){ 'id-emcareb10s1de02'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B10S1.DE02' 'code-emcareb10s1de02'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -277,9 +277,9 @@ group emcareobservationemcareb11s1de01(source src,target tgt){ 'id-emcareb11s1de01'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B11S1.DE01' 'code-emcareb11s1de01'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -305,9 +305,9 @@ group emcareobservationemcareb11s1de02(source src,target tgt){ 'id-emcareb11s1de02'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B11S1.DE02' 'code-emcareb11s1de02'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -335,9 +335,9 @@ group emcareobservationemcareb11s1de05(source src,target tgt){ 'id-emcareb11s1de05'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B11S1.DE05' 'code-emcareb11s1de05'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -363,9 +363,9 @@ group emcareobservationemcareb12s1de02(source src,target tgt){ 'id-emcareb12s1de02'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B12S1.DE02' 'code-emcareb12s1de02'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -391,9 +391,9 @@ group emcareobservationemcareb12s1de03(source src,target tgt){ 'id-emcareb12s1de03'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B12S1.DE03' 'code-emcareb12s1de03'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -421,9 +421,9 @@ group emcareobservationemcarebgde06(source src,target tgt){ 'id-emcarebgde06'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B.G.DE06' 'code-emcarebgde06'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -449,9 +449,9 @@ group emcareobservationemcareb12s1de06(source src,target tgt){ 'id-emcareb12s1de06'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B12S1.DE06' 'code-emcareb12s1de06'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -477,9 +477,9 @@ group emcareobservationemcareb13s1de01(source src,target tgt){ 'id-emcareb13s1de01'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B13S1.DE01' 'code-emcareb13s1de01'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -505,9 +505,9 @@ group emcareobservationemcareb13s1de02(source src,target tgt){ 'id-emcareb13s1de02'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B13S1.DE02' 'code-emcareb13s1de02'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -533,9 +533,9 @@ group emcareobservationemcareb13s1de03(source src,target tgt){ 'id-emcareb13s1de03'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B13S1.DE03' 'code-emcareb13s1de03'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -561,9 +561,9 @@ group emcareobservationemcareb13s1de04(source src,target tgt){ 'id-emcareb13s1de04'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B13S1.DE04' 'code-emcareb13s1de04'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -591,9 +591,9 @@ group emcareobservationemcareb14s1de03(source src,target tgt){ 'id-emcareb14s1de03'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S1.DE03' 'code-emcareb14s1de03'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -619,9 +619,9 @@ group emcareobservationemcareb14s1de01(source src,target tgt){ 'id-emcareb14s1de01'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S1.DE01' 'code-emcareb14s1de01'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -647,9 +647,9 @@ group emcareobservationemcareb14s1de02(source src,target tgt){ 'id-emcareb14s1de02'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S1.DE02' 'code-emcareb14s1de02'; src.item as itemtimestamp where linkId = 'timestamp' then { diff --git a/input/mapping/emcare.b10-16.signs.2m.p.map b/input/mapping/emcare.b10-16.signs.2m.p.map index 3b9195d7..0d2f6f3f 100644 --- a/input/mapping/emcare.b10-16.signs.2m.p.map +++ b/input/mapping/emcare.b10-16.signs.2m.p.map @@ -1,8 +1,8 @@ -map 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcare.b10-16.signs.2m.p' = 'emcare.b10-16.signs.2m.p' +map 'https://smart.who.int/ccc/StructureMap/emcare.b10-16.signs.2m.p' = 'emcare.b10-16.signs.2m.p' uses 'http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse' alias 'questionnaireResponse' as source uses 'http://hl7.org/fhir/StructureDefinition/Bundle' alias 'Bundle' as target -uses 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/observation' alias 'Observation' as target -uses 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation' alias 'EmCare Observation' as produced +uses 'https://smart.who.int/ccc/StructureDefinition/observation' alias 'Observation' as target +uses 'https://smart.who.int/ccc/StructureDefinition/emcareobservation' alias 'EmCare Observation' as produced group bundletrans(source src : questionnaireResponse,target bundle : Bundle){ src -> bundle.id = uuid() 'id'; src -> bundle.type = 'batch' 'type'; @@ -781,9 +781,9 @@ group emcareobservationemcareb10s2de03(source src,target tgt){ 'id-emcareb10s2de03'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B10S2.DE03' 'code-emcareb10s2de03'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -809,9 +809,9 @@ group emcareobservationemcareb10s2de04(source src,target tgt){ 'id-emcareb10s2de04'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B10S2.DE04' 'code-emcareb10s2de04'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -837,9 +837,9 @@ group emcareobservationemcareb10s2de05(source src,target tgt){ 'id-emcareb10s2de05'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B10S2.DE05' 'code-emcareb10s2de05'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -865,9 +865,9 @@ group emcareobservationemcareb10s2de06(source src,target tgt){ 'id-emcareb10s2de06'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B10S2.DE06' 'code-emcareb10s2de06'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -893,9 +893,9 @@ group emcareobservationemcareb10s2de07(source src,target tgt){ 'id-emcareb10s2de07'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B10S2.DE07' 'code-emcareb10s2de07'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -922,9 +922,9 @@ group emcareobservationemcareb11s2de01(source src,target tgt){ 'id-emcareb11s2de01'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B11S2.DE01' 'code-emcareb11s2de01'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -951,9 +951,9 @@ group emcareobservationemcareb11s2de02(source src,target tgt){ 'id-emcareb11s2de02'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B11S2.DE02' 'code-emcareb11s2de02'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -981,9 +981,9 @@ group emcareobservationemcareb11s2de06(source src,target tgt){ 'id-emcareb11s2de06'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B11S2.DE06' 'code-emcareb11s2de06'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1009,9 +1009,9 @@ group emcareobservationemcareb17s1de01(source src,target tgt){ 'id-emcareb17s1de01'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B17S1.DE01' 'code-emcareb17s1de01'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1037,9 +1037,9 @@ group emcareobservationemcareb17s1de02(source src,target tgt){ 'id-emcareb17s1de02'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B17S1.DE02' 'code-emcareb17s1de02'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1067,9 +1067,9 @@ group emcareobservationemcareb17s1de06(source src,target tgt){ 'id-emcareb17s1de06'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B17S1.DE06' 'code-emcareb17s1de06'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1095,9 +1095,9 @@ group emcareobservationemcareb17s1de07(source src,target tgt){ 'id-emcareb17s1de07'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B17S1.DE07' 'code-emcareb17s1de07'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1125,9 +1125,9 @@ group emcareobservationemcareb13s2de01(source src,target tgt){ 'id-emcareb13s2de01'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B13S2.DE01' 'code-emcareb13s2de01'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1153,9 +1153,9 @@ group emcareobservationemcareb13s2de02(source src,target tgt){ 'id-emcareb13s2de02'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B13S2.DE02' 'code-emcareb13s2de02'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1181,9 +1181,9 @@ group emcareobservationemcareb13s2de03(source src,target tgt){ 'id-emcareb13s2de03'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B13S2.DE03' 'code-emcareb13s2de03'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1211,9 +1211,9 @@ group emcareobservationemcareb12s2de01(source src,target tgt){ 'id-emcareb12s2de01'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B12S2.DE01' 'code-emcareb12s2de01'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1239,9 +1239,9 @@ group emcareobservationemcareb12s2de05(source src,target tgt){ 'id-emcareb12s2de05'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B12S2.DE05' 'code-emcareb12s2de05'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1267,9 +1267,9 @@ group emcareobservationemcareb14s2de01(source src,target tgt){ 'id-emcareb14s2de01'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE01' 'code-emcareb14s2de01'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1295,9 +1295,9 @@ group emcareobservationemcareb14s2de02(source src,target tgt){ 'id-emcareb14s2de02'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE02' 'code-emcareb14s2de02'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1323,9 +1323,9 @@ group emcareobservationemcareb14s2de03(source src,target tgt){ 'id-emcareb14s2de03'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE03' 'code-emcareb14s2de03'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1351,9 +1351,9 @@ group emcareobservationemcareb14s2de04(source src,target tgt){ 'id-emcareb14s2de04'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE04' 'code-emcareb14s2de04'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1379,9 +1379,9 @@ group emcareobservationemcareb14s2de05(source src,target tgt){ 'id-emcareb14s2de05'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE05' 'code-emcareb14s2de05'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1407,9 +1407,9 @@ group emcareobservationemcareb14s2de06emcareb14s2de07t(source src,target tgt){ 'id-emcareobservationemcareb14s2de06emcareb14s2de07t'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE06&EmCare.B14S2.DE07' 'code-emcareobservationemcareb14s2de06emcareb14s2de07t'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1430,9 +1430,9 @@ group emcareobservationemcareb14s2de06emcareb14s2de07f(source src,target tgt){ 'id-emcareobservationemcareb14s2de06emcareb14s2de07f'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE06&EmCare.B14S2.DE07' 'code-emcareobservationemcareb14s2de06emcareb14s2de07f'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1453,9 +1453,9 @@ group emcareobservationemcareb14s2de06emcareb14s2de08t(source src,target tgt){ 'id-emcareobservationemcareb14s2de06emcareb14s2de08t'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE06&EmCare.B14S2.DE08' 'code-emcareobservationemcareb14s2de06emcareb14s2de08t'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1476,9 +1476,9 @@ group emcareobservationemcareb14s2de06emcareb14s2de08f(source src,target tgt){ 'id-emcareobservationemcareb14s2de06emcareb14s2de08f'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE06&EmCare.B14S2.DE08' 'code-emcareobservationemcareb14s2de06emcareb14s2de08f'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1499,9 +1499,9 @@ group emcareobservationemcareb14s2de06emcareb14s2de09t(source src,target tgt){ 'id-emcareobservationemcareb14s2de06emcareb14s2de09t'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE06&EmCare.B14S2.DE09' 'code-emcareobservationemcareb14s2de06emcareb14s2de09t'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1522,9 +1522,9 @@ group emcareobservationemcareb14s2de06emcareb14s2de09f(source src,target tgt){ 'id-emcareobservationemcareb14s2de06emcareb14s2de09f'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE06&EmCare.B14S2.DE09' 'code-emcareobservationemcareb14s2de06emcareb14s2de09f'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1545,9 +1545,9 @@ group emcareobservationemcareb14s2de10(source src,target tgt){ 'id-emcareb14s2de10'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE10' 'code-emcareb14s2de10'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1573,9 +1573,9 @@ group emcareobservationemcareb14s2de11(source src,target tgt){ 'id-emcareb14s2de11'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE11' 'code-emcareb14s2de11'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1601,9 +1601,9 @@ group emcareobservationemcareb14s2de12(source src,target tgt){ 'id-emcareb14s2de12'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE12' 'code-emcareb14s2de12'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1629,9 +1629,9 @@ group emcareobservationemcareb14s2de13emcareb14s2de18t(source src,target tgt){ 'id-emcareobservationemcareb14s2de13emcareb14s2de18t'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE18' 'code-emcareobservationemcareb14s2de13emcareb14s2de18t'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1652,9 +1652,9 @@ group emcareobservationemcareb14s2de13emcareb14s2de18f(source src,target tgt){ 'id-emcareobservationemcareb14s2de13emcareb14s2de18f'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE18' 'code-emcareobservationemcareb14s2de13emcareb14s2de18f'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1675,9 +1675,9 @@ group emcareobservationemcareb14s2de13emcareb14s2de19t(source src,target tgt){ 'id-emcareobservationemcareb14s2de13emcareb14s2de19t'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE19' 'code-emcareobservationemcareb14s2de13emcareb14s2de19t'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1698,9 +1698,9 @@ group emcareobservationemcareb14s2de13emcareb14s2de19f(source src,target tgt){ 'id-emcareobservationemcareb14s2de13emcareb14s2de19f'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE19' 'code-emcareobservationemcareb14s2de13emcareb14s2de19f'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1721,9 +1721,9 @@ group emcareobservationemcareb14s2de13emcareb14s2de21t(source src,target tgt){ 'id-emcareobservationemcareb14s2de13emcareb14s2de21t'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE21' 'code-emcareobservationemcareb14s2de13emcareb14s2de21t'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1744,9 +1744,9 @@ group emcareobservationemcareb14s2de13emcareb14s2de21f(source src,target tgt){ 'id-emcareobservationemcareb14s2de13emcareb14s2de21f'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE21' 'code-emcareobservationemcareb14s2de13emcareb14s2de21f'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1767,9 +1767,9 @@ group emcareobservationemcareb14s2de13emcareb14s2de22t(source src,target tgt){ 'id-emcareobservationemcareb14s2de13emcareb14s2de22t'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE22' 'code-emcareobservationemcareb14s2de13emcareb14s2de22t'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1790,9 +1790,9 @@ group emcareobservationemcareb14s2de13emcareb14s2de22f(source src,target tgt){ 'id-emcareobservationemcareb14s2de13emcareb14s2de22f'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE22' 'code-emcareobservationemcareb14s2de13emcareb14s2de22f'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1813,9 +1813,9 @@ group emcareobservationemcareb14s2de13emcareb14s2de23t(source src,target tgt){ 'id-emcareobservationemcareb14s2de13emcareb14s2de23t'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE23' 'code-emcareobservationemcareb14s2de13emcareb14s2de23t'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1836,9 +1836,9 @@ group emcareobservationemcareb14s2de13emcareb14s2de23f(source src,target tgt){ 'id-emcareobservationemcareb14s2de13emcareb14s2de23f'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE23' 'code-emcareobservationemcareb14s2de13emcareb14s2de23f'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1859,9 +1859,9 @@ group emcareobservationemcareb14s2de13emcareb14s2de25t(source src,target tgt){ 'id-emcareobservationemcareb14s2de13emcareb14s2de25t'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE25' 'code-emcareobservationemcareb14s2de13emcareb14s2de25t'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1882,9 +1882,9 @@ group emcareobservationemcareb14s2de13emcareb14s2de25f(source src,target tgt){ 'id-emcareobservationemcareb14s2de13emcareb14s2de25f'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE25' 'code-emcareobservationemcareb14s2de13emcareb14s2de25f'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1905,9 +1905,9 @@ group emcareobservationemcareb14s2de13emcareb14s2de31t(source src,target tgt){ 'id-emcareobservationemcareb14s2de13emcareb14s2de31t'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE31' 'code-emcareobservationemcareb14s2de13emcareb14s2de31t'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1928,9 +1928,9 @@ group emcareobservationemcareb14s2de13emcareb14s2de31f(source src,target tgt){ 'id-emcareobservationemcareb14s2de13emcareb14s2de31f'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE31' 'code-emcareobservationemcareb14s2de13emcareb14s2de31f'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1951,9 +1951,9 @@ group emcareobservationemcareb14s2de13emcareb14s2de32t(source src,target tgt){ 'id-emcareobservationemcareb14s2de13emcareb14s2de32t'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE32' 'code-emcareobservationemcareb14s2de13emcareb14s2de32t'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1974,9 +1974,9 @@ group emcareobservationemcareb14s2de13emcareb14s2de32f(source src,target tgt){ 'id-emcareobservationemcareb14s2de13emcareb14s2de32f'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE32' 'code-emcareobservationemcareb14s2de13emcareb14s2de32f'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1997,9 +1997,9 @@ group emcareobservationemcareb14s2de13emcareb14s2de33t(source src,target tgt){ 'id-emcareobservationemcareb14s2de13emcareb14s2de33t'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE33' 'code-emcareobservationemcareb14s2de13emcareb14s2de33t'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -2020,9 +2020,9 @@ group emcareobservationemcareb14s2de13emcareb14s2de33f(source src,target tgt){ 'id-emcareobservationemcareb14s2de13emcareb14s2de33f'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE33' 'code-emcareobservationemcareb14s2de13emcareb14s2de33f'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -2043,9 +2043,9 @@ group emcareobservationemcareb14s2de13emcareb14s2de35t(source src,target tgt){ 'id-emcareobservationemcareb14s2de13emcareb14s2de35t'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE35' 'code-emcareobservationemcareb14s2de13emcareb14s2de35t'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -2066,9 +2066,9 @@ group emcareobservationemcareb14s2de13emcareb14s2de35f(source src,target tgt){ 'id-emcareobservationemcareb14s2de13emcareb14s2de35f'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE35' 'code-emcareobservationemcareb14s2de13emcareb14s2de35f'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -2089,9 +2089,9 @@ group emcareobservationemcareb14s2de13emcareb14s2de36t(source src,target tgt){ 'id-emcareobservationemcareb14s2de13emcareb14s2de36t'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE36' 'code-emcareobservationemcareb14s2de13emcareb14s2de36t'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -2112,9 +2112,9 @@ group emcareobservationemcareb14s2de13emcareb14s2de36f(source src,target tgt){ 'id-emcareobservationemcareb14s2de13emcareb14s2de36f'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE36' 'code-emcareobservationemcareb14s2de13emcareb14s2de36f'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -2135,9 +2135,9 @@ group emcareobservationemcareb14s2de13emcareb14s2de37t(source src,target tgt){ 'id-emcareobservationemcareb14s2de13emcareb14s2de37t'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE37' 'code-emcareobservationemcareb14s2de13emcareb14s2de37t'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -2158,9 +2158,9 @@ group emcareobservationemcareb14s2de13emcareb14s2de37f(source src,target tgt){ 'id-emcareobservationemcareb14s2de13emcareb14s2de37f'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE37' 'code-emcareobservationemcareb14s2de13emcareb14s2de37f'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -2181,9 +2181,9 @@ group emcareobservationemcareb14s2de19a(source src,target tgt){ 'id-emcareb14s2de19a'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE19a' 'code-emcareb14s2de19a'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -2209,9 +2209,9 @@ group emcareobservationemcareb14s2de22a(source src,target tgt){ 'id-emcareb14s2de22a'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE22A' 'code-emcareb14s2de22a'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -2237,9 +2237,9 @@ group emcareobservationemcareb14s2de23a(source src,target tgt){ 'id-emcareb14s2de23a'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE23a' 'code-emcareb14s2de23a'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -2265,9 +2265,9 @@ group emcareobservationemcareb14s2de24(source src,target tgt){ 'id-emcareb14s2de24'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE24' 'code-emcareb14s2de24'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -2293,9 +2293,9 @@ group emcareobservationemcareb14s2de30(source src,target tgt){ 'id-emcareb14s2de30'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE30' 'code-emcareb14s2de30'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -2321,9 +2321,9 @@ group emcareobservationemcareb14s2de30b(source src,target tgt){ 'id-emcareb14s2de30b'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE30b' 'code-emcareb14s2de30b'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -2349,9 +2349,9 @@ group emcareobservationemcareb14s2de31a(source src,target tgt){ 'id-emcareb14s2de31a'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE31a' 'code-emcareb14s2de31a'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -2377,9 +2377,9 @@ group emcareobservationemcareb14s2de31b(source src,target tgt){ 'id-emcareb14s2de31b'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE31b' 'code-emcareb14s2de31b'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -2405,9 +2405,9 @@ group emcareobservationemcareb14s2de32a(source src,target tgt){ 'id-emcareb14s2de32a'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE32a' 'code-emcareb14s2de32a'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -2433,9 +2433,9 @@ group emcareobservationemcareb14s2de34(source src,target tgt){ 'id-emcareb14s2de34'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE34' 'code-emcareb14s2de34'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -2461,9 +2461,9 @@ group emcareobservationemcareb14s2de36a(source src,target tgt){ 'id-emcareb14s2de36a'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE36a' 'code-emcareb14s2de36a'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -2489,9 +2489,9 @@ group emcareobservationemcareb14s2de36b(source src,target tgt){ 'id-emcareb14s2de36b'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE36b' 'code-emcareb14s2de36b'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -2517,9 +2517,9 @@ group emcareobservationemcareb14s2de36c(source src,target tgt){ 'id-emcareb14s2de36c'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE36c' 'code-emcareb14s2de36c'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -2545,9 +2545,9 @@ group emcareobservationemcareb14s2de38(source src,target tgt){ 'id-emcareb14s2de38'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE38' 'code-emcareb14s2de38'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -2575,9 +2575,9 @@ group emcareobservationemcareb14s2de43emcareb14s2de44t(source src,target tgt){ 'id-emcareobservationemcareb14s2de43emcareb14s2de44t'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE43&EmCare.B14S2.DE44' 'code-emcareobservationemcareb14s2de43emcareb14s2de44t'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -2598,9 +2598,9 @@ group emcareobservationemcareb14s2de43emcareb14s2de44f(source src,target tgt){ 'id-emcareobservationemcareb14s2de43emcareb14s2de44f'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE43&EmCare.B14S2.DE44' 'code-emcareobservationemcareb14s2de43emcareb14s2de44f'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -2621,9 +2621,9 @@ group emcareobservationemcareb14s2de43emcareb14s2de45t(source src,target tgt){ 'id-emcareobservationemcareb14s2de43emcareb14s2de45t'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE43&EmCare.B14S2.DE45' 'code-emcareobservationemcareb14s2de43emcareb14s2de45t'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -2644,9 +2644,9 @@ group emcareobservationemcareb14s2de43emcareb14s2de45f(source src,target tgt){ 'id-emcareobservationemcareb14s2de43emcareb14s2de45f'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE43&EmCare.B14S2.DE45' 'code-emcareobservationemcareb14s2de43emcareb14s2de45f'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -2667,9 +2667,9 @@ group emcareobservationemcareb14s2de43emcareb14s2de46t(source src,target tgt){ 'id-emcareobservationemcareb14s2de43emcareb14s2de46t'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE43&EmCare.B14S2.DE46' 'code-emcareobservationemcareb14s2de43emcareb14s2de46t'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -2690,9 +2690,9 @@ group emcareobservationemcareb14s2de43emcareb14s2de46f(source src,target tgt){ 'id-emcareobservationemcareb14s2de43emcareb14s2de46f'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE43&EmCare.B14S2.DE46' 'code-emcareobservationemcareb14s2de43emcareb14s2de46f'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -2713,9 +2713,9 @@ group emcareobservationemcareb14s2de43emcareb14s2de47t(source src,target tgt){ 'id-emcareobservationemcareb14s2de43emcareb14s2de47t'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE43&EmCare.B14S2.DE47' 'code-emcareobservationemcareb14s2de43emcareb14s2de47t'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -2736,9 +2736,9 @@ group emcareobservationemcareb14s2de43emcareb14s2de47f(source src,target tgt){ 'id-emcareobservationemcareb14s2de43emcareb14s2de47f'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE43&EmCare.B14S2.DE47' 'code-emcareobservationemcareb14s2de43emcareb14s2de47f'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -2759,9 +2759,9 @@ group emcareobservationemcareb15s2de01(source src,target tgt){ 'id-emcareb15s2de01'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B15S2.DE01' 'code-emcareb15s2de01'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -2789,9 +2789,9 @@ group emcareobservationemcareb15s2de09(source src,target tgt){ 'id-emcareb15s2de09'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B15S2.DE09' 'code-emcareb15s2de09'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -2819,9 +2819,9 @@ group emcareobservationemcareb22de01(source src,target tgt){ 'id-emcareb22de01'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE01' 'code-emcareb22de01'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -2848,9 +2848,9 @@ group emcareobservationemcareb22de02(source src,target tgt){ 'id-emcareb22de02'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE02' 'code-emcareb22de02'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -2879,9 +2879,9 @@ group emcareobservationemcareb22de04(source src,target tgt){ 'id-emcareb22de04'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE04' 'code-emcareb22de04'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -2910,9 +2910,9 @@ group emcareobservationemcareb22de05(source src,target tgt){ 'id-emcareb22de05'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE05' 'code-emcareb22de05'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -2943,9 +2943,9 @@ group emcareobservationemcareb22de07(source src,target tgt){ 'id-emcareb22de07'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE07' 'code-emcareb22de07'; src.item as itemtimestamp where linkId = 'timestamp' then { diff --git a/input/mapping/emcare.b18-21.signs.2m.m.map b/input/mapping/emcare.b18-21.signs.2m.m.map index d7d16e32..84861c98 100644 --- a/input/mapping/emcare.b18-21.signs.2m.m.map +++ b/input/mapping/emcare.b18-21.signs.2m.m.map @@ -1,8 +1,8 @@ -map 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcare.b18-21.signs.2m.m' = 'emcare.b18-21.signs.2m.m' +map 'https://smart.who.int/ccc/StructureMap/emcare.b18-21.signs.2m.m' = 'emcare.b18-21.signs.2m.m' uses 'http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse' alias 'questionnaireResponse' as source uses 'http://hl7.org/fhir/StructureDefinition/Bundle' alias 'Bundle' as target -uses 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/observation' alias 'Observation' as target -uses 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation' alias 'EmCare Observation' as produced +uses 'https://smart.who.int/ccc/StructureDefinition/observation' alias 'Observation' as target +uses 'https://smart.who.int/ccc/StructureDefinition/emcareobservation' alias 'EmCare Observation' as produced group bundletrans(source src : questionnaireResponse,target bundle : Bundle){ src -> bundle.id = uuid() 'id'; src -> bundle.type = 'batch' 'type'; @@ -303,9 +303,9 @@ group emcareobservationemcareb18s2de07(source src,target tgt){ 'id-emcareb18s2de07'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B18S2.DE07' 'code-emcareb18s2de07'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -331,9 +331,9 @@ group emcareobservationemcareb18s2de08(source src,target tgt){ 'id-emcareb18s2de08'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B18S2.DE08' 'code-emcareb18s2de08'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -361,9 +361,9 @@ group emcareobservationemcareb18s2de12(source src,target tgt){ 'id-emcareb18s2de12'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B18S2.DE12' 'code-emcareb18s2de12'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -389,9 +389,9 @@ group emcareobservationemcareb18s2de13(source src,target tgt){ 'id-emcareb18s2de13'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B18S2.DE13' 'code-emcareb18s2de13'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -417,9 +417,9 @@ group emcareobservationemcareb19s2de01(source src,target tgt){ 'id-emcareb19s2de01'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B19S2.DE01' 'code-emcareb19s2de01'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -445,9 +445,9 @@ group emcareobservationemcareb19s2de02(source src,target tgt){ 'id-emcareb19s2de02'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B19S2.DE02' 'code-emcareb19s2de02'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -473,9 +473,9 @@ group emcareobservationemcareb19s2de04(source src,target tgt){ 'id-emcareb19s2de04'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B19S2.DE04' 'code-emcareb19s2de04'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -503,9 +503,9 @@ group emcareobservationemcareb11s2de01(source src,target tgt){ 'id-emcareb11s2de01'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B11S2.DE01' 'code-emcareb11s2de01'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -531,9 +531,9 @@ group emcareobservationemcareb11s2de02(source src,target tgt){ 'id-emcareb11s2de02'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B11S2.DE02' 'code-emcareb11s2de02'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -561,9 +561,9 @@ group emcareobservationemcareb11s2de06(source src,target tgt){ 'id-emcareb11s2de06'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B11S2.DE06' 'code-emcareb11s2de06'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -589,9 +589,9 @@ group emcareobservationemcareb21s2de01(source src,target tgt){ 'id-emcareb21s2de01'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B21S2.DE01' 'code-emcareb21s2de01'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -603,7 +603,7 @@ group emcareobservationemcareb21s2de01(source src,target tgt){ src.item first as item where linkId = 'EmCare.B21S2.DE01' and answer.exists() then { item.answer first as a then { a.value as val then { - val -> tgt.value = create('CodeableConcept') as cc, cc.coding = create('Coding') as c, c.code=val, c.system= 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', tgt.status = 'final' '759a9a54'; + val -> tgt.value = create('CodeableConcept') as cc, cc.coding = create('Coding') as c, c.code=val, c.system= 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', tgt.status = 'final' '759a9a54'; } '1b820ab0'; } 'd39f9088'; } '75d5dd53'; @@ -618,9 +618,9 @@ group emcareobservationemcareb21s2de05(source src,target tgt){ 'id-emcareb21s2de05'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B21S2.DE05' 'code-emcareb21s2de05'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -645,9 +645,9 @@ group emcareobservationemcareb21s2de06(source src,target tgt){ 'id-emcareb21s2de06'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B21S2.DE06' 'code-emcareb21s2de06'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -672,9 +672,9 @@ group emcareobservationemcareb21s2de08(source src,target tgt){ 'id-emcareb21s2de08'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B21S2.DE08' 'code-emcareb21s2de08'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -700,9 +700,9 @@ group emcareobservationemcareb21s2de09emcareb21s2de11t(source src,target tgt){ 'id-emcareobservationemcareb21s2de09emcareb21s2de11t'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B21S2.DE09&EmCare.B21S2.DE11' 'code-emcareobservationemcareb21s2de09emcareb21s2de11t'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -723,9 +723,9 @@ group emcareobservationemcareb21s2de09emcareb21s2de11f(source src,target tgt){ 'id-emcareobservationemcareb21s2de09emcareb21s2de11f'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B21S2.DE09&EmCare.B21S2.DE11' 'code-emcareobservationemcareb21s2de09emcareb21s2de11f'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -746,9 +746,9 @@ group emcareobservationemcareb21s2de09emcareb21s2de10t(source src,target tgt){ 'id-emcareobservationemcareb21s2de09emcareb21s2de10t'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B21S2.DE09&EmCare.B21S2.DE10' 'code-emcareobservationemcareb21s2de09emcareb21s2de10t'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -769,9 +769,9 @@ group emcareobservationemcareb21s2de09emcareb21s2de10f(source src,target tgt){ 'id-emcareobservationemcareb21s2de09emcareb21s2de10f'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B21S2.DE09&EmCare.B21S2.DE10' 'code-emcareobservationemcareb21s2de09emcareb21s2de10f'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -792,9 +792,9 @@ group emcareobservationemcareb21s2de12(source src,target tgt){ 'id-emcareb21s2de12'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B21S2.DE12' 'code-emcareb21s2de12'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -819,9 +819,9 @@ group emcareobservationemcareb21s2de13(source src,target tgt){ 'id-emcareb21s2de13'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B21S2.DE13' 'code-emcareb21s2de13'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -847,9 +847,9 @@ group emcareobservationemcareb21s2de15(source src,target tgt){ 'id-emcareb21s2de15'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B21S2.DE15' 'code-emcareb21s2de15'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -874,9 +874,9 @@ group emcareobservationemcareb21s2de16(source src,target tgt){ 'id-emcareb21s2de16'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B21S2.DE16' 'code-emcareb21s2de16'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -902,9 +902,9 @@ group emcareobservationemcareb21s2de18(source src,target tgt){ 'id-emcareb21s2de18'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B21S2.DE18' 'code-emcareb21s2de18'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -932,9 +932,9 @@ group emcareobservationemcareb21s2de21(source src,target tgt){ 'id-emcareb21s2de21'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B21S2.DE21' 'code-emcareb21s2de21'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -962,9 +962,9 @@ group emcareobservationemcareb21s2de24(source src,target tgt){ 'id-emcareb21s2de24'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B21S2.DE24' 'code-emcareb21s2de24'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -992,9 +992,9 @@ group emcareobservationemcareb21s2de27(source src,target tgt){ 'id-emcareb21s2de27'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B21S2.DE27' 'code-emcareb21s2de27'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1022,9 +1022,9 @@ group emcareobservationemcareb21s2de30(source src,target tgt){ 'id-emcareb21s2de30'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B21S2.DE30' 'code-emcareb21s2de30'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1050,9 +1050,9 @@ group emcareobservationemcareb21s2de31(source src,target tgt){ 'id-emcareb21s2de31'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B21S2.DE31' 'code-emcareb21s2de31'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1079,9 +1079,9 @@ group emcareobservationemcareb22de01(source src,target tgt){ 'id-emcareb22de01'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE01' 'code-emcareb22de01'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1108,9 +1108,9 @@ group emcareobservationemcareb22de02(source src,target tgt){ 'id-emcareb22de02'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE02' 'code-emcareb22de02'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1139,9 +1139,9 @@ group emcareobservationemcareb22de04(source src,target tgt){ 'id-emcareb22de04'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE04' 'code-emcareb22de04'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1170,9 +1170,9 @@ group emcareobservationemcareb22de05(source src,target tgt){ 'id-emcareb22de05'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE05' 'code-emcareb22de05'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1203,9 +1203,9 @@ group emcareobservationemcareb22de07(source src,target tgt){ 'id-emcareb22de07'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE07' 'code-emcareb22de07'; src.item as itemtimestamp where linkId = 'timestamp' then { diff --git a/input/mapping/emcare.b18-21.symptoms.2m.m.map b/input/mapping/emcare.b18-21.symptoms.2m.m.map index dbc6d83a..007d894e 100644 --- a/input/mapping/emcare.b18-21.symptoms.2m.m.map +++ b/input/mapping/emcare.b18-21.symptoms.2m.m.map @@ -1,8 +1,8 @@ -map 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcare.b18-21.symptoms.2m.m' = 'emcare.b18-21.symptoms.2m.m' +map 'https://smart.who.int/ccc/StructureMap/emcare.b18-21.symptoms.2m.m' = 'emcare.b18-21.symptoms.2m.m' uses 'http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse' alias 'questionnaireResponse' as source uses 'http://hl7.org/fhir/StructureDefinition/Bundle' alias 'Bundle' as target -uses 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/observation' alias 'Observation' as target -uses 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation' alias 'EmCare Observation' as produced +uses 'https://smart.who.int/ccc/StructureDefinition/observation' alias 'Observation' as target +uses 'https://smart.who.int/ccc/StructureDefinition/emcareobservation' alias 'EmCare Observation' as produced group bundletrans(source src : questionnaireResponse,target bundle : Bundle){ src -> bundle.id = uuid() 'id'; src -> bundle.type = 'batch' 'type'; @@ -49,9 +49,9 @@ group emcareobservationemcareb7de03(source src,target tgt){ 'id-emcareb7de03'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B7.DE03' 'code-emcareb7de03'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -77,9 +77,9 @@ group emcareobservationemcareb18s1de02(source src,target tgt){ 'id-emcareb18s1de02'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B18S1.DE02' 'code-emcareb18s1de02'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -107,9 +107,9 @@ group emcareobservationemcareb11s1de01(source src,target tgt){ 'id-emcareb11s1de01'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B11S1.DE01' 'code-emcareb11s1de01'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -135,9 +135,9 @@ group emcareobservationemcareb21s1de06(source src,target tgt){ 'id-emcareb21s1de06'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B21S1.DE06' 'code-emcareb21s1de06'; src.item as itemtimestamp where linkId = 'timestamp' then { diff --git a/input/mapping/emcare.b22.assessmentstests.map b/input/mapping/emcare.b22.assessmentstests.map index d449bdc9..f358d454 100644 --- a/input/mapping/emcare.b22.assessmentstests.map +++ b/input/mapping/emcare.b22.assessmentstests.map @@ -1,8 +1,8 @@ -map 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcare.b22.assessmentstests' = 'emcare.b22.assessmentstests' +map 'https://smart.who.int/ccc/StructureMap/emcare.b22.assessmentstests' = 'emcare.b22.assessmentstests' uses 'http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse' alias 'questionnaireResponse' as source uses 'http://hl7.org/fhir/StructureDefinition/Bundle' alias 'Bundle' as target -uses 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/observation' alias 'Observation' as target -uses 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation' alias 'EmCare Observation' as produced +uses 'https://smart.who.int/ccc/StructureDefinition/observation' alias 'Observation' as target +uses 'https://smart.who.int/ccc/StructureDefinition/emcareobservation' alias 'EmCare Observation' as produced group bundletrans(source src : questionnaireResponse,target bundle : Bundle){ src -> bundle.id = uuid() 'id'; src -> bundle.type = 'batch' 'type'; @@ -431,9 +431,9 @@ group emcareobservationemcareb22de01(source src,target tgt){ 'id-emcareb22de01'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE01' 'code-emcareb22de01'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -460,9 +460,9 @@ group emcareobservationemcareb22de02(source src,target tgt){ 'id-emcareb22de02'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE02' 'code-emcareb22de02'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -491,9 +491,9 @@ group emcareobservationemcareb22de04(source src,target tgt){ 'id-emcareb22de04'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE04' 'code-emcareb22de04'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -522,9 +522,9 @@ group emcareobservationemcareb22de05(source src,target tgt){ 'id-emcareb22de05'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE05' 'code-emcareb22de05'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -555,9 +555,9 @@ group emcareobservationemcareb22de07(source src,target tgt){ 'id-emcareb22de07'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE07' 'code-emcareb22de07'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -585,9 +585,9 @@ group emcareobservationemcareb22de08(source src,target tgt){ 'id-emcareb22de08'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE08' 'code-emcareb22de08'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -617,9 +617,9 @@ group emcareobservationemcareb22de14(source src,target tgt){ 'id-emcareb22de14'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE14' 'code-emcareb22de14'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -648,9 +648,9 @@ group emcareobservationemcareb22de14a(source src,target tgt){ 'id-emcareb22de14a'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE14a' 'code-emcareb22de14a'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -678,9 +678,9 @@ group emcareobservationemcareb22de15(source src,target tgt){ 'id-emcareb22de15'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE15' 'code-emcareb22de15'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -708,9 +708,9 @@ group emcareobservationemcareb22de16(source src,target tgt){ 'id-emcareb22de16'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE16' 'code-emcareb22de16'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -740,9 +740,9 @@ group emcareobservationemcareb22de17emcareb22de18t(source src,target tgt){ 'id-emcareobservationemcareb22de17emcareb22de18t'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE17&EmCare.B22.DE18' 'code-emcareobservationemcareb22de17emcareb22de18t'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -763,9 +763,9 @@ group emcareobservationemcareb22de17emcareb22de18f(source src,target tgt){ 'id-emcareobservationemcareb22de17emcareb22de18f'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE17&EmCare.B22.DE18' 'code-emcareobservationemcareb22de17emcareb22de18f'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -786,9 +786,9 @@ group emcareobservationemcareb22de17emcareb22de19t(source src,target tgt){ 'id-emcareobservationemcareb22de17emcareb22de19t'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE17&EmCare.B22.DE19' 'code-emcareobservationemcareb22de17emcareb22de19t'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -809,9 +809,9 @@ group emcareobservationemcareb22de17emcareb22de19f(source src,target tgt){ 'id-emcareobservationemcareb22de17emcareb22de19f'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE17&EmCare.B22.DE19' 'code-emcareobservationemcareb22de17emcareb22de19f'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -832,9 +832,9 @@ group emcareobservationemcareb22de17emcareb22de20t(source src,target tgt){ 'id-emcareobservationemcareb22de17emcareb22de20t'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE17&EmCare.B22.DE20' 'code-emcareobservationemcareb22de17emcareb22de20t'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -855,9 +855,9 @@ group emcareobservationemcareb22de17emcareb22de20f(source src,target tgt){ 'id-emcareobservationemcareb22de17emcareb22de20f'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE17&EmCare.B22.DE20' 'code-emcareobservationemcareb22de17emcareb22de20f'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -878,9 +878,9 @@ group emcareobservationemcareb22de17emcareb22de21t(source src,target tgt){ 'id-emcareobservationemcareb22de17emcareb22de21t'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE17&EmCare.B22.DE21' 'code-emcareobservationemcareb22de17emcareb22de21t'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -901,9 +901,9 @@ group emcareobservationemcareb22de17emcareb22de21f(source src,target tgt){ 'id-emcareobservationemcareb22de17emcareb22de21f'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE17&EmCare.B22.DE21' 'code-emcareobservationemcareb22de17emcareb22de21f'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -924,9 +924,9 @@ group emcareobservationemcareb22de17emcareb22de22t(source src,target tgt){ 'id-emcareobservationemcareb22de17emcareb22de22t'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE17&EmCare.B22.DE22' 'code-emcareobservationemcareb22de17emcareb22de22t'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -947,9 +947,9 @@ group emcareobservationemcareb22de17emcareb22de22f(source src,target tgt){ 'id-emcareobservationemcareb22de17emcareb22de22f'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE17&EmCare.B22.DE22' 'code-emcareobservationemcareb22de17emcareb22de22f'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -970,9 +970,9 @@ group emcareobservationemcareb22de22(source src,target tgt){ 'id-emcareb22de22'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE22' 'code-emcareb22de22'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1001,9 +1001,9 @@ group emcareobservationemcareb22de21(source src,target tgt){ 'id-emcareb22de21'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE21' 'code-emcareb22de21'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1031,9 +1031,9 @@ group emcareobservationemcareb22de41(source src,target tgt){ 'id-emcareb22de41'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE41' 'code-emcareb22de41'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1062,9 +1062,9 @@ group emcareobservationemcareb22de28(source src,target tgt){ 'id-emcareb22de28'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE28' 'code-emcareb22de28'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1092,9 +1092,9 @@ group emcareobservationemcareb22de29(source src,target tgt){ 'id-emcareb22de29'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE29' 'code-emcareb22de29'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1122,9 +1122,9 @@ group emcareobservationemcareb22de30(source src,target tgt){ 'id-emcareb22de30'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE30' 'code-emcareb22de30'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1152,9 +1152,9 @@ group emcareobservationemcareb22de31(source src,target tgt){ 'id-emcareb22de31'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE31' 'code-emcareb22de31'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1182,9 +1182,9 @@ group emcareobservationemcareb22de32(source src,target tgt){ 'id-emcareb22de32'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE32' 'code-emcareb22de32'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1212,9 +1212,9 @@ group emcareobservationemcareb22de33(source src,target tgt){ 'id-emcareb22de33'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE33' 'code-emcareb22de33'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1242,9 +1242,9 @@ group emcareobservationemcareb22de34(source src,target tgt){ 'id-emcareb22de34'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE34' 'code-emcareb22de34'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1272,9 +1272,9 @@ group emcareobservationemcareb22de35(source src,target tgt){ 'id-emcareb22de35'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE35' 'code-emcareb22de35'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1302,9 +1302,9 @@ group emcareobservationemcareb22de36(source src,target tgt){ 'id-emcareobservationemcareb22de36'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE36' 'code-emcareobservationemcareb22de36'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1317,16 +1317,16 @@ group emcareobservationemcareb22de36(source src,target tgt){ itm1.item first as item where linkId = 'EmCare.B22.DE36' and answer.exists() then { item.answer first as a then { a where value = 'Not well Attached to Breast', a.value as val then { - val -> tgt.value = create('CodeableConcept') as cc, cc.coding = create('Coding') as c, c.code=EmCare.B22.DE37, c.system= 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', tgt.status = 'final' '71afb672'; + val -> tgt.value = create('CodeableConcept') as cc, cc.coding = create('Coding') as c, c.code=EmCare.B22.DE37, c.system= 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', tgt.status = 'final' '71afb672'; } 'a53091ee'; a where value = 'Good Attachment', a.value as val then { - val -> tgt.value = create('CodeableConcept') as cc, cc.coding = create('Coding') as c, c.code=EmCare.B22.DE38, c.system= 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', tgt.status = 'final' '3053aa3e'; + val -> tgt.value = create('CodeableConcept') as cc, cc.coding = create('Coding') as c, c.code=EmCare.B22.DE38, c.system= 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', tgt.status = 'final' '3053aa3e'; } '239a32e6'; a where value = 'Not Sucking Effectively', a.value as val then { - val -> tgt.value = create('CodeableConcept') as cc, cc.coding = create('Coding') as c, c.code=EmCare.B22.DE39, c.system= 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', tgt.status = 'final' '0e60e5cc'; + val -> tgt.value = create('CodeableConcept') as cc, cc.coding = create('Coding') as c, c.code=EmCare.B22.DE39, c.system= 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', tgt.status = 'final' '0e60e5cc'; } 'ae925fc5'; a where value = 'Sucking Effectively', a.value as val then { - val -> tgt.value = create('CodeableConcept') as cc, cc.coding = create('Coding') as c, c.code=EmCare.B22.DE40, c.system= 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', tgt.status = 'final' '5eeaf122'; + val -> tgt.value = create('CodeableConcept') as cc, cc.coding = create('Coding') as c, c.code=EmCare.B22.DE40, c.system= 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', tgt.status = 'final' '5eeaf122'; } '714e8fb5'; } 'bd419d51'; } '713debc5'; @@ -1342,9 +1342,9 @@ group emcareobservationemcareb22de42(source src,target tgt){ 'id-emcareb22de42'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE42' 'code-emcareb22de42'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1372,9 +1372,9 @@ group emcareobservationemcareb22de44(source src,target tgt){ 'id-emcareb22de44'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE44' 'code-emcareb22de44'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1402,9 +1402,9 @@ group emcareobservationemcareb22de81(source src,target tgt){ 'id-emcareb22de81'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE81' 'code-emcareb22de81'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1431,9 +1431,9 @@ group emcareobservationemcareb22de82(source src,target tgt){ 'id-emcareb22de82'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE82' 'code-emcareb22de82'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1462,9 +1462,9 @@ group emcareobservationemcareb22de47(source src,target tgt){ 'id-emcareb22de47'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE47' 'code-emcareb22de47'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1491,9 +1491,9 @@ group emcareobservationemcareb22de46(source src,target tgt){ 'id-emcareb22de46'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE46' 'code-emcareb22de46'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1522,9 +1522,9 @@ group emcareobservationemcareb22de50(source src,target tgt){ 'id-emcareb22de50'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE50' 'code-emcareb22de50'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1537,7 +1537,7 @@ group emcareobservationemcareb22de50(source src,target tgt){ itm1.item first as item where linkId = 'EmCare.B22.DE50' and answer.exists() then { item.answer first as a then { a.value as val then { - val -> tgt.value = create('CodeableConcept') as cc, cc.coding = create('Coding') as c, c.code=val, c.system= 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', tgt.status = 'final' '759a9a54'; + val -> tgt.value = create('CodeableConcept') as cc, cc.coding = create('Coding') as c, c.code=val, c.system= 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', tgt.status = 'final' '759a9a54'; } '1b820ab0'; } 'd39f9088'; } '336c73e3'; diff --git a/input/mapping/emcare.b22.breastfeeding.map b/input/mapping/emcare.b22.breastfeeding.map index 5923110e..1c6165e0 100644 --- a/input/mapping/emcare.b22.breastfeeding.map +++ b/input/mapping/emcare.b22.breastfeeding.map @@ -1,8 +1,8 @@ -map 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcare.b22.breastfeeding' = 'emcare.b22.breastfeeding' +map 'https://smart.who.int/ccc/StructureMap/emcare.b22.breastfeeding' = 'emcare.b22.breastfeeding' uses 'http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse' alias 'questionnaireResponse' as source uses 'http://hl7.org/fhir/StructureDefinition/Bundle' alias 'Bundle' as target -uses 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/observation' alias 'Observation' as target -uses 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation' alias 'EmCare Observation' as produced +uses 'https://smart.who.int/ccc/StructureDefinition/observation' alias 'Observation' as target +uses 'https://smart.who.int/ccc/StructureDefinition/emcareobservation' alias 'EmCare Observation' as produced group bundletrans(source src : questionnaireResponse,target bundle : Bundle){ src -> bundle.id = uuid() 'id'; src -> bundle.type = 'batch' 'type'; @@ -113,9 +113,9 @@ group emcareobservationemcareb22de41(source src,target tgt){ 'id-emcareb22de41'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE41' 'code-emcareb22de41'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -142,9 +142,9 @@ group emcareobservationemcareb22de28(source src,target tgt){ 'id-emcareb22de28'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE28' 'code-emcareb22de28'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -170,9 +170,9 @@ group emcareobservationemcareb22de29(source src,target tgt){ 'id-emcareb22de29'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE29' 'code-emcareb22de29'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -198,9 +198,9 @@ group emcareobservationemcareb22de30(source src,target tgt){ 'id-emcareb22de30'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE30' 'code-emcareb22de30'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -226,9 +226,9 @@ group emcareobservationemcareb22de31(source src,target tgt){ 'id-emcareb22de31'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE31' 'code-emcareb22de31'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -254,9 +254,9 @@ group emcareobservationemcareb22de32(source src,target tgt){ 'id-emcareb22de32'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE32' 'code-emcareb22de32'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -282,9 +282,9 @@ group emcareobservationemcareb22de33(source src,target tgt){ 'id-emcareb22de33'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE33' 'code-emcareb22de33'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -310,9 +310,9 @@ group emcareobservationemcareb22de34(source src,target tgt){ 'id-emcareb22de34'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE34' 'code-emcareb22de34'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -338,9 +338,9 @@ group emcareobservationemcareb22de35(source src,target tgt){ 'id-emcareb22de35'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE35' 'code-emcareb22de35'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -366,9 +366,9 @@ group emcareobservationemcareb22de36(source src,target tgt){ 'id-emcareobservationemcareb22de36'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE36' 'code-emcareobservationemcareb22de36'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -380,16 +380,16 @@ group emcareobservationemcareb22de36(source src,target tgt){ src.item first as item where linkId = 'EmCare.B22.DE36' and answer.exists() then { item.answer first as a then { a where value = 'Not well Attached to Breast', a.value as val then { - val -> tgt.value = create('CodeableConcept') as cc, cc.coding = create('Coding') as c, c.code=EmCare.B22.DE37, c.system= 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', tgt.status = 'final' '71afb672'; + val -> tgt.value = create('CodeableConcept') as cc, cc.coding = create('Coding') as c, c.code=EmCare.B22.DE37, c.system= 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', tgt.status = 'final' '71afb672'; } 'a53091ee'; a where value = 'Good Attachment', a.value as val then { - val -> tgt.value = create('CodeableConcept') as cc, cc.coding = create('Coding') as c, c.code=EmCare.B22.DE38, c.system= 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', tgt.status = 'final' '3053aa3e'; + val -> tgt.value = create('CodeableConcept') as cc, cc.coding = create('Coding') as c, c.code=EmCare.B22.DE38, c.system= 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', tgt.status = 'final' '3053aa3e'; } '239a32e6'; a where value = 'Not Sucking Effectively', a.value as val then { - val -> tgt.value = create('CodeableConcept') as cc, cc.coding = create('Coding') as c, c.code=EmCare.B22.DE39, c.system= 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', tgt.status = 'final' '0e60e5cc'; + val -> tgt.value = create('CodeableConcept') as cc, cc.coding = create('Coding') as c, c.code=EmCare.B22.DE39, c.system= 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', tgt.status = 'final' '0e60e5cc'; } 'ae925fc5'; a where value = 'Sucking Effectively', a.value as val then { - val -> tgt.value = create('CodeableConcept') as cc, cc.coding = create('Coding') as c, c.code=EmCare.B22.DE40, c.system= 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', tgt.status = 'final' '5eeaf122'; + val -> tgt.value = create('CodeableConcept') as cc, cc.coding = create('Coding') as c, c.code=EmCare.B22.DE40, c.system= 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', tgt.status = 'final' '5eeaf122'; } '714e8fb5'; } 'bd419d51'; } '1b30376c'; @@ -404,9 +404,9 @@ group emcareobservationemcareb22de42(source src,target tgt){ 'id-emcareb22de42'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE42' 'code-emcareb22de42'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -432,9 +432,9 @@ group emcareobservationemcareb22de44(source src,target tgt){ 'id-emcareb22de44'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE44' 'code-emcareb22de44'; src.item as itemtimestamp where linkId = 'timestamp' then { diff --git a/input/mapping/emcare.b22.bronchodilatortest.map b/input/mapping/emcare.b22.bronchodilatortest.map index da43c670..0989ecaf 100644 --- a/input/mapping/emcare.b22.bronchodilatortest.map +++ b/input/mapping/emcare.b22.bronchodilatortest.map @@ -1,8 +1,8 @@ -map 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcare.b22.bronchodilatortest' = 'emcare.b22.bronchodilatortest' +map 'https://smart.who.int/ccc/StructureMap/emcare.b22.bronchodilatortest' = 'emcare.b22.bronchodilatortest' uses 'http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse' alias 'questionnaireResponse' as source uses 'http://hl7.org/fhir/StructureDefinition/Bundle' alias 'Bundle' as target -uses 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/observation' alias 'Observation' as target -uses 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation' alias 'EmCare Observation' as produced +uses 'https://smart.who.int/ccc/StructureDefinition/observation' alias 'Observation' as target +uses 'https://smart.who.int/ccc/StructureDefinition/emcareobservation' alias 'EmCare Observation' as produced group bundletrans(source src : questionnaireResponse,target bundle : Bundle){ src -> bundle.id = uuid() 'id'; src -> bundle.type = 'batch' 'type'; @@ -133,9 +133,9 @@ group emcareobservationemcareb22de17emcareb22de18t(source src,target tgt){ 'id-emcareobservationemcareb22de17emcareb22de18t'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE17&EmCare.B22.DE18' 'code-emcareobservationemcareb22de17emcareb22de18t'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -156,9 +156,9 @@ group emcareobservationemcareb22de17emcareb22de18f(source src,target tgt){ 'id-emcareobservationemcareb22de17emcareb22de18f'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE17&EmCare.B22.DE18' 'code-emcareobservationemcareb22de17emcareb22de18f'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -179,9 +179,9 @@ group emcareobservationemcareb22de17emcareb22de19t(source src,target tgt){ 'id-emcareobservationemcareb22de17emcareb22de19t'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE17&EmCare.B22.DE19' 'code-emcareobservationemcareb22de17emcareb22de19t'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -202,9 +202,9 @@ group emcareobservationemcareb22de17emcareb22de19f(source src,target tgt){ 'id-emcareobservationemcareb22de17emcareb22de19f'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE17&EmCare.B22.DE19' 'code-emcareobservationemcareb22de17emcareb22de19f'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -225,9 +225,9 @@ group emcareobservationemcareb22de17emcareb22de20t(source src,target tgt){ 'id-emcareobservationemcareb22de17emcareb22de20t'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE17&EmCare.B22.DE20' 'code-emcareobservationemcareb22de17emcareb22de20t'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -248,9 +248,9 @@ group emcareobservationemcareb22de17emcareb22de20f(source src,target tgt){ 'id-emcareobservationemcareb22de17emcareb22de20f'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE17&EmCare.B22.DE20' 'code-emcareobservationemcareb22de17emcareb22de20f'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -271,9 +271,9 @@ group emcareobservationemcareb22de17emcareb22de21t(source src,target tgt){ 'id-emcareobservationemcareb22de17emcareb22de21t'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE17&EmCare.B22.DE21' 'code-emcareobservationemcareb22de17emcareb22de21t'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -294,9 +294,9 @@ group emcareobservationemcareb22de17emcareb22de21f(source src,target tgt){ 'id-emcareobservationemcareb22de17emcareb22de21f'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE17&EmCare.B22.DE21' 'code-emcareobservationemcareb22de17emcareb22de21f'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -317,9 +317,9 @@ group emcareobservationemcareb22de17emcareb22de22t(source src,target tgt){ 'id-emcareobservationemcareb22de17emcareb22de22t'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE17&EmCare.B22.DE22' 'code-emcareobservationemcareb22de17emcareb22de22t'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -340,9 +340,9 @@ group emcareobservationemcareb22de17emcareb22de22f(source src,target tgt){ 'id-emcareobservationemcareb22de17emcareb22de22f'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE17&EmCare.B22.DE22' 'code-emcareobservationemcareb22de17emcareb22de22f'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -363,9 +363,9 @@ group emcareobservationemcareb22de22(source src,target tgt){ 'id-emcareb22de22'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE22' 'code-emcareb22de22'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -392,9 +392,9 @@ group emcareobservationemcareb22de21(source src,target tgt){ 'id-emcareb22de21'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE21' 'code-emcareb22de21'; src.item as itemtimestamp where linkId = 'timestamp' then { diff --git a/input/mapping/emcare.b22.fluidtest.map b/input/mapping/emcare.b22.fluidtest.map index b9ff876d..63903471 100644 --- a/input/mapping/emcare.b22.fluidtest.map +++ b/input/mapping/emcare.b22.fluidtest.map @@ -1,8 +1,8 @@ -map 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcare.b22.fluidtest' = 'emcare.b22.fluidtest' +map 'https://smart.who.int/ccc/StructureMap/emcare.b22.fluidtest' = 'emcare.b22.fluidtest' uses 'http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse' alias 'questionnaireResponse' as source uses 'http://hl7.org/fhir/StructureDefinition/Bundle' alias 'Bundle' as target -uses 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/observation' alias 'Observation' as target -uses 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation' alias 'EmCare Observation' as produced +uses 'https://smart.who.int/ccc/StructureDefinition/observation' alias 'Observation' as target +uses 'https://smart.who.int/ccc/StructureDefinition/emcareobservation' alias 'EmCare Observation' as produced group bundletrans(source src : questionnaireResponse,target bundle : Bundle){ src -> bundle.id = uuid() 'id'; src -> bundle.type = 'batch' 'type'; @@ -57,9 +57,9 @@ group emcareobservationemcareb22de08(source src,target tgt){ 'id-emcareb22de08'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE08' 'code-emcareb22de08'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -87,9 +87,9 @@ group emcareobservationemcareb22de14(source src,target tgt){ 'id-emcareb22de14'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE14' 'code-emcareb22de14'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -116,9 +116,9 @@ group emcareobservationemcareb22de14a(source src,target tgt){ 'id-emcareb22de14a'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE14a' 'code-emcareb22de14a'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -144,9 +144,9 @@ group emcareobservationemcareb22de15(source src,target tgt){ 'id-emcareb22de15'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE15' 'code-emcareb22de15'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -172,9 +172,9 @@ group emcareobservationemcareb22de16(source src,target tgt){ 'id-emcareb22de16'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE16' 'code-emcareb22de16'; src.item as itemtimestamp where linkId = 'timestamp' then { diff --git a/input/mapping/emcare.b22.hemoglobin.map b/input/mapping/emcare.b22.hemoglobin.map index 22a61294..00be140e 100644 --- a/input/mapping/emcare.b22.hemoglobin.map +++ b/input/mapping/emcare.b22.hemoglobin.map @@ -1,8 +1,8 @@ -map 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcare.b22.hemoglobin' = 'emcare.b22.hemoglobin' +map 'https://smart.who.int/ccc/StructureMap/emcare.b22.hemoglobin' = 'emcare.b22.hemoglobin' uses 'http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse' alias 'questionnaireResponse' as source uses 'http://hl7.org/fhir/StructureDefinition/Bundle' alias 'Bundle' as target -uses 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/observation' alias 'Observation' as target -uses 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation' alias 'EmCare Observation' as produced +uses 'https://smart.who.int/ccc/StructureDefinition/observation' alias 'Observation' as target +uses 'https://smart.who.int/ccc/StructureDefinition/emcareobservation' alias 'EmCare Observation' as produced group bundletrans(source src : questionnaireResponse,target bundle : Bundle){ src -> bundle.id = uuid() 'id'; src -> bundle.type = 'batch' 'type'; @@ -33,9 +33,9 @@ group emcareobservationemcareb22de81(source src,target tgt){ 'id-emcareb22de81'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE81' 'code-emcareb22de81'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -60,9 +60,9 @@ group emcareobservationemcareb22de82(source src,target tgt){ 'id-emcareb22de82'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE82' 'code-emcareb22de82'; src.item as itemtimestamp where linkId = 'timestamp' then { diff --git a/input/mapping/emcare.b22.respiratoryrate.map b/input/mapping/emcare.b22.respiratoryrate.map index a4f6e4f5..2ec26d18 100644 --- a/input/mapping/emcare.b22.respiratoryrate.map +++ b/input/mapping/emcare.b22.respiratoryrate.map @@ -1,8 +1,8 @@ -map 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcare.b22.respiratoryrate' = 'emcare.b22.respiratoryrate' +map 'https://smart.who.int/ccc/StructureMap/emcare.b22.respiratoryrate' = 'emcare.b22.respiratoryrate' uses 'http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse' alias 'questionnaireResponse' as source uses 'http://hl7.org/fhir/StructureDefinition/Bundle' alias 'Bundle' as target -uses 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/observation' alias 'Observation' as target -uses 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation' alias 'EmCare Observation' as produced +uses 'https://smart.who.int/ccc/StructureDefinition/observation' alias 'Observation' as target +uses 'https://smart.who.int/ccc/StructureDefinition/emcareobservation' alias 'EmCare Observation' as produced group bundletrans(source src : questionnaireResponse,target bundle : Bundle){ src -> bundle.id = uuid() 'id'; src -> bundle.type = 'batch' 'type'; @@ -61,9 +61,9 @@ group emcareobservationemcareb22de01(source src,target tgt){ 'id-emcareb22de01'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE01' 'code-emcareb22de01'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -88,9 +88,9 @@ group emcareobservationemcareb22de02(source src,target tgt){ 'id-emcareb22de02'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE02' 'code-emcareb22de02'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -117,9 +117,9 @@ group emcareobservationemcareb22de04(source src,target tgt){ 'id-emcareb22de04'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE04' 'code-emcareb22de04'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -146,9 +146,9 @@ group emcareobservationemcareb22de05(source src,target tgt){ 'id-emcareb22de05'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE05' 'code-emcareb22de05'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -177,9 +177,9 @@ group emcareobservationemcareb22de07(source src,target tgt){ 'id-emcareb22de07'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE07' 'code-emcareb22de07'; src.item as itemtimestamp where linkId = 'timestamp' then { diff --git a/input/mapping/emcare.b22.secondtemperature.map b/input/mapping/emcare.b22.secondtemperature.map index 0f58fb69..72e47eaf 100644 --- a/input/mapping/emcare.b22.secondtemperature.map +++ b/input/mapping/emcare.b22.secondtemperature.map @@ -1,8 +1,8 @@ -map 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcare.b22.secondtemperature' = 'emcare.b22.secondtemperature' +map 'https://smart.who.int/ccc/StructureMap/emcare.b22.secondtemperature' = 'emcare.b22.secondtemperature' uses 'http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse' alias 'questionnaireResponse' as source uses 'http://hl7.org/fhir/StructureDefinition/Bundle' alias 'Bundle' as target -uses 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/observation' alias 'Observation' as target -uses 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation' alias 'EmCare Observation' as produced +uses 'https://smart.who.int/ccc/StructureDefinition/observation' alias 'Observation' as target +uses 'https://smart.who.int/ccc/StructureDefinition/emcareobservation' alias 'EmCare Observation' as produced group bundletrans(source src : questionnaireResponse,target bundle : Bundle){ src -> bundle.id = uuid() 'id'; src -> bundle.type = 'batch' 'type'; @@ -41,9 +41,9 @@ group emcareobservationemcareb22de47(source src,target tgt){ 'id-emcareb22de47'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE47' 'code-emcareb22de47'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -68,9 +68,9 @@ group emcareobservationemcareb22de46(source src,target tgt){ 'id-emcareb22de46'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE46' 'code-emcareb22de46'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -97,9 +97,9 @@ group emcareobservationemcareb22de50(source src,target tgt){ 'id-emcareb22de50'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE50' 'code-emcareb22de50'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -111,7 +111,7 @@ group emcareobservationemcareb22de50(source src,target tgt){ src.item first as item where linkId = 'EmCare.B22.DE50' and answer.exists() then { item.answer first as a then { a.value as val then { - val -> tgt.value = create('CodeableConcept') as cc, cc.coding = create('Coding') as c, c.code=val, c.system= 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', tgt.status = 'final' '759a9a54'; + val -> tgt.value = create('CodeableConcept') as cc, cc.coding = create('Coding') as c, c.code=val, c.system= 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', tgt.status = 'final' '759a9a54'; } '1b820ab0'; } 'd39f9088'; } '7972a70f'; diff --git a/input/mapping/emcare.b23.classification.m.map b/input/mapping/emcare.b23.classification.m.map index e92cc4e6..b7515cdf 100644 --- a/input/mapping/emcare.b23.classification.m.map +++ b/input/mapping/emcare.b23.classification.m.map @@ -1,8 +1,8 @@ -map 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcare.b23.classification.m' = 'emcare.b23.classification.m' +map 'https://smart.who.int/ccc/StructureMap/emcare.b23.classification.m' = 'emcare.b23.classification.m' uses 'http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse' alias 'questionnaireResponse' as source uses 'http://hl7.org/fhir/StructureDefinition/Bundle' alias 'Bundle' as target -uses 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/condition' alias 'Condition' as target -uses 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcarecondition' alias 'EmCare Condition' as produced +uses 'https://smart.who.int/ccc/StructureDefinition/condition' alias 'Condition' as target +uses 'https://smart.who.int/ccc/StructureDefinition/emcarecondition' alias 'EmCare Condition' as produced group bundletrans(source src : questionnaireResponse,target bundle : Bundle){ src -> bundle.id = uuid() 'id'; src -> bundle.type = 'batch' 'type'; @@ -288,7 +288,7 @@ group emcareconditionemcareb23de83(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE83', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '8e761921'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE83', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '8e761921'; } 'a10c1e7b'; } '13fd46f9'; item.answer where value.code = 'agree' then { @@ -311,7 +311,7 @@ group emcareconditionemcareb23de06(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE06', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' 'dd0fd01c'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE06', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' 'dd0fd01c'; } '8ef845b0'; } '558d6c0d'; item.answer where value.code = 'agree' then { @@ -334,7 +334,7 @@ group emcareconditionemcareb23de85(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE85', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' 'edf923c3'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE85', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' 'edf923c3'; } 'a2ce3a97'; } '6f3a3752'; item.answer where value.code = 'agree' then { @@ -357,7 +357,7 @@ group emcareconditionemcareb23de86(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE86', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '342850aa'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE86', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '342850aa'; } '9338b358'; } 'fc719a3c'; item.answer where value.code = 'agree' then { @@ -380,7 +380,7 @@ group emcareconditionemcareb23de106(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE106', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '70f0a4fa'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE106', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '70f0a4fa'; } 'd8d6d130'; } '671ed411'; item.answer where value.code = 'agree' then { @@ -403,7 +403,7 @@ group emcareconditionemcareb23de87(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE87', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '01f1ca5f'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE87', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '01f1ca5f'; } '62727c30'; } '9ff74c9e'; item.answer where value.code = 'agree' then { @@ -426,7 +426,7 @@ group emcareconditionemcareb23de88(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE88', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '2803d2d8'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE88', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '2803d2d8'; } '360a74b4'; } '36ea706b'; item.answer where value.code = 'agree' then { @@ -449,7 +449,7 @@ group emcareconditionemcareb23de89(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE89', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' 'd0ba1006'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE89', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' 'd0ba1006'; } '10f03284'; } '0d943b47'; item.answer where value.code = 'agree' then { @@ -472,7 +472,7 @@ group emcareconditionemcareb23de13(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE13', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '0b87b4e7'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE13', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '0b87b4e7'; } '6cc1c549'; } 'dc54929c'; item.answer where value.code = 'agree' then { @@ -495,7 +495,7 @@ group emcareconditionemcareb23de14(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE14', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' 'c77e81e6'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE14', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' 'c77e81e6'; } 'a3de578a'; } 'd565e84e'; item.answer where value.code = 'agree' then { @@ -518,7 +518,7 @@ group emcareconditionemcareb23de15(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE15', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '16e4a2c3'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE15', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '16e4a2c3'; } '088a39f1'; } 'b194144a'; item.answer where value.code = 'agree' then { @@ -541,7 +541,7 @@ group emcareconditionemcareb23de94(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE94', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '61234ed0'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE94', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '61234ed0'; } 'ba5673dd'; } 'b957f076'; item.answer where value.code = 'agree' then { @@ -564,7 +564,7 @@ group emcareconditionemcareb23de98(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE98', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '11d6b9d2'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE98', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '11d6b9d2'; } 'cbe98666'; } '98163aba'; item.answer where value.code = 'agree' then { @@ -587,7 +587,7 @@ group emcareconditioncollectoremcareb23de83(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE83', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '8e761921'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE83', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '8e761921'; } 'a10c1e7b'; a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' 'b7901585'; a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' '3e544e1e'; @@ -604,7 +604,7 @@ group emcareconditioncollectoremcareb23de06(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE06', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' 'dd0fd01c'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE06', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' 'dd0fd01c'; } '8ef845b0'; a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' 'b7901585'; a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' '3e544e1e'; @@ -621,7 +621,7 @@ group emcareconditioncollectoremcareb23de85(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE85', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' 'edf923c3'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE85', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' 'edf923c3'; } 'a2ce3a97'; a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' 'b7901585'; a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' '3e544e1e'; @@ -638,7 +638,7 @@ group emcareconditioncollectoremcareb23de86(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE86', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '342850aa'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE86', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '342850aa'; } '9338b358'; a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' 'b7901585'; a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' '3e544e1e'; @@ -655,7 +655,7 @@ group emcareconditioncollectoremcareb23de106(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE106', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '70f0a4fa'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE106', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '70f0a4fa'; } 'd8d6d130'; a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' 'b7901585'; a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' '3e544e1e'; @@ -672,7 +672,7 @@ group emcareconditioncollectoremcareb23de87(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE87', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '01f1ca5f'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE87', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '01f1ca5f'; } '62727c30'; a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' 'b7901585'; a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' '3e544e1e'; @@ -689,7 +689,7 @@ group emcareconditioncollectoremcareb23de88(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE88', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '2803d2d8'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE88', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '2803d2d8'; } '360a74b4'; a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' 'b7901585'; a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' '3e544e1e'; @@ -706,7 +706,7 @@ group emcareconditioncollectoremcareb23de89(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE89', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' 'd0ba1006'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE89', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' 'd0ba1006'; } '10f03284'; a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' 'b7901585'; a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' '3e544e1e'; @@ -723,7 +723,7 @@ group emcareconditioncollectoremcareb23de13(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE13', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '0b87b4e7'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE13', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '0b87b4e7'; } '6cc1c549'; a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' 'b7901585'; a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' '3e544e1e'; @@ -740,7 +740,7 @@ group emcareconditioncollectoremcareb23de14(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE14', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' 'c77e81e6'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE14', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' 'c77e81e6'; } 'a3de578a'; a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' 'b7901585'; a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' '3e544e1e'; @@ -757,7 +757,7 @@ group emcareconditioncollectoremcareb23de15(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE15', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '16e4a2c3'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE15', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '16e4a2c3'; } '088a39f1'; a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' 'b7901585'; a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' '3e544e1e'; @@ -774,7 +774,7 @@ group emcareconditioncollectoremcareb23de94(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE94', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '61234ed0'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE94', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '61234ed0'; } 'ba5673dd'; a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' 'b7901585'; a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' '3e544e1e'; @@ -791,7 +791,7 @@ group emcareconditioncollectoremcareb23de98(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE98', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '11d6b9d2'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE98', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '11d6b9d2'; } 'cbe98666'; a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' 'b7901585'; a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' '3e544e1e'; @@ -808,7 +808,7 @@ group emcareconditioncollectorcollector(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'collector', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' 'ab5440b5'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'collector', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' 'ab5440b5'; } '6fc817a4'; a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' 'b7901585'; a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' '3e544e1e'; diff --git a/input/mapping/emcare.b23.classification.map b/input/mapping/emcare.b23.classification.map index 40389166..9189fa44 100644 --- a/input/mapping/emcare.b23.classification.map +++ b/input/mapping/emcare.b23.classification.map @@ -1,10 +1,10 @@ -map 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcare.b23.classification' = 'emcare.b23.classification' +map 'https://smart.who.int/ccc/StructureMap/emcare.b23.classification' = 'emcare.b23.classification' uses 'http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse' alias 'questionnaireResponse' as source uses 'http://hl7.org/fhir/StructureDefinition/Bundle' alias 'Bundle' as target -uses 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/observation' alias 'Observation' as target -uses 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/condition' alias 'Condition' as target -uses 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation' alias 'EmCare Observation' as produced -uses 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcarecondition' alias 'EmCare Condition' as produced +uses 'https://smart.who.int/ccc/StructureDefinition/observation' alias 'Observation' as target +uses 'https://smart.who.int/ccc/StructureDefinition/condition' alias 'Condition' as target +uses 'https://smart.who.int/ccc/StructureDefinition/emcareobservation' alias 'EmCare Observation' as produced +uses 'https://smart.who.int/ccc/StructureDefinition/emcarecondition' alias 'EmCare Condition' as produced group bundletrans(source src : questionnaireResponse,target bundle : Bundle){ src -> bundle.id = uuid() 'id'; src -> bundle.type = 'batch' 'type'; @@ -977,9 +977,9 @@ group emcareobservationemcareb6de08(source src,target tgt){ 'id-emcareb6de08'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B6.DE08' 'code-emcareb6de08'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -1005,7 +1005,7 @@ group emcareconditionemcareb23de01(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE01', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '38c776ef'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE01', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '38c776ef'; } 'dcfcb65d'; } '48b723fb'; item.answer where value.code = 'agree' then { @@ -1028,7 +1028,7 @@ group emcareconditionemcareb23de03(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE03', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '97f42802'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE03', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '97f42802'; } '539676b6'; } '72db4093'; item.answer where value.code = 'agree' then { @@ -1041,7 +1041,7 @@ group emcareconditionemcareb23de03(source src,source item,target tgt){ } '2219f1ae'; src.item first as item where linkId = 'EmCare.B23.DE04' and answer.exists() then { item.answer first as a where a.value=true then { - src -> tgt.extension = create('Extension') as ext , ext.url ='https://fhir.dk.swisstph-mis.ch/matchbox/fhir//StructureDefinition/postcoordination', ext.value = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE04', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '38e7535e'; + src -> tgt.extension = create('Extension') as ext , ext.url ='https://smart.who.int/ccc/StructureDefinition/postcoordination', ext.value = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE04', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '38e7535e'; } 'dd1642cb'; } 'c35c9cd0'; } @@ -1056,7 +1056,7 @@ group emcareconditionemcareb23de06(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE06', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' 'dd0fd01c'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE06', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' 'dd0fd01c'; } '8ef845b0'; } '558d6c0d'; item.answer where value.code = 'agree' then { @@ -1069,7 +1069,7 @@ group emcareconditionemcareb23de06(source src,source item,target tgt){ } '2219f1ae'; src.item first as item where linkId = 'EmCare.B23.DE05' and answer.exists() then { item.answer first as a where a.value=true then { - src -> tgt.extension = create('Extension') as ext , ext.url ='https://fhir.dk.swisstph-mis.ch/matchbox/fhir//StructureDefinition/postcoordination', ext.value = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE05', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '45430313'; + src -> tgt.extension = create('Extension') as ext , ext.url ='https://smart.who.int/ccc/StructureDefinition/postcoordination', ext.value = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE05', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '45430313'; } 'fbb8aa6b'; } '2361285f'; } @@ -1084,7 +1084,7 @@ group emcareconditionemcareb23de10(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE10', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '901c4fa4'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE10', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '901c4fa4'; } '39e6334e'; } 'f313d249'; item.answer where value.code = 'agree' then { @@ -1097,7 +1097,7 @@ group emcareconditionemcareb23de10(source src,source item,target tgt){ } '2219f1ae'; src.item first as item where linkId = 'EmCare.B23.DE05' and answer.exists() then { item.answer first as a where a.value=true then { - src -> tgt.extension = create('Extension') as ext , ext.url ='https://fhir.dk.swisstph-mis.ch/matchbox/fhir//StructureDefinition/postcoordination', ext.value = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE05', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '45430313'; + src -> tgt.extension = create('Extension') as ext , ext.url ='https://smart.who.int/ccc/StructureDefinition/postcoordination', ext.value = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE05', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '45430313'; } 'fbb8aa6b'; } '2361285f'; } @@ -1112,7 +1112,7 @@ group emcareconditionemcareb23de13(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE13', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '0b87b4e7'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE13', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '0b87b4e7'; } '6cc1c549'; } 'dc54929c'; item.answer where value.code = 'agree' then { @@ -1135,7 +1135,7 @@ group emcareconditionemcareb23de14(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE14', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' 'c77e81e6'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE14', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' 'c77e81e6'; } 'a3de578a'; } 'd565e84e'; item.answer where value.code = 'agree' then { @@ -1158,7 +1158,7 @@ group emcareconditionemcareb23de15(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE15', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '16e4a2c3'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE15', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '16e4a2c3'; } '088a39f1'; } 'b194144a'; item.answer where value.code = 'agree' then { @@ -1181,7 +1181,7 @@ group emcareconditionemcareb23de16(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE16', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '672b006b'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE16', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '672b006b'; } 'c458ff7e'; } 'a834b1c4'; item.answer where value.code = 'agree' then { @@ -1204,7 +1204,7 @@ group emcareconditionemcareb23de17(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE17', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' 'bd34c671'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE17', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' 'bd34c671'; } '0cc3c5de'; } '8b51a13d'; item.answer where value.code = 'agree' then { @@ -1227,7 +1227,7 @@ group emcareconditionemcareb23de18(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE18', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '422373d9'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE18', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '422373d9'; } '8f1dcdd2'; } '6c227934'; item.answer where value.code = 'agree' then { @@ -1250,7 +1250,7 @@ group emcareconditionemcareb23de18a(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE18.a', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' 'b2c23048'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE18.a', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' 'b2c23048'; } '422663d8'; } '12b34bed'; item.answer where value.code = 'agree' then { @@ -1273,7 +1273,7 @@ group emcareconditionemcareb23de100(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE100', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '515f36ee'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE100', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '515f36ee'; } 'e9f1a397'; } '5e6079c2'; item.answer where value.code = 'agree' then { @@ -1296,7 +1296,7 @@ group emcareconditionemcareb23de6101(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE6101', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '6a9c0b56'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE6101', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '6a9c0b56'; } '970b5053'; } 'ce2b70a1'; item.answer where value.code = 'agree' then { @@ -1319,7 +1319,7 @@ group emcareconditionemcareb23de6102(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE6102', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '1522be60'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE6102', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '1522be60'; } '18159ba1'; } 'cb2b50a2'; item.answer where value.code = 'agree' then { @@ -1342,7 +1342,7 @@ group emcareconditionemcareb23de6103(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE6103', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '248ab88b'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE6103', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '248ab88b'; } '9f402fa1'; } '5f770596'; item.answer where value.code = 'agree' then { @@ -1365,7 +1365,7 @@ group emcareconditionemcareb23de30(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE30', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '60650f2a'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE30', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '60650f2a'; } '453d3cff'; } 'e00da291'; item.answer where value.code = 'agree' then { @@ -1388,7 +1388,7 @@ group emcareconditionemcareb23de31(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE31', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' 'ab1c5076'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE31', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' 'ab1c5076'; } '11935d2f'; } 'e29a8881'; item.answer where value.code = 'agree' then { @@ -1411,7 +1411,7 @@ group emcareconditionemcareb23de32(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE32', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' 'b634fab6'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE32', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' 'b634fab6'; } '4ead4dac'; } '48ea19ef'; item.answer where value.code = 'agree' then { @@ -1425,7 +1425,7 @@ group emcareconditionemcareb23de32(source src,source item,target tgt){ src.item first as itm1 where linkId = 'EmCare.B23.DE32' then { itm1.item first as item where linkId = 'EmCare.B23.DE32a_l' and answer.exists() then { item.answer first as a where a.value=true then { - src -> tgt.extension = create('Extension') as ext , ext.url ='https://fhir.dk.swisstph-mis.ch/matchbox/fhir//StructureDefinition/postcoordination', ext.value = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE32a_l', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' 'e1fd65a9'; + src -> tgt.extension = create('Extension') as ext , ext.url ='https://smart.who.int/ccc/StructureDefinition/postcoordination', ext.value = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE32a_l', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' 'e1fd65a9'; } 'c8109922'; } '812d89a8'; } 'c3ccc3f2'; @@ -1441,7 +1441,7 @@ group emcareconditionemcareb23de33(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE33', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '57e99b51'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE33', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '57e99b51'; } '82481cbe'; } 'ef2558fa'; item.answer where value.code = 'agree' then { @@ -1464,7 +1464,7 @@ group emcareconditionemcareb23de19(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE19', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '8cb2637d'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE19', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '8cb2637d'; } '69ddcad6'; } '36529e3a'; item.answer where value.code = 'agree' then { @@ -1487,7 +1487,7 @@ group emcareconditionemcareb23de104(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE104', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '6627d17b'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE104', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '6627d17b'; } '008eb1e8'; } '99bdabd7'; item.answer where value.code = 'agree' then { @@ -1501,7 +1501,7 @@ group emcareconditionemcareb23de104(source src,source item,target tgt){ src.item first as itm1 where linkId = 'EmCare.B23.DE104' then { itm1.item first as item where linkId = 'EmCare.B23.DE26a_l' and answer.exists() then { item.answer first as a where a.value=true then { - src -> tgt.extension = create('Extension') as ext , ext.url ='https://fhir.dk.swisstph-mis.ch/matchbox/fhir//StructureDefinition/postcoordination', ext.value = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE26a_l', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '2bb3282a'; + src -> tgt.extension = create('Extension') as ext , ext.url ='https://smart.who.int/ccc/StructureDefinition/postcoordination', ext.value = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE26a_l', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '2bb3282a'; } '059c54a8'; } 'bfa2f7ed'; } 'd6b41478'; @@ -1517,7 +1517,7 @@ group emcareconditionemcareb23de105(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE105', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' 'bfa6a728'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE105', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' 'bfa6a728'; } '503587f4'; } 'b4cd8d75'; item.answer where value.code = 'agree' then { @@ -1540,7 +1540,7 @@ group emcareconditionemcareb23de27(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE27', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '10a11fd8'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE27', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '10a11fd8'; } '7e9f6c96'; } '47747496'; item.answer where value.code = 'agree' then { @@ -1563,7 +1563,7 @@ group emcareconditionemcareb23de28(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE28', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' 'bd635f9e'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE28', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' 'bd635f9e'; } 'ac92c02f'; } '591966f0'; item.answer where value.code = 'agree' then { @@ -1586,7 +1586,7 @@ group emcareconditionemcareb23de29(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE29', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '59037b30'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE29', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '59037b30'; } 'cfcf61aa'; } 'b6fcf002'; item.answer where value.code = 'agree' then { @@ -1609,7 +1609,7 @@ group emcareconditionemcareb23de62(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE62', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '1d89b4e7'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE62', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '1d89b4e7'; } '7a9976ac'; } '59bce4a5'; item.answer where value.code = 'agree' then { @@ -1632,7 +1632,7 @@ group emcareconditionemcareb23de63(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE63', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '7160c75f'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE63', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '7160c75f'; } 'f74f505b'; } 'ab307e84'; item.answer where value.code = 'agree' then { @@ -1655,7 +1655,7 @@ group emcareconditionemcareb23de64(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE64', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' 'f6ad72a0'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE64', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' 'f6ad72a0'; } '9035e530'; } '9a8830e5'; item.answer where value.code = 'agree' then { @@ -1678,7 +1678,7 @@ group emcareconditionemcareb23de34(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE34', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' 'e5f9a7d3'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE34', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' 'e5f9a7d3'; } 'ff3ce60d'; } 'c84a5f54'; item.answer where value.code = 'agree' then { @@ -1701,7 +1701,7 @@ group emcareconditionemcareb23de35(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE35', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '7f5b9cb3'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE35', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '7f5b9cb3'; } '30144f76'; } 'b15dce6e'; item.answer where value.code = 'agree' then { @@ -1714,7 +1714,7 @@ group emcareconditionemcareb23de35(source src,source item,target tgt){ } '2219f1ae'; src.item first as item where linkId = 'EmCare.B23.DE36' and answer.exists() then { item.answer first as a where a.value=true then { - src -> tgt.extension = create('Extension') as ext , ext.url ='https://fhir.dk.swisstph-mis.ch/matchbox/fhir//StructureDefinition/postcoordination', ext.value = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE36', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '337a4af0'; + src -> tgt.extension = create('Extension') as ext , ext.url ='https://smart.who.int/ccc/StructureDefinition/postcoordination', ext.value = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE36', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '337a4af0'; } '00bff3d2'; } '9a029988'; } @@ -1729,7 +1729,7 @@ group emcareconditionemcareb23de41(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE41', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' 'e288c87d'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE41', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' 'e288c87d'; } '8173bdfa'; } '2297565b'; item.answer where value.code = 'agree' then { @@ -1752,7 +1752,7 @@ group emcareconditionemcareb23de42(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE42', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '94e86dfd'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE42', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '94e86dfd'; } '1282d921'; } 'f89496b0'; item.answer where value.code = 'agree' then { @@ -1765,7 +1765,7 @@ group emcareconditionemcareb23de42(source src,source item,target tgt){ } '2219f1ae'; src.item first as item where linkId = 'EmCare.B23.DE43a' and answer.exists() then { item.answer first as a where a.value=true then { - src -> tgt.extension = create('Extension') as ext , ext.url ='https://fhir.dk.swisstph-mis.ch/matchbox/fhir//StructureDefinition/postcoordination', ext.value = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE43a', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '3982894f'; + src -> tgt.extension = create('Extension') as ext , ext.url ='https://smart.who.int/ccc/StructureDefinition/postcoordination', ext.value = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE43a', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '3982894f'; } 'bb6efca4'; } 'fc0928c7'; } @@ -1780,7 +1780,7 @@ group emcareconditionemcareb23de44(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE44', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' 'e3f3e6d5'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE44', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' 'e3f3e6d5'; } 'bed4feb4'; } '629e48b0'; item.answer where value.code = 'agree' then { @@ -1803,7 +1803,7 @@ group emcareconditionemcareb23de45(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE45', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '606d51c8'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE45', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '606d51c8'; } '7d5d59ca'; } 'e36660f4'; item.answer where value.code = 'agree' then { @@ -1816,7 +1816,7 @@ group emcareconditionemcareb23de45(source src,source item,target tgt){ } '2219f1ae'; src.item first as item where linkId = 'EmCare.B23.DE46A' and answer.exists() then { item.answer first as a where a.value=true then { - src -> tgt.extension = create('Extension') as ext , ext.url ='https://fhir.dk.swisstph-mis.ch/matchbox/fhir//StructureDefinition/postcoordination', ext.value = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE46A', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' 'b043e119'; + src -> tgt.extension = create('Extension') as ext , ext.url ='https://smart.who.int/ccc/StructureDefinition/postcoordination', ext.value = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE46A', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' 'b043e119'; } 'b1d8b88c'; } 'a1ec2dd1'; } @@ -1831,7 +1831,7 @@ group emcareconditionemcareb23de47(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE47', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '6bae8d25'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE47', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '6bae8d25'; } '5e31a07c'; } 'a43d53e8'; item.answer where value.code = 'agree' then { @@ -1844,7 +1844,7 @@ group emcareconditionemcareb23de47(source src,source item,target tgt){ } '2219f1ae'; src.item first as item where linkId = 'EmCare.B23.DE48' and answer.exists() then { item.answer first as a where a.value=true then { - src -> tgt.extension = create('Extension') as ext , ext.url ='https://fhir.dk.swisstph-mis.ch/matchbox/fhir//StructureDefinition/postcoordination', ext.value = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE48', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '88de7a80'; + src -> tgt.extension = create('Extension') as ext , ext.url ='https://smart.who.int/ccc/StructureDefinition/postcoordination', ext.value = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE48', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '88de7a80'; } '7cd5181a'; } '3c6f199b'; } @@ -1859,7 +1859,7 @@ group emcareconditionemcareb23de49(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE49', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' 'b581f2e7'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE49', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' 'b581f2e7'; } '1cc86632'; } 'f58199bf'; item.answer where value.code = 'agree' then { @@ -1872,7 +1872,7 @@ group emcareconditionemcareb23de49(source src,source item,target tgt){ } '2219f1ae'; src.item first as item where linkId = 'EmCare.B23.DE50' and answer.exists() then { item.answer first as a where a.value=true then { - src -> tgt.extension = create('Extension') as ext , ext.url ='https://fhir.dk.swisstph-mis.ch/matchbox/fhir//StructureDefinition/postcoordination', ext.value = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE50', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' 'b871091f'; + src -> tgt.extension = create('Extension') as ext , ext.url ='https://smart.who.int/ccc/StructureDefinition/postcoordination', ext.value = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE50', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' 'b871091f'; } '3562dee3'; } 'ba9bd30c'; } @@ -1887,7 +1887,7 @@ group emcareconditionemcareb23de52(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE52', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' 'eb984457'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE52', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' 'eb984457'; } '124cd652'; } 'c77f1d4e'; item.answer where value.code = 'agree' then { @@ -1900,7 +1900,7 @@ group emcareconditionemcareb23de52(source src,source item,target tgt){ } '2219f1ae'; src.item first as item where linkId = 'EmCare.B23.DE52a' and answer.exists() then { item.answer first as a where a.value=true then { - src -> tgt.extension = create('Extension') as ext , ext.url ='https://fhir.dk.swisstph-mis.ch/matchbox/fhir//StructureDefinition/postcoordination', ext.value = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE52a', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '3a81b32e'; + src -> tgt.extension = create('Extension') as ext , ext.url ='https://smart.who.int/ccc/StructureDefinition/postcoordination', ext.value = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE52a', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '3a81b32e'; } '2c4ce5dc'; } '510e64e3'; } @@ -1915,7 +1915,7 @@ group emcareconditionemcareb23de53(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE53', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '0f3a6755'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE53', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '0f3a6755'; } '863552f3'; } '35439fa7'; item.answer where value.code = 'agree' then { @@ -1928,7 +1928,7 @@ group emcareconditionemcareb23de53(source src,source item,target tgt){ } '2219f1ae'; src.item first as item where linkId = 'EmCare.B23.DE53a' and answer.exists() then { item.answer first as a where a.value=true then { - src -> tgt.extension = create('Extension') as ext , ext.url ='https://fhir.dk.swisstph-mis.ch/matchbox/fhir//StructureDefinition/postcoordination', ext.value = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE53a', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '172c98f5'; + src -> tgt.extension = create('Extension') as ext , ext.url ='https://smart.who.int/ccc/StructureDefinition/postcoordination', ext.value = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE53a', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '172c98f5'; } '77f7bdf7'; } '6481f816'; } @@ -1943,7 +1943,7 @@ group emcareconditionemcareb23de54(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE54', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' 'fafd5b25'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE54', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' 'fafd5b25'; } '61c9d7c8'; } '78b12d83'; item.answer where value.code = 'agree' then { @@ -1956,7 +1956,7 @@ group emcareconditionemcareb23de54(source src,source item,target tgt){ } '2219f1ae'; src.item first as item where linkId = 'EmCare.B23.DE55' and answer.exists() then { item.answer first as a where a.value=true then { - src -> tgt.extension = create('Extension') as ext , ext.url ='https://fhir.dk.swisstph-mis.ch/matchbox/fhir//StructureDefinition/postcoordination', ext.value = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE55', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '703de849'; + src -> tgt.extension = create('Extension') as ext , ext.url ='https://smart.who.int/ccc/StructureDefinition/postcoordination', ext.value = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE55', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '703de849'; } '82394009'; } '626ae745'; } @@ -1971,7 +1971,7 @@ group emcareconditionemcareb23de56(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE56', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '9a929971'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE56', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '9a929971'; } 'b7c8a104'; } '0dd631f3'; item.answer where value.code = 'agree' then { @@ -1994,7 +1994,7 @@ group emcareconditionemcareb23de57(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE57', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '2c0d395c'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE57', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '2c0d395c'; } 'f04e9b50'; } 'af692636'; item.answer where value.code = 'agree' then { @@ -2007,7 +2007,7 @@ group emcareconditionemcareb23de57(source src,source item,target tgt){ } '2219f1ae'; src.item first as item where linkId = 'EmCare.B23.DE57a' and answer.exists() then { item.answer first as a where a.value=true then { - src -> tgt.extension = create('Extension') as ext , ext.url ='https://fhir.dk.swisstph-mis.ch/matchbox/fhir//StructureDefinition/postcoordination', ext.value = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE57a', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '0273738c'; + src -> tgt.extension = create('Extension') as ext , ext.url ='https://smart.who.int/ccc/StructureDefinition/postcoordination', ext.value = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE57a', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '0273738c'; } '3e41ae3b'; } 'd8c20ee2'; } @@ -2022,7 +2022,7 @@ group emcareconditionemcareb23de58(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE58', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' 'd913f145'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE58', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' 'd913f145'; } 'ecd18d6c'; } 'a88f6164'; item.answer where value.code = 'agree' then { @@ -2045,7 +2045,7 @@ group emcareconditionemcareb23de59(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE59', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '8f74fb03'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE59', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '8f74fb03'; } '4cae7202'; } 'b30797dc'; item.answer where value.code = 'agree' then { @@ -2058,7 +2058,7 @@ group emcareconditionemcareb23de59(source src,source item,target tgt){ } '2219f1ae'; src.item first as item where linkId = 'EmCare.B23.DE60' and answer.exists() then { item.answer first as a where a.value=true then { - src -> tgt.extension = create('Extension') as ext , ext.url ='https://fhir.dk.swisstph-mis.ch/matchbox/fhir//StructureDefinition/postcoordination', ext.value = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE60', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' 'da15433c'; + src -> tgt.extension = create('Extension') as ext , ext.url ='https://smart.who.int/ccc/StructureDefinition/postcoordination', ext.value = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE60', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' 'da15433c'; } '8622d264'; } '0e509ca1'; } @@ -2073,7 +2073,7 @@ group emcareconditionemcareb23de61(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE61', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '9134fe36'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE61', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '9134fe36'; } '280470c5'; } '8aa97bdd'; item.answer where value.code = 'agree' then { @@ -2096,7 +2096,7 @@ group emcareconditionemcareb23de106(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE106', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '70f0a4fa'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE106', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '70f0a4fa'; } 'd8d6d130'; } '671ed411'; item.answer where value.code = 'agree' then { @@ -2119,7 +2119,7 @@ group emcareconditionemcareb23de107(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE107', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '4b1b0c22'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE107', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '4b1b0c22'; } 'd096a052'; } '8e8ee9b4'; item.answer where value.code = 'agree' then { @@ -2142,7 +2142,7 @@ group emcareconditionemcareb23de108(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE108', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '3de5c106'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE108', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '3de5c106'; } '58d1e9ce'; } '81cf1715'; item.answer where value.code = 'agree' then { @@ -2165,7 +2165,7 @@ group emcareconditioncollectoremcareb23de01(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE01', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '38c776ef'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE01', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '38c776ef'; } 'dcfcb65d'; a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' 'b7901585'; a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' '3e544e1e'; @@ -2182,7 +2182,7 @@ group emcareconditioncollectoremcareb23de03(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE03', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '97f42802'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE03', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '97f42802'; } '539676b6'; a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' 'b7901585'; a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' '3e544e1e'; @@ -2199,7 +2199,7 @@ group emcareconditioncollectoremcareb23de06(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE06', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' 'dd0fd01c'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE06', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' 'dd0fd01c'; } '8ef845b0'; a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' 'b7901585'; a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' '3e544e1e'; @@ -2216,7 +2216,7 @@ group emcareconditioncollectoremcareb23de10(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE10', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '901c4fa4'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE10', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '901c4fa4'; } '39e6334e'; a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' 'b7901585'; a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' '3e544e1e'; @@ -2233,7 +2233,7 @@ group emcareconditioncollectoremcareb23de13(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE13', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '0b87b4e7'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE13', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '0b87b4e7'; } '6cc1c549'; a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' 'b7901585'; a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' '3e544e1e'; @@ -2250,7 +2250,7 @@ group emcareconditioncollectoremcareb23de14(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE14', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' 'c77e81e6'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE14', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' 'c77e81e6'; } 'a3de578a'; a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' 'b7901585'; a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' '3e544e1e'; @@ -2267,7 +2267,7 @@ group emcareconditioncollectoremcareb23de15(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE15', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '16e4a2c3'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE15', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '16e4a2c3'; } '088a39f1'; a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' 'b7901585'; a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' '3e544e1e'; @@ -2284,7 +2284,7 @@ group emcareconditioncollectoremcareb23de16(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE16', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '672b006b'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE16', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '672b006b'; } 'c458ff7e'; a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' 'b7901585'; a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' '3e544e1e'; @@ -2301,7 +2301,7 @@ group emcareconditioncollectoremcareb23de17(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE17', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' 'bd34c671'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE17', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' 'bd34c671'; } '0cc3c5de'; a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' 'b7901585'; a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' '3e544e1e'; @@ -2318,7 +2318,7 @@ group emcareconditioncollectoremcareb23de18(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE18', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '422373d9'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE18', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '422373d9'; } '8f1dcdd2'; a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' 'b7901585'; a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' '3e544e1e'; @@ -2335,7 +2335,7 @@ group emcareconditioncollectoremcareb23de18a(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE18.a', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' 'b2c23048'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE18.a', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' 'b2c23048'; } '422663d8'; a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' 'b7901585'; a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' '3e544e1e'; @@ -2352,7 +2352,7 @@ group emcareconditioncollectoremcareb23de100(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE100', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '515f36ee'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE100', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '515f36ee'; } 'e9f1a397'; a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' 'b7901585'; a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' '3e544e1e'; @@ -2369,7 +2369,7 @@ group emcareconditioncollectoremcareb23de6101(source src,source item,target tgt) } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE6101', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '6a9c0b56'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE6101', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '6a9c0b56'; } '970b5053'; a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' 'b7901585'; a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' '3e544e1e'; @@ -2386,7 +2386,7 @@ group emcareconditioncollectoremcareb23de6102(source src,source item,target tgt) } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE6102', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '1522be60'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE6102', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '1522be60'; } '18159ba1'; a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' 'b7901585'; a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' '3e544e1e'; @@ -2403,7 +2403,7 @@ group emcareconditioncollectoremcareb23de6103(source src,source item,target tgt) } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE6103', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '248ab88b'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE6103', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '248ab88b'; } '9f402fa1'; a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' 'b7901585'; a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' '3e544e1e'; @@ -2420,7 +2420,7 @@ group emcareconditioncollectoremcareb23de30(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE30', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '60650f2a'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE30', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '60650f2a'; } '453d3cff'; a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' 'b7901585'; a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' '3e544e1e'; @@ -2437,7 +2437,7 @@ group emcareconditioncollectoremcareb23de31(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE31', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' 'ab1c5076'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE31', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' 'ab1c5076'; } '11935d2f'; a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' 'b7901585'; a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' '3e544e1e'; @@ -2454,7 +2454,7 @@ group emcareconditioncollectoremcareb23de32(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE32', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' 'b634fab6'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE32', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' 'b634fab6'; } '4ead4dac'; a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' 'b7901585'; a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' '3e544e1e'; @@ -2471,7 +2471,7 @@ group emcareconditioncollectoremcareb23de33(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE33', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '57e99b51'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE33', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '57e99b51'; } '82481cbe'; a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' 'b7901585'; a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' '3e544e1e'; @@ -2488,7 +2488,7 @@ group emcareconditioncollectoremcareb23de19(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE19', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '8cb2637d'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE19', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '8cb2637d'; } '69ddcad6'; a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' 'b7901585'; a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' '3e544e1e'; @@ -2505,7 +2505,7 @@ group emcareconditioncollectoremcareb23de104(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE104', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '6627d17b'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE104', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '6627d17b'; } '008eb1e8'; a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' 'b7901585'; a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' '3e544e1e'; @@ -2522,7 +2522,7 @@ group emcareconditioncollectoremcareb23de105(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE105', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' 'bfa6a728'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE105', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' 'bfa6a728'; } '503587f4'; a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' 'b7901585'; a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' '3e544e1e'; @@ -2539,7 +2539,7 @@ group emcareconditioncollectoremcareb23de27(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE27', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '10a11fd8'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE27', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '10a11fd8'; } '7e9f6c96'; a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' 'b7901585'; a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' '3e544e1e'; @@ -2556,7 +2556,7 @@ group emcareconditioncollectoremcareb23de28(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE28', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' 'bd635f9e'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE28', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' 'bd635f9e'; } 'ac92c02f'; a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' 'b7901585'; a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' '3e544e1e'; @@ -2573,7 +2573,7 @@ group emcareconditioncollectoremcareb23de29(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE29', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '59037b30'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE29', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '59037b30'; } 'cfcf61aa'; a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' 'b7901585'; a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' '3e544e1e'; @@ -2590,7 +2590,7 @@ group emcareconditioncollectoremcareb23de62(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE62', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '1d89b4e7'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE62', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '1d89b4e7'; } '7a9976ac'; a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' 'b7901585'; a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' '3e544e1e'; @@ -2607,7 +2607,7 @@ group emcareconditioncollectoremcareb23de63(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE63', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '7160c75f'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE63', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '7160c75f'; } 'f74f505b'; a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' 'b7901585'; a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' '3e544e1e'; @@ -2624,7 +2624,7 @@ group emcareconditioncollectoremcareb23de64(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE64', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' 'f6ad72a0'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE64', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' 'f6ad72a0'; } '9035e530'; a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' 'b7901585'; a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' '3e544e1e'; @@ -2641,7 +2641,7 @@ group emcareconditioncollectoremcareb23de34(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE34', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' 'e5f9a7d3'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE34', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' 'e5f9a7d3'; } 'ff3ce60d'; a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' 'b7901585'; a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' '3e544e1e'; @@ -2658,7 +2658,7 @@ group emcareconditioncollectoremcareb23de35(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE35', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '7f5b9cb3'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE35', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '7f5b9cb3'; } '30144f76'; a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' 'b7901585'; a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' '3e544e1e'; @@ -2675,7 +2675,7 @@ group emcareconditioncollectoremcareb23de41(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE41', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' 'e288c87d'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE41', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' 'e288c87d'; } '8173bdfa'; a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' 'b7901585'; a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' '3e544e1e'; @@ -2692,7 +2692,7 @@ group emcareconditioncollectoremcareb23de42(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE42', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '94e86dfd'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE42', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '94e86dfd'; } '1282d921'; a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' 'b7901585'; a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' '3e544e1e'; @@ -2709,7 +2709,7 @@ group emcareconditioncollectoremcareb23de44(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE44', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' 'e3f3e6d5'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE44', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' 'e3f3e6d5'; } 'bed4feb4'; a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' 'b7901585'; a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' '3e544e1e'; @@ -2726,7 +2726,7 @@ group emcareconditioncollectoremcareb23de45(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE45', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '606d51c8'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE45', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '606d51c8'; } '7d5d59ca'; a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' 'b7901585'; a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' '3e544e1e'; @@ -2743,7 +2743,7 @@ group emcareconditioncollectoremcareb23de47(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE47', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '6bae8d25'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE47', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '6bae8d25'; } '5e31a07c'; a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' 'b7901585'; a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' '3e544e1e'; @@ -2760,7 +2760,7 @@ group emcareconditioncollectoremcareb23de49(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE49', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' 'b581f2e7'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE49', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' 'b581f2e7'; } '1cc86632'; a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' 'b7901585'; a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' '3e544e1e'; @@ -2777,7 +2777,7 @@ group emcareconditioncollectoremcareb23de52(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE52', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' 'eb984457'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE52', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' 'eb984457'; } '124cd652'; a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' 'b7901585'; a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' '3e544e1e'; @@ -2794,7 +2794,7 @@ group emcareconditioncollectoremcareb23de53(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE53', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '0f3a6755'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE53', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '0f3a6755'; } '863552f3'; a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' 'b7901585'; a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' '3e544e1e'; @@ -2811,7 +2811,7 @@ group emcareconditioncollectoremcareb23de54(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE54', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' 'fafd5b25'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE54', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' 'fafd5b25'; } '61c9d7c8'; a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' 'b7901585'; a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' '3e544e1e'; @@ -2828,7 +2828,7 @@ group emcareconditioncollectoremcareb23de56(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE56', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '9a929971'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE56', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '9a929971'; } 'b7c8a104'; a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' 'b7901585'; a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' '3e544e1e'; @@ -2845,7 +2845,7 @@ group emcareconditioncollectoremcareb23de57(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE57', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '2c0d395c'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE57', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '2c0d395c'; } 'f04e9b50'; a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' 'b7901585'; a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' '3e544e1e'; @@ -2862,7 +2862,7 @@ group emcareconditioncollectoremcareb23de58(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE58', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' 'd913f145'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE58', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' 'd913f145'; } 'ecd18d6c'; a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' 'b7901585'; a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' '3e544e1e'; @@ -2879,7 +2879,7 @@ group emcareconditioncollectoremcareb23de59(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE59', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '8f74fb03'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE59', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '8f74fb03'; } '4cae7202'; a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' 'b7901585'; a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' '3e544e1e'; @@ -2896,7 +2896,7 @@ group emcareconditioncollectoremcareb23de61(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE61', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '9134fe36'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE61', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '9134fe36'; } '280470c5'; a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' 'b7901585'; a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' '3e544e1e'; @@ -2913,7 +2913,7 @@ group emcareconditioncollectoremcareb23de106(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE106', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '70f0a4fa'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE106', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '70f0a4fa'; } 'd8d6d130'; a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' 'b7901585'; a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' '3e544e1e'; @@ -2930,7 +2930,7 @@ group emcareconditioncollectoremcareb23de107(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE107', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '4b1b0c22'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE107', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '4b1b0c22'; } 'd096a052'; a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' 'b7901585'; a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' '3e544e1e'; @@ -2947,7 +2947,7 @@ group emcareconditioncollectoremcareb23de108(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE108', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' '3de5c106'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'EmCare.B23.DE108', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' '3de5c106'; } '58d1e9ce'; a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' 'b7901585'; a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' '3e544e1e'; @@ -2964,7 +2964,7 @@ group emcareconditioncollectorcollector(source src,source item,target tgt){ } '46018ce4'; } 'cce2a9b1'; src -> tgt.code = create('CodeableConcept') as cs then { - src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'collector', ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' 'ab5440b5'; + src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'collector', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' 'ab5440b5'; } '6fc817a4'; a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' 'b7901585'; a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code= 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' '3e544e1e'; diff --git a/input/mapping/emcare.b6.measurements.map b/input/mapping/emcare.b6.measurements.map index ac1b9b20..f3188e78 100644 --- a/input/mapping/emcare.b6.measurements.map +++ b/input/mapping/emcare.b6.measurements.map @@ -1,8 +1,8 @@ -map 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcare.b6.measurements' = 'emcare.b6.measurements' +map 'https://smart.who.int/ccc/StructureMap/emcare.b6.measurements' = 'emcare.b6.measurements' uses 'http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse' alias 'questionnaireResponse' as source uses 'http://hl7.org/fhir/StructureDefinition/Bundle' alias 'Bundle' as target -uses 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/observation' alias 'Observation' as target -uses 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation' alias 'EmCare Observation' as produced +uses 'https://smart.who.int/ccc/StructureDefinition/observation' alias 'Observation' as target +uses 'https://smart.who.int/ccc/StructureDefinition/emcareobservation' alias 'EmCare Observation' as produced group bundletrans(source src : questionnaireResponse,target bundle : Bundle){ src -> bundle.id = uuid() 'id'; src -> bundle.type = 'batch' 'type'; @@ -135,9 +135,9 @@ group emcareobservationemcareb6de01(source src,target tgt){ 'id-emcareb6de01'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B6.DE01' 'code-emcareb6de01'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -162,9 +162,9 @@ group emcareobservationemcareb6de04(source src,target tgt){ 'id-emcareb6de04'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B6.DE04' 'code-emcareb6de04'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -191,9 +191,9 @@ group emcareobservationemcareb6de05(source src,target tgt){ 'id-emcareb6de05'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B6.DE05' 'code-emcareb6de05'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -219,9 +219,9 @@ group emcareobservationemcareb6de01a(source src,target tgt){ 'id-emcareb6de01a'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B6.DE01A' 'code-emcareb6de01a'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -233,7 +233,7 @@ group emcareobservationemcareb6de01a(source src,target tgt){ src.item first as item where linkId = 'EmCare.B6.DE01A' and answer.exists() then { item.answer first as a then { a.value as val then { - val -> tgt.value = create('CodeableConcept') as cc, cc.coding = create('Coding') as c, c.code=val, c.system= 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', tgt.status = 'final' '759a9a54'; + val -> tgt.value = create('CodeableConcept') as cc, cc.coding = create('Coding') as c, c.code=val, c.system= 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', tgt.status = 'final' '759a9a54'; } '1b820ab0'; } 'd39f9088'; } 'a471ce48'; @@ -248,9 +248,9 @@ group emcareobservationemcareb6de06(source src,target tgt){ 'id-emcareb6de06'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B6.DE06' 'code-emcareb6de06'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -275,9 +275,9 @@ group emcareobservationemcareb6de08(source src,target tgt){ 'id-emcareb6de08'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B6.DE08' 'code-emcareb6de08'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -302,9 +302,9 @@ group emcareobservationemcareb6de09(source src,target tgt){ 'id-emcareb6de09'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B6.DE09' 'code-emcareb6de09'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -331,9 +331,9 @@ group emcareobservationemcareb6de11(source src,target tgt){ 'id-emcareb6de11'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B6.DE11' 'code-emcareb6de11'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -362,9 +362,9 @@ group emcareobservationemcareb6de12(source src,target tgt){ 'id-emcareb6de12'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B6.DE12' 'code-emcareb6de12'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -391,9 +391,9 @@ group emcareobservationemcareb6de16(source src,target tgt){ 'id-emcareb6de16'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B6.DE16' 'code-emcareb6de16'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -421,9 +421,9 @@ group emcareobservationemcareb6de17(source src,target tgt){ 'id-emcareb6de17'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B6.DE17' 'code-emcareb6de17'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -450,9 +450,9 @@ group emcareobservationemcareb6de17a(source src,target tgt){ 'id-emcareb6de17a'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B6.DE17a' 'code-emcareb6de17a'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -481,9 +481,9 @@ group emcareobservationemcareb6de18(source src,target tgt){ 'id-emcareb6de18'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B6.DE18' 'code-emcareb6de18'; src.item as itemtimestamp where linkId = 'timestamp' then { diff --git a/input/mapping/emcare.b7.lti-dangersigns.map b/input/mapping/emcare.b7.lti-dangersigns.map index 4d9d2699..9d1a0bef 100644 --- a/input/mapping/emcare.b7.lti-dangersigns.map +++ b/input/mapping/emcare.b7.lti-dangersigns.map @@ -1,8 +1,8 @@ -map 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcare.b7.lti-dangersigns' = 'emcare.b7.lti-dangersigns' +map 'https://smart.who.int/ccc/StructureMap/emcare.b7.lti-dangersigns' = 'emcare.b7.lti-dangersigns' uses 'http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse' alias 'questionnaireResponse' as source uses 'http://hl7.org/fhir/StructureDefinition/Bundle' alias 'Bundle' as target -uses 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/observation' alias 'Observation' as target -uses 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation' alias 'EmCare Observation' as produced +uses 'https://smart.who.int/ccc/StructureDefinition/observation' alias 'Observation' as target +uses 'https://smart.who.int/ccc/StructureDefinition/emcareobservation' alias 'EmCare Observation' as produced group bundletrans(source src : questionnaireResponse,target bundle : Bundle){ src -> bundle.id = uuid() 'id'; src -> bundle.type = 'batch' 'type'; @@ -153,9 +153,9 @@ group emcareobservationemcareb7de02(source src,target tgt){ 'id-emcareb7de02'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B7.DE02' 'code-emcareb7de02'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -181,9 +181,9 @@ group emcareobservationemcareb7b8b9de01(source src,target tgt){ 'id-emcareb7b8b9de01'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B7-B8-B9.DE01' 'code-emcareb7b8b9de01'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -211,9 +211,9 @@ group emcareobservationemcareb7de03(source src,target tgt){ 'id-emcareb7de03'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B7.DE03' 'code-emcareb7de03'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -241,9 +241,9 @@ group emcareobservationemcareb7de08b(source src,target tgt){ 'id-emcareb7de08b'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B7.DE08b' 'code-emcareb7de08b'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -271,9 +271,9 @@ group emcareobservationemcareb7de08(source src,target tgt){ 'id-emcareb7de08'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B7.DE08' 'code-emcareb7de08'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -301,9 +301,9 @@ group emcareobservationemcareb7de08a(source src,target tgt){ 'id-emcareb7de08a'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B7.DE08a' 'code-emcareb7de08a'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -331,9 +331,9 @@ group emcareobservationemcareb7de09(source src,target tgt){ 'id-emcareb7de09'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B7.DE09' 'code-emcareb7de09'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -361,9 +361,9 @@ group emcareobservationemcareb7de10(source src,target tgt){ 'id-emcareb7de10'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B7.DE10' 'code-emcareb7de10'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -391,9 +391,9 @@ group emcareobservationemcareb22de08(source src,target tgt){ 'id-emcareb22de08'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE08' 'code-emcareb22de08'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -425,9 +425,9 @@ group emcareobservationemcareb22de14(source src,target tgt){ 'id-emcareb22de14'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE14' 'code-emcareb22de14'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -458,9 +458,9 @@ group emcareobservationemcareb22de14a(source src,target tgt){ 'id-emcareb22de14a'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE14a' 'code-emcareb22de14a'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -490,9 +490,9 @@ group emcareobservationemcareb22de15(source src,target tgt){ 'id-emcareb22de15'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE15' 'code-emcareb22de15'; src.item as itemtimestamp where linkId = 'timestamp' then { @@ -522,9 +522,9 @@ group emcareobservationemcareb22de16(source src,target tgt){ 'id-emcareb22de16'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE16' 'code-emcareb22de16'; src.item as itemtimestamp where linkId = 'timestamp' then { diff --git a/input/mapping/emcare.treatment.map b/input/mapping/emcare.treatment.map index c4fd0ddf..873635ee 100644 --- a/input/mapping/emcare.treatment.map +++ b/input/mapping/emcare.treatment.map @@ -1,4 +1,4 @@ -map 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcare.treatment' = 'emcare.treatment' +map 'https://smart.who.int/ccc/StructureMap/emcare.treatment' = 'emcare.treatment' uses 'http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse' alias 'questionnaireResponse' as source uses 'http://hl7.org/fhir/StructureDefinition/Bundle' alias 'Bundle' as target group bundletrans(source src : questionnaireResponse,target bundle : Bundle){ diff --git a/input/mapping/emcarea.registration.p.map b/input/mapping/emcarea.registration.p.map index 5f941f5a..b3871bc4 100644 --- a/input/mapping/emcarea.registration.p.map +++ b/input/mapping/emcarea.registration.p.map @@ -1,12 +1,12 @@ -map 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcarea.registration.p' = 'emcarea.registration.p' +map 'https://smart.who.int/ccc/StructureMap/emcarea.registration.p' = 'emcarea.registration.p' uses 'http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse' alias 'questionnaireResponse' as source uses 'http://hl7.org/fhir/StructureDefinition/Bundle' alias 'Bundle' as target -uses 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/patient' alias 'Patient' as target -uses 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/relatedperson' alias 'RelatedPerson' as target -uses 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/communicationrequest' alias 'CommunicationRequest' as target -uses 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcarepatient' alias 'EmCare Patient' as produced -uses 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/relatedperson' alias 'RelatedPerson' as produced -uses 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/communicationrequest' alias 'CommunicationRequest' as produced +uses 'https://smart.who.int/ccc/StructureDefinition/patient' alias 'Patient' as target +uses 'https://smart.who.int/ccc/StructureDefinition/relatedperson' alias 'RelatedPerson' as target +uses 'https://smart.who.int/ccc/StructureDefinition/communicationrequest' alias 'CommunicationRequest' as target +uses 'https://smart.who.int/ccc/StructureDefinition/emcarepatient' alias 'EmCare Patient' as produced +uses 'https://smart.who.int/ccc/StructureDefinition/relatedperson' alias 'RelatedPerson' as produced +uses 'https://smart.who.int/ccc/StructureDefinition/communicationrequest' alias 'CommunicationRequest' as produced group bundletrans(source src : questionnaireResponse,target bundle : Bundle){ src -> bundle.id = uuid() 'id'; src -> bundle.type = 'batch' 'type'; @@ -79,14 +79,14 @@ group emcarepatient(source src : questionnaireResponse,target tgt : Patient){ } 'aemcareade01'; } 'c243b020'; src.item first as item where linkId = 'EmCare.A.DE03' and answer.exists() then { - item.answer first as a -> tgt.extension = create('Extension') as ext , ext.url ='https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/anonymous', ext.value = true 'aemcareade03'; + item.answer first as a -> tgt.extension = create('Extension') as ext , ext.url ='https://smart.who.int/ccc/StructureDefinition/anonymous', ext.value = true 'aemcareade03'; } '54d12495'; src.item first as item where linkId = 'EmCare.A.DE06' or linkId= 'EmCare.A.DE04' or linkId= 'EmCare.A.DE05' and answer.exists() then { src -> tgt as target, target.name as name then SetOfficalGivenNameemcarepatient(src, name) '30643049'; } '7483ae2e'; src.item first as item where linkId = 'EmCare.A.DE12' and answer.exists() then { item.answer first as a then { - a.value as val -> tgt.extension = create('Extension') as ext , ext.url ='https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/birthDateEstimator', ext.value = val 'aemcareade12'; + a.value as val -> tgt.extension = create('Extension') as ext , ext.url ='https://smart.who.int/ccc/StructureDefinition/birthDateEstimator', ext.value = val 'aemcareade12'; } 'aemcareade12'; } 'c05cf203'; src.item first as item where linkId = 'EmCare.A.DE08' and answer.exists() then { @@ -98,19 +98,19 @@ group emcarepatient(source src : questionnaireResponse,target tgt : Patient){ item.answer first as a then MapValueSetExtCodeemcareade16(a, tgt) '225baa79'; } 'bf4b35f0'; src.item first as item where linkId = 'EmCare.A.DE48' and answer.exists() then { - item.answer first as a -> tgt.extension = create('Extension') as ext , ext.url ='https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/primarycaregiver', ext.value= create('Reference') as ref, ref.reference = 'relatated-person-id' 'aemcareade48'; + item.answer first as a -> tgt.extension = create('Extension') as ext , ext.url ='https://smart.who.int/ccc/StructureDefinition/primarycaregiver', ext.value= create('Reference') as ref, ref.reference = 'relatated-person-id' 'aemcareade48'; } '04772b09'; src.item first as itm1 where linkId = 'EmCare.A.DE21.1' then { itm1.item first as item where linkId = 'EmCare.A.DE31' and answer.exists() then { item.answer first as a then { - a.value as val -> tgt.extension = create('Extension') as ext , ext.url ='https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Extension/motherVitalStatus', ext.value= val 'aemcareade31'; + a.value as val -> tgt.extension = create('Extension') as ext , ext.url ='https://smart.who.int/ccc/Extension/motherVitalStatus', ext.value= val 'aemcareade31'; } 'aemcareade31'; } '7f408694'; } '39f45e5d'; src.item first as itm1 where linkId = 'EmCare.A.DE21.1' then { itm1.item first as item where linkId = 'EmCare.A.DE32' and answer.exists() then { item.answer first as a then { - a.value as val -> tgt.extension = create('Extension') as ext , ext.url ='https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Extension/fatherVitalStatus', ext.value= val 'aemcareade32'; + a.value as val -> tgt.extension = create('Extension') as ext , ext.url ='https://smart.who.int/ccc/Extension/fatherVitalStatus', ext.value= val 'aemcareade32'; } 'aemcareade32'; } '06ec2524'; } 'f7424037'; @@ -158,7 +158,7 @@ group MapValueSetExtCodeemcareade24(source src,target tgt){ group relatedperson(source src : questionnaireResponse,target tgt : RelatedPerson){ src.item first as item where linkId = 'emcarerelatedpersoncaregiverid' and answer.exists() then { item.answer first as a then { - a.value as val -> tgt.extension = create('Extension') as ext , ext.url ='https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/primary-caregiver', ext.value= create('Reference') as ref, ref.reference = append('/RelatedPerson/',val) 'aemcarerelatedpersoncaregiverid'; + a.value as val -> tgt.extension = create('Extension') as ext , ext.url ='https://smart.who.int/ccc/StructureDefinition/primary-caregiver', ext.value= create('Reference') as ref, ref.reference = append('/RelatedPerson/',val) 'aemcarerelatedpersoncaregiverid'; } 'aemcarerelatedpersoncaregiverid'; } '04cd0ec2'; src.item first as itm1 where linkId = 'EmCare.A.DE21.1' then { diff --git a/input/mapping/emcareb.registration.e.map b/input/mapping/emcareb.registration.e.map index 8dc04344..6407ba1e 100644 --- a/input/mapping/emcareb.registration.e.map +++ b/input/mapping/emcareb.registration.e.map @@ -1,10 +1,10 @@ -map 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcareb.registration.e' = 'emcareb.registration.e' +map 'https://smart.who.int/ccc/StructureMap/emcareb.registration.e' = 'emcareb.registration.e' uses 'http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse' alias 'questionnaireResponse' as source uses 'http://hl7.org/fhir/StructureDefinition/Bundle' alias 'Bundle' as target -uses 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/encounter' alias 'Encounter' as target -uses 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/observation' alias 'Observation' as target -uses 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareencounter' alias 'EmCare Encounter' as produced -uses 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation' alias 'EmCare Observation' as produced +uses 'https://smart.who.int/ccc/StructureDefinition/encounter' alias 'Encounter' as target +uses 'https://smart.who.int/ccc/StructureDefinition/observation' alias 'Observation' as target +uses 'https://smart.who.int/ccc/StructureDefinition/emcareencounter' alias 'EmCare Encounter' as produced +uses 'https://smart.who.int/ccc/StructureDefinition/emcareobservation' alias 'EmCare Observation' as produced group bundletrans(source src : questionnaireResponse,target bundle : Bundle){ src -> bundle.id = uuid() 'id'; src -> bundle.type = 'batch' 'type'; @@ -49,9 +49,9 @@ group emcareobservationemcareb3de05(source src,target tgt){ 'id-emcareb3de05'; src.encounter as encounter -> tgt.encounter = encounter '35bc6b82'; src.subject as subject -> tgt.subject = subject, - tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation', + tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, - coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes', + coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B3.DE05' 'code-emcareb3de05'; src.item as itemtimestamp where linkId = 'timestamp' then { diff --git a/input/profiles/profiles-emcare-communicationrequest.json b/input/profiles/profiles-emcare-communicationrequest.json index ec877ebb..2a1a1ca0 100644 --- a/input/profiles/profiles-emcare-communicationrequest.json +++ b/input/profiles/profiles-emcare-communicationrequest.json @@ -1,7 +1,7 @@ { "resourceType": "StructureDefinition", "id": "emcare-communicationrequest", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcare-communicationrequest", + "url": "https://smart.who.int/ccc/StructureDefinition/emcare-communicationrequest", "name": "EmCare CommunicationRequest", "title": "EmCare CommunicationRequest", "status": "active", diff --git a/input/profiles/profiles-emcare-condition.json b/input/profiles/profiles-emcare-condition.json index 3e32c57c..88b21922 100644 --- a/input/profiles/profiles-emcare-condition.json +++ b/input/profiles/profiles-emcare-condition.json @@ -1,7 +1,7 @@ { "resourceType": "StructureDefinition", "id": "emcare-condition", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcare-condition", + "url": "https://smart.who.int/ccc/StructureDefinition/emcare-condition", "name": "EmCare Condition", "title": "EmCare Condition", "status": "active", diff --git a/input/profiles/profiles-emcare-encounter.json b/input/profiles/profiles-emcare-encounter.json index 9918845e..cdbbcb20 100644 --- a/input/profiles/profiles-emcare-encounter.json +++ b/input/profiles/profiles-emcare-encounter.json @@ -1,7 +1,7 @@ { "resourceType": "StructureDefinition", "id": "emcare-encounter", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcare-encounter", + "url": "https://smart.who.int/ccc/StructureDefinition/emcare-encounter", "name": "EmCare Encounter", "title": "EmCare Encounter", "status": "active", diff --git a/input/profiles/profiles-emcare-patient.json b/input/profiles/profiles-emcare-patient.json index 5ec98109..8ddeac00 100644 --- a/input/profiles/profiles-emcare-patient.json +++ b/input/profiles/profiles-emcare-patient.json @@ -1,7 +1,7 @@ { "resourceType": "StructureDefinition", "id": "emcare-patient", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcare-patient", + "url": "https://smart.who.int/ccc/StructureDefinition/emcare-patient", "name": "EmCare Patient", "title": "EmCare Patient", "status": "active", @@ -40,7 +40,7 @@ ], "binding": { "strength": "required", - "valueSet": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ValueSet/dob-estimator" + "valueSet": "https://smart.who.int/ccc/ValueSet/dob-estimator" } }, { @@ -53,7 +53,7 @@ { "code": "Reference", "profile": [ - "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcare-relatedperson" + "https://smart.who.int/ccc/StructureDefinition/emcare-relatedperson" ] } ] @@ -71,7 +71,7 @@ ], "binding": { "strength": "required", - "valueSet": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ValueSet/vital-status" + "valueSet": "https://smart.who.int/ccc/ValueSet/vital-status" } }, { @@ -87,7 +87,7 @@ ], "binding": { "strength": "required", - "valueSet": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ValueSet/vital-status" + "valueSet": "https://smart.who.int/ccc/ValueSet/vital-status" } }, { diff --git a/input/profiles/profiles-emcare-relatedperson.json b/input/profiles/profiles-emcare-relatedperson.json index 979f1366..72947f45 100644 --- a/input/profiles/profiles-emcare-relatedperson.json +++ b/input/profiles/profiles-emcare-relatedperson.json @@ -1,7 +1,7 @@ { "resourceType": "StructureDefinition", "id": "emcare-relatedperson", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcare-relatedperson", + "url": "https://smart.who.int/ccc/StructureDefinition/emcare-relatedperson", "name": "EmCare RelatedPerson", "title": "EmCare RelatedPerson", "status": "active", diff --git a/input/resources/activitydefinition/activitydefinition-emcare.b10-14.symptoms.2m.p.json b/input/resources/activitydefinition/activitydefinition-emcare.b10-14.symptoms.2m.p.json index 12584856..cadfb312 100644 --- a/input/resources/activitydefinition/activitydefinition-emcare.b10-14.symptoms.2m.p.json +++ b/input/resources/activitydefinition/activitydefinition-emcare.b10-14.symptoms.2m.p.json @@ -20,10 +20,10 @@ }, { "url": "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-collectWith", - "valueCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Questionnaire/emcare.b10-14.symptoms.2m.p" + "valueCanonical": "https://smart.who.int/ccc/Questionnaire/emcare.b10-14.symptoms.2m.p" } ], - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ActivityDefinition/emcare.b10-14.symptoms.2m.p", + "url": "https://smart.who.int/ccc/ActivityDefinition/emcare.b10-14.symptoms.2m.p", "status": "active", "experimental": false, "useContext": [ diff --git a/input/resources/activitydefinition/activitydefinition-emcare.b10-16.signs.2m.p.json b/input/resources/activitydefinition/activitydefinition-emcare.b10-16.signs.2m.p.json index ed0b94f9..d8b1953d 100644 --- a/input/resources/activitydefinition/activitydefinition-emcare.b10-16.signs.2m.p.json +++ b/input/resources/activitydefinition/activitydefinition-emcare.b10-16.signs.2m.p.json @@ -20,10 +20,10 @@ }, { "url": "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-collectWith", - "valueCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Questionnaire/emcare.b10-16.signs.2m.p" + "valueCanonical": "https://smart.who.int/ccc/Questionnaire/emcare.b10-16.signs.2m.p" } ], - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ActivityDefinition/emcare.b10-16.signs.2m.p", + "url": "https://smart.who.int/ccc/ActivityDefinition/emcare.b10-16.signs.2m.p", "status": "active", "experimental": false, "useContext": [ diff --git a/input/resources/activitydefinition/activitydefinition-emcare.b18-21.signs.2m.m.json b/input/resources/activitydefinition/activitydefinition-emcare.b18-21.signs.2m.m.json index 0d38d74b..260e9bad 100644 --- a/input/resources/activitydefinition/activitydefinition-emcare.b18-21.signs.2m.m.json +++ b/input/resources/activitydefinition/activitydefinition-emcare.b18-21.signs.2m.m.json @@ -20,10 +20,10 @@ }, { "url": "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-collectWith", - "valueCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Questionnaire/emcare.b18-21.signs.2m.m" + "valueCanonical": "https://smart.who.int/ccc/Questionnaire/emcare.b18-21.signs.2m.m" } ], - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ActivityDefinition/emcare.b18-21.signs.2m.m", + "url": "https://smart.who.int/ccc/ActivityDefinition/emcare.b18-21.signs.2m.m", "status": "active", "experimental": false, "useContext": [ diff --git a/input/resources/activitydefinition/activitydefinition-emcare.b18-21.symptoms.2m.m.json b/input/resources/activitydefinition/activitydefinition-emcare.b18-21.symptoms.2m.m.json index fb963ccf..07e63c6b 100644 --- a/input/resources/activitydefinition/activitydefinition-emcare.b18-21.symptoms.2m.m.json +++ b/input/resources/activitydefinition/activitydefinition-emcare.b18-21.symptoms.2m.m.json @@ -20,10 +20,10 @@ }, { "url": "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-collectWith", - "valueCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Questionnaire/emcare.b18-21.symptoms.2m.m" + "valueCanonical": "https://smart.who.int/ccc/Questionnaire/emcare.b18-21.symptoms.2m.m" } ], - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ActivityDefinition/emcare.b18-21.symptoms.2m.m", + "url": "https://smart.who.int/ccc/ActivityDefinition/emcare.b18-21.symptoms.2m.m", "status": "active", "experimental": false, "useContext": [ diff --git a/input/resources/activitydefinition/activitydefinition-emcare.b22.assessmentstests.json b/input/resources/activitydefinition/activitydefinition-emcare.b22.assessmentstests.json index 1ed147e4..000fb02c 100644 --- a/input/resources/activitydefinition/activitydefinition-emcare.b22.assessmentstests.json +++ b/input/resources/activitydefinition/activitydefinition-emcare.b22.assessmentstests.json @@ -20,10 +20,10 @@ }, { "url": "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-collectWith", - "valueCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Questionnaire/emcare.b22.assessmentstests" + "valueCanonical": "https://smart.who.int/ccc/Questionnaire/emcare.b22.assessmentstests" } ], - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ActivityDefinition/emcare.b22.assessmentstests", + "url": "https://smart.who.int/ccc/ActivityDefinition/emcare.b22.assessmentstests", "status": "active", "experimental": false, "useContext": [ diff --git a/input/resources/activitydefinition/activitydefinition-emcare.b22.breastfeeding.json b/input/resources/activitydefinition/activitydefinition-emcare.b22.breastfeeding.json index b9da71e2..cfbcdc4c 100644 --- a/input/resources/activitydefinition/activitydefinition-emcare.b22.breastfeeding.json +++ b/input/resources/activitydefinition/activitydefinition-emcare.b22.breastfeeding.json @@ -20,10 +20,10 @@ }, { "url": "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-collectWith", - "valueCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Questionnaire/emcare.b22.breastfeeding" + "valueCanonical": "https://smart.who.int/ccc/Questionnaire/emcare.b22.breastfeeding" } ], - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ActivityDefinition/emcare.b22.breastfeeding", + "url": "https://smart.who.int/ccc/ActivityDefinition/emcare.b22.breastfeeding", "status": "active", "experimental": false, "useContext": [ diff --git a/input/resources/activitydefinition/activitydefinition-emcare.b22.bronchodilatortest.json b/input/resources/activitydefinition/activitydefinition-emcare.b22.bronchodilatortest.json index 2fc2822a..c2d1b35e 100644 --- a/input/resources/activitydefinition/activitydefinition-emcare.b22.bronchodilatortest.json +++ b/input/resources/activitydefinition/activitydefinition-emcare.b22.bronchodilatortest.json @@ -20,10 +20,10 @@ }, { "url": "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-collectWith", - "valueCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Questionnaire/emcare.b22.bronchodilatortest" + "valueCanonical": "https://smart.who.int/ccc/Questionnaire/emcare.b22.bronchodilatortest" } ], - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ActivityDefinition/emcare.b22.bronchodilatortest", + "url": "https://smart.who.int/ccc/ActivityDefinition/emcare.b22.bronchodilatortest", "status": "active", "experimental": false, "useContext": [ diff --git a/input/resources/activitydefinition/activitydefinition-emcare.b22.fluidtest.json b/input/resources/activitydefinition/activitydefinition-emcare.b22.fluidtest.json index 1e5fb66b..26afd3d6 100644 --- a/input/resources/activitydefinition/activitydefinition-emcare.b22.fluidtest.json +++ b/input/resources/activitydefinition/activitydefinition-emcare.b22.fluidtest.json @@ -20,10 +20,10 @@ }, { "url": "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-collectWith", - "valueCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Questionnaire/emcare.b22.fluidtest" + "valueCanonical": "https://smart.who.int/ccc/Questionnaire/emcare.b22.fluidtest" } ], - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ActivityDefinition/emcare.b22.fluidtest", + "url": "https://smart.who.int/ccc/ActivityDefinition/emcare.b22.fluidtest", "status": "active", "experimental": false, "useContext": [ diff --git a/input/resources/activitydefinition/activitydefinition-emcare.b22.hemoglobin.json b/input/resources/activitydefinition/activitydefinition-emcare.b22.hemoglobin.json index c6764158..780d9603 100644 --- a/input/resources/activitydefinition/activitydefinition-emcare.b22.hemoglobin.json +++ b/input/resources/activitydefinition/activitydefinition-emcare.b22.hemoglobin.json @@ -20,10 +20,10 @@ }, { "url": "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-collectWith", - "valueCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Questionnaire/emcare.b22.hemoglobin" + "valueCanonical": "https://smart.who.int/ccc/Questionnaire/emcare.b22.hemoglobin" } ], - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ActivityDefinition/emcare.b22.hemoglobin", + "url": "https://smart.who.int/ccc/ActivityDefinition/emcare.b22.hemoglobin", "status": "active", "experimental": false, "useContext": [ diff --git a/input/resources/activitydefinition/activitydefinition-emcare.b22.respiratoryrate.json b/input/resources/activitydefinition/activitydefinition-emcare.b22.respiratoryrate.json index d3ec8f99..f0a0fe95 100644 --- a/input/resources/activitydefinition/activitydefinition-emcare.b22.respiratoryrate.json +++ b/input/resources/activitydefinition/activitydefinition-emcare.b22.respiratoryrate.json @@ -20,10 +20,10 @@ }, { "url": "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-collectWith", - "valueCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Questionnaire/emcare.b22.respiratoryrate" + "valueCanonical": "https://smart.who.int/ccc/Questionnaire/emcare.b22.respiratoryrate" } ], - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ActivityDefinition/emcare.b22.respiratoryrate", + "url": "https://smart.who.int/ccc/ActivityDefinition/emcare.b22.respiratoryrate", "status": "active", "experimental": false, "useContext": [ diff --git a/input/resources/activitydefinition/activitydefinition-emcare.b22.secondtemperature.json b/input/resources/activitydefinition/activitydefinition-emcare.b22.secondtemperature.json index 8c1091c7..7ec4dc70 100644 --- a/input/resources/activitydefinition/activitydefinition-emcare.b22.secondtemperature.json +++ b/input/resources/activitydefinition/activitydefinition-emcare.b22.secondtemperature.json @@ -20,10 +20,10 @@ }, { "url": "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-collectWith", - "valueCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Questionnaire/emcare.b22.secondtemperature" + "valueCanonical": "https://smart.who.int/ccc/Questionnaire/emcare.b22.secondtemperature" } ], - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ActivityDefinition/emcare.b22.secondtemperature", + "url": "https://smart.who.int/ccc/ActivityDefinition/emcare.b22.secondtemperature", "status": "active", "experimental": false, "useContext": [ diff --git a/input/resources/activitydefinition/activitydefinition-emcare.b23.classification.json b/input/resources/activitydefinition/activitydefinition-emcare.b23.classification.json index 3add5d4d..dba809d0 100644 --- a/input/resources/activitydefinition/activitydefinition-emcare.b23.classification.json +++ b/input/resources/activitydefinition/activitydefinition-emcare.b23.classification.json @@ -20,10 +20,10 @@ }, { "url": "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-collectWith", - "valueCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Questionnaire/emcare.b23.classification" + "valueCanonical": "https://smart.who.int/ccc/Questionnaire/emcare.b23.classification" } ], - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ActivityDefinition/emcare.b23.classification", + "url": "https://smart.who.int/ccc/ActivityDefinition/emcare.b23.classification", "status": "active", "experimental": false, "useContext": [ diff --git a/input/resources/activitydefinition/activitydefinition-emcare.b23.classification.m.json b/input/resources/activitydefinition/activitydefinition-emcare.b23.classification.m.json index cc5b8627..3d3854a1 100644 --- a/input/resources/activitydefinition/activitydefinition-emcare.b23.classification.m.json +++ b/input/resources/activitydefinition/activitydefinition-emcare.b23.classification.m.json @@ -20,10 +20,10 @@ }, { "url": "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-collectWith", - "valueCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Questionnaire/emcare.b23.classification.m" + "valueCanonical": "https://smart.who.int/ccc/Questionnaire/emcare.b23.classification.m" } ], - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ActivityDefinition/emcare.b23.classification.m", + "url": "https://smart.who.int/ccc/ActivityDefinition/emcare.b23.classification.m", "status": "active", "experimental": false, "useContext": [ diff --git a/input/resources/activitydefinition/activitydefinition-emcare.b6.measurements.json b/input/resources/activitydefinition/activitydefinition-emcare.b6.measurements.json index 4ec91993..67d49753 100644 --- a/input/resources/activitydefinition/activitydefinition-emcare.b6.measurements.json +++ b/input/resources/activitydefinition/activitydefinition-emcare.b6.measurements.json @@ -20,10 +20,10 @@ }, { "url": "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-collectWith", - "valueCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Questionnaire/emcare.b6.measurements" + "valueCanonical": "https://smart.who.int/ccc/Questionnaire/emcare.b6.measurements" } ], - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ActivityDefinition/emcare.b6.measurements", + "url": "https://smart.who.int/ccc/ActivityDefinition/emcare.b6.measurements", "status": "active", "experimental": false, "useContext": [ diff --git a/input/resources/activitydefinition/activitydefinition-emcare.b7.lti-dangersigns.json b/input/resources/activitydefinition/activitydefinition-emcare.b7.lti-dangersigns.json index 8b42bde5..d06f2f68 100644 --- a/input/resources/activitydefinition/activitydefinition-emcare.b7.lti-dangersigns.json +++ b/input/resources/activitydefinition/activitydefinition-emcare.b7.lti-dangersigns.json @@ -20,10 +20,10 @@ }, { "url": "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-collectWith", - "valueCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Questionnaire/emcare.b7.lti-dangersigns" + "valueCanonical": "https://smart.who.int/ccc/Questionnaire/emcare.b7.lti-dangersigns" } ], - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ActivityDefinition/emcare.b7.lti-dangersigns", + "url": "https://smart.who.int/ccc/ActivityDefinition/emcare.b7.lti-dangersigns", "status": "active", "experimental": false, "useContext": [ diff --git a/input/resources/activitydefinition/activitydefinition-emcare.treatment.json b/input/resources/activitydefinition/activitydefinition-emcare.treatment.json index ab2003f4..d1fe9617 100644 --- a/input/resources/activitydefinition/activitydefinition-emcare.treatment.json +++ b/input/resources/activitydefinition/activitydefinition-emcare.treatment.json @@ -20,10 +20,10 @@ }, { "url": "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-collectWith", - "valueCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Questionnaire/emcare.treatment" + "valueCanonical": "https://smart.who.int/ccc/Questionnaire/emcare.treatment" } ], - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ActivityDefinition/emcare.treatment", + "url": "https://smart.who.int/ccc/ActivityDefinition/emcare.treatment", "status": "active", "experimental": false, "useContext": [ diff --git a/input/resources/activitydefinition/activitydefinition-emcarea.registration.p.json b/input/resources/activitydefinition/activitydefinition-emcarea.registration.p.json index 2cfb2364..7dcce4cb 100644 --- a/input/resources/activitydefinition/activitydefinition-emcarea.registration.p.json +++ b/input/resources/activitydefinition/activitydefinition-emcarea.registration.p.json @@ -20,10 +20,10 @@ }, { "url": "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-collectWith", - "valueCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Questionnaire/emcarea.registration.p" + "valueCanonical": "https://smart.who.int/ccc/Questionnaire/emcarea.registration.p" } ], - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ActivityDefinition/emcarea.registration.p", + "url": "https://smart.who.int/ccc/ActivityDefinition/emcarea.registration.p", "status": "active", "experimental": false, "useContext": [ diff --git a/input/resources/activitydefinition/activitydefinition-emcareb.registration.e.json b/input/resources/activitydefinition/activitydefinition-emcareb.registration.e.json index c5b71695..435220ec 100644 --- a/input/resources/activitydefinition/activitydefinition-emcareb.registration.e.json +++ b/input/resources/activitydefinition/activitydefinition-emcareb.registration.e.json @@ -20,10 +20,10 @@ }, { "url": "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-collectWith", - "valueCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Questionnaire/emcareb.registration.e" + "valueCanonical": "https://smart.who.int/ccc/Questionnaire/emcareb.registration.e" } ], - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ActivityDefinition/emcareb.registration.e", + "url": "https://smart.who.int/ccc/ActivityDefinition/emcareb.registration.e", "status": "active", "experimental": false, "useContext": [ diff --git a/input/resources/extensions/structuredefinition-anonymous.json b/input/resources/extensions/structuredefinition-anonymous.json index 6d1ac084..206f272b 100644 --- a/input/resources/extensions/structuredefinition-anonymous.json +++ b/input/resources/extensions/structuredefinition-anonymous.json @@ -1,7 +1,7 @@ { "resourceType": "StructureDefinition", "id": "anonymous", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/anonymous", + "url": "https://smart.who.int/ccc/StructureDefinition/anonymous", "version": "4.0.1", "name": "structuredefinition-anonymous", "status": "draft", @@ -37,7 +37,7 @@ { "id": "Extension.url", "path": "Extension.url", - "fixedUri": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/anonymous" + "fixedUri": "https://smart.who.int/ccc/StructureDefinition/anonymous" }, { "id": "Extension.value", diff --git a/input/resources/extensions/structuredefinition-birthdateestimator.json b/input/resources/extensions/structuredefinition-birthdateestimator.json index 3a972711..6a06695f 100644 --- a/input/resources/extensions/structuredefinition-birthdateestimator.json +++ b/input/resources/extensions/structuredefinition-birthdateestimator.json @@ -1,7 +1,7 @@ { "resourceType": "StructureDefinition", "id": "birthdateestimator", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/birthdateestimator", + "url": "https://smart.who.int/ccc/StructureDefinition/birthdateestimator", "version": "4.0.1", "name": "structuredefinition-birthdateestimator", "status": "draft", @@ -37,7 +37,7 @@ { "id": "Extension.url", "path": "Extension.url", - "fixedUri": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/birthdateestimator" + "fixedUri": "https://smart.who.int/ccc/StructureDefinition/birthdateestimator" }, { "id": "Extension.value", diff --git a/input/resources/extensions/structuredefinition-fathervitalstatus.json b/input/resources/extensions/structuredefinition-fathervitalstatus.json index e01995b9..e6c71329 100644 --- a/input/resources/extensions/structuredefinition-fathervitalstatus.json +++ b/input/resources/extensions/structuredefinition-fathervitalstatus.json @@ -1,7 +1,7 @@ { "resourceType": "StructureDefinition", "id": "fathervitalstatus", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/fathervitalstatus", + "url": "https://smart.who.int/ccc/StructureDefinition/fathervitalstatus", "version": "4.0.1", "name": "structuredefinition-fathervitalstatus", "status": "draft", @@ -37,7 +37,7 @@ { "id": "Extension.url", "path": "Extension.url", - "fixedUri": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/fathervitalstatus" + "fixedUri": "https://smart.who.int/ccc/StructureDefinition/fathervitalstatus" }, { "id": "Extension.value", diff --git a/input/resources/extensions/structuredefinition-mothervitalstatus.json b/input/resources/extensions/structuredefinition-mothervitalstatus.json index 23cb9ac3..846750c5 100644 --- a/input/resources/extensions/structuredefinition-mothervitalstatus.json +++ b/input/resources/extensions/structuredefinition-mothervitalstatus.json @@ -1,7 +1,7 @@ { "resourceType": "StructureDefinition", "id": "mothervitalstatus", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/mothervitalstatus", + "url": "https://smart.who.int/ccc/StructureDefinition/mothervitalstatus", "version": "4.0.1", "name": "structuredefinition-mothervitalstatus", "status": "draft", @@ -37,7 +37,7 @@ { "id": "Extension.url", "path": "Extension.url", - "fixedUri": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/mothervitalstatus" + "fixedUri": "https://smart.who.int/ccc/StructureDefinition/mothervitalstatus" }, { "id": "Extension.value", diff --git a/input/resources/extensions/structuredefinition-postcoordination.json b/input/resources/extensions/structuredefinition-postcoordination.json index 8b6fd9aa..c3e55207 100644 --- a/input/resources/extensions/structuredefinition-postcoordination.json +++ b/input/resources/extensions/structuredefinition-postcoordination.json @@ -1,7 +1,7 @@ { "resourceType": "StructureDefinition", "id": "postcoordination", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/postcoordination", + "url": "https://smart.who.int/ccc/StructureDefinition/postcoordination", "version": "4.0.1", "name": "structuredefinition-postcoordination", "status": "draft", @@ -36,7 +36,7 @@ { "id": "Extension.url", "path": "Extension.url", - "fixedUri": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/postcoordination" + "fixedUri": "https://smart.who.int/ccc/StructureDefinition/postcoordination" }, { "id": "Extension.value", diff --git a/input/resources/extensions/structuredefinition-primarycaregiver.json b/input/resources/extensions/structuredefinition-primarycaregiver.json index efa28b8e..358ff0a3 100644 --- a/input/resources/extensions/structuredefinition-primarycaregiver.json +++ b/input/resources/extensions/structuredefinition-primarycaregiver.json @@ -1,7 +1,7 @@ { "resourceType": "StructureDefinition", "id": "primarycaregiver", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/primarycaregiver", + "url": "https://smart.who.int/ccc/StructureDefinition/primarycaregiver", "version": "4.0.1", "name": "structuredefinition-primarycaregiver", "status": "draft", @@ -37,7 +37,7 @@ { "id": "Extension.url", "path": "Extension.url", - "fixedUri": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/primarycaregiver" + "fixedUri": "https://smart.who.int/ccc/StructureDefinition/primarycaregiver" }, { "id": "Extension.value", diff --git a/input/resources/extensions/structuredefinition-smsnotifications.json b/input/resources/extensions/structuredefinition-smsnotifications.json index 3ebf82df..382b75da 100644 --- a/input/resources/extensions/structuredefinition-smsnotifications.json +++ b/input/resources/extensions/structuredefinition-smsnotifications.json @@ -1,7 +1,7 @@ { "resourceType": "StructureDefinition", "id": "smsnotifications", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/smsnotifications", + "url": "https://smart.who.int/ccc/StructureDefinition/smsnotifications", "version": "4.0.1", "name": "structuredefinition-smsnotifications", "status": "draft", @@ -37,7 +37,7 @@ { "id": "Extension.url", "path": "Extension.url", - "fixedUri": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/smsnotifications" + "fixedUri": "https://smart.who.int/ccc/StructureDefinition/smsnotifications" }, { "id": "Extension.value", diff --git a/input/resources/library/library-emcare.b10-14.symptoms.2m.p.json b/input/resources/library/library-emcare.b10-14.symptoms.2m.p.json index 506e2cae..251fcb2c 100644 --- a/input/resources/library/library-emcare.b10-14.symptoms.2m.p.json +++ b/input/resources/library/library-emcare.b10-14.symptoms.2m.p.json @@ -1,7 +1,7 @@ { "resourceType": "Library", "id": "emcareb1014symptoms2mp", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/emcareb1014symptoms2mp", + "url": "https://smart.who.int/ccc/Library/emcareb1014symptoms2mp", "identifier": [ { "use": "official", diff --git a/input/resources/library/library-emcare.b10-16.signs.2m.p.json b/input/resources/library/library-emcare.b10-16.signs.2m.p.json index 98e57673..92667c38 100644 --- a/input/resources/library/library-emcare.b10-16.signs.2m.p.json +++ b/input/resources/library/library-emcare.b10-16.signs.2m.p.json @@ -1,7 +1,7 @@ { "resourceType": "Library", "id": "emcareb1016signs2mp", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/emcareb1016signs2mp", + "url": "https://smart.who.int/ccc/Library/emcareb1016signs2mp", "identifier": [ { "use": "official", diff --git a/input/resources/library/library-emcare.b18-21.signs.2m.m.json b/input/resources/library/library-emcare.b18-21.signs.2m.m.json index 287c74a2..d8eceaf5 100644 --- a/input/resources/library/library-emcare.b18-21.signs.2m.m.json +++ b/input/resources/library/library-emcare.b18-21.signs.2m.m.json @@ -1,7 +1,7 @@ { "resourceType": "Library", "id": "emcareb1821signs2mm", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/emcareb1821signs2mm", + "url": "https://smart.who.int/ccc/Library/emcareb1821signs2mm", "identifier": [ { "use": "official", diff --git a/input/resources/library/library-emcare.b18-21.symptoms.2m.m.json b/input/resources/library/library-emcare.b18-21.symptoms.2m.m.json index ae120cdf..84ba1f67 100644 --- a/input/resources/library/library-emcare.b18-21.symptoms.2m.m.json +++ b/input/resources/library/library-emcare.b18-21.symptoms.2m.m.json @@ -1,7 +1,7 @@ { "resourceType": "Library", "id": "emcareb1821symptoms2mm", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/emcareb1821symptoms2mm", + "url": "https://smart.who.int/ccc/Library/emcareb1821symptoms2mm", "identifier": [ { "use": "official", diff --git a/input/resources/library/library-emcare.b22.assessmentstests.json b/input/resources/library/library-emcare.b22.assessmentstests.json index 4a52d49d..6426ab2c 100644 --- a/input/resources/library/library-emcare.b22.assessmentstests.json +++ b/input/resources/library/library-emcare.b22.assessmentstests.json @@ -1,7 +1,7 @@ { "resourceType": "Library", "id": "emcareb22assessmentstests", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/emcareb22assessmentstests", + "url": "https://smart.who.int/ccc/Library/emcareb22assessmentstests", "identifier": [ { "use": "official", diff --git a/input/resources/library/library-emcare.b22.breastfeeding.json b/input/resources/library/library-emcare.b22.breastfeeding.json index ccd1858c..8c28632d 100644 --- a/input/resources/library/library-emcare.b22.breastfeeding.json +++ b/input/resources/library/library-emcare.b22.breastfeeding.json @@ -1,7 +1,7 @@ { "resourceType": "Library", "id": "emcareb22breastfeeding", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/emcareb22breastfeeding", + "url": "https://smart.who.int/ccc/Library/emcareb22breastfeeding", "identifier": [ { "use": "official", diff --git a/input/resources/library/library-emcare.b22.fluidtest.json b/input/resources/library/library-emcare.b22.fluidtest.json index 7e43358a..e6072104 100644 --- a/input/resources/library/library-emcare.b22.fluidtest.json +++ b/input/resources/library/library-emcare.b22.fluidtest.json @@ -1,7 +1,7 @@ { "resourceType": "Library", "id": "emcareb22fluidtest", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/emcareb22fluidtest", + "url": "https://smart.who.int/ccc/Library/emcareb22fluidtest", "identifier": [ { "use": "official", diff --git a/input/resources/library/library-emcare.b22.respiratoryrate.json b/input/resources/library/library-emcare.b22.respiratoryrate.json index 07b2dbac..30735726 100644 --- a/input/resources/library/library-emcare.b22.respiratoryrate.json +++ b/input/resources/library/library-emcare.b22.respiratoryrate.json @@ -1,7 +1,7 @@ { "resourceType": "Library", "id": "emcareb22respiratoryrate", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/emcareb22respiratoryrate", + "url": "https://smart.who.int/ccc/Library/emcareb22respiratoryrate", "identifier": [ { "use": "official", diff --git a/input/resources/library/library-emcare.b22.secondtemperature.json b/input/resources/library/library-emcare.b22.secondtemperature.json index 4f563a89..4e7231dd 100644 --- a/input/resources/library/library-emcare.b22.secondtemperature.json +++ b/input/resources/library/library-emcare.b22.secondtemperature.json @@ -1,7 +1,7 @@ { "resourceType": "Library", "id": "emcareb22secondtemperature", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/emcareb22secondtemperature", + "url": "https://smart.who.int/ccc/Library/emcareb22secondtemperature", "identifier": [ { "use": "official", diff --git a/input/resources/library/library-emcare.b23.classification.json b/input/resources/library/library-emcare.b23.classification.json index 7f2cb2f8..e8bc2125 100644 --- a/input/resources/library/library-emcare.b23.classification.json +++ b/input/resources/library/library-emcare.b23.classification.json @@ -1,7 +1,7 @@ { "resourceType": "Library", "id": "emcareb23classification", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/emcareb23classification", + "url": "https://smart.who.int/ccc/Library/emcareb23classification", "identifier": [ { "use": "official", diff --git a/input/resources/library/library-emcare.b23.classification.m.json b/input/resources/library/library-emcare.b23.classification.m.json index 935d3be7..f92d9c79 100644 --- a/input/resources/library/library-emcare.b23.classification.m.json +++ b/input/resources/library/library-emcare.b23.classification.m.json @@ -1,7 +1,7 @@ { "resourceType": "Library", "id": "emcareb23classificationm", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/emcareb23classificationm", + "url": "https://smart.who.int/ccc/Library/emcareb23classificationm", "identifier": [ { "use": "official", diff --git a/input/resources/library/library-emcare.b6.measurements.json b/input/resources/library/library-emcare.b6.measurements.json index ee416f65..f43df068 100644 --- a/input/resources/library/library-emcare.b6.measurements.json +++ b/input/resources/library/library-emcare.b6.measurements.json @@ -1,7 +1,7 @@ { "resourceType": "Library", "id": "emcareb6measurements", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/emcareb6measurements", + "url": "https://smart.who.int/ccc/Library/emcareb6measurements", "identifier": [ { "use": "official", diff --git a/input/resources/library/library-emcare.b7.lti-dangersigns.json b/input/resources/library/library-emcare.b7.lti-dangersigns.json index 0e2202d5..87405d78 100644 --- a/input/resources/library/library-emcare.b7.lti-dangersigns.json +++ b/input/resources/library/library-emcare.b7.lti-dangersigns.json @@ -1,7 +1,7 @@ { "resourceType": "Library", "id": "emcareb7ltidangersigns", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/emcareb7ltidangersigns", + "url": "https://smart.who.int/ccc/Library/emcareb7ltidangersigns", "identifier": [ { "use": "official", diff --git a/input/resources/library/library-emcare.combineddataelements.json b/input/resources/library/library-emcare.combineddataelements.json index 7165ce07..5ff5c451 100644 --- a/input/resources/library/library-emcare.combineddataelements.json +++ b/input/resources/library/library-emcare.combineddataelements.json @@ -1,7 +1,7 @@ { "resourceType": "Library", "id": "emcarecombineddataelements", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/emcarecombineddataelements", + "url": "https://smart.who.int/ccc/Library/emcarecombineddataelements", "identifier": [ { "use": "official", diff --git a/input/resources/library/library-emcare.treatment.json b/input/resources/library/library-emcare.treatment.json index 45f8ee4d..ccfd8307 100644 --- a/input/resources/library/library-emcare.treatment.json +++ b/input/resources/library/library-emcare.treatment.json @@ -1,7 +1,7 @@ { "resourceType": "Library", "id": "emcaretreatment", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/emcaretreatment", + "url": "https://smart.who.int/ccc/Library/emcaretreatment", "identifier": [ { "use": "official", diff --git a/input/resources/library/library-emcarebase.json b/input/resources/library/library-emcarebase.json index 97a670cb..4ce61f98 100644 --- a/input/resources/library/library-emcarebase.json +++ b/input/resources/library/library-emcarebase.json @@ -1,7 +1,7 @@ { "resourceType": "Library", "id": "emcarebase", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir//Library/emcarebase", + "url": "https://smart.who.int/ccc/Library/emcarebase", "version": "1.0.1.rc12.build.156", "name": "emcarebase", "title": "EmCareBase", diff --git a/input/resources/library/library-emcarecondition.json b/input/resources/library/library-emcarecondition.json index 2cbc32ab..9b820e39 100644 --- a/input/resources/library/library-emcarecondition.json +++ b/input/resources/library/library-emcarecondition.json @@ -1,7 +1,7 @@ { "resourceType": "Library", "id": "emcarecondition", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/emcarecondition", + "url": "https://smart.who.int/ccc/Library/emcarecondition", "name": "emcarecondition", "status": "active", "type": { diff --git a/input/resources/library/library-emcaredt01.json b/input/resources/library/library-emcaredt01.json index c798387f..31ab8f55 100644 --- a/input/resources/library/library-emcaredt01.json +++ b/input/resources/library/library-emcaredt01.json @@ -1,7 +1,7 @@ { "resourceType": "Library", "id": "emcaredt01", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/emcaredt01", + "url": "https://smart.who.int/ccc/Library/emcaredt01", "identifier": [ { "use": "official", diff --git a/input/resources/library/library-emcareobservation-valueset.json b/input/resources/library/library-emcareobservation-valueset.json index 711c92ad..61223226 100644 --- a/input/resources/library/library-emcareobservation-valueset.json +++ b/input/resources/library/library-emcareobservation-valueset.json @@ -1,7 +1,7 @@ { "resourceType": "Library", "id": "emcareobservationvalueset", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/emcareobservationvalueset", + "url": "https://smart.who.int/ccc/Library/emcareobservationvalueset", "name": "emcareobservation-valueset", "status": "active", "type": { diff --git a/input/resources/library/library-emcareobservation.json b/input/resources/library/library-emcareobservation.json index 682e7478..dbf10a26 100644 --- a/input/resources/library/library-emcareobservation.json +++ b/input/resources/library/library-emcareobservation.json @@ -1,7 +1,7 @@ { "resourceType": "Library", "id": "emcareobservation", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/emcareobservation", + "url": "https://smart.who.int/ccc/Library/emcareobservation", "name": "emcareobservation", "status": "active", "type": { diff --git a/input/resources/library/library-emcareobservationvalueset.json b/input/resources/library/library-emcareobservationvalueset.json index 5bbb68ba..54269804 100644 --- a/input/resources/library/library-emcareobservationvalueset.json +++ b/input/resources/library/library-emcareobservationvalueset.json @@ -1,7 +1,7 @@ { "resourceType": "Library", "id": "emcareobservationvalueset", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/emcareobservationvalueset", + "url": "https://smart.who.int/ccc/Library/emcareobservationvalueset", "name": "emcareobservationValueset", "status": "active", "type": { diff --git a/input/resources/library/library-emcarevalueset.json b/input/resources/library/library-emcarevalueset.json index 8d6e8291..3955728d 100644 --- a/input/resources/library/library-emcarevalueset.json +++ b/input/resources/library/library-emcarevalueset.json @@ -1,7 +1,7 @@ { "resourceType": "Library", "id": "emcarevalueset", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/emcarevalueset", + "url": "https://smart.who.int/ccc/Library/emcarevalueset", "name": "emcarevalueset", "status": "active", "type": { diff --git a/input/resources/library/library-emcarezscore.json b/input/resources/library/library-emcarezscore.json index 40466509..47f74149 100644 --- a/input/resources/library/library-emcarezscore.json +++ b/input/resources/library/library-emcarezscore.json @@ -1,7 +1,7 @@ { "resourceType": "Library", "id": "emcarezscore", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir//Library/emcarezscore", + "url": "https://smart.who.int/ccc/Library/emcarezscore", "identifier": [ { "use": "official", @@ -27,23 +27,23 @@ }, { "type": "depends-on", - "resource": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/emcarebase" + "resource": "https://smart.who.int/ccc/Library/emcarebase" }, { "type": "depends-on", - "resource": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/weightforage" + "resource": "https://smart.who.int/ccc/Library/weightforage" }, { "type": "depends-on", - "resource": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/anthrobase" + "resource": "https://smart.who.int/ccc/Library/anthrobase" }, { "type": "depends-on", - "resource": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/weightforlength" + "resource": "https://smart.who.int/ccc/Library/weightforlength" }, { "type": "depends-on", - "resource": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/weightforheight" + "resource": "https://smart.who.int/ccc/Library/weightforheight" } ], "parameter": [ diff --git a/input/resources/plandefinition/plandefinition-emcare.json b/input/resources/plandefinition/plandefinition-emcare.json index 29b90ff5..4b03ec90 100644 --- a/input/resources/plandefinition/plandefinition-emcare.json +++ b/input/resources/plandefinition/plandefinition-emcare.json @@ -1,7 +1,7 @@ { "resourceType": "PlanDefinition", "id": "emcaredt01", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/PlanDefinition/emcaredt01", + "url": "https://smart.who.int/ccc/PlanDefinition/emcaredt01", "identifier": [ { "use": "official", @@ -23,7 +23,7 @@ "experimental": false, "date": "2023-04-11T11:19:20+00:00", "library": [ - "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/emcaredt01" + "https://smart.who.int/ccc/Library/emcaredt01" ], "action": [ { @@ -37,7 +37,7 @@ } ] }, - "definitionCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ActivityDefinition/emcarea.registration.p" + "definitionCanonical": "https://smart.who.int/ccc/ActivityDefinition/emcarea.registration.p" }, { "id": "emcaredt02", @@ -60,7 +60,7 @@ } ] }, - "definitionCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ActivityDefinition/emcareb.registration.e" + "definitionCanonical": "https://smart.who.int/ccc/ActivityDefinition/emcareb.registration.e" }, { "id": "emcaredt04", @@ -89,7 +89,7 @@ } ] }, - "definitionCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ActivityDefinition/emcare.b7.lti-dangersigns" + "definitionCanonical": "https://smart.who.int/ccc/ActivityDefinition/emcare.b7.lti-dangersigns" }, { "id": "emcaredt03", @@ -118,7 +118,7 @@ } ] }, - "definitionCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ActivityDefinition/emcare.b6.measurements" + "definitionCanonical": "https://smart.who.int/ccc/ActivityDefinition/emcare.b6.measurements" }, { "id": "emcaredt05", @@ -147,7 +147,7 @@ } ] }, - "definitionCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ActivityDefinition/emcare.b18-21.symptoms.2m.m" + "definitionCanonical": "https://smart.who.int/ccc/ActivityDefinition/emcare.b18-21.symptoms.2m.m" }, { "id": "emcaredt06", @@ -176,7 +176,7 @@ } ] }, - "definitionCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ActivityDefinition/emcare.b10-14.symptoms.2m.p" + "definitionCanonical": "https://smart.who.int/ccc/ActivityDefinition/emcare.b10-14.symptoms.2m.p" }, { "id": "emcaredt07", @@ -205,7 +205,7 @@ } ] }, - "definitionCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ActivityDefinition/emcare.b18-21.signs.2m.m" + "definitionCanonical": "https://smart.who.int/ccc/ActivityDefinition/emcare.b18-21.signs.2m.m" }, { "id": "emcaredt08", @@ -234,7 +234,7 @@ } ] }, - "definitionCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ActivityDefinition/emcare.b10-16.signs.2m.p" + "definitionCanonical": "https://smart.who.int/ccc/ActivityDefinition/emcare.b10-16.signs.2m.p" }, { "id": "emcaredt09", @@ -263,7 +263,7 @@ } ] }, - "definitionCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ActivityDefinition/emcare.b23.classification" + "definitionCanonical": "https://smart.who.int/ccc/ActivityDefinition/emcare.b23.classification" }, { "id": "emcaredt10", @@ -288,7 +288,7 @@ "relationship": "after" } ], - "definitionCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ActivityDefinition/emcare.b22.assessmentstests" + "definitionCanonical": "https://smart.who.int/ccc/ActivityDefinition/emcare.b22.assessmentstests" }, { "id": "emcaredt11", @@ -321,7 +321,7 @@ } ] }, - "definitionCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ActivityDefinition/emcare.treatment" + "definitionCanonical": "https://smart.who.int/ccc/ActivityDefinition/emcare.treatment" }, { "id": "emcaredt12", @@ -336,7 +336,7 @@ } } ], - "definitionCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ActivityDefinition/emcare.b23.classification.2m" + "definitionCanonical": "https://smart.who.int/ccc/ActivityDefinition/emcare.b23.classification.2m" } ] } \ No newline at end of file diff --git a/input/resources/questionnaire/questionnaire-emcare.b10-14.symptoms.2m.p.json b/input/resources/questionnaire/questionnaire-emcare.b10-14.symptoms.2m.p.json index 3f7463b4..8c291f77 100644 --- a/input/resources/questionnaire/questionnaire-emcare.b10-14.symptoms.2m.p.json +++ b/input/resources/questionnaire/questionnaire-emcare.b10-14.symptoms.2m.p.json @@ -25,14 +25,14 @@ }, { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-targetStructureMap", - "valueCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcare.b10-14.symptoms.2m.p" + "valueCanonical": "https://smart.who.int/ccc/StructureMap/emcare.b10-14.symptoms.2m.p" }, { "url": "http://hl7.org/fhir/StructureDefinition/cqf-library", - "valueCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/emcareb1014symptoms2mp" + "valueCanonical": "https://smart.who.int/ccc/Library/emcareb1014symptoms2mp" } ], - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Questionnaire/emcare.b10-14.symptoms.2m.p", + "url": "https://smart.who.int/ccc/Questionnaire/emcare.b10-14.symptoms.2m.p", "name": "EmCare.B10-14.Symptoms.2m.p", "title": "EmCare.B10-14.Symptoms.2m.p", "status": "active", @@ -138,14 +138,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B10S1.DE08", "display": "14 days or more" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B10S1.DE07", "display": "Less than 14 days" } @@ -203,14 +203,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B10S1.DE08", "display": "14 days or more" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B10S1.DE07", "display": "Less than 14 days" } @@ -268,14 +268,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B10S1.DE08", "display": "14 days or more" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B10S1.DE07", "display": "Less than 14 days" } @@ -373,14 +373,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B12S1.DE05", "display": "7 Days or more" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B12S1.DE04", "display": "Less than 7 days" } @@ -409,14 +409,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B12S1.DE05", "display": "7 Days or more" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B12S1.DE04", "display": "Less than 7 days" } @@ -558,14 +558,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B10S1.DE08", "display": "14 days or more" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B10S1.DE07", "display": "Less than 14 days" } diff --git a/input/resources/questionnaire/questionnaire-emcare.b10-16.signs.2m.p.json b/input/resources/questionnaire/questionnaire-emcare.b10-16.signs.2m.p.json index ea03f6cb..873b9159 100644 --- a/input/resources/questionnaire/questionnaire-emcare.b10-16.signs.2m.p.json +++ b/input/resources/questionnaire/questionnaire-emcare.b10-16.signs.2m.p.json @@ -25,14 +25,14 @@ }, { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-targetStructureMap", - "valueCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcare.b10-16.signs.2m.p" + "valueCanonical": "https://smart.who.int/ccc/StructureMap/emcare.b10-16.signs.2m.p" }, { "url": "http://hl7.org/fhir/StructureDefinition/cqf-library", - "valueCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/emcareb1016signs2mp" + "valueCanonical": "https://smart.who.int/ccc/Library/emcareb1016signs2mp" } ], - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Questionnaire/emcare.b10-16.signs.2m.p", + "url": "https://smart.who.int/ccc/Questionnaire/emcare.b10-16.signs.2m.p", "name": "EmCare.B10-16.Signs.2m.p", "title": "EmCare.B10-16.Signs.2m.p", "status": "active", @@ -383,7 +383,7 @@ "extension": [ { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-subQuestionnaire", - "valueCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Questionnaire/emcare.b22.respiratoryrate" + "valueCanonical": "https://smart.who.int/ccc/Questionnaire/emcare.b22.respiratoryrate" }, { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", @@ -981,21 +981,21 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B20S2.DE03", "display": "Skin Pinch goes back very slowly (More than 2 seconds)" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B20S2.DE04", "display": "Skin Pinch goes back slowly (2 seconds or fewer, but not immediately)" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B20S2.DE05", "display": "Skin Pinch goes back Normally (immediately)" } @@ -1113,28 +1113,28 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B17S1.DE03", "display": "Red (congested) throat" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B17S1.DE04", "display": "Exudate on Throat" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B17S1.DE05", "display": "Membrane on throat" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "none", "display": "None of the listed throat problems observed" } @@ -1219,21 +1219,21 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B17S1.DE08", "display": "Yes, without difficulty" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B17S1.DE09", "display": "Difficulty in swallowing" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B17S1.DE10", "display": "Unable to swallow" } @@ -1338,14 +1338,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B10S1.DE08", "display": "14 days or more" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B10S1.DE07", "display": "Less than 14 days" } @@ -1623,21 +1623,21 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B14S2.DE07", "display": "Generalised Skin Problem" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B14S2.DE08", "display": "Localised Skin Problem" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B14S2.DE09", "display": "No Problem" } @@ -1751,7 +1751,7 @@ { "url": "option", "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B14S2.DE22" } }, @@ -1781,91 +1781,91 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B14S2.DE18", "display": "Papular Urticaria or Papular Pruritic Eruptions" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B14S2.DE19", "display": "Ringworm (Tinea)" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B14S2.DE21", "display": "Scabies" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B14S2.DE22", "display": "Chickenpox" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B14S2.DE23", "display": "Herpes Zoster" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B14S2.DE25", "display": "Impetigo" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B14S2.DE31", "display": "Molluscum Contagiosum" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B14S2.DE32", "display": "Warts" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B14S2.DE33", "display": "Seborrhoeic Dermatitis" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B14S2.DE35", "display": "Fixed Drug Reaction" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B14S2.DE36", "display": "Eczema" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B14S2.DE37", "display": "Steven Johnson Syndrome (SJS)" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "none", "display": "None of the above" } @@ -2263,28 +2263,28 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B14S2.DE41", "display": "Mouth Sores or Mouth Ulcers - Deep and Extensive" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B14S2.DE42", "display": "Mouth Sores or Mouth Ulcers - Not Deep and Extensive" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B14S2.DE40", "display": "Oral Thrush" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B14S2.DE39", "display": "No Oral Sores or Mouth Ulcers" } @@ -2342,28 +2342,28 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B14S2.DE44", "display": "Skin Problem" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B14S2.DE45", "display": "Oral Sores or Mouth Ulcers" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B14S2.DE46", "display": "Eye Problem" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B14S2.DE47", "display": "No - Do not add a Skin or Mouth or Eye Problem" } @@ -2379,21 +2379,21 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B15S2.DE02", "display": "Severe Palmar Pallor" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B15S2.DE03", "display": "Some Palmar Pallor" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B15S2.DE04", "display": "No Palmar Pallor" } @@ -2429,21 +2429,21 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B15S2.DE10", "display": "Severe mucous membrane pallor" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B15S2.DE11", "display": "Some mucous membrane pallor" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B15S2.DE12", "display": "No mucous membrane pallor" } diff --git a/input/resources/questionnaire/questionnaire-emcare.b18-21.signs.2m.m.json b/input/resources/questionnaire/questionnaire-emcare.b18-21.signs.2m.m.json index cdc816c2..e486a397 100644 --- a/input/resources/questionnaire/questionnaire-emcare.b18-21.signs.2m.m.json +++ b/input/resources/questionnaire/questionnaire-emcare.b18-21.signs.2m.m.json @@ -25,14 +25,14 @@ }, { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-targetStructureMap", - "valueCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcare.b18-21.signs.2m.m" + "valueCanonical": "https://smart.who.int/ccc/StructureMap/emcare.b18-21.signs.2m.m" }, { "url": "http://hl7.org/fhir/StructureDefinition/cqf-library", - "valueCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/emcareb1821signs2mm" + "valueCanonical": "https://smart.who.int/ccc/Library/emcareb1821signs2mm" } ], - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Questionnaire/emcare.b18-21.signs.2m.m", + "url": "https://smart.who.int/ccc/Questionnaire/emcare.b18-21.signs.2m.m", "name": "EmCare.B18-21.Signs.2m.m", "title": "EmCare.B18-21.Signs.2m.m", "status": "active", @@ -206,21 +206,21 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.A.DE46", "display": "Dead" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.A.DE34", "display": "Alive" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.A.DE33", "display": "Unknown" } @@ -273,21 +273,21 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B18S1.DE03", "display": "Not Able to Feed At All" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B18S1.DE04", "display": "Not Feeding Well" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B18S1.DE05", "display": "Feeding Well" } @@ -370,7 +370,7 @@ "extension": [ { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-subQuestionnaire", - "valueCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Questionnaire/emcare.b22.respiratoryrate" + "valueCanonical": "https://smart.who.int/ccc/Questionnaire/emcare.b22.respiratoryrate" } ], "linkId": "EmCare.B22.RespiratoryRate", @@ -652,21 +652,21 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B18S2.DE11", "display": "Moves on his or her own or moves spontaneously or without stimulation" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B18S2.DE10", "display": "Movement only when stimulated but then stops" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B18S2.DE09", "display": "No movement at all" } @@ -843,21 +843,21 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B19S2.DE05", "display": "Within less than 24 hours of birth" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B19S2.DE06", "display": "24 hours or more after birth" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B19S2.DE07", "display": "Unknown when Jaundice first appeared" } @@ -942,21 +942,21 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B20S2.DE03", "display": "Skin Pinch goes back very slowly (More than 2 seconds)" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B20S2.DE04", "display": "Skin Pinch goes back slowly (2 seconds or fewer, but not immediately)" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B20S2.DE05", "display": "Skin Pinch goes back Normally (immediately)" } @@ -1194,14 +1194,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B21S2.DE11", "display": "Inappropriate replacement milk" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B21S2.DE10", "display": "Appropriate replacement milk" } @@ -1373,14 +1373,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B21S2.DE19", "display": "Correct and hygienic feed preparation" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B21S2.DE20", "display": "Incorrect or unhygienic feed preparation" } @@ -1425,14 +1425,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B21S2.DE22", "display": "Cup" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B21S2.DE23", "display": "Bottle" } @@ -1457,14 +1457,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B21S2.DE26", "display": "Feeding utensils not cleaned hygienically" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B21S2.DE25", "display": "Feeding utensils cleaned hygienically" } @@ -1509,14 +1509,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B21S2.DE28", "display": "Breastmilk also given" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B21S2.DE29", "display": "No Breastmilk at all" } diff --git a/input/resources/questionnaire/questionnaire-emcare.b18-21.symptoms.2m.m.json b/input/resources/questionnaire/questionnaire-emcare.b18-21.symptoms.2m.m.json index 1c6795fd..e02b7469 100644 --- a/input/resources/questionnaire/questionnaire-emcare.b18-21.symptoms.2m.m.json +++ b/input/resources/questionnaire/questionnaire-emcare.b18-21.symptoms.2m.m.json @@ -25,14 +25,14 @@ }, { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-targetStructureMap", - "valueCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcare.b18-21.symptoms.2m.m" + "valueCanonical": "https://smart.who.int/ccc/StructureMap/emcare.b18-21.symptoms.2m.m" }, { "url": "http://hl7.org/fhir/StructureDefinition/cqf-library", - "valueCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/emcareb1821symptoms2mm" + "valueCanonical": "https://smart.who.int/ccc/Library/emcareb1821symptoms2mm" } ], - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Questionnaire/emcare.b18-21.symptoms.2m.m", + "url": "https://smart.who.int/ccc/Questionnaire/emcare.b18-21.symptoms.2m.m", "name": "EmCare.B18-21.Symptoms.2m.m", "title": "EmCare.B18-21.Symptoms.2m.m", "status": "active", @@ -113,21 +113,21 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B18S1.DE03", "display": "Not Able to Feed At All" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B18S1.DE04", "display": "Not Feeding Well" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B18S1.DE05", "display": "Feeding Well" } diff --git a/input/resources/questionnaire/questionnaire-emcare.b22.assessmentstests.json b/input/resources/questionnaire/questionnaire-emcare.b22.assessmentstests.json index ca5b03f5..308b59d5 100644 --- a/input/resources/questionnaire/questionnaire-emcare.b22.assessmentstests.json +++ b/input/resources/questionnaire/questionnaire-emcare.b22.assessmentstests.json @@ -25,14 +25,14 @@ }, { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-targetStructureMap", - "valueCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcare.b22.assessmentstests" + "valueCanonical": "https://smart.who.int/ccc/StructureMap/emcare.b22.assessmentstests" }, { "url": "http://hl7.org/fhir/StructureDefinition/cqf-library", - "valueCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/emcareb22assessmentstests" + "valueCanonical": "https://smart.who.int/ccc/Library/emcareb22assessmentstests" } ], - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Questionnaire/emcare.b22.assessmentstests", + "url": "https://smart.who.int/ccc/Questionnaire/emcare.b22.assessmentstests", "name": "EmCare.B22.AssessmentsTests", "title": "EmCare.B22.AssessmentsTests", "status": "active", @@ -250,7 +250,7 @@ "extension": [ { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-subQuestionnaire", - "valueCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Questionnaire/emcare.b22.respiratoryrate" + "valueCanonical": "https://smart.who.int/ccc/Questionnaire/emcare.b22.respiratoryrate" }, { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", @@ -501,7 +501,7 @@ "extension": [ { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-subQuestionnaire", - "valueCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Questionnaire/emcare.b22.fluidtest" + "valueCanonical": "https://smart.who.int/ccc/Questionnaire/emcare.b22.fluidtest" }, { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", @@ -534,35 +534,35 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B22.DE09", "display": "Completely Unable to Drink" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B22.DE10", "display": "Vomits Immediately / Everything" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B22.DE11", "display": "Drinks Poorly" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B22.DE12", "display": "Drinks Eagerly / Thirstily" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B22.DE13", "display": "Drinks Normally" } @@ -694,35 +694,35 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B22.DE09", "display": "Completely Unable to Drink" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B22.DE10", "display": "Vomits Immediately / Everything" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B22.DE11", "display": "Drinks Poorly" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B22.DE12", "display": "Drinks Eagerly / Thirstily" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B22.DE13", "display": "Drinks Normally" } @@ -735,7 +735,7 @@ "extension": [ { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-subQuestionnaire", - "valueCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Questionnaire/emcare.b22.bronchodilatortest" + "valueCanonical": "https://smart.who.int/ccc/Questionnaire/emcare.b22.bronchodilatortest" }, { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", @@ -768,35 +768,35 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B22.DE18", "display": "Chest Indrawing (post inhaled bronchodilator trial)" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B22.DE19", "display": "Respiratory Rate (post inhaled bronchodilator trial)" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B22.DE20", "display": "Fast Breathing (post inhaled bronchodilator trial)" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B22.DE21", "display": "No Fast Breathing and No Chest Indrawing (post Inhaled Bronchodilator Trial)" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B22.DE22", "display": "Inhaled Bronchodilator Trial Not Feasible or Available" } @@ -878,7 +878,7 @@ "extension": [ { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-subQuestionnaire", - "valueCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Questionnaire/emcare.b22.breastfeeding" + "valueCanonical": "https://smart.who.int/ccc/Questionnaire/emcare.b22.breastfeeding" }, { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", @@ -1290,7 +1290,7 @@ "extension": [ { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-subQuestionnaire", - "valueCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Questionnaire/emcare.b22.hemoglobin" + "valueCanonical": "https://smart.who.int/ccc/Questionnaire/emcare.b22.hemoglobin" }, { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", @@ -1363,7 +1363,7 @@ "extension": [ { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-subQuestionnaire", - "valueCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Questionnaire/emcare.b22.secondtemperature" + "valueCanonical": "https://smart.who.int/ccc/Questionnaire/emcare.b22.secondtemperature" }, { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", diff --git a/input/resources/questionnaire/questionnaire-emcare.b22.breastfeeding.json b/input/resources/questionnaire/questionnaire-emcare.b22.breastfeeding.json index 06850fe0..cc30d4c3 100644 --- a/input/resources/questionnaire/questionnaire-emcare.b22.breastfeeding.json +++ b/input/resources/questionnaire/questionnaire-emcare.b22.breastfeeding.json @@ -25,14 +25,14 @@ }, { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-targetStructureMap", - "valueCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcare.b22.breastfeeding" + "valueCanonical": "https://smart.who.int/ccc/StructureMap/emcare.b22.breastfeeding" }, { "url": "http://hl7.org/fhir/StructureDefinition/cqf-library", - "valueCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/emcareb22breastfeeding" + "valueCanonical": "https://smart.who.int/ccc/Library/emcareb22breastfeeding" } ], - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Questionnaire/emcare.b22.breastfeeding", + "url": "https://smart.who.int/ccc/Questionnaire/emcare.b22.breastfeeding", "name": "EmCare.B22.BreastFeeding", "title": "EmCare.B22.BreastFeeding", "status": "active", diff --git a/input/resources/questionnaire/questionnaire-emcare.b22.bronchodilatortest.json b/input/resources/questionnaire/questionnaire-emcare.b22.bronchodilatortest.json index 35f955e5..1971fb34 100644 --- a/input/resources/questionnaire/questionnaire-emcare.b22.bronchodilatortest.json +++ b/input/resources/questionnaire/questionnaire-emcare.b22.bronchodilatortest.json @@ -25,10 +25,10 @@ }, { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-targetStructureMap", - "valueCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcare.b22.bronchodilatortest" + "valueCanonical": "https://smart.who.int/ccc/StructureMap/emcare.b22.bronchodilatortest" } ], - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Questionnaire/emcare.b22.bronchodilatortest", + "url": "https://smart.who.int/ccc/Questionnaire/emcare.b22.bronchodilatortest", "name": "EmCare.B22.BronchodilatorTest", "title": "EmCare.B22.BronchodilatorTest", "status": "active", @@ -55,35 +55,35 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B22.DE18", "display": "Chest Indrawing (post inhaled bronchodilator trial)" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B22.DE19", "display": "Respiratory Rate (post inhaled bronchodilator trial)" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B22.DE20", "display": "Fast Breathing (post inhaled bronchodilator trial)" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B22.DE21", "display": "No Fast Breathing and No Chest Indrawing (post Inhaled Bronchodilator Trial)" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B22.DE22", "display": "Inhaled Bronchodilator Trial Not Feasible or Available" } diff --git a/input/resources/questionnaire/questionnaire-emcare.b22.fluidtest.json b/input/resources/questionnaire/questionnaire-emcare.b22.fluidtest.json index be28f13c..151ff8ae 100644 --- a/input/resources/questionnaire/questionnaire-emcare.b22.fluidtest.json +++ b/input/resources/questionnaire/questionnaire-emcare.b22.fluidtest.json @@ -25,14 +25,14 @@ }, { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-targetStructureMap", - "valueCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcare.b22.fluidtest" + "valueCanonical": "https://smart.who.int/ccc/StructureMap/emcare.b22.fluidtest" }, { "url": "http://hl7.org/fhir/StructureDefinition/cqf-library", - "valueCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/emcareb22fluidtest" + "valueCanonical": "https://smart.who.int/ccc/Library/emcareb22fluidtest" } ], - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Questionnaire/emcare.b22.fluidtest", + "url": "https://smart.who.int/ccc/Questionnaire/emcare.b22.fluidtest", "name": "EmCare.B22.FluidTest", "title": "EmCare.B22.FluidTest", "status": "active", @@ -131,35 +131,35 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B22.DE09", "display": "Completely Unable to Drink" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B22.DE10", "display": "Vomits Immediately / Everything" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B22.DE11", "display": "Drinks Poorly" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B22.DE12", "display": "Drinks Eagerly / Thirstily" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B22.DE13", "display": "Drinks Normally" } @@ -291,35 +291,35 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B22.DE09", "display": "Completely Unable to Drink" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B22.DE10", "display": "Vomits Immediately / Everything" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B22.DE11", "display": "Drinks Poorly" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B22.DE12", "display": "Drinks Eagerly / Thirstily" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B22.DE13", "display": "Drinks Normally" } diff --git a/input/resources/questionnaire/questionnaire-emcare.b22.hemoglobin.json b/input/resources/questionnaire/questionnaire-emcare.b22.hemoglobin.json index 53010947..05407de3 100644 --- a/input/resources/questionnaire/questionnaire-emcare.b22.hemoglobin.json +++ b/input/resources/questionnaire/questionnaire-emcare.b22.hemoglobin.json @@ -25,10 +25,10 @@ }, { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-targetStructureMap", - "valueCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcare.b22.hemoglobin" + "valueCanonical": "https://smart.who.int/ccc/StructureMap/emcare.b22.hemoglobin" } ], - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Questionnaire/emcare.b22.hemoglobin", + "url": "https://smart.who.int/ccc/Questionnaire/emcare.b22.hemoglobin", "name": "EmCare.B22.Hemoglobin", "title": "EmCare.B22.Hemoglobin", "status": "active", diff --git a/input/resources/questionnaire/questionnaire-emcare.b22.respiratoryrate.json b/input/resources/questionnaire/questionnaire-emcare.b22.respiratoryrate.json index 2e559acb..0d90b910 100644 --- a/input/resources/questionnaire/questionnaire-emcare.b22.respiratoryrate.json +++ b/input/resources/questionnaire/questionnaire-emcare.b22.respiratoryrate.json @@ -25,14 +25,14 @@ }, { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-targetStructureMap", - "valueCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcare.b22.respiratoryrate" + "valueCanonical": "https://smart.who.int/ccc/StructureMap/emcare.b22.respiratoryrate" }, { "url": "http://hl7.org/fhir/StructureDefinition/cqf-library", - "valueCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/emcareb22respiratoryrate" + "valueCanonical": "https://smart.who.int/ccc/Library/emcareb22respiratoryrate" } ], - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Questionnaire/emcare.b22.respiratoryrate", + "url": "https://smart.who.int/ccc/Questionnaire/emcare.b22.respiratoryrate", "name": "EmCare.B22.RespiratoryRate", "title": "EmCare.B22.RespiratoryRate", "status": "active", diff --git a/input/resources/questionnaire/questionnaire-emcare.b22.secondtemperature.json b/input/resources/questionnaire/questionnaire-emcare.b22.secondtemperature.json index ddb54146..431df11e 100644 --- a/input/resources/questionnaire/questionnaire-emcare.b22.secondtemperature.json +++ b/input/resources/questionnaire/questionnaire-emcare.b22.secondtemperature.json @@ -25,14 +25,14 @@ }, { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-targetStructureMap", - "valueCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcare.b22.secondtemperature" + "valueCanonical": "https://smart.who.int/ccc/StructureMap/emcare.b22.secondtemperature" }, { "url": "http://hl7.org/fhir/StructureDefinition/cqf-library", - "valueCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/emcareb22secondtemperature" + "valueCanonical": "https://smart.who.int/ccc/Library/emcareb22secondtemperature" } ], - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Questionnaire/emcare.b22.secondtemperature", + "url": "https://smart.who.int/ccc/Questionnaire/emcare.b22.secondtemperature", "name": "EmCare.B22.SecondTemperature", "title": "EmCare.B22.SecondTemperature", "status": "active", diff --git a/input/resources/questionnaire/questionnaire-emcare.b23.classification.json b/input/resources/questionnaire/questionnaire-emcare.b23.classification.json index 0fcca94a..d3c12818 100644 --- a/input/resources/questionnaire/questionnaire-emcare.b23.classification.json +++ b/input/resources/questionnaire/questionnaire-emcare.b23.classification.json @@ -25,14 +25,14 @@ }, { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-targetStructureMap", - "valueCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcare.b23.classification" + "valueCanonical": "https://smart.who.int/ccc/StructureMap/emcare.b23.classification" }, { "url": "http://hl7.org/fhir/StructureDefinition/cqf-library", - "valueCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/emcareb23classification" + "valueCanonical": "https://smart.who.int/ccc/Library/emcareb23classification" } ], - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Questionnaire/emcare.b23.classification", + "url": "https://smart.who.int/ccc/Questionnaire/emcare.b23.classification", "name": "EmCare.B23.Classification", "title": "EmCare.B23.Classification", "status": "active", @@ -175,14 +175,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "agree", "display": "Agree" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "disagree", "display": "Disagree" } @@ -327,14 +327,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "agree", "display": "Agree" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "disagree", "display": "Disagree" } @@ -439,14 +439,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "agree", "display": "Agree" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "disagree", "display": "Disagree" } @@ -551,14 +551,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "agree", "display": "Agree" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "disagree", "display": "Disagree" } @@ -663,14 +663,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "agree", "display": "Agree" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "disagree", "display": "Disagree" } @@ -719,14 +719,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "agree", "display": "Agree" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "disagree", "display": "Disagree" } @@ -775,14 +775,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "agree", "display": "Agree" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "disagree", "display": "Disagree" } @@ -831,14 +831,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "agree", "display": "Agree" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "disagree", "display": "Disagree" } @@ -887,14 +887,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "agree", "display": "Agree" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "disagree", "display": "Disagree" } @@ -943,14 +943,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "agree", "display": "Agree" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "disagree", "display": "Disagree" } @@ -999,14 +999,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "agree", "display": "Agree" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "disagree", "display": "Disagree" } @@ -1055,14 +1055,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "agree", "display": "Agree" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "disagree", "display": "Disagree" } @@ -1111,14 +1111,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "agree", "display": "Agree" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "disagree", "display": "Disagree" } @@ -1167,14 +1167,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "agree", "display": "Agree" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "disagree", "display": "Disagree" } @@ -1223,14 +1223,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "agree", "display": "Agree" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "disagree", "display": "Disagree" } @@ -1279,14 +1279,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "agree", "display": "Agree" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "disagree", "display": "Disagree" } @@ -1335,14 +1335,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "agree", "display": "Agree" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "disagree", "display": "Disagree" } @@ -1414,14 +1414,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "agree", "display": "Agree" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "disagree", "display": "Disagree" } @@ -1499,14 +1499,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "agree", "display": "Agree" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "disagree", "display": "Disagree" } @@ -1555,14 +1555,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "agree", "display": "Agree" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "disagree", "display": "Disagree" } @@ -1635,14 +1635,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "agree", "display": "Agree" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "disagree", "display": "Disagree" } @@ -1720,14 +1720,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "agree", "display": "Agree" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "disagree", "display": "Disagree" } @@ -1776,14 +1776,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "agree", "display": "Agree" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "disagree", "display": "Disagree" } @@ -1832,14 +1832,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "agree", "display": "Agree" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "disagree", "display": "Disagree" } @@ -1888,14 +1888,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "agree", "display": "Agree" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "disagree", "display": "Disagree" } @@ -1944,14 +1944,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "agree", "display": "Agree" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "disagree", "display": "Disagree" } @@ -2000,14 +2000,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "agree", "display": "Agree" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "disagree", "display": "Disagree" } @@ -2056,14 +2056,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "agree", "display": "Agree" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "disagree", "display": "Disagree" } @@ -2112,14 +2112,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "agree", "display": "Agree" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "disagree", "display": "Disagree" } @@ -2168,14 +2168,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "agree", "display": "Agree" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "disagree", "display": "Disagree" } @@ -2277,14 +2277,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "agree", "display": "Agree" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "disagree", "display": "Disagree" } @@ -2333,14 +2333,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "agree", "display": "Agree" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "disagree", "display": "Disagree" } @@ -2442,14 +2442,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "agree", "display": "Agree" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "disagree", "display": "Disagree" } @@ -2498,14 +2498,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "agree", "display": "Agree" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "disagree", "display": "Disagree" } @@ -2656,14 +2656,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "agree", "display": "Agree" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "disagree", "display": "Disagree" } @@ -2812,14 +2812,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "agree", "display": "Agree" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "disagree", "display": "Disagree" } @@ -2970,14 +2970,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "agree", "display": "Agree" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "disagree", "display": "Disagree" } @@ -3078,14 +3078,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "agree", "display": "Agree" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "disagree", "display": "Disagree" } @@ -3186,14 +3186,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "agree", "display": "Agree" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "disagree", "display": "Disagree" } @@ -3293,14 +3293,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "agree", "display": "Agree" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "disagree", "display": "Disagree" } @@ -3348,14 +3348,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "agree", "display": "Agree" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "disagree", "display": "Disagree" } @@ -3556,14 +3556,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "agree", "display": "Agree" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "disagree", "display": "Disagree" } @@ -3612,14 +3612,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "agree", "display": "Agree" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "disagree", "display": "Disagree" } @@ -3720,14 +3720,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "agree", "display": "Agree" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "disagree", "display": "Disagree" } @@ -3776,14 +3776,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "agree", "display": "Agree" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "disagree", "display": "Disagree" } @@ -3832,14 +3832,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "agree", "display": "Agree" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "disagree", "display": "Disagree" } @@ -3888,14 +3888,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "agree", "display": "Agree" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "disagree", "display": "Disagree" } @@ -3911,336 +3911,336 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B23.DE01", "display": "Very Severe Disease" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B23.DE03", "display": "Severe Pneumonia or Very Severe Disease" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B23.DE06", "display": "Pneumonia" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B23.DE10", "display": "Cough or Cold" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B23.DE13", "display": "Severe Dehydration" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B23.DE14", "display": "Some Dehydration" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B23.DE15", "display": "No Dehydration" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B23.DE16", "display": "Severe Persistent Diarrhoea" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B23.DE17", "display": "Persistent Diarrhoea" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B23.DE18", "display": "Dysentery" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B23.DE18.a", "display": "Possible Shigella" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B23.DE100", "display": "Throat Abscess or Possible Diptheria" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B23.DE6101", "display": "Streptococcal Sore Throat" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B23.DE6102", "display": "Non-Streptococcal Sore Throat" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B23.DE6103", "display": "No Throat Problem" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B23.DE30", "display": "Mastoiditis" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B23.DE31", "display": "Acute Ear Infection" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B23.DE32", "display": "Chronic Ear Infection" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B23.DE33", "display": "No Ear Infection" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B23.DE19", "display": "Very Severe Febrile Disease" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B23.DE104", "display": "Fever: possible bacterial infection" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B23.DE105", "display": "Fever: bacterial infection unlikely" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B23.DE27", "display": "Severe Complicated Measles" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B23.DE28", "display": "Measles with Eye or Mouth Complication" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B23.DE29", "display": "Possible Measles" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B23.DE62", "display": "Severe Anaemia" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B23.DE63", "display": "Anaemia" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B23.DE64", "display": "No Anaemia" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B23.DE34", "display": "Eye Infection" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B23.DE35", "display": "Clouding of the Cornea" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B23.DE41", "display": "Papular Urticaria or Papular Pruritic Eruptions" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B23.DE42", "display": "Ringworm (Tinea)" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B23.DE44", "display": "Scabies" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B23.DE45", "display": "Chickenpox" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B23.DE47", "display": "Herpes Zoster" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B23.DE49", "display": "Impetigo" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B23.DE52", "display": "Molluscum Contagiosum" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B23.DE53", "display": "Warts" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B23.DE54", "display": "Seborrhoeic Dermatitis" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B23.DE56", "display": "Fixed Drug Reaction" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B23.DE57", "display": "Eczema" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B23.DE58", "display": "Steven Johnson Syndrome (SJS)" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B23.DE59", "display": "Mouth Sores or Ulcer" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B23.DE61", "display": "Oral Thrush" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B23.DE106", "display": "Very Low Weight for Age" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B23.DE107", "display": "Low Weight for Age" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B23.DE108", "display": "Low MUAC or visual report of wasting" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "collector", "display": "Add other classifications" } diff --git a/input/resources/questionnaire/questionnaire-emcare.b23.classification.m.json b/input/resources/questionnaire/questionnaire-emcare.b23.classification.m.json index eada0f08..aa002a6f 100644 --- a/input/resources/questionnaire/questionnaire-emcare.b23.classification.m.json +++ b/input/resources/questionnaire/questionnaire-emcare.b23.classification.m.json @@ -25,14 +25,14 @@ }, { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-targetStructureMap", - "valueCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcare.b23.classification.m" + "valueCanonical": "https://smart.who.int/ccc/StructureMap/emcare.b23.classification.m" }, { "url": "http://hl7.org/fhir/StructureDefinition/cqf-library", - "valueCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/emcareb23classificationm" + "valueCanonical": "https://smart.who.int/ccc/Library/emcareb23classificationm" } ], - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Questionnaire/emcare.b23.classification.m", + "url": "https://smart.who.int/ccc/Questionnaire/emcare.b23.classification.m", "name": "EmCare.B23.Classification.m", "title": "EmCare.B23.Classification.m", "status": "active", @@ -140,14 +140,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "agree", "display": "Agree" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "disagree", "display": "Disagree" } @@ -196,14 +196,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "agree", "display": "Agree" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "disagree", "display": "Disagree" } @@ -252,14 +252,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "agree", "display": "Agree" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "disagree", "display": "Disagree" } @@ -307,14 +307,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "agree", "display": "Agree" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "disagree", "display": "Disagree" } @@ -362,14 +362,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "agree", "display": "Agree" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "disagree", "display": "Disagree" } @@ -418,14 +418,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "agree", "display": "Agree" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "disagree", "display": "Disagree" } @@ -473,14 +473,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "agree", "display": "Agree" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "disagree", "display": "Disagree" } @@ -528,14 +528,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "agree", "display": "Agree" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "disagree", "display": "Disagree" } @@ -584,14 +584,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "agree", "display": "Agree" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "disagree", "display": "Disagree" } @@ -640,14 +640,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "agree", "display": "Agree" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "disagree", "display": "Disagree" } @@ -696,14 +696,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "agree", "display": "Agree" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "disagree", "display": "Disagree" } @@ -821,14 +821,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "agree", "display": "Agree" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "disagree", "display": "Disagree" } @@ -957,14 +957,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "agree", "display": "Agree" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "disagree", "display": "Disagree" } @@ -980,98 +980,98 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B23.DE83", "display": "Possible Serious Bacterial Infection OR Very Severe Disease" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B23.DE06", "display": "Pneumonia" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B23.DE85", "display": "Local Infection" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B23.DE86", "display": "Infection Unlikely" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B23.DE106", "display": "Very Low Weight for Age" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B23.DE87", "display": "Severe Jaundice" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B23.DE88", "display": "Jaundice" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B23.DE89", "display": "No Jaundice" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B23.DE13", "display": "Severe Dehydration" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B23.DE14", "display": "Some Dehydration" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B23.DE15", "display": "No Dehydration" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B23.DE94", "display": "Feeding Problem and / or Low Weight for Age" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B23.DE98", "display": "No Feeding Problem" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "collector", "display": "Add other classifications" } diff --git a/input/resources/questionnaire/questionnaire-emcare.b6.measurements.json b/input/resources/questionnaire/questionnaire-emcare.b6.measurements.json index 72ab8713..f274cb34 100644 --- a/input/resources/questionnaire/questionnaire-emcare.b6.measurements.json +++ b/input/resources/questionnaire/questionnaire-emcare.b6.measurements.json @@ -25,14 +25,14 @@ }, { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-targetStructureMap", - "valueCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcare.b6.measurements" + "valueCanonical": "https://smart.who.int/ccc/StructureMap/emcare.b6.measurements" }, { "url": "http://hl7.org/fhir/StructureDefinition/cqf-library", - "valueCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/emcareb6measurements" + "valueCanonical": "https://smart.who.int/ccc/Library/emcareb6measurements" } ], - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Questionnaire/emcare.b6.measurements", + "url": "https://smart.who.int/ccc/Questionnaire/emcare.b6.measurements", "name": "EmCare.B6.Measurements", "title": "EmCare.B6.Measurements", "status": "active", @@ -759,21 +759,21 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B6.DE19", "display": "Does not appear to be Underweight" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B6.DE20", "display": "Appears to be Underweight" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B6.DE21", "display": "Appears to be Severely Underweight" } diff --git a/input/resources/questionnaire/questionnaire-emcare.b7.lti-dangersigns.json b/input/resources/questionnaire/questionnaire-emcare.b7.lti-dangersigns.json index 4e1693f0..4e757342 100644 --- a/input/resources/questionnaire/questionnaire-emcare.b7.lti-dangersigns.json +++ b/input/resources/questionnaire/questionnaire-emcare.b7.lti-dangersigns.json @@ -25,14 +25,14 @@ }, { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-targetStructureMap", - "valueCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcare.b7.lti-dangersigns" + "valueCanonical": "https://smart.who.int/ccc/StructureMap/emcare.b7.lti-dangersigns" }, { "url": "http://hl7.org/fhir/StructureDefinition/cqf-library", - "valueCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/emcareb7ltidangersigns" + "valueCanonical": "https://smart.who.int/ccc/Library/emcareb7ltidangersigns" } ], - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Questionnaire/emcare.b7.lti-dangersigns", + "url": "https://smart.who.int/ccc/Questionnaire/emcare.b7.lti-dangersigns", "name": "EmCare.B7.LTI-DangerSigns", "title": "EmCare.B7.LTI-DangerSigns", "status": "active", @@ -124,14 +124,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B7-B8-B9.DE03", "display": "End consultation" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B7-B8-B9.DE02", "display": "Stabilised, continue consultation" } @@ -376,7 +376,7 @@ "extension": [ { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-subQuestionnaire", - "valueCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Questionnaire/emcare.b22.fluidtest" + "valueCanonical": "https://smart.who.int/ccc/Questionnaire/emcare.b22.fluidtest" }, { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", @@ -409,35 +409,35 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B22.DE09", "display": "Completely Unable to Drink" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B22.DE10", "display": "Vomits Immediately / Everything" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B22.DE11", "display": "Drinks Poorly" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B22.DE12", "display": "Drinks Eagerly / Thirstily" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B22.DE13", "display": "Drinks Normally" } @@ -569,35 +569,35 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B22.DE09", "display": "Completely Unable to Drink" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B22.DE10", "display": "Vomits Immediately / Everything" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B22.DE11", "display": "Drinks Poorly" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B22.DE12", "display": "Drinks Eagerly / Thirstily" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.B22.DE13", "display": "Drinks Normally" } diff --git a/input/resources/questionnaire/questionnaire-emcare.treatment.json b/input/resources/questionnaire/questionnaire-emcare.treatment.json index 632bd97b..7b683f6c 100644 --- a/input/resources/questionnaire/questionnaire-emcare.treatment.json +++ b/input/resources/questionnaire/questionnaire-emcare.treatment.json @@ -25,14 +25,14 @@ }, { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-targetStructureMap", - "valueCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcare.treatment" + "valueCanonical": "https://smart.who.int/ccc/StructureMap/emcare.treatment" }, { "url": "http://hl7.org/fhir/StructureDefinition/cqf-library", - "valueCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/emcaretreatment" + "valueCanonical": "https://smart.who.int/ccc/Library/emcaretreatment" } ], - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Questionnaire/emcare.treatment", + "url": "https://smart.who.int/ccc/Questionnaire/emcare.treatment", "name": "EmCare.Treatment", "title": "EmCare.Treatment", "status": "active", diff --git a/input/resources/questionnaire/questionnaire-emcarea.registration.p.json b/input/resources/questionnaire/questionnaire-emcarea.registration.p.json index 7ae4ee0e..9ccc56ad 100644 --- a/input/resources/questionnaire/questionnaire-emcarea.registration.p.json +++ b/input/resources/questionnaire/questionnaire-emcarea.registration.p.json @@ -89,10 +89,10 @@ }, { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-targetStructureMap", - "valueCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcarea.registration.p" + "valueCanonical": "https://smart.who.int/ccc/StructureMap/emcarea.registration.p" } ], - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Questionnaire/emcarea.registration.p", + "url": "https://smart.who.int/ccc/Questionnaire/emcarea.registration.p", "name": "EmCareA.Registration.P", "title": "EmCareA.Registration.P", "status": "active", @@ -268,21 +268,21 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.A.DE13", "display": "Estimated age in years/months for child (2 months or older)" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.A.DE14", "display": "Estimated age in weeks/days for young infant (under 2 months old)" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.A.DE15", "display": "Estimated Date of Birth" } @@ -655,7 +655,7 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.A.DE17", "display": "Female" } @@ -671,7 +671,7 @@ } ], "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.A.DE18", "display": "Male" } @@ -687,7 +687,7 @@ } ], "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.A.DE19", "display": "Not Specified" } @@ -863,42 +863,42 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.A.DE25", "display": "Mother" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.A.DE26", "display": "Father" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.A.DE27", "display": "Sibling" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.A.DE28", "display": "Extended family" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.A.DE29", "display": "Legal Guardian" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.A.DE30", "display": "Not Related" } @@ -916,7 +916,7 @@ } ], "linkId": "EmCare.A.DE31", - "definition": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "definition": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "text": "Biological Mother Vital Status", "type": "choice", "required": true, @@ -924,21 +924,21 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.A.DE46", "display": "Dead" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.A.DE34", "display": "Alive" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.A.DE33", "display": "Unknown" } @@ -976,7 +976,7 @@ } ], "linkId": "EmCare.A.DE32", - "definition": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "definition": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "text": "Biological Father Vital Status", "type": "choice", "required": true, @@ -984,21 +984,21 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.A.DE46", "display": "Dead" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.A.DE34", "display": "Alive" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "code": "EmCare.A.DE33", "display": "Unknown" } diff --git a/input/resources/questionnaire/questionnaire-emcareb.registration.e.json b/input/resources/questionnaire/questionnaire-emcareb.registration.e.json index db38d969..58d3f293 100644 --- a/input/resources/questionnaire/questionnaire-emcareb.registration.e.json +++ b/input/resources/questionnaire/questionnaire-emcareb.registration.e.json @@ -25,10 +25,10 @@ }, { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-targetStructureMap", - "valueCanonical": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcareb.registration.e" + "valueCanonical": "https://smart.who.int/ccc//StructureMap/emcareb.registration.e" } ], - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Questionnaire/emcareb.registration.e", + "url": "https://smart.who.int/ccc//Questionnaire/emcareb.registration.e", "name": "EmCareB.Registration.E", "title": "EmCareB.Registration.E", "status": "active", @@ -46,14 +46,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc//CodeSystem/emcare-custom-codes", "code": "EmCare.B3.DE03", "display": "Sick Child" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc//CodeSystem/emcare-custom-codes", "code": "EmCare.B3.DE04", "display": "Routine visit (Well child/infant)" } @@ -98,14 +98,14 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc//CodeSystem/emcare-custom-codes", "code": "EmCare.B3.DE07", "display": "Initial visit" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc//CodeSystem/emcare-custom-codes", "code": "EmCare.B3.DE08", "display": "Follow Up" } @@ -281,42 +281,42 @@ "answerOption": [ { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc//CodeSystem/emcare-custom-codes", "code": "EmCare.A.DE25", "display": "Mother" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc//CodeSystem/emcare-custom-codes", "code": "EmCare.A.DE26", "display": "Father" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc//CodeSystem/emcare-custom-codes", "code": "EmCare.A.DE27", "display": "Sibling" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc//CodeSystem/emcare-custom-codes", "code": "EmCare.A.DE28", "display": "Extended family" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc//CodeSystem/emcare-custom-codes", "code": "EmCare.A.DE29", "display": "Legal Guardian" } }, { "valueCoding": { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc//CodeSystem/emcare-custom-codes", "code": "EmCare.A.DE30", "display": "Not Related" } diff --git a/input/resources/structuredefinition/structuredefinition-anonymous.json b/input/resources/structuredefinition/structuredefinition-anonymous.json index a34e7693..3b4e43d3 100644 --- a/input/resources/structuredefinition/structuredefinition-anonymous.json +++ b/input/resources/structuredefinition/structuredefinition-anonymous.json @@ -1,7 +1,7 @@ { "resourceType": "StructureDefinition", "id": "anonymous", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/anonymous", + "url": "https://smart.who.int/ccc/StructureDefinition/anonymous", "name": "Anonymous", "title": "Anonymous", "status": "active", @@ -38,7 +38,7 @@ { "id": "Extension.url", "path": "Extension.url", - "fixedUri": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/anonymous" + "fixedUri": "https://smart.who.int/ccc/StructureDefinition/anonymous" }, { "id": "Extension.value", diff --git a/input/resources/structuredefinition/structuredefinition-birthday-estimator.json b/input/resources/structuredefinition/structuredefinition-birthday-estimator.json index 0eb4bf1d..74bd8e97 100644 --- a/input/resources/structuredefinition/structuredefinition-birthday-estimator.json +++ b/input/resources/structuredefinition/structuredefinition-birthday-estimator.json @@ -1,7 +1,7 @@ { "resourceType": "StructureDefinition", "id": "birthdateestimator", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/birthdateestimator", + "url": "https://smart.who.int/ccc/StructureDefinition/birthdateestimator", "name": "Birthday Estimator", "title": "Birthday Estimator", "status": "active", @@ -38,7 +38,7 @@ { "id": "Extension.url", "path": "Extension.url", - "fixedUri": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/birthdateestimator" + "fixedUri": "https://smart.who.int/ccc/StructureDefinition/birthdateestimator" }, { "id": "Extension.value", @@ -54,7 +54,7 @@ ], "binding": { "strength": "required", - "valueSet": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ValueSet/dob-estimator" + "valueSet": "https://smart.who.int/ccc/ValueSet/dob-estimator" } } ] diff --git a/input/resources/structuredefinition/structuredefinition-dob-time-extension.json b/input/resources/structuredefinition/structuredefinition-dob-time-extension.json index c2cd8f3d..ab23f21c 100644 --- a/input/resources/structuredefinition/structuredefinition-dob-time-extension.json +++ b/input/resources/structuredefinition/structuredefinition-dob-time-extension.json @@ -1,7 +1,7 @@ { "resourceType": "StructureDefinition", "id": "birthdatetime", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/birthdatetime", + "url": "https://smart.who.int/ccc/StructureDefinition/birthdatetime", "name": "DOB time Extension", "title": "DOB time Extension", "status": "active", @@ -38,7 +38,7 @@ { "id": "Extension.url", "path": "Extension.url", - "fixedUri": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/birthdatetime" + "fixedUri": "https://smart.who.int/ccc/StructureDefinition/birthdatetime" }, { "id": "Extension.value", diff --git a/input/resources/structuredefinition/structuredefinition-emcare-condition.json b/input/resources/structuredefinition/structuredefinition-emcare-condition.json index 491dceb3..8ad06c18 100644 --- a/input/resources/structuredefinition/structuredefinition-emcare-condition.json +++ b/input/resources/structuredefinition/structuredefinition-emcare-condition.json @@ -1,7 +1,7 @@ { "resourceType": "StructureDefinition", "id": "emcare-condition", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcare-condition", + "url": "https://smart.who.int/ccc/StructureDefinition/emcare-condition", "name": "EmCare Condition", "title": "EmCare Condition", "status": "active", @@ -29,7 +29,7 @@ { "code": "Extension", "profile": [ - "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/postcoordination" + "https://smart.who.int/ccc/StructureDefinition/postcoordination" ] } ] diff --git a/input/resources/structuredefinition/structuredefinition-emcare-observation.json b/input/resources/structuredefinition/structuredefinition-emcare-observation.json index eb16b063..d1a6efa8 100644 --- a/input/resources/structuredefinition/structuredefinition-emcare-observation.json +++ b/input/resources/structuredefinition/structuredefinition-emcare-observation.json @@ -1,7 +1,7 @@ { "resourceType": "StructureDefinition", "id": "emcare-observation", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcare-observation", + "url": "https://smart.who.int/ccc/StructureDefinition/emcare-observation", "name": "EmCare Observation", "title": "EmCare Observation", "status": "active", diff --git a/input/resources/structuredefinition/structuredefinition-emcare-patient.json b/input/resources/structuredefinition/structuredefinition-emcare-patient.json index debffac7..3db341c7 100644 --- a/input/resources/structuredefinition/structuredefinition-emcare-patient.json +++ b/input/resources/structuredefinition/structuredefinition-emcare-patient.json @@ -1,7 +1,7 @@ { "resourceType": "StructureDefinition", "id": "emcare-patient", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcare-patient", + "url": "https://smart.who.int/ccc/StructureDefinition/emcare-patient", "name": "EmCare Patient", "title": "EmCare Patient", "status": "active", @@ -29,7 +29,7 @@ { "code": "Extension", "profile": [ - "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/anonymous" + "https://smart.who.int/ccc/StructureDefinition/anonymous" ] } ] @@ -44,7 +44,7 @@ { "code": "Extension", "profile": [ - "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/birthdateestimator" + "https://smart.who.int/ccc/StructureDefinition/birthdateestimator" ] } ] @@ -59,7 +59,7 @@ { "code": "Extension", "profile": [ - "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/primarycaregiver" + "https://smart.who.int/ccc/StructureDefinition/primarycaregiver" ] } ] @@ -74,7 +74,7 @@ { "code": "Extension", "profile": [ - "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/mothervitalstatus" + "https://smart.who.int/ccc/StructureDefinition/mothervitalstatus" ] } ] @@ -89,7 +89,7 @@ { "code": "Extension", "profile": [ - "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/fathervitalstatus" + "https://smart.who.int/ccc/StructureDefinition/fathervitalstatus" ] } ] @@ -104,7 +104,7 @@ { "code": "Extension", "profile": [ - "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/smsnotifications" + "https://smart.who.int/ccc/StructureDefinition/smsnotifications" ] } ] @@ -119,7 +119,7 @@ { "code": "Extension", "profile": [ - "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/birthdatetime" + "https://smart.who.int/ccc/StructureDefinition/birthdatetime" ] } ] diff --git a/input/resources/structuredefinition/structuredefinition-father-vital-status.json b/input/resources/structuredefinition/structuredefinition-father-vital-status.json index d8a4e930..3b3b6836 100644 --- a/input/resources/structuredefinition/structuredefinition-father-vital-status.json +++ b/input/resources/structuredefinition/structuredefinition-father-vital-status.json @@ -1,7 +1,7 @@ { "resourceType": "StructureDefinition", "id": "fathervitalstatus", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/fathervitalstatus", + "url": "https://smart.who.int/ccc/StructureDefinition/fathervitalstatus", "name": "Father Vital Status", "title": "Father Vital Status", "status": "active", @@ -38,7 +38,7 @@ { "id": "Extension.url", "path": "Extension.url", - "fixedUri": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/fathervitalstatus" + "fixedUri": "https://smart.who.int/ccc/StructureDefinition/fathervitalstatus" }, { "id": "Extension.value", @@ -54,7 +54,7 @@ ], "binding": { "strength": "required", - "valueSet": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ValueSet/vital-status" + "valueSet": "https://smart.who.int/ccc/ValueSet/vital-status" } } ] diff --git a/input/resources/structuredefinition/structuredefinition-mother-vital-status.json b/input/resources/structuredefinition/structuredefinition-mother-vital-status.json index 769823e1..e7e22cf4 100644 --- a/input/resources/structuredefinition/structuredefinition-mother-vital-status.json +++ b/input/resources/structuredefinition/structuredefinition-mother-vital-status.json @@ -1,7 +1,7 @@ { "resourceType": "StructureDefinition", "id": "mothervitalstatus", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/mothervitalstatus", + "url": "https://smart.who.int/ccc/StructureDefinition/mothervitalstatus", "name": "Mother Vital Status", "title": "Mother Vital Status", "status": "active", @@ -38,7 +38,7 @@ { "id": "Extension.url", "path": "Extension.url", - "fixedUri": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/mothervitalstatus" + "fixedUri": "https://smart.who.int/ccc/StructureDefinition/mothervitalstatus" }, { "id": "Extension.value", @@ -54,7 +54,7 @@ ], "binding": { "strength": "required", - "valueSet": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ValueSet/vital-status" + "valueSet": "https://smart.who.int/ccc/ValueSet/vital-status" } } ] diff --git a/input/resources/structuredefinition/structuredefinition-post-coordination.json b/input/resources/structuredefinition/structuredefinition-post-coordination.json index fb79f338..cfac7821 100644 --- a/input/resources/structuredefinition/structuredefinition-post-coordination.json +++ b/input/resources/structuredefinition/structuredefinition-post-coordination.json @@ -1,7 +1,7 @@ { "resourceType": "StructureDefinition", "id": "postcoordination", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/postcoordination", + "url": "https://smart.who.int/ccc/StructureDefinition/postcoordination", "name": "Post-coordination", "title": "Post-coordination", "status": "active", @@ -38,7 +38,7 @@ { "id": "Extension.url", "path": "Extension.url", - "fixedUri": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/postcoordination" + "fixedUri": "https://smart.who.int/ccc/StructureDefinition/postcoordination" }, { "id": "Extension.value", @@ -54,7 +54,7 @@ ], "binding": { "strength": "required", - "valueSet": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ValueSet/postcoordination" + "valueSet": "https://smart.who.int/ccc/ValueSet/postcoordination" } } ] diff --git a/input/resources/structuredefinition/structuredefinition-primary-care-giver.json b/input/resources/structuredefinition/structuredefinition-primary-care-giver.json index b65310f2..727cc5f2 100644 --- a/input/resources/structuredefinition/structuredefinition-primary-care-giver.json +++ b/input/resources/structuredefinition/structuredefinition-primary-care-giver.json @@ -1,7 +1,7 @@ { "resourceType": "StructureDefinition", "id": "primarycaregiver", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/primarycaregiver", + "url": "https://smart.who.int/ccc/StructureDefinition/primarycaregiver", "name": "Primary Care Giver", "title": "Primary Care Giver", "status": "active", @@ -38,7 +38,7 @@ { "id": "Extension.url", "path": "Extension.url", - "fixedUri": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/primarycaregiver" + "fixedUri": "https://smart.who.int/ccc/StructureDefinition/primarycaregiver" }, { "id": "Extension.value", diff --git a/input/resources/structuredefinition/structuredefinition-sms-notifications.json b/input/resources/structuredefinition/structuredefinition-sms-notifications.json index dc1d33da..59ee4a53 100644 --- a/input/resources/structuredefinition/structuredefinition-sms-notifications.json +++ b/input/resources/structuredefinition/structuredefinition-sms-notifications.json @@ -1,7 +1,7 @@ { "resourceType": "StructureDefinition", "id": "smsnotifications", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/smsnotifications", + "url": "https://smart.who.int/ccc/StructureDefinition/smsnotifications", "name": "SMS Notifications", "title": "SMS Notifications", "status": "active", @@ -38,7 +38,7 @@ { "id": "Extension.url", "path": "Extension.url", - "fixedUri": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/smsnotifications" + "fixedUri": "https://smart.who.int/ccc/StructureDefinition/smsnotifications" }, { "id": "Extension.value", diff --git a/input/resources/structuremap/structuremap-emcare.b10-14.symptoms.2m.p.json b/input/resources/structuremap/structuremap-emcare.b10-14.symptoms.2m.p.json index 54c324ba..6deda213 100644 --- a/input/resources/structuremap/structuremap-emcare.b10-14.symptoms.2m.p.json +++ b/input/resources/structuremap/structuremap-emcare.b10-14.symptoms.2m.p.json @@ -3,9 +3,9 @@ "id": "emcare.b10-14.symptoms.2m.p", "text": { "status": "generated", - "div": "
map "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcare.b10-14.symptoms.2m.p" = "emcare.b10-14.symptoms.2m.p"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/observation" alias 'Observation' as target\r\nuses "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" alias 'EmCare Observation' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n  src -> bundle.id = uuid() "id";\r\n  src -> bundle.type = 'batch' "type";\r\n  src.item first as item where (linkId = 'EmCare.B10S1.DE05') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb10s1de05(src, tgt) "d130047c";\r\n      } "56a76d73";\r\n    } "79141fc8";\r\n  } "08fbbbd7";\r\n  src.item first as item where (linkId = 'EmCare.B10S1.DE06') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb10s1de06(src, tgt) "008a3623";\r\n      } "d784044d";\r\n    } "805abc9e";\r\n  } "446767cc";\r\n  src.item first as item where (linkId = 'EmCare.B10S1.DE01') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb10s1de01(src, tgt) "04d8e898";\r\n      } "b2d824f5";\r\n    } "0d7d74bd";\r\n  } "dd9bd984";\r\n  src.item first as item where (linkId = 'EmCare.B10S1.DE02') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb10s1de02(src, tgt) "d90e5fb1";\r\n      } "5cae2191";\r\n    } "ab1692fb";\r\n  } "119f6765";\r\n  src.item first as item where (linkId = 'EmCare.B11S1.DE01') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb11s1de01(src, tgt) "43d4af59";\r\n      } "bfd970ae";\r\n    } "b8eb69b0";\r\n  } "e1f73648";\r\n  src.item first as item where (linkId = 'EmCare.B11S1.DE02') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb11s1de02(src, tgt) "39c1737c";\r\n      } "891a881e";\r\n    } "6e6d1885";\r\n  } "a9e046d7";\r\n  src.item first as item where (linkId = 'EmCare.B11S1.DE05') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb11s1de05(src, tgt) "1721269a";\r\n      } "c1e233d8";\r\n    } "c6a3d5c5";\r\n  } "e17a9583";\r\n  src.item first as item where (linkId = 'EmCare.B12S1.DE02') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb12s1de02(src, tgt) "df55b281";\r\n      } "0a52cb1c";\r\n    } "1593137e";\r\n  } "744c4bf9";\r\n  src.item first as item where (linkId = 'EmCare.B12S1.DE03') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb12s1de03(src, tgt) "fc6edbe7";\r\n      } "5330779a";\r\n    } "c692777e";\r\n  } "8d04eb57";\r\n  src.item first as item where (linkId = 'EmCare.B.G.DE06') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcarebgde06(src, tgt) "ca782de1";\r\n      } "1b87f3fc";\r\n    } "9ac4a378";\r\n  } "f72a0439";\r\n  src.item first as item where (linkId = 'EmCare.B12S1.DE06') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb12s1de06(src, tgt) "ce301cb0";\r\n      } "c80f2620";\r\n    } "27eb1328";\r\n  } "e6da0780";\r\n  src.item first as item where (linkId = 'EmCare.B13S1.DE01') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb13s1de01(src, tgt) "0a3c13d2";\r\n      } "0ca270e1";\r\n    } "6e77deb0";\r\n  } "b8334cd6";\r\n  src.item first as item where (linkId = 'EmCare.B13S1.DE02') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb13s1de02(src, tgt) "cd788051";\r\n      } "2c880586";\r\n    } "50966861";\r\n  } "78170861";\r\n  src.item first as item where (linkId = 'EmCare.B13S1.DE03') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb13s1de03(src, tgt) "323bf4ac";\r\n      } "681ae227";\r\n    } "b8f4f3f5";\r\n  } "e5a07dfd";\r\n  src.item first as item where (linkId = 'EmCare.B13S1.DE04') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb13s1de04(src, tgt) "28267d58";\r\n      } "4ea18833";\r\n    } "82346f75";\r\n  } "b63e24e4";\r\n  src.item first as item where (linkId = 'EmCare.B14S1.DE03') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb14s1de03(src, tgt) "ab7fc76a";\r\n      } "22d8b79e";\r\n    } "991ff5c6";\r\n  } "102c5ae9";\r\n  src.item first as item where (linkId = 'EmCare.B14S1.DE01') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb14s1de01(src, tgt) "6baaff63";\r\n      } "f7186bc6";\r\n    } "19883e88";\r\n  } "90d2b417";\r\n  src.item first as item where (linkId = 'EmCare.B14S1.DE02') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb14s1de02(src, tgt) "49187687";\r\n      } "0063faef";\r\n    } "7df08969";\r\n  } "6f9d4b85";\r\n}\r\n\r\ngroup emcareobservationemcareb10s1de05(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb10s1de05";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B10S1.DE05' "code-emcareb10s1de05";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B10S1.DE05') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb10s1de05";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb10s1de05";\r\n    } "bdab9370";\r\n  } "f75f2b05";\r\n}\r\n\r\ngroup emcareobservationemcareb10s1de06(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb10s1de06";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B10S1.DE06' "code-emcareb10s1de06";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B10S1.DE06') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n        val where val.code != 'none' ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' "a1050460";\r\n      } "310f4b1f";\r\n    } "6af9bfcc";\r\n  } "156b25ae";\r\n}\r\n\r\ngroup emcareobservationemcareb10s1de01(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb10s1de01";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B10S1.DE01' "code-emcareb10s1de01";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B10S1.DE01') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb10s1de01";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb10s1de01";\r\n    } "bdab9370";\r\n  } "1b302dc5";\r\n}\r\n\r\ngroup emcareobservationemcareb10s1de02(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb10s1de02";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B10S1.DE02' "code-emcareb10s1de02";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B10S1.DE02') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n        val where val.code != 'none' ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' "a1050460";\r\n      } "310f4b1f";\r\n    } "6af9bfcc";\r\n  } "84c804e5";\r\n}\r\n\r\ngroup emcareobservationemcareb11s1de01(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb11s1de01";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B11S1.DE01' "code-emcareb11s1de01";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B11S1.DE01') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb11s1de01";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb11s1de01";\r\n    } "bdab9370";\r\n  } "7b8564b3";\r\n}\r\n\r\ngroup emcareobservationemcareb11s1de02(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb11s1de02";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B11S1.DE02' "code-emcareb11s1de02";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B11S1.DE02') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n        val where val.code != 'none' ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' "a1050460";\r\n      } "310f4b1f";\r\n    } "6af9bfcc";\r\n  } "78040096";\r\n}\r\n\r\ngroup emcareobservationemcareb11s1de05(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb11s1de05";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B11S1.DE05' "code-emcareb11s1de05";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B11S1.DE05') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb11s1de05";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb11s1de05";\r\n    } "bdab9370";\r\n  } "999566e5";\r\n}\r\n\r\ngroup emcareobservationemcareb12s1de02(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb12s1de02";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B12S1.DE02' "code-emcareb12s1de02";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B12S1.DE02') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb12s1de02";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb12s1de02";\r\n    } "bdab9370";\r\n  } "2980a862";\r\n}\r\n\r\ngroup emcareobservationemcareb12s1de03(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb12s1de03";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B12S1.DE03' "code-emcareb12s1de03";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B12S1.DE03') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n        val where val.code != 'none' ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' "a1050460";\r\n      } "310f4b1f";\r\n    } "6af9bfcc";\r\n  } "0684c220";\r\n}\r\n\r\ngroup emcareobservationemcarebgde06(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcarebgde06";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B.G.DE06' "code-emcarebgde06";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B.G.DE06') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcarebgde06";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcarebgde06";\r\n    } "bdab9370";\r\n  } "d670d189";\r\n}\r\n\r\ngroup emcareobservationemcareb12s1de06(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb12s1de06";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B12S1.DE06' "code-emcareb12s1de06";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B12S1.DE06') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb12s1de06";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb12s1de06";\r\n    } "bdab9370";\r\n  } "fcb16134";\r\n}\r\n\r\ngroup emcareobservationemcareb13s1de01(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb13s1de01";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B13S1.DE01' "code-emcareb13s1de01";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B13S1.DE01') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb13s1de01";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb13s1de01";\r\n    } "bdab9370";\r\n  } "61c82b53";\r\n}\r\n\r\ngroup emcareobservationemcareb13s1de02(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb13s1de02";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B13S1.DE02' "code-emcareb13s1de02";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B13S1.DE02') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb13s1de02";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb13s1de02";\r\n    } "bdab9370";\r\n  } "f246fc63";\r\n}\r\n\r\ngroup emcareobservationemcareb13s1de03(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb13s1de03";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B13S1.DE03' "code-emcareb13s1de03";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B13S1.DE03') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb13s1de03";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb13s1de03";\r\n    } "bdab9370";\r\n  } "1e1d8c32";\r\n}\r\n\r\ngroup emcareobservationemcareb13s1de04(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb13s1de04";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B13S1.DE04' "code-emcareb13s1de04";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B13S1.DE04') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n        val where val.code != 'none' ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' "a1050460";\r\n      } "310f4b1f";\r\n    } "6af9bfcc";\r\n  } "9fc99c98";\r\n}\r\n\r\ngroup emcareobservationemcareb14s1de03(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb14s1de03";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S1.DE03' "code-emcareb14s1de03";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B14S1.DE03') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb14s1de03";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb14s1de03";\r\n    } "bdab9370";\r\n  } "bc3a888b";\r\n}\r\n\r\ngroup emcareobservationemcareb14s1de01(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb14s1de01";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S1.DE01' "code-emcareb14s1de01";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B14S1.DE01') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb14s1de01";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb14s1de01";\r\n    } "bdab9370";\r\n  } "fb67ce2c";\r\n}\r\n\r\ngroup emcareobservationemcareb14s1de02(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb14s1de02";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S1.DE02' "code-emcareb14s1de02";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B14S1.DE02') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb14s1de02";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb14s1de02";\r\n    } "bdab9370";\r\n  } "9802d7f8";\r\n}\r\n\r\n
" + "div": "
map "https://smart.who.int/ccc/StructureMap/emcare.b10-14.symptoms.2m.p" = "emcare.b10-14.symptoms.2m.p"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/observation" alias 'Observation' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/emcareobservation" alias 'EmCare Observation' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n  src -> bundle.id = uuid() "id";\r\n  src -> bundle.type = 'batch' "type";\r\n  src.item first as item where (linkId = 'EmCare.B10S1.DE05') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb10s1de05(src, tgt) "d130047c";\r\n      } "56a76d73";\r\n    } "79141fc8";\r\n  } "08fbbbd7";\r\n  src.item first as item where (linkId = 'EmCare.B10S1.DE06') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb10s1de06(src, tgt) "008a3623";\r\n      } "d784044d";\r\n    } "805abc9e";\r\n  } "446767cc";\r\n  src.item first as item where (linkId = 'EmCare.B10S1.DE01') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb10s1de01(src, tgt) "04d8e898";\r\n      } "b2d824f5";\r\n    } "0d7d74bd";\r\n  } "dd9bd984";\r\n  src.item first as item where (linkId = 'EmCare.B10S1.DE02') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb10s1de02(src, tgt) "d90e5fb1";\r\n      } "5cae2191";\r\n    } "ab1692fb";\r\n  } "119f6765";\r\n  src.item first as item where (linkId = 'EmCare.B11S1.DE01') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb11s1de01(src, tgt) "43d4af59";\r\n      } "bfd970ae";\r\n    } "b8eb69b0";\r\n  } "e1f73648";\r\n  src.item first as item where (linkId = 'EmCare.B11S1.DE02') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb11s1de02(src, tgt) "39c1737c";\r\n      } "891a881e";\r\n    } "6e6d1885";\r\n  } "a9e046d7";\r\n  src.item first as item where (linkId = 'EmCare.B11S1.DE05') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb11s1de05(src, tgt) "1721269a";\r\n      } "c1e233d8";\r\n    } "c6a3d5c5";\r\n  } "e17a9583";\r\n  src.item first as item where (linkId = 'EmCare.B12S1.DE02') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb12s1de02(src, tgt) "df55b281";\r\n      } "0a52cb1c";\r\n    } "1593137e";\r\n  } "744c4bf9";\r\n  src.item first as item where (linkId = 'EmCare.B12S1.DE03') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb12s1de03(src, tgt) "fc6edbe7";\r\n      } "5330779a";\r\n    } "c692777e";\r\n  } "8d04eb57";\r\n  src.item first as item where (linkId = 'EmCare.B.G.DE06') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcarebgde06(src, tgt) "ca782de1";\r\n      } "1b87f3fc";\r\n    } "9ac4a378";\r\n  } "f72a0439";\r\n  src.item first as item where (linkId = 'EmCare.B12S1.DE06') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb12s1de06(src, tgt) "ce301cb0";\r\n      } "c80f2620";\r\n    } "27eb1328";\r\n  } "e6da0780";\r\n  src.item first as item where (linkId = 'EmCare.B13S1.DE01') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb13s1de01(src, tgt) "0a3c13d2";\r\n      } "0ca270e1";\r\n    } "6e77deb0";\r\n  } "b8334cd6";\r\n  src.item first as item where (linkId = 'EmCare.B13S1.DE02') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb13s1de02(src, tgt) "cd788051";\r\n      } "2c880586";\r\n    } "50966861";\r\n  } "78170861";\r\n  src.item first as item where (linkId = 'EmCare.B13S1.DE03') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb13s1de03(src, tgt) "323bf4ac";\r\n      } "681ae227";\r\n    } "b8f4f3f5";\r\n  } "e5a07dfd";\r\n  src.item first as item where (linkId = 'EmCare.B13S1.DE04') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb13s1de04(src, tgt) "28267d58";\r\n      } "4ea18833";\r\n    } "82346f75";\r\n  } "b63e24e4";\r\n  src.item first as item where (linkId = 'EmCare.B14S1.DE03') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb14s1de03(src, tgt) "ab7fc76a";\r\n      } "22d8b79e";\r\n    } "991ff5c6";\r\n  } "102c5ae9";\r\n  src.item first as item where (linkId = 'EmCare.B14S1.DE01') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb14s1de01(src, tgt) "6baaff63";\r\n      } "f7186bc6";\r\n    } "19883e88";\r\n  } "90d2b417";\r\n  src.item first as item where (linkId = 'EmCare.B14S1.DE02') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb14s1de02(src, tgt) "49187687";\r\n      } "0063faef";\r\n    } "7df08969";\r\n  } "6f9d4b85";\r\n}\r\n\r\ngroup emcareobservationemcareb10s1de05(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb10s1de05";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B10S1.DE05' "code-emcareb10s1de05";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B10S1.DE05') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb10s1de05";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb10s1de05";\r\n    } "bdab9370";\r\n  } "f75f2b05";\r\n}\r\n\r\ngroup emcareobservationemcareb10s1de06(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb10s1de06";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B10S1.DE06' "code-emcareb10s1de06";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B10S1.DE06') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n        val where val.code != 'none' ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' "a1050460";\r\n      } "310f4b1f";\r\n    } "6af9bfcc";\r\n  } "156b25ae";\r\n}\r\n\r\ngroup emcareobservationemcareb10s1de01(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb10s1de01";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B10S1.DE01' "code-emcareb10s1de01";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B10S1.DE01') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb10s1de01";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb10s1de01";\r\n    } "bdab9370";\r\n  } "1b302dc5";\r\n}\r\n\r\ngroup emcareobservationemcareb10s1de02(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb10s1de02";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B10S1.DE02' "code-emcareb10s1de02";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B10S1.DE02') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n        val where val.code != 'none' ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' "a1050460";\r\n      } "310f4b1f";\r\n    } "6af9bfcc";\r\n  } "84c804e5";\r\n}\r\n\r\ngroup emcareobservationemcareb11s1de01(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb11s1de01";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B11S1.DE01' "code-emcareb11s1de01";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B11S1.DE01') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb11s1de01";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb11s1de01";\r\n    } "bdab9370";\r\n  } "7b8564b3";\r\n}\r\n\r\ngroup emcareobservationemcareb11s1de02(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb11s1de02";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B11S1.DE02' "code-emcareb11s1de02";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B11S1.DE02') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n        val where val.code != 'none' ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' "a1050460";\r\n      } "310f4b1f";\r\n    } "6af9bfcc";\r\n  } "78040096";\r\n}\r\n\r\ngroup emcareobservationemcareb11s1de05(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb11s1de05";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B11S1.DE05' "code-emcareb11s1de05";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B11S1.DE05') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb11s1de05";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb11s1de05";\r\n    } "bdab9370";\r\n  } "999566e5";\r\n}\r\n\r\ngroup emcareobservationemcareb12s1de02(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb12s1de02";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B12S1.DE02' "code-emcareb12s1de02";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B12S1.DE02') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb12s1de02";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb12s1de02";\r\n    } "bdab9370";\r\n  } "2980a862";\r\n}\r\n\r\ngroup emcareobservationemcareb12s1de03(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb12s1de03";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B12S1.DE03' "code-emcareb12s1de03";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B12S1.DE03') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n        val where val.code != 'none' ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' "a1050460";\r\n      } "310f4b1f";\r\n    } "6af9bfcc";\r\n  } "0684c220";\r\n}\r\n\r\ngroup emcareobservationemcarebgde06(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcarebgde06";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B.G.DE06' "code-emcarebgde06";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B.G.DE06') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcarebgde06";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcarebgde06";\r\n    } "bdab9370";\r\n  } "d670d189";\r\n}\r\n\r\ngroup emcareobservationemcareb12s1de06(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb12s1de06";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B12S1.DE06' "code-emcareb12s1de06";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B12S1.DE06') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb12s1de06";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb12s1de06";\r\n    } "bdab9370";\r\n  } "fcb16134";\r\n}\r\n\r\ngroup emcareobservationemcareb13s1de01(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb13s1de01";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B13S1.DE01' "code-emcareb13s1de01";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B13S1.DE01') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb13s1de01";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb13s1de01";\r\n    } "bdab9370";\r\n  } "61c82b53";\r\n}\r\n\r\ngroup emcareobservationemcareb13s1de02(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb13s1de02";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B13S1.DE02' "code-emcareb13s1de02";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B13S1.DE02') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb13s1de02";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb13s1de02";\r\n    } "bdab9370";\r\n  } "f246fc63";\r\n}\r\n\r\ngroup emcareobservationemcareb13s1de03(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb13s1de03";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B13S1.DE03' "code-emcareb13s1de03";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B13S1.DE03') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb13s1de03";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb13s1de03";\r\n    } "bdab9370";\r\n  } "1e1d8c32";\r\n}\r\n\r\ngroup emcareobservationemcareb13s1de04(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb13s1de04";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B13S1.DE04' "code-emcareb13s1de04";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B13S1.DE04') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n        val where val.code != 'none' ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' "a1050460";\r\n      } "310f4b1f";\r\n    } "6af9bfcc";\r\n  } "9fc99c98";\r\n}\r\n\r\ngroup emcareobservationemcareb14s1de03(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb14s1de03";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S1.DE03' "code-emcareb14s1de03";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B14S1.DE03') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb14s1de03";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb14s1de03";\r\n    } "bdab9370";\r\n  } "bc3a888b";\r\n}\r\n\r\ngroup emcareobservationemcareb14s1de01(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb14s1de01";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S1.DE01' "code-emcareb14s1de01";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B14S1.DE01') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb14s1de01";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb14s1de01";\r\n    } "bdab9370";\r\n  } "fb67ce2c";\r\n}\r\n\r\ngroup emcareobservationemcareb14s1de02(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb14s1de02";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S1.DE02' "code-emcareb14s1de02";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B14S1.DE02') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb14s1de02";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb14s1de02";\r\n    } "bdab9370";\r\n  } "9802d7f8";\r\n}\r\n\r\n
" }, - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcare.b10-14.symptoms.2m.p", + "url": "https://smart.who.int/ccc/StructureMap/emcare.b10-14.symptoms.2m.p", "name": "emcare.b10-14.symptoms.2m.p", "status": "active", "structure": [ @@ -20,12 +20,12 @@ "alias": "'Bundle'" }, { - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/observation", + "url": "https://smart.who.int/ccc/StructureDefinition/observation", "mode": "target", "alias": "'Observation'" }, { - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation", + "url": "https://smart.who.int/ccc/StructureDefinition/emcareobservation", "mode": "produced", "alias": "'EmCare Observation'" } @@ -2564,7 +2564,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -2599,7 +2599,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -2921,7 +2921,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -2956,7 +2956,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -3291,7 +3291,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -3326,7 +3326,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -3648,7 +3648,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -3683,7 +3683,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -4018,7 +4018,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -4053,7 +4053,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -4375,7 +4375,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -4410,7 +4410,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -4745,7 +4745,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -4780,7 +4780,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -5102,7 +5102,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -5137,7 +5137,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -5459,7 +5459,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -5494,7 +5494,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -5829,7 +5829,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -5864,7 +5864,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -6186,7 +6186,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -6221,7 +6221,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -6543,7 +6543,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -6578,7 +6578,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -6900,7 +6900,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -6935,7 +6935,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -7257,7 +7257,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -7292,7 +7292,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -7614,7 +7614,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -7649,7 +7649,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -7984,7 +7984,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -8019,7 +8019,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -8341,7 +8341,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -8376,7 +8376,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -8698,7 +8698,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -8733,7 +8733,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, diff --git a/input/resources/structuremap/structuremap-emcare.b10-16.signs.2m.p.json b/input/resources/structuremap/structuremap-emcare.b10-16.signs.2m.p.json index 4481c97f..ffdd3154 100644 --- a/input/resources/structuremap/structuremap-emcare.b10-16.signs.2m.p.json +++ b/input/resources/structuremap/structuremap-emcare.b10-16.signs.2m.p.json @@ -3,9 +3,9 @@ "id": "emcare.b10-16.signs.2m.p", "text": { "status": "generated", - "div": "
map "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcare.b10-16.signs.2m.p" = "emcare.b10-16.signs.2m.p"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/observation" alias 'Observation' as target\r\nuses "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" alias 'EmCare Observation' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n  src -> bundle.id = uuid() "id";\r\n  src -> bundle.type = 'batch' "type";\r\n  src.item first as item where (linkId = 'EmCare.B10S2.DE03') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb10s2de03(src, tgt) "9be992ee";\r\n      } "36f7a9cc";\r\n    } "079b8b98";\r\n  } "366acbd3";\r\n  src.item first as item where (linkId = 'EmCare.B10S2.DE04') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb10s2de04(src, tgt) "22bcca4b";\r\n      } "32ccd4c5";\r\n    } "a7c78146";\r\n  } "b19e39bf";\r\n  src.item first as item where (linkId = 'EmCare.B10S2.DE05') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb10s2de05(src, tgt) "1d8e3cbc";\r\n      } "bf103e1e";\r\n    } "76d6b934";\r\n  } "98782720";\r\n  src.item first as item where (linkId = 'EmCare.B10S2.DE06') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb10s2de06(src, tgt) "c80bf08a";\r\n      } "1045a48d";\r\n    } "3d816032";\r\n  } "530045b2";\r\n  src.item first as itm1 where linkId = 'Oxygen_Saturation' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B10S2.DE07') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb10s2de07(src, tgt) "8ed85169";\r\n        } "115f4673";\r\n      } "c898e9da";\r\n    } "b4fdeee3";\r\n  } "92a14f88";\r\n  src.item first as item where (linkId = 'EmCare.B11S2.DE01') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb11s2de01(src, tgt) "571f12fb";\r\n      } "df9369ca";\r\n    } "b1634b07";\r\n  } "bf55dba7";\r\n  src.item first as item where (linkId = 'EmCare.B11S2.DE02') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb11s2de02(src, tgt) "35df08c4";\r\n      } "52eb002b";\r\n    } "c096f5b2";\r\n  } "f35e6a90";\r\n  src.item first as item where (linkId = 'EmCare.B11S2.DE06') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb11s2de06(src, tgt) "048f10f9";\r\n      } "011caec9";\r\n    } "431cd0b3";\r\n  } "5a3f8e99";\r\n  src.item first as item where (linkId = 'EmCare.B17S1.DE01') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb17s1de01(src, tgt) "13df0b77";\r\n      } "ebf73588";\r\n    } "4de1b457";\r\n  } "eb36da14";\r\n  src.item first as item where (linkId = 'EmCare.B17S1.DE02') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb17s1de02(src, tgt) "df66de05";\r\n      } "cef4a910";\r\n    } "7a411b35";\r\n  } "f5194f29";\r\n  src.item first as item where (linkId = 'EmCare.B17S1.DE06') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb17s1de06(src, tgt) "7dcc4fe7";\r\n      } "57c20bc9";\r\n    } "a315006a";\r\n  } "371f2fa4";\r\n  src.item first as item where (linkId = 'EmCare.B17S1.DE07') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb17s1de07(src, tgt) "6d9d7efe";\r\n      } "666ea04b";\r\n    } "555380a9";\r\n  } "6484a938";\r\n  src.item first as item where (linkId = 'EmCare.B13S2.DE01') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb13s2de01(src, tgt) "988862af";\r\n      } "6071237c";\r\n    } "b8724cd8";\r\n  } "06c49c87";\r\n  src.item first as item where (linkId = 'EmCare.B13S2.DE02') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb13s2de02(src, tgt) "f885cd9f";\r\n      } "56652867";\r\n    } "d0f4b9f9";\r\n  } "530eefb8";\r\n  src.item first as item where (linkId = 'EmCare.B13S2.DE03') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb13s2de03(src, tgt) "e686d739";\r\n      } "c2d82e76";\r\n    } "1aafb16b";\r\n  } "9b54ee4f";\r\n  src.item first as item where (linkId = 'EmCare.B12S2.DE01') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb12s2de01(src, tgt) "d9032a0e";\r\n      } "471ac9ec";\r\n    } "364c39dc";\r\n  } "387028ff";\r\n  src.item first as item where (linkId = 'EmCare.B12S2.DE05') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb12s2de05(src, tgt) "b4d067ef";\r\n      } "260342c7";\r\n    } "bd3ec4be";\r\n  } "325408a5";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE01') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb14s2de01(src, tgt) "3c803bdc";\r\n      } "8df3ea2e";\r\n    } "f8052c53";\r\n  } "91d8a216";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE02') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb14s2de02(src, tgt) "e05b3a93";\r\n      } "0c924a74";\r\n    } "56da7549";\r\n  } "2aa25144";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE03') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb14s2de03(src, tgt) "9ccb1879";\r\n      } "017fcd3f";\r\n    } "05f51940";\r\n  } "7c588606";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE04') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb14s2de04(src, tgt) "0e9ceef0";\r\n      } "083b89d9";\r\n    } "776651be";\r\n  } "9007e632";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE05') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb14s2de05(src, tgt) "7f44dd5a";\r\n      } "c001deab";\r\n    } "280ba472";\r\n  } "c672d1b7";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE06').answer.where(value.code = 'EmCare.B14S2.DE07') then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE06') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de06emcareb14s2de07t(src, tgt) "37b45a1a";\r\n        } "971c989b";\r\n      } "f56a8acb";\r\n    } "f0e0c1c7";\r\n  } "2caf0a2d";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE06').exists() and src.item.where(linkId = 'EmCare.B14S2.DE06').answer.where(value.code = 'EmCare.B14S2.DE07').empty() then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE06') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de06emcareb14s2de07f(src, tgt) "ed6e13a0";\r\n        } "52c7fa66";\r\n      } "81854047";\r\n    } "a9b43d6e";\r\n  } "fed21ad9";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE06').answer.where(value.code = 'EmCare.B14S2.DE08') then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE06') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de06emcareb14s2de08t(src, tgt) "31d968a5";\r\n        } "05db12b8";\r\n      } "adbfce41";\r\n    } "89575f40";\r\n  } "294cc680";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE06').exists() and src.item.where(linkId = 'EmCare.B14S2.DE06').answer.where(value.code = 'EmCare.B14S2.DE08').empty() then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE06') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de06emcareb14s2de08f(src, tgt) "1a79fb79";\r\n        } "3f5690dd";\r\n      } "a36f6b02";\r\n    } "3d64a953";\r\n  } "37580d33";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE06').answer.where(value.code = 'EmCare.B14S2.DE09') then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE06') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de06emcareb14s2de09t(src, tgt) "28edea0e";\r\n        } "7f261203";\r\n      } "a883e98f";\r\n    } "158e3fbb";\r\n  } "e1eb3d64";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE06').exists() and src.item.where(linkId = 'EmCare.B14S2.DE06').answer.where(value.code = 'EmCare.B14S2.DE09').empty() then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE06') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de06emcareb14s2de09f(src, tgt) "838bc2fd";\r\n        } "fe14ec44";\r\n      } "e465613c";\r\n    } "7ec9bbca";\r\n  } "ae01960a";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE10') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb14s2de10(src, tgt) "c7bb4c66";\r\n      } "f8c64c2f";\r\n    } "b824f2ed";\r\n  } "76d01623";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE11') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb14s2de11(src, tgt) "075dfab4";\r\n      } "e7decefb";\r\n    } "258af3ea";\r\n  } "0a0c8d1d";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE12') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb14s2de12(src, tgt) "5c4fb26d";\r\n      } "8b35df2f";\r\n    } "1def7e4a";\r\n  } "23fadae9";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE18') then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de13emcareb14s2de18t(src, tgt) "441e433a";\r\n        } "c6a25fe8";\r\n      } "3ce60159";\r\n    } "d174fa68";\r\n  } "ac7d700b";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE13').exists() and src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE18').empty() then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de13emcareb14s2de18f(src, tgt) "97a383dc";\r\n        } "2dc8d6f1";\r\n      } "e831d44b";\r\n    } "01b18454";\r\n  } "451ac430";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE19') then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de13emcareb14s2de19t(src, tgt) "176edab8";\r\n        } "6066f6c8";\r\n      } "983ce7ec";\r\n    } "19ed849e";\r\n  } "3852f24c";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE13').exists() and src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE19').empty() then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de13emcareb14s2de19f(src, tgt) "817f40b1";\r\n        } "be332abb";\r\n      } "5233dec2";\r\n    } "b6313d6e";\r\n  } "a8b58d8a";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE21') then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de13emcareb14s2de21t(src, tgt) "aa5b0432";\r\n        } "0ec5642c";\r\n      } "0d215d93";\r\n    } "4854d5df";\r\n  } "ae0dcf93";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE13').exists() and src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE21').empty() then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de13emcareb14s2de21f(src, tgt) "e4468f91";\r\n        } "cd3aebda";\r\n      } "13f1b93a";\r\n    } "c43d8495";\r\n  } "15560381";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE22') then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de13emcareb14s2de22t(src, tgt) "ab612b0e";\r\n        } "5f99713d";\r\n      } "0f879b99";\r\n    } "8071df60";\r\n  } "c9c52b13";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE13').exists() and src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE22').empty() then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de13emcareb14s2de22f(src, tgt) "123f16cb";\r\n        } "6839cab1";\r\n      } "cd6d3ddf";\r\n    } "ab20fd0d";\r\n  } "1392af91";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE23') then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de13emcareb14s2de23t(src, tgt) "a59d13f2";\r\n        } "6fa9b4c3";\r\n      } "a59cf8e8";\r\n    } "d5f2929d";\r\n  } "0b62df00";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE13').exists() and src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE23').empty() then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de13emcareb14s2de23f(src, tgt) "6596445b";\r\n        } "960ec6df";\r\n      } "388ca68d";\r\n    } "25b5d6b1";\r\n  } "87288d6a";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE25') then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de13emcareb14s2de25t(src, tgt) "072f0d04";\r\n        } "bdb49f20";\r\n      } "1ac2bcc1";\r\n    } "43511064";\r\n  } "6a58313a";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE13').exists() and src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE25').empty() then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de13emcareb14s2de25f(src, tgt) "81e79970";\r\n        } "224b2fb2";\r\n      } "021a8b72";\r\n    } "368d9ecb";\r\n  } "8441e89f";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE31') then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de13emcareb14s2de31t(src, tgt) "b35eaf3c";\r\n        } "a1596adf";\r\n      } "bab60838";\r\n    } "17feed2f";\r\n  } "4912861f";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE13').exists() and src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE31').empty() then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de13emcareb14s2de31f(src, tgt) "0c07de59";\r\n        } "8c4edf8a";\r\n      } "f51215d7";\r\n    } "76689bf7";\r\n  } "f8037952";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE32') then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de13emcareb14s2de32t(src, tgt) "304d4aab";\r\n        } "6fe3eb64";\r\n      } "14dd9fb8";\r\n    } "a671b882";\r\n  } "1c1c4815";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE13').exists() and src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE32').empty() then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de13emcareb14s2de32f(src, tgt) "6f919233";\r\n        } "5708f6bd";\r\n      } "833ec3a9";\r\n    } "cdb61927";\r\n  } "3a489200";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE33') then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de13emcareb14s2de33t(src, tgt) "0b3f6de9";\r\n        } "980b8c8b";\r\n      } "94d31e8a";\r\n    } "d37d7b65";\r\n  } "d888db70";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE13').exists() and src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE33').empty() then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de13emcareb14s2de33f(src, tgt) "8660b336";\r\n        } "dd13171e";\r\n      } "3580783e";\r\n    } "d31d16ef";\r\n  } "e3f7e3de";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE35') then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de13emcareb14s2de35t(src, tgt) "fdc56916";\r\n        } "83c3b9d5";\r\n      } "19244b4d";\r\n    } "97672cc7";\r\n  } "0ba97eaa";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE13').exists() and src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE35').empty() then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de13emcareb14s2de35f(src, tgt) "aca6e81a";\r\n        } "c68620da";\r\n      } "be69b7d3";\r\n    } "12e78229";\r\n  } "a1231c31";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE36') then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de13emcareb14s2de36t(src, tgt) "ac250feb";\r\n        } "e61326dd";\r\n      } "9cab4235";\r\n    } "cc1e3733";\r\n  } "fd0dd1e1";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE13').exists() and src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE36').empty() then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de13emcareb14s2de36f(src, tgt) "6c995c67";\r\n        } "b2720395";\r\n      } "061de0de";\r\n    } "e329544f";\r\n  } "6190a03e";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE37') then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de13emcareb14s2de37t(src, tgt) "e70adb73";\r\n        } "4bc7d51a";\r\n      } "cd87f1e7";\r\n    } "66356988";\r\n  } "1d47d233";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE13').exists() and src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE37').empty() then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de13emcareb14s2de37f(src, tgt) "216b6583";\r\n        } "191d63ec";\r\n      } "f1af8fee";\r\n    } "9b50cdfb";\r\n  } "1e5890e8";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE19a') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb14s2de19a(src, tgt) "001e9c80";\r\n      } "d2eb23fb";\r\n    } "f21f5e42";\r\n  } "0b69df95";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE22A') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb14s2de22a(src, tgt) "bccd876e";\r\n      } "95095060";\r\n    } "255ee6cb";\r\n  } "d708ca5c";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE23a') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb14s2de23a(src, tgt) "d2d3bcd4";\r\n      } "990f2716";\r\n    } "b0df7a91";\r\n  } "c2f9a858";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE24') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb14s2de24(src, tgt) "fd1e1903";\r\n      } "8deeed15";\r\n    } "711ceb12";\r\n  } "2394e366";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE30') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb14s2de30(src, tgt) "48133b0b";\r\n      } "b13f149c";\r\n    } "e8395f1e";\r\n  } "a612d3de";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE30b') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb14s2de30b(src, tgt) "e092d9f2";\r\n      } "49fe0265";\r\n    } "f83e6d8d";\r\n  } "ee1ec67e";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE31a') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb14s2de31a(src, tgt) "e36dddc9";\r\n      } "dd872982";\r\n    } "ec36bfb0";\r\n  } "09b48cf7";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE31b') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb14s2de31b(src, tgt) "a400e31e";\r\n      } "29aa3e32";\r\n    } "4d8d5769";\r\n  } "8023b5d8";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE32a') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb14s2de32a(src, tgt) "ebc4362a";\r\n      } "7b8431db";\r\n    } "63050b98";\r\n  } "7898f754";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE34') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb14s2de34(src, tgt) "1b1e3f3d";\r\n      } "92cdef51";\r\n    } "0f34721b";\r\n  } "5f2fd5be";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE36a') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb14s2de36a(src, tgt) "3a34cb4f";\r\n      } "cf05f31f";\r\n    } "62bf6f61";\r\n  } "9ab3add7";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE36b') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb14s2de36b(src, tgt) "b4115e85";\r\n      } "a80a9c42";\r\n    } "7cf10a5a";\r\n  } "a41011e3";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE36c') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb14s2de36c(src, tgt) "714801e7";\r\n      } "aed593a3";\r\n    } "10ad35b3";\r\n  } "c7681e2f";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE38') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb14s2de38(src, tgt) "695d29c8";\r\n      } "dd9951a6";\r\n    } "dbe4c0ed";\r\n  } "046ea4db";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE43').answer.where(value.code = 'EmCare.B14S2.DE44') then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE43') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de43emcareb14s2de44t(src, tgt) "54047125";\r\n        } "67759d25";\r\n      } "b7a4c6f7";\r\n    } "2df98dca";\r\n  } "39bf7130";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE43').exists() and src.item.where(linkId = 'EmCare.B14S2.DE43').answer.where(value.code = 'EmCare.B14S2.DE44').empty() then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE43') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de43emcareb14s2de44f(src, tgt) "ff18b722";\r\n        } "7ce88931";\r\n      } "d99ebaca";\r\n    } "e398081f";\r\n  } "0b39dd54";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE43').answer.where(value.code = 'EmCare.B14S2.DE45') then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE43') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de43emcareb14s2de45t(src, tgt) "3db9ce97";\r\n        } "2b1d1228";\r\n      } "694fcde8";\r\n    } "8d2528b2";\r\n  } "5702646c";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE43').exists() and src.item.where(linkId = 'EmCare.B14S2.DE43').answer.where(value.code = 'EmCare.B14S2.DE45').empty() then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE43') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de43emcareb14s2de45f(src, tgt) "00fcb42e";\r\n        } "be31bcba";\r\n      } "b54e492c";\r\n    } "84ddf53c";\r\n  } "71ef3401";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE43').answer.where(value.code = 'EmCare.B14S2.DE46') then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE43') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de43emcareb14s2de46t(src, tgt) "10098170";\r\n        } "321eb396";\r\n      } "84fc742e";\r\n    } "75bfd082";\r\n  } "9a6c19cd";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE43').exists() and src.item.where(linkId = 'EmCare.B14S2.DE43').answer.where(value.code = 'EmCare.B14S2.DE46').empty() then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE43') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de43emcareb14s2de46f(src, tgt) "6aa2bb98";\r\n        } "71cfb393";\r\n      } "05fac2b4";\r\n    } "f1cb924b";\r\n  } "d52ab655";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE43').answer.where(value.code = 'EmCare.B14S2.DE47') then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE43') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de43emcareb14s2de47t(src, tgt) "5e647793";\r\n        } "f179975e";\r\n      } "c179f0cb";\r\n    } "630de842";\r\n  } "2a472f41";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE43').exists() and src.item.where(linkId = 'EmCare.B14S2.DE43').answer.where(value.code = 'EmCare.B14S2.DE47').empty() then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE43') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de43emcareb14s2de47f(src, tgt) "46287011";\r\n        } "19fb566f";\r\n      } "4464667a";\r\n    } "ff1524d9";\r\n  } "1d4733d3";\r\n  src.item first as item where (linkId = 'EmCare.B15S2.DE01') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb15s2de01(src, tgt) "0e40abb2";\r\n      } "6b463abd";\r\n    } "75a9eb5b";\r\n  } "f3f997c1";\r\n  src.item first as item where (linkId = 'EmCare.B15S2.DE09') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb15s2de09(src, tgt) "41e89548";\r\n      } "fbbb4fbf";\r\n    } "ba468419";\r\n  } "91fe7c34";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE01') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de01(src, tgt) "94788d70";\r\n        } "cafa1f90";\r\n      } "44017cb3";\r\n    } "1c5108b8";\r\n  } "88bb5c43";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE02') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de02(src, tgt) "c3e885af";\r\n        } "60b301de";\r\n      } "815e425c";\r\n    } "85d3c3a3";\r\n  } "c7e0dbc2";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n    itm1.item first as itm2 where linkId = 'second' then {\r\n      itm2.item first as item where (linkId = 'EmCare.B22.DE04') and answer.exists() then {\r\n        src -> bundle.entry as entry then {\r\n          src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n          src -> entry.resource = create('Observation') as tgt then {\r\n            src -> tgt then emcareobservationemcareb22de04(src, tgt) "42ed4c3a";\r\n          } "b802d4a2";\r\n        } "c7431f4f";\r\n      } "ad5094ed";\r\n    } "3b2e9629";\r\n  } "318dfe75";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n    itm1.item first as itm2 where linkId = 'second' then {\r\n      itm2.item first as item where (linkId = 'EmCare.B22.DE05') and answer.exists() then {\r\n        src -> bundle.entry as entry then {\r\n          src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n          src -> entry.resource = create('Observation') as tgt then {\r\n            src -> tgt then emcareobservationemcareb22de05(src, tgt) "3be4cd34";\r\n          } "b7585bc2";\r\n        } "61b1a5c6";\r\n      } "d9d928a7";\r\n    } "9853d168";\r\n  } "c21c2c7c";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE07') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de07(src, tgt) "fa30cee1";\r\n        } "aad75965";\r\n      } "8267defb";\r\n    } "a2eebe03";\r\n  } "7ef76f25";\r\n}\r\n\r\ngroup emcareobservationemcareb10s2de03(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb10s2de03";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B10S2.DE03' "code-emcareb10s2de03";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B10S2.DE03') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb10s2de03";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb10s2de03";\r\n    } "bdab9370";\r\n  } "f8989270";\r\n}\r\n\r\ngroup emcareobservationemcareb10s2de04(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb10s2de04";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B10S2.DE04' "code-emcareb10s2de04";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B10S2.DE04') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb10s2de04";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb10s2de04";\r\n    } "bdab9370";\r\n  } "84e99b62";\r\n}\r\n\r\ngroup emcareobservationemcareb10s2de05(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb10s2de05";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B10S2.DE05' "code-emcareb10s2de05";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B10S2.DE05') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb10s2de05";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb10s2de05";\r\n    } "bdab9370";\r\n  } "822a6b5c";\r\n}\r\n\r\ngroup emcareobservationemcareb10s2de06(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb10s2de06";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B10S2.DE06' "code-emcareb10s2de06";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B10S2.DE06') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb10s2de06";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb10s2de06";\r\n    } "bdab9370";\r\n  } "ccfb93d4";\r\n}\r\n\r\ngroup emcareobservationemcareb10s2de07(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb10s2de07";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B10S2.DE07' "code-emcareb10s2de07";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'Oxygen_Saturation' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B10S2.DE07') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val ->  tgt.value = val,  tgt.status = 'final' "afa0ccc0";\r\n      } "d40466ff";\r\n    } "eef20b5e";\r\n  } "c5b03c7d";\r\n}\r\n\r\ngroup emcareobservationemcareb11s2de01(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb11s2de01";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B11S2.DE01' "code-emcareb11s2de01";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B11S2.DE01') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'true' ->  tgt.status = 'final',  tgt.value = true "8a65aaa5";\r\n      } "26c2c8c7";\r\n    } "721205d5";\r\n  } "52679414";\r\n}\r\n\r\ngroup emcareobservationemcareb11s2de02(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb11s2de02";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B11S2.DE02' "code-emcareb11s2de02";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B11S2.DE02') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n        val where val.code != 'none' ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' "a1050460";\r\n      } "310f4b1f";\r\n    } "6af9bfcc";\r\n  } "73bc942d";\r\n}\r\n\r\ngroup emcareobservationemcareb11s2de06(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb11s2de06";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B11S2.DE06' "code-emcareb11s2de06";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B11S2.DE06') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb11s2de06";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb11s2de06";\r\n    } "bdab9370";\r\n  } "47e72c0c";\r\n}\r\n\r\ngroup emcareobservationemcareb17s1de01(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb17s1de01";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B17S1.DE01' "code-emcareb17s1de01";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B17S1.DE01') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb17s1de01";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb17s1de01";\r\n    } "bdab9370";\r\n  } "11b37b57";\r\n}\r\n\r\ngroup emcareobservationemcareb17s1de02(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb17s1de02";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B17S1.DE02' "code-emcareb17s1de02";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B17S1.DE02') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n        val where val.code != 'none' ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' "a1050460";\r\n      } "310f4b1f";\r\n    } "6af9bfcc";\r\n  } "239f6c79";\r\n}\r\n\r\ngroup emcareobservationemcareb17s1de06(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb17s1de06";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B17S1.DE06' "code-emcareb17s1de06";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B17S1.DE06') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb17s1de06";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb17s1de06";\r\n    } "bdab9370";\r\n  } "2dd51df6";\r\n}\r\n\r\ngroup emcareobservationemcareb17s1de07(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb17s1de07";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B17S1.DE07' "code-emcareb17s1de07";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B17S1.DE07') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n        val where val.code != 'none' ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' "a1050460";\r\n      } "310f4b1f";\r\n    } "6af9bfcc";\r\n  } "21ffdb9d";\r\n}\r\n\r\ngroup emcareobservationemcareb13s2de01(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb13s2de01";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B13S2.DE01' "code-emcareb13s2de01";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B13S2.DE01') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb13s2de01";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb13s2de01";\r\n    } "bdab9370";\r\n  } "eabd29fd";\r\n}\r\n\r\ngroup emcareobservationemcareb13s2de02(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb13s2de02";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B13S2.DE02' "code-emcareb13s2de02";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B13S2.DE02') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb13s2de02";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb13s2de02";\r\n    } "bdab9370";\r\n  } "5b651554";\r\n}\r\n\r\ngroup emcareobservationemcareb13s2de03(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb13s2de03";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B13S2.DE03' "code-emcareb13s2de03";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B13S2.DE03') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n        val where val.code != 'none' ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' "a1050460";\r\n      } "310f4b1f";\r\n    } "6af9bfcc";\r\n  } "b937d9f0";\r\n}\r\n\r\ngroup emcareobservationemcareb12s2de01(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb12s2de01";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B12S2.DE01' "code-emcareb12s2de01";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B12S2.DE01') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb12s2de01";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb12s2de01";\r\n    } "bdab9370";\r\n  } "de146d59";\r\n}\r\n\r\ngroup emcareobservationemcareb12s2de05(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb12s2de05";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B12S2.DE05' "code-emcareb12s2de05";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B12S2.DE05') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb12s2de05";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb12s2de05";\r\n    } "bdab9370";\r\n  } "c913991e";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de01(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb14s2de01";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE01' "code-emcareb14s2de01";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE01') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb14s2de01";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb14s2de01";\r\n    } "bdab9370";\r\n  } "ffbd856e";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de02(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb14s2de02";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE02' "code-emcareb14s2de02";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE02') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb14s2de02";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb14s2de02";\r\n    } "bdab9370";\r\n  } "0fee727b";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de03(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb14s2de03";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE03' "code-emcareb14s2de03";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE03') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb14s2de03";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb14s2de03";\r\n    } "bdab9370";\r\n  } "35101ce1";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de04(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb14s2de04";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE04' "code-emcareb14s2de04";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE04') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb14s2de04";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb14s2de04";\r\n    } "bdab9370";\r\n  } "b57020c5";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de05(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb14s2de05";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE05' "code-emcareb14s2de05";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE05') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb14s2de05";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb14s2de05";\r\n    } "bdab9370";\r\n  } "0b745de8";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de06emcareb14s2de07t(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de06emcareb14s2de07t";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE06&EmCare.B14S2.DE07' "code-emcareobservationemcareb14s2de06emcareb14s2de07t";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'final',  tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de06emcareb14s2de07f(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de06emcareb14s2de07f";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE06&EmCare.B14S2.DE07' "code-emcareobservationemcareb14s2de06emcareb14s2de07f";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de06emcareb14s2de08t(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de06emcareb14s2de08t";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE06&EmCare.B14S2.DE08' "code-emcareobservationemcareb14s2de06emcareb14s2de08t";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'final',  tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de06emcareb14s2de08f(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de06emcareb14s2de08f";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE06&EmCare.B14S2.DE08' "code-emcareobservationemcareb14s2de06emcareb14s2de08f";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de06emcareb14s2de09t(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de06emcareb14s2de09t";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE06&EmCare.B14S2.DE09' "code-emcareobservationemcareb14s2de06emcareb14s2de09t";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'final',  tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de06emcareb14s2de09f(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de06emcareb14s2de09f";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE06&EmCare.B14S2.DE09' "code-emcareobservationemcareb14s2de06emcareb14s2de09f";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de10(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb14s2de10";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE10' "code-emcareb14s2de10";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE10') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb14s2de10";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb14s2de10";\r\n    } "bdab9370";\r\n  } "686fa0c0";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de11(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb14s2de11";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE11' "code-emcareb14s2de11";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE11') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb14s2de11";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb14s2de11";\r\n    } "bdab9370";\r\n  } "9d9704d8";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de12(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb14s2de12";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE12' "code-emcareb14s2de12";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE12') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb14s2de12";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb14s2de12";\r\n    } "bdab9370";\r\n  } "51199b07";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de18t(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de18t";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE18' "code-emcareobservationemcareb14s2de13emcareb14s2de18t";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'final',  tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de18f(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de18f";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE18' "code-emcareobservationemcareb14s2de13emcareb14s2de18f";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de19t(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de19t";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE19' "code-emcareobservationemcareb14s2de13emcareb14s2de19t";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'final',  tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de19f(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de19f";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE19' "code-emcareobservationemcareb14s2de13emcareb14s2de19f";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de21t(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de21t";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE21' "code-emcareobservationemcareb14s2de13emcareb14s2de21t";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'final',  tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de21f(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de21f";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE21' "code-emcareobservationemcareb14s2de13emcareb14s2de21f";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de22t(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de22t";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE22' "code-emcareobservationemcareb14s2de13emcareb14s2de22t";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'final',  tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de22f(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de22f";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE22' "code-emcareobservationemcareb14s2de13emcareb14s2de22f";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de23t(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de23t";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE23' "code-emcareobservationemcareb14s2de13emcareb14s2de23t";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'final',  tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de23f(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de23f";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE23' "code-emcareobservationemcareb14s2de13emcareb14s2de23f";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de25t(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de25t";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE25' "code-emcareobservationemcareb14s2de13emcareb14s2de25t";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'final',  tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de25f(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de25f";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE25' "code-emcareobservationemcareb14s2de13emcareb14s2de25f";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de31t(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de31t";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE31' "code-emcareobservationemcareb14s2de13emcareb14s2de31t";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'final',  tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de31f(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de31f";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE31' "code-emcareobservationemcareb14s2de13emcareb14s2de31f";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de32t(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de32t";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE32' "code-emcareobservationemcareb14s2de13emcareb14s2de32t";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'final',  tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de32f(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de32f";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE32' "code-emcareobservationemcareb14s2de13emcareb14s2de32f";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de33t(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de33t";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE33' "code-emcareobservationemcareb14s2de13emcareb14s2de33t";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'final',  tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de33f(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de33f";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE33' "code-emcareobservationemcareb14s2de13emcareb14s2de33f";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de35t(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de35t";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE35' "code-emcareobservationemcareb14s2de13emcareb14s2de35t";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'final',  tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de35f(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de35f";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE35' "code-emcareobservationemcareb14s2de13emcareb14s2de35f";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de36t(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de36t";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE36' "code-emcareobservationemcareb14s2de13emcareb14s2de36t";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'final',  tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de36f(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de36f";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE36' "code-emcareobservationemcareb14s2de13emcareb14s2de36f";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de37t(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de37t";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE37' "code-emcareobservationemcareb14s2de13emcareb14s2de37t";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'final',  tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de37f(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de37f";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE37' "code-emcareobservationemcareb14s2de13emcareb14s2de37f";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de19a(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb14s2de19a";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE19a' "code-emcareb14s2de19a";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE19a') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb14s2de19a";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb14s2de19a";\r\n    } "bdab9370";\r\n  } "7704f1e6";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de22a(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb14s2de22a";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE22A' "code-emcareb14s2de22a";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE22A') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb14s2de22a";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb14s2de22a";\r\n    } "bdab9370";\r\n  } "34b4bff4";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de23a(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb14s2de23a";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE23a' "code-emcareb14s2de23a";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE23a') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb14s2de23a";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb14s2de23a";\r\n    } "bdab9370";\r\n  } "cbc06169";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de24(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb14s2de24";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE24' "code-emcareb14s2de24";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE24') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb14s2de24";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb14s2de24";\r\n    } "bdab9370";\r\n  } "a8bffbd0";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de30(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb14s2de30";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE30' "code-emcareb14s2de30";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE30') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb14s2de30";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb14s2de30";\r\n    } "bdab9370";\r\n  } "5c4c116c";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de30b(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb14s2de30b";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE30b' "code-emcareb14s2de30b";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE30b') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb14s2de30b";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb14s2de30b";\r\n    } "bdab9370";\r\n  } "b2203142";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de31a(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb14s2de31a";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE31a' "code-emcareb14s2de31a";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE31a') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb14s2de31a";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb14s2de31a";\r\n    } "bdab9370";\r\n  } "c1d62dd8";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de31b(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb14s2de31b";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE31b' "code-emcareb14s2de31b";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE31b') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb14s2de31b";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb14s2de31b";\r\n    } "bdab9370";\r\n  } "53c39908";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de32a(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb14s2de32a";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE32a' "code-emcareb14s2de32a";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE32a') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb14s2de32a";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb14s2de32a";\r\n    } "bdab9370";\r\n  } "a295ad88";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de34(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb14s2de34";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE34' "code-emcareb14s2de34";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE34') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb14s2de34";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb14s2de34";\r\n    } "bdab9370";\r\n  } "6bc4a7ea";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de36a(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb14s2de36a";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE36a' "code-emcareb14s2de36a";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE36a') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb14s2de36a";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb14s2de36a";\r\n    } "bdab9370";\r\n  } "72b21d5c";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de36b(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb14s2de36b";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE36b' "code-emcareb14s2de36b";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE36b') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb14s2de36b";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb14s2de36b";\r\n    } "bdab9370";\r\n  } "d3720173";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de36c(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb14s2de36c";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE36c' "code-emcareb14s2de36c";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE36c') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb14s2de36c";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb14s2de36c";\r\n    } "bdab9370";\r\n  } "4f384bfd";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de38(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb14s2de38";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE38' "code-emcareb14s2de38";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE38') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n        val where val.code != 'none' ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' "a1050460";\r\n      } "310f4b1f";\r\n    } "6af9bfcc";\r\n  } "d40efaa7";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de43emcareb14s2de44t(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de43emcareb14s2de44t";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE43&EmCare.B14S2.DE44' "code-emcareobservationemcareb14s2de43emcareb14s2de44t";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'final',  tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de43emcareb14s2de44f(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de43emcareb14s2de44f";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE43&EmCare.B14S2.DE44' "code-emcareobservationemcareb14s2de43emcareb14s2de44f";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de43emcareb14s2de45t(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de43emcareb14s2de45t";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE43&EmCare.B14S2.DE45' "code-emcareobservationemcareb14s2de43emcareb14s2de45t";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'final',  tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de43emcareb14s2de45f(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de43emcareb14s2de45f";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE43&EmCare.B14S2.DE45' "code-emcareobservationemcareb14s2de43emcareb14s2de45f";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de43emcareb14s2de46t(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de43emcareb14s2de46t";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE43&EmCare.B14S2.DE46' "code-emcareobservationemcareb14s2de43emcareb14s2de46t";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'final',  tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de43emcareb14s2de46f(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de43emcareb14s2de46f";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE43&EmCare.B14S2.DE46' "code-emcareobservationemcareb14s2de43emcareb14s2de46f";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de43emcareb14s2de47t(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de43emcareb14s2de47t";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE43&EmCare.B14S2.DE47' "code-emcareobservationemcareb14s2de43emcareb14s2de47t";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'final',  tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de43emcareb14s2de47f(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de43emcareb14s2de47f";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE43&EmCare.B14S2.DE47' "code-emcareobservationemcareb14s2de43emcareb14s2de47f";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb15s2de01(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb15s2de01";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B15S2.DE01' "code-emcareb15s2de01";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B15S2.DE01') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n        val where val.code != 'none' ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' "a1050460";\r\n      } "310f4b1f";\r\n    } "6af9bfcc";\r\n  } "aa55388e";\r\n}\r\n\r\ngroup emcareobservationemcareb15s2de09(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb15s2de09";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B15S2.DE09' "code-emcareb15s2de09";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B15S2.DE09') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n        val where val.code != 'none' ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' "a1050460";\r\n      } "310f4b1f";\r\n    } "6af9bfcc";\r\n  } "2a2ced9b";\r\n}\r\n\r\ngroup emcareobservationemcareb22de01(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de01";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE01' "code-emcareb22de01";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE01') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val ->  tgt.value = val,  tgt.status = 'final' "afa0ccc0";\r\n      } "d40466ff";\r\n    } "e1cd1fa1";\r\n  } "ad8e4fa6";\r\n}\r\n\r\ngroup emcareobservationemcareb22de02(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de02";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE02' "code-emcareb22de02";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE02') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val then {\r\n          val where val.code = 'true' ->  tgt.status = 'final',  tgt.value = true "8a65aaa5";\r\n        } "26c2c8c7";\r\n      } "721205d5";\r\n    } "38b3c27b";\r\n  } "5b046e45";\r\n}\r\n\r\ngroup emcareobservationemcareb22de04(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de04";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE04' "code-emcareb22de04";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n    itm1.item first as itm2 where linkId = 'second' then {\r\n      itm2.item first as item where (linkId = 'EmCare.B22.DE04') and answer.exists() then {\r\n        item.answer first as a then {\r\n          a.value as val ->  tgt.value = val,  tgt.status = 'final' "afa0ccc0";\r\n        } "d40466ff";\r\n      } "f66ca63f";\r\n    } "1b837896";\r\n  } "6b3a0b06";\r\n}\r\n\r\ngroup emcareobservationemcareb22de05(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de05";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE05' "code-emcareb22de05";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n    itm1.item first as itm2 where linkId = 'second' then {\r\n      itm2.item first as item where (linkId = 'EmCare.B22.DE05') and answer.exists() then {\r\n        item.answer first as a then {\r\n          a.value as val then {\r\n            val where val.code = 'true' ->  tgt.status = 'final',  tgt.value = true "8a65aaa5";\r\n          } "26c2c8c7";\r\n        } "721205d5";\r\n      } "48a81a4f";\r\n    } "9322cbb7";\r\n  } "ed73ec89";\r\n}\r\n\r\ngroup emcareobservationemcareb22de07(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de07";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE07' "code-emcareb22de07";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE07') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb22de07";\r\n        a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb22de07";\r\n      } "bdab9370";\r\n    } "b5e73929";\r\n  } "306838ed";\r\n}\r\n\r\n
" + "div": "
map "https://smart.who.int/ccc/StructureMap/emcare.b10-16.signs.2m.p" = "emcare.b10-16.signs.2m.p"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/observation" alias 'Observation' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/emcareobservation" alias 'EmCare Observation' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n  src -> bundle.id = uuid() "id";\r\n  src -> bundle.type = 'batch' "type";\r\n  src.item first as item where (linkId = 'EmCare.B10S2.DE03') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb10s2de03(src, tgt) "9be992ee";\r\n      } "36f7a9cc";\r\n    } "079b8b98";\r\n  } "366acbd3";\r\n  src.item first as item where (linkId = 'EmCare.B10S2.DE04') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb10s2de04(src, tgt) "22bcca4b";\r\n      } "32ccd4c5";\r\n    } "a7c78146";\r\n  } "b19e39bf";\r\n  src.item first as item where (linkId = 'EmCare.B10S2.DE05') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb10s2de05(src, tgt) "1d8e3cbc";\r\n      } "bf103e1e";\r\n    } "76d6b934";\r\n  } "98782720";\r\n  src.item first as item where (linkId = 'EmCare.B10S2.DE06') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb10s2de06(src, tgt) "c80bf08a";\r\n      } "1045a48d";\r\n    } "3d816032";\r\n  } "530045b2";\r\n  src.item first as itm1 where linkId = 'Oxygen_Saturation' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B10S2.DE07') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb10s2de07(src, tgt) "8ed85169";\r\n        } "115f4673";\r\n      } "c898e9da";\r\n    } "b4fdeee3";\r\n  } "92a14f88";\r\n  src.item first as item where (linkId = 'EmCare.B11S2.DE01') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb11s2de01(src, tgt) "571f12fb";\r\n      } "df9369ca";\r\n    } "b1634b07";\r\n  } "bf55dba7";\r\n  src.item first as item where (linkId = 'EmCare.B11S2.DE02') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb11s2de02(src, tgt) "35df08c4";\r\n      } "52eb002b";\r\n    } "c096f5b2";\r\n  } "f35e6a90";\r\n  src.item first as item where (linkId = 'EmCare.B11S2.DE06') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb11s2de06(src, tgt) "048f10f9";\r\n      } "011caec9";\r\n    } "431cd0b3";\r\n  } "5a3f8e99";\r\n  src.item first as item where (linkId = 'EmCare.B17S1.DE01') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb17s1de01(src, tgt) "13df0b77";\r\n      } "ebf73588";\r\n    } "4de1b457";\r\n  } "eb36da14";\r\n  src.item first as item where (linkId = 'EmCare.B17S1.DE02') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb17s1de02(src, tgt) "df66de05";\r\n      } "cef4a910";\r\n    } "7a411b35";\r\n  } "f5194f29";\r\n  src.item first as item where (linkId = 'EmCare.B17S1.DE06') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb17s1de06(src, tgt) "7dcc4fe7";\r\n      } "57c20bc9";\r\n    } "a315006a";\r\n  } "371f2fa4";\r\n  src.item first as item where (linkId = 'EmCare.B17S1.DE07') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb17s1de07(src, tgt) "6d9d7efe";\r\n      } "666ea04b";\r\n    } "555380a9";\r\n  } "6484a938";\r\n  src.item first as item where (linkId = 'EmCare.B13S2.DE01') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb13s2de01(src, tgt) "988862af";\r\n      } "6071237c";\r\n    } "b8724cd8";\r\n  } "06c49c87";\r\n  src.item first as item where (linkId = 'EmCare.B13S2.DE02') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb13s2de02(src, tgt) "f885cd9f";\r\n      } "56652867";\r\n    } "d0f4b9f9";\r\n  } "530eefb8";\r\n  src.item first as item where (linkId = 'EmCare.B13S2.DE03') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb13s2de03(src, tgt) "e686d739";\r\n      } "c2d82e76";\r\n    } "1aafb16b";\r\n  } "9b54ee4f";\r\n  src.item first as item where (linkId = 'EmCare.B12S2.DE01') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb12s2de01(src, tgt) "d9032a0e";\r\n      } "471ac9ec";\r\n    } "364c39dc";\r\n  } "387028ff";\r\n  src.item first as item where (linkId = 'EmCare.B12S2.DE05') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb12s2de05(src, tgt) "b4d067ef";\r\n      } "260342c7";\r\n    } "bd3ec4be";\r\n  } "325408a5";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE01') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb14s2de01(src, tgt) "3c803bdc";\r\n      } "8df3ea2e";\r\n    } "f8052c53";\r\n  } "91d8a216";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE02') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb14s2de02(src, tgt) "e05b3a93";\r\n      } "0c924a74";\r\n    } "56da7549";\r\n  } "2aa25144";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE03') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb14s2de03(src, tgt) "9ccb1879";\r\n      } "017fcd3f";\r\n    } "05f51940";\r\n  } "7c588606";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE04') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb14s2de04(src, tgt) "0e9ceef0";\r\n      } "083b89d9";\r\n    } "776651be";\r\n  } "9007e632";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE05') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb14s2de05(src, tgt) "7f44dd5a";\r\n      } "c001deab";\r\n    } "280ba472";\r\n  } "c672d1b7";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE06').answer.where(value.code = 'EmCare.B14S2.DE07') then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE06') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de06emcareb14s2de07t(src, tgt) "37b45a1a";\r\n        } "971c989b";\r\n      } "f56a8acb";\r\n    } "f0e0c1c7";\r\n  } "2caf0a2d";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE06').exists() and src.item.where(linkId = 'EmCare.B14S2.DE06').answer.where(value.code = 'EmCare.B14S2.DE07').empty() then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE06') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de06emcareb14s2de07f(src, tgt) "ed6e13a0";\r\n        } "52c7fa66";\r\n      } "81854047";\r\n    } "a9b43d6e";\r\n  } "fed21ad9";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE06').answer.where(value.code = 'EmCare.B14S2.DE08') then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE06') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de06emcareb14s2de08t(src, tgt) "31d968a5";\r\n        } "05db12b8";\r\n      } "adbfce41";\r\n    } "89575f40";\r\n  } "294cc680";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE06').exists() and src.item.where(linkId = 'EmCare.B14S2.DE06').answer.where(value.code = 'EmCare.B14S2.DE08').empty() then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE06') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de06emcareb14s2de08f(src, tgt) "1a79fb79";\r\n        } "3f5690dd";\r\n      } "a36f6b02";\r\n    } "3d64a953";\r\n  } "37580d33";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE06').answer.where(value.code = 'EmCare.B14S2.DE09') then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE06') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de06emcareb14s2de09t(src, tgt) "28edea0e";\r\n        } "7f261203";\r\n      } "a883e98f";\r\n    } "158e3fbb";\r\n  } "e1eb3d64";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE06').exists() and src.item.where(linkId = 'EmCare.B14S2.DE06').answer.where(value.code = 'EmCare.B14S2.DE09').empty() then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE06') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de06emcareb14s2de09f(src, tgt) "838bc2fd";\r\n        } "fe14ec44";\r\n      } "e465613c";\r\n    } "7ec9bbca";\r\n  } "ae01960a";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE10') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb14s2de10(src, tgt) "c7bb4c66";\r\n      } "f8c64c2f";\r\n    } "b824f2ed";\r\n  } "76d01623";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE11') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb14s2de11(src, tgt) "075dfab4";\r\n      } "e7decefb";\r\n    } "258af3ea";\r\n  } "0a0c8d1d";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE12') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb14s2de12(src, tgt) "5c4fb26d";\r\n      } "8b35df2f";\r\n    } "1def7e4a";\r\n  } "23fadae9";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE18') then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de13emcareb14s2de18t(src, tgt) "441e433a";\r\n        } "c6a25fe8";\r\n      } "3ce60159";\r\n    } "d174fa68";\r\n  } "ac7d700b";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE13').exists() and src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE18').empty() then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de13emcareb14s2de18f(src, tgt) "97a383dc";\r\n        } "2dc8d6f1";\r\n      } "e831d44b";\r\n    } "01b18454";\r\n  } "451ac430";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE19') then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de13emcareb14s2de19t(src, tgt) "176edab8";\r\n        } "6066f6c8";\r\n      } "983ce7ec";\r\n    } "19ed849e";\r\n  } "3852f24c";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE13').exists() and src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE19').empty() then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de13emcareb14s2de19f(src, tgt) "817f40b1";\r\n        } "be332abb";\r\n      } "5233dec2";\r\n    } "b6313d6e";\r\n  } "a8b58d8a";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE21') then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de13emcareb14s2de21t(src, tgt) "aa5b0432";\r\n        } "0ec5642c";\r\n      } "0d215d93";\r\n    } "4854d5df";\r\n  } "ae0dcf93";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE13').exists() and src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE21').empty() then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de13emcareb14s2de21f(src, tgt) "e4468f91";\r\n        } "cd3aebda";\r\n      } "13f1b93a";\r\n    } "c43d8495";\r\n  } "15560381";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE22') then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de13emcareb14s2de22t(src, tgt) "ab612b0e";\r\n        } "5f99713d";\r\n      } "0f879b99";\r\n    } "8071df60";\r\n  } "c9c52b13";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE13').exists() and src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE22').empty() then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de13emcareb14s2de22f(src, tgt) "123f16cb";\r\n        } "6839cab1";\r\n      } "cd6d3ddf";\r\n    } "ab20fd0d";\r\n  } "1392af91";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE23') then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de13emcareb14s2de23t(src, tgt) "a59d13f2";\r\n        } "6fa9b4c3";\r\n      } "a59cf8e8";\r\n    } "d5f2929d";\r\n  } "0b62df00";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE13').exists() and src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE23').empty() then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de13emcareb14s2de23f(src, tgt) "6596445b";\r\n        } "960ec6df";\r\n      } "388ca68d";\r\n    } "25b5d6b1";\r\n  } "87288d6a";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE25') then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de13emcareb14s2de25t(src, tgt) "072f0d04";\r\n        } "bdb49f20";\r\n      } "1ac2bcc1";\r\n    } "43511064";\r\n  } "6a58313a";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE13').exists() and src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE25').empty() then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de13emcareb14s2de25f(src, tgt) "81e79970";\r\n        } "224b2fb2";\r\n      } "021a8b72";\r\n    } "368d9ecb";\r\n  } "8441e89f";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE31') then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de13emcareb14s2de31t(src, tgt) "b35eaf3c";\r\n        } "a1596adf";\r\n      } "bab60838";\r\n    } "17feed2f";\r\n  } "4912861f";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE13').exists() and src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE31').empty() then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de13emcareb14s2de31f(src, tgt) "0c07de59";\r\n        } "8c4edf8a";\r\n      } "f51215d7";\r\n    } "76689bf7";\r\n  } "f8037952";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE32') then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de13emcareb14s2de32t(src, tgt) "304d4aab";\r\n        } "6fe3eb64";\r\n      } "14dd9fb8";\r\n    } "a671b882";\r\n  } "1c1c4815";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE13').exists() and src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE32').empty() then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de13emcareb14s2de32f(src, tgt) "6f919233";\r\n        } "5708f6bd";\r\n      } "833ec3a9";\r\n    } "cdb61927";\r\n  } "3a489200";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE33') then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de13emcareb14s2de33t(src, tgt) "0b3f6de9";\r\n        } "980b8c8b";\r\n      } "94d31e8a";\r\n    } "d37d7b65";\r\n  } "d888db70";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE13').exists() and src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE33').empty() then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de13emcareb14s2de33f(src, tgt) "8660b336";\r\n        } "dd13171e";\r\n      } "3580783e";\r\n    } "d31d16ef";\r\n  } "e3f7e3de";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE35') then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de13emcareb14s2de35t(src, tgt) "fdc56916";\r\n        } "83c3b9d5";\r\n      } "19244b4d";\r\n    } "97672cc7";\r\n  } "0ba97eaa";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE13').exists() and src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE35').empty() then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de13emcareb14s2de35f(src, tgt) "aca6e81a";\r\n        } "c68620da";\r\n      } "be69b7d3";\r\n    } "12e78229";\r\n  } "a1231c31";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE36') then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de13emcareb14s2de36t(src, tgt) "ac250feb";\r\n        } "e61326dd";\r\n      } "9cab4235";\r\n    } "cc1e3733";\r\n  } "fd0dd1e1";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE13').exists() and src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE36').empty() then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de13emcareb14s2de36f(src, tgt) "6c995c67";\r\n        } "b2720395";\r\n      } "061de0de";\r\n    } "e329544f";\r\n  } "6190a03e";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE37') then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de13emcareb14s2de37t(src, tgt) "e70adb73";\r\n        } "4bc7d51a";\r\n      } "cd87f1e7";\r\n    } "66356988";\r\n  } "1d47d233";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE13').exists() and src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE37').empty() then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de13emcareb14s2de37f(src, tgt) "216b6583";\r\n        } "191d63ec";\r\n      } "f1af8fee";\r\n    } "9b50cdfb";\r\n  } "1e5890e8";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE19a') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb14s2de19a(src, tgt) "001e9c80";\r\n      } "d2eb23fb";\r\n    } "f21f5e42";\r\n  } "0b69df95";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE22A') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb14s2de22a(src, tgt) "bccd876e";\r\n      } "95095060";\r\n    } "255ee6cb";\r\n  } "d708ca5c";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE23a') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb14s2de23a(src, tgt) "d2d3bcd4";\r\n      } "990f2716";\r\n    } "b0df7a91";\r\n  } "c2f9a858";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE24') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb14s2de24(src, tgt) "fd1e1903";\r\n      } "8deeed15";\r\n    } "711ceb12";\r\n  } "2394e366";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE30') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb14s2de30(src, tgt) "48133b0b";\r\n      } "b13f149c";\r\n    } "e8395f1e";\r\n  } "a612d3de";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE30b') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb14s2de30b(src, tgt) "e092d9f2";\r\n      } "49fe0265";\r\n    } "f83e6d8d";\r\n  } "ee1ec67e";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE31a') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb14s2de31a(src, tgt) "e36dddc9";\r\n      } "dd872982";\r\n    } "ec36bfb0";\r\n  } "09b48cf7";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE31b') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb14s2de31b(src, tgt) "a400e31e";\r\n      } "29aa3e32";\r\n    } "4d8d5769";\r\n  } "8023b5d8";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE32a') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb14s2de32a(src, tgt) "ebc4362a";\r\n      } "7b8431db";\r\n    } "63050b98";\r\n  } "7898f754";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE34') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb14s2de34(src, tgt) "1b1e3f3d";\r\n      } "92cdef51";\r\n    } "0f34721b";\r\n  } "5f2fd5be";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE36a') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb14s2de36a(src, tgt) "3a34cb4f";\r\n      } "cf05f31f";\r\n    } "62bf6f61";\r\n  } "9ab3add7";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE36b') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb14s2de36b(src, tgt) "b4115e85";\r\n      } "a80a9c42";\r\n    } "7cf10a5a";\r\n  } "a41011e3";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE36c') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb14s2de36c(src, tgt) "714801e7";\r\n      } "aed593a3";\r\n    } "10ad35b3";\r\n  } "c7681e2f";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE38') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb14s2de38(src, tgt) "695d29c8";\r\n      } "dd9951a6";\r\n    } "dbe4c0ed";\r\n  } "046ea4db";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE43').answer.where(value.code = 'EmCare.B14S2.DE44') then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE43') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de43emcareb14s2de44t(src, tgt) "54047125";\r\n        } "67759d25";\r\n      } "b7a4c6f7";\r\n    } "2df98dca";\r\n  } "39bf7130";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE43').exists() and src.item.where(linkId = 'EmCare.B14S2.DE43').answer.where(value.code = 'EmCare.B14S2.DE44').empty() then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE43') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de43emcareb14s2de44f(src, tgt) "ff18b722";\r\n        } "7ce88931";\r\n      } "d99ebaca";\r\n    } "e398081f";\r\n  } "0b39dd54";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE43').answer.where(value.code = 'EmCare.B14S2.DE45') then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE43') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de43emcareb14s2de45t(src, tgt) "3db9ce97";\r\n        } "2b1d1228";\r\n      } "694fcde8";\r\n    } "8d2528b2";\r\n  } "5702646c";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE43').exists() and src.item.where(linkId = 'EmCare.B14S2.DE43').answer.where(value.code = 'EmCare.B14S2.DE45').empty() then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE43') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de43emcareb14s2de45f(src, tgt) "00fcb42e";\r\n        } "be31bcba";\r\n      } "b54e492c";\r\n    } "84ddf53c";\r\n  } "71ef3401";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE43').answer.where(value.code = 'EmCare.B14S2.DE46') then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE43') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de43emcareb14s2de46t(src, tgt) "10098170";\r\n        } "321eb396";\r\n      } "84fc742e";\r\n    } "75bfd082";\r\n  } "9a6c19cd";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE43').exists() and src.item.where(linkId = 'EmCare.B14S2.DE43').answer.where(value.code = 'EmCare.B14S2.DE46').empty() then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE43') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de43emcareb14s2de46f(src, tgt) "6aa2bb98";\r\n        } "71cfb393";\r\n      } "05fac2b4";\r\n    } "f1cb924b";\r\n  } "d52ab655";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE43').answer.where(value.code = 'EmCare.B14S2.DE47') then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE43') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de43emcareb14s2de47t(src, tgt) "5e647793";\r\n        } "f179975e";\r\n      } "c179f0cb";\r\n    } "630de842";\r\n  } "2a472f41";\r\n  src where src.item.where(linkId = 'EmCare.B14S2.DE43').exists() and src.item.where(linkId = 'EmCare.B14S2.DE43').answer.where(value.code = 'EmCare.B14S2.DE47').empty() then {\r\n    src.item first as item where (linkId = 'EmCare.B14S2.DE43') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb14s2de43emcareb14s2de47f(src, tgt) "46287011";\r\n        } "19fb566f";\r\n      } "4464667a";\r\n    } "ff1524d9";\r\n  } "1d4733d3";\r\n  src.item first as item where (linkId = 'EmCare.B15S2.DE01') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb15s2de01(src, tgt) "0e40abb2";\r\n      } "6b463abd";\r\n    } "75a9eb5b";\r\n  } "f3f997c1";\r\n  src.item first as item where (linkId = 'EmCare.B15S2.DE09') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb15s2de09(src, tgt) "41e89548";\r\n      } "fbbb4fbf";\r\n    } "ba468419";\r\n  } "91fe7c34";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE01') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de01(src, tgt) "94788d70";\r\n        } "cafa1f90";\r\n      } "44017cb3";\r\n    } "1c5108b8";\r\n  } "88bb5c43";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE02') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de02(src, tgt) "c3e885af";\r\n        } "60b301de";\r\n      } "815e425c";\r\n    } "85d3c3a3";\r\n  } "c7e0dbc2";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n    itm1.item first as itm2 where linkId = 'second' then {\r\n      itm2.item first as item where (linkId = 'EmCare.B22.DE04') and answer.exists() then {\r\n        src -> bundle.entry as entry then {\r\n          src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n          src -> entry.resource = create('Observation') as tgt then {\r\n            src -> tgt then emcareobservationemcareb22de04(src, tgt) "42ed4c3a";\r\n          } "b802d4a2";\r\n        } "c7431f4f";\r\n      } "ad5094ed";\r\n    } "3b2e9629";\r\n  } "318dfe75";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n    itm1.item first as itm2 where linkId = 'second' then {\r\n      itm2.item first as item where (linkId = 'EmCare.B22.DE05') and answer.exists() then {\r\n        src -> bundle.entry as entry then {\r\n          src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n          src -> entry.resource = create('Observation') as tgt then {\r\n            src -> tgt then emcareobservationemcareb22de05(src, tgt) "3be4cd34";\r\n          } "b7585bc2";\r\n        } "61b1a5c6";\r\n      } "d9d928a7";\r\n    } "9853d168";\r\n  } "c21c2c7c";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE07') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de07(src, tgt) "fa30cee1";\r\n        } "aad75965";\r\n      } "8267defb";\r\n    } "a2eebe03";\r\n  } "7ef76f25";\r\n}\r\n\r\ngroup emcareobservationemcareb10s2de03(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb10s2de03";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B10S2.DE03' "code-emcareb10s2de03";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B10S2.DE03') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb10s2de03";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb10s2de03";\r\n    } "bdab9370";\r\n  } "f8989270";\r\n}\r\n\r\ngroup emcareobservationemcareb10s2de04(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb10s2de04";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B10S2.DE04' "code-emcareb10s2de04";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B10S2.DE04') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb10s2de04";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb10s2de04";\r\n    } "bdab9370";\r\n  } "84e99b62";\r\n}\r\n\r\ngroup emcareobservationemcareb10s2de05(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb10s2de05";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B10S2.DE05' "code-emcareb10s2de05";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B10S2.DE05') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb10s2de05";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb10s2de05";\r\n    } "bdab9370";\r\n  } "822a6b5c";\r\n}\r\n\r\ngroup emcareobservationemcareb10s2de06(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb10s2de06";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B10S2.DE06' "code-emcareb10s2de06";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B10S2.DE06') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb10s2de06";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb10s2de06";\r\n    } "bdab9370";\r\n  } "ccfb93d4";\r\n}\r\n\r\ngroup emcareobservationemcareb10s2de07(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb10s2de07";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B10S2.DE07' "code-emcareb10s2de07";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'Oxygen_Saturation' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B10S2.DE07') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val ->  tgt.value = val,  tgt.status = 'final' "afa0ccc0";\r\n      } "d40466ff";\r\n    } "eef20b5e";\r\n  } "c5b03c7d";\r\n}\r\n\r\ngroup emcareobservationemcareb11s2de01(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb11s2de01";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B11S2.DE01' "code-emcareb11s2de01";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B11S2.DE01') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'true' ->  tgt.status = 'final',  tgt.value = true "8a65aaa5";\r\n      } "26c2c8c7";\r\n    } "721205d5";\r\n  } "52679414";\r\n}\r\n\r\ngroup emcareobservationemcareb11s2de02(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb11s2de02";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B11S2.DE02' "code-emcareb11s2de02";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B11S2.DE02') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n        val where val.code != 'none' ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' "a1050460";\r\n      } "310f4b1f";\r\n    } "6af9bfcc";\r\n  } "73bc942d";\r\n}\r\n\r\ngroup emcareobservationemcareb11s2de06(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb11s2de06";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B11S2.DE06' "code-emcareb11s2de06";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B11S2.DE06') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb11s2de06";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb11s2de06";\r\n    } "bdab9370";\r\n  } "47e72c0c";\r\n}\r\n\r\ngroup emcareobservationemcareb17s1de01(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb17s1de01";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B17S1.DE01' "code-emcareb17s1de01";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B17S1.DE01') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb17s1de01";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb17s1de01";\r\n    } "bdab9370";\r\n  } "11b37b57";\r\n}\r\n\r\ngroup emcareobservationemcareb17s1de02(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb17s1de02";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B17S1.DE02' "code-emcareb17s1de02";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B17S1.DE02') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n        val where val.code != 'none' ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' "a1050460";\r\n      } "310f4b1f";\r\n    } "6af9bfcc";\r\n  } "239f6c79";\r\n}\r\n\r\ngroup emcareobservationemcareb17s1de06(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb17s1de06";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B17S1.DE06' "code-emcareb17s1de06";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B17S1.DE06') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb17s1de06";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb17s1de06";\r\n    } "bdab9370";\r\n  } "2dd51df6";\r\n}\r\n\r\ngroup emcareobservationemcareb17s1de07(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb17s1de07";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B17S1.DE07' "code-emcareb17s1de07";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B17S1.DE07') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n        val where val.code != 'none' ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' "a1050460";\r\n      } "310f4b1f";\r\n    } "6af9bfcc";\r\n  } "21ffdb9d";\r\n}\r\n\r\ngroup emcareobservationemcareb13s2de01(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb13s2de01";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B13S2.DE01' "code-emcareb13s2de01";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B13S2.DE01') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb13s2de01";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb13s2de01";\r\n    } "bdab9370";\r\n  } "eabd29fd";\r\n}\r\n\r\ngroup emcareobservationemcareb13s2de02(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb13s2de02";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B13S2.DE02' "code-emcareb13s2de02";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B13S2.DE02') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb13s2de02";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb13s2de02";\r\n    } "bdab9370";\r\n  } "5b651554";\r\n}\r\n\r\ngroup emcareobservationemcareb13s2de03(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb13s2de03";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B13S2.DE03' "code-emcareb13s2de03";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B13S2.DE03') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n        val where val.code != 'none' ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' "a1050460";\r\n      } "310f4b1f";\r\n    } "6af9bfcc";\r\n  } "b937d9f0";\r\n}\r\n\r\ngroup emcareobservationemcareb12s2de01(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb12s2de01";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B12S2.DE01' "code-emcareb12s2de01";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B12S2.DE01') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb12s2de01";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb12s2de01";\r\n    } "bdab9370";\r\n  } "de146d59";\r\n}\r\n\r\ngroup emcareobservationemcareb12s2de05(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb12s2de05";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B12S2.DE05' "code-emcareb12s2de05";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B12S2.DE05') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb12s2de05";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb12s2de05";\r\n    } "bdab9370";\r\n  } "c913991e";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de01(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb14s2de01";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE01' "code-emcareb14s2de01";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE01') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb14s2de01";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb14s2de01";\r\n    } "bdab9370";\r\n  } "ffbd856e";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de02(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb14s2de02";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE02' "code-emcareb14s2de02";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE02') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb14s2de02";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb14s2de02";\r\n    } "bdab9370";\r\n  } "0fee727b";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de03(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb14s2de03";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE03' "code-emcareb14s2de03";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE03') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb14s2de03";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb14s2de03";\r\n    } "bdab9370";\r\n  } "35101ce1";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de04(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb14s2de04";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE04' "code-emcareb14s2de04";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE04') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb14s2de04";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb14s2de04";\r\n    } "bdab9370";\r\n  } "b57020c5";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de05(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb14s2de05";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE05' "code-emcareb14s2de05";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE05') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb14s2de05";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb14s2de05";\r\n    } "bdab9370";\r\n  } "0b745de8";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de06emcareb14s2de07t(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de06emcareb14s2de07t";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE06&EmCare.B14S2.DE07' "code-emcareobservationemcareb14s2de06emcareb14s2de07t";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'final',  tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de06emcareb14s2de07f(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de06emcareb14s2de07f";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE06&EmCare.B14S2.DE07' "code-emcareobservationemcareb14s2de06emcareb14s2de07f";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de06emcareb14s2de08t(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de06emcareb14s2de08t";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE06&EmCare.B14S2.DE08' "code-emcareobservationemcareb14s2de06emcareb14s2de08t";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'final',  tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de06emcareb14s2de08f(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de06emcareb14s2de08f";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE06&EmCare.B14S2.DE08' "code-emcareobservationemcareb14s2de06emcareb14s2de08f";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de06emcareb14s2de09t(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de06emcareb14s2de09t";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE06&EmCare.B14S2.DE09' "code-emcareobservationemcareb14s2de06emcareb14s2de09t";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'final',  tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de06emcareb14s2de09f(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de06emcareb14s2de09f";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE06&EmCare.B14S2.DE09' "code-emcareobservationemcareb14s2de06emcareb14s2de09f";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de10(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb14s2de10";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE10' "code-emcareb14s2de10";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE10') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb14s2de10";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb14s2de10";\r\n    } "bdab9370";\r\n  } "686fa0c0";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de11(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb14s2de11";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE11' "code-emcareb14s2de11";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE11') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb14s2de11";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb14s2de11";\r\n    } "bdab9370";\r\n  } "9d9704d8";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de12(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb14s2de12";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE12' "code-emcareb14s2de12";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE12') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb14s2de12";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb14s2de12";\r\n    } "bdab9370";\r\n  } "51199b07";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de18t(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de18t";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE18' "code-emcareobservationemcareb14s2de13emcareb14s2de18t";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'final',  tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de18f(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de18f";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE18' "code-emcareobservationemcareb14s2de13emcareb14s2de18f";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de19t(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de19t";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE19' "code-emcareobservationemcareb14s2de13emcareb14s2de19t";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'final',  tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de19f(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de19f";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE19' "code-emcareobservationemcareb14s2de13emcareb14s2de19f";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de21t(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de21t";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE21' "code-emcareobservationemcareb14s2de13emcareb14s2de21t";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'final',  tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de21f(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de21f";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE21' "code-emcareobservationemcareb14s2de13emcareb14s2de21f";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de22t(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de22t";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE22' "code-emcareobservationemcareb14s2de13emcareb14s2de22t";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'final',  tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de22f(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de22f";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE22' "code-emcareobservationemcareb14s2de13emcareb14s2de22f";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de23t(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de23t";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE23' "code-emcareobservationemcareb14s2de13emcareb14s2de23t";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'final',  tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de23f(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de23f";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE23' "code-emcareobservationemcareb14s2de13emcareb14s2de23f";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de25t(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de25t";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE25' "code-emcareobservationemcareb14s2de13emcareb14s2de25t";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'final',  tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de25f(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de25f";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE25' "code-emcareobservationemcareb14s2de13emcareb14s2de25f";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de31t(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de31t";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE31' "code-emcareobservationemcareb14s2de13emcareb14s2de31t";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'final',  tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de31f(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de31f";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE31' "code-emcareobservationemcareb14s2de13emcareb14s2de31f";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de32t(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de32t";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE32' "code-emcareobservationemcareb14s2de13emcareb14s2de32t";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'final',  tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de32f(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de32f";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE32' "code-emcareobservationemcareb14s2de13emcareb14s2de32f";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de33t(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de33t";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE33' "code-emcareobservationemcareb14s2de13emcareb14s2de33t";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'final',  tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de33f(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de33f";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE33' "code-emcareobservationemcareb14s2de13emcareb14s2de33f";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de35t(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de35t";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE35' "code-emcareobservationemcareb14s2de13emcareb14s2de35t";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'final',  tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de35f(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de35f";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE35' "code-emcareobservationemcareb14s2de13emcareb14s2de35f";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de36t(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de36t";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE36' "code-emcareobservationemcareb14s2de13emcareb14s2de36t";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'final',  tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de36f(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de36f";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE36' "code-emcareobservationemcareb14s2de13emcareb14s2de36f";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de37t(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de37t";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE37' "code-emcareobservationemcareb14s2de13emcareb14s2de37t";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'final',  tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de37f(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de37f";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE37' "code-emcareobservationemcareb14s2de13emcareb14s2de37f";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de19a(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb14s2de19a";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE19a' "code-emcareb14s2de19a";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE19a') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb14s2de19a";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb14s2de19a";\r\n    } "bdab9370";\r\n  } "7704f1e6";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de22a(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb14s2de22a";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE22A' "code-emcareb14s2de22a";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE22A') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb14s2de22a";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb14s2de22a";\r\n    } "bdab9370";\r\n  } "34b4bff4";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de23a(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb14s2de23a";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE23a' "code-emcareb14s2de23a";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE23a') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb14s2de23a";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb14s2de23a";\r\n    } "bdab9370";\r\n  } "cbc06169";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de24(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb14s2de24";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE24' "code-emcareb14s2de24";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE24') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb14s2de24";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb14s2de24";\r\n    } "bdab9370";\r\n  } "a8bffbd0";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de30(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb14s2de30";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE30' "code-emcareb14s2de30";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE30') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb14s2de30";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb14s2de30";\r\n    } "bdab9370";\r\n  } "5c4c116c";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de30b(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb14s2de30b";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE30b' "code-emcareb14s2de30b";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE30b') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb14s2de30b";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb14s2de30b";\r\n    } "bdab9370";\r\n  } "b2203142";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de31a(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb14s2de31a";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE31a' "code-emcareb14s2de31a";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE31a') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb14s2de31a";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb14s2de31a";\r\n    } "bdab9370";\r\n  } "c1d62dd8";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de31b(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb14s2de31b";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE31b' "code-emcareb14s2de31b";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE31b') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb14s2de31b";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb14s2de31b";\r\n    } "bdab9370";\r\n  } "53c39908";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de32a(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb14s2de32a";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE32a' "code-emcareb14s2de32a";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE32a') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb14s2de32a";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb14s2de32a";\r\n    } "bdab9370";\r\n  } "a295ad88";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de34(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb14s2de34";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE34' "code-emcareb14s2de34";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE34') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb14s2de34";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb14s2de34";\r\n    } "bdab9370";\r\n  } "6bc4a7ea";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de36a(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb14s2de36a";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE36a' "code-emcareb14s2de36a";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE36a') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb14s2de36a";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb14s2de36a";\r\n    } "bdab9370";\r\n  } "72b21d5c";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de36b(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb14s2de36b";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE36b' "code-emcareb14s2de36b";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE36b') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb14s2de36b";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb14s2de36b";\r\n    } "bdab9370";\r\n  } "d3720173";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de36c(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb14s2de36c";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE36c' "code-emcareb14s2de36c";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE36c') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb14s2de36c";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb14s2de36c";\r\n    } "bdab9370";\r\n  } "4f384bfd";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de38(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb14s2de38";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE38' "code-emcareb14s2de38";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B14S2.DE38') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n        val where val.code != 'none' ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' "a1050460";\r\n      } "310f4b1f";\r\n    } "6af9bfcc";\r\n  } "d40efaa7";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de43emcareb14s2de44t(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de43emcareb14s2de44t";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE43&EmCare.B14S2.DE44' "code-emcareobservationemcareb14s2de43emcareb14s2de44t";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'final',  tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de43emcareb14s2de44f(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de43emcareb14s2de44f";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE43&EmCare.B14S2.DE44' "code-emcareobservationemcareb14s2de43emcareb14s2de44f";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de43emcareb14s2de45t(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de43emcareb14s2de45t";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE43&EmCare.B14S2.DE45' "code-emcareobservationemcareb14s2de43emcareb14s2de45t";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'final',  tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de43emcareb14s2de45f(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de43emcareb14s2de45f";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE43&EmCare.B14S2.DE45' "code-emcareobservationemcareb14s2de43emcareb14s2de45f";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de43emcareb14s2de46t(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de43emcareb14s2de46t";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE43&EmCare.B14S2.DE46' "code-emcareobservationemcareb14s2de43emcareb14s2de46t";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'final',  tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de43emcareb14s2de46f(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de43emcareb14s2de46f";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE43&EmCare.B14S2.DE46' "code-emcareobservationemcareb14s2de43emcareb14s2de46f";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de43emcareb14s2de47t(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de43emcareb14s2de47t";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE43&EmCare.B14S2.DE47' "code-emcareobservationemcareb14s2de43emcareb14s2de47t";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'final',  tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de43emcareb14s2de47f(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb14s2de43emcareb14s2de47f";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B14S2.DE43&EmCare.B14S2.DE47' "code-emcareobservationemcareb14s2de43emcareb14s2de47f";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb15s2de01(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb15s2de01";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B15S2.DE01' "code-emcareb15s2de01";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B15S2.DE01') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n        val where val.code != 'none' ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' "a1050460";\r\n      } "310f4b1f";\r\n    } "6af9bfcc";\r\n  } "aa55388e";\r\n}\r\n\r\ngroup emcareobservationemcareb15s2de09(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb15s2de09";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B15S2.DE09' "code-emcareb15s2de09";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B15S2.DE09') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n        val where val.code != 'none' ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' "a1050460";\r\n      } "310f4b1f";\r\n    } "6af9bfcc";\r\n  } "2a2ced9b";\r\n}\r\n\r\ngroup emcareobservationemcareb22de01(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de01";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE01' "code-emcareb22de01";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE01') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val ->  tgt.value = val,  tgt.status = 'final' "afa0ccc0";\r\n      } "d40466ff";\r\n    } "e1cd1fa1";\r\n  } "ad8e4fa6";\r\n}\r\n\r\ngroup emcareobservationemcareb22de02(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de02";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE02' "code-emcareb22de02";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE02') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val then {\r\n          val where val.code = 'true' ->  tgt.status = 'final',  tgt.value = true "8a65aaa5";\r\n        } "26c2c8c7";\r\n      } "721205d5";\r\n    } "38b3c27b";\r\n  } "5b046e45";\r\n}\r\n\r\ngroup emcareobservationemcareb22de04(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de04";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE04' "code-emcareb22de04";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n    itm1.item first as itm2 where linkId = 'second' then {\r\n      itm2.item first as item where (linkId = 'EmCare.B22.DE04') and answer.exists() then {\r\n        item.answer first as a then {\r\n          a.value as val ->  tgt.value = val,  tgt.status = 'final' "afa0ccc0";\r\n        } "d40466ff";\r\n      } "f66ca63f";\r\n    } "1b837896";\r\n  } "6b3a0b06";\r\n}\r\n\r\ngroup emcareobservationemcareb22de05(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de05";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE05' "code-emcareb22de05";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n    itm1.item first as itm2 where linkId = 'second' then {\r\n      itm2.item first as item where (linkId = 'EmCare.B22.DE05') and answer.exists() then {\r\n        item.answer first as a then {\r\n          a.value as val then {\r\n            val where val.code = 'true' ->  tgt.status = 'final',  tgt.value = true "8a65aaa5";\r\n          } "26c2c8c7";\r\n        } "721205d5";\r\n      } "48a81a4f";\r\n    } "9322cbb7";\r\n  } "ed73ec89";\r\n}\r\n\r\ngroup emcareobservationemcareb22de07(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de07";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE07' "code-emcareb22de07";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE07') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb22de07";\r\n        a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb22de07";\r\n      } "bdab9370";\r\n    } "b5e73929";\r\n  } "306838ed";\r\n}\r\n\r\n
" }, - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcare.b10-16.signs.2m.p", + "url": "https://smart.who.int/ccc/StructureMap/emcare.b10-16.signs.2m.p", "name": "emcare.b10-16.signs.2m.p", "status": "active", "structure": [ @@ -20,12 +20,12 @@ "alias": "'Bundle'" }, { - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/observation", + "url": "https://smart.who.int/ccc/StructureDefinition/observation", "mode": "target", "alias": "'Observation'" }, { - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation", + "url": "https://smart.who.int/ccc/StructureDefinition/emcareobservation", "mode": "produced", "alias": "'EmCare Observation'" } @@ -11256,7 +11256,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -11291,7 +11291,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -11613,7 +11613,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -11648,7 +11648,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -11970,7 +11970,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -12005,7 +12005,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -12327,7 +12327,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -12362,7 +12362,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -12684,7 +12684,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -12719,7 +12719,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -13023,7 +13023,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -13058,7 +13058,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -13359,7 +13359,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -13394,7 +13394,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -13729,7 +13729,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -13764,7 +13764,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -14086,7 +14086,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -14121,7 +14121,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -14443,7 +14443,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -14478,7 +14478,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -14813,7 +14813,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -14848,7 +14848,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -15170,7 +15170,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -15205,7 +15205,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -15540,7 +15540,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -15575,7 +15575,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -15897,7 +15897,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -15932,7 +15932,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -16254,7 +16254,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -16289,7 +16289,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -16624,7 +16624,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -16659,7 +16659,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -16981,7 +16981,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -17016,7 +17016,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -17338,7 +17338,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -17373,7 +17373,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -17695,7 +17695,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -17730,7 +17730,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -18052,7 +18052,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -18087,7 +18087,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -18409,7 +18409,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -18444,7 +18444,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -18766,7 +18766,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -18801,7 +18801,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -19123,7 +19123,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -19158,7 +19158,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -19419,7 +19419,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -19454,7 +19454,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -19715,7 +19715,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -19750,7 +19750,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -20011,7 +20011,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -20046,7 +20046,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -20307,7 +20307,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -20342,7 +20342,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -20603,7 +20603,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -20638,7 +20638,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -20899,7 +20899,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -20934,7 +20934,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -21256,7 +21256,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -21291,7 +21291,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -21613,7 +21613,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -21648,7 +21648,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -21970,7 +21970,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -22005,7 +22005,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -22266,7 +22266,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -22301,7 +22301,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -22562,7 +22562,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -22597,7 +22597,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -22858,7 +22858,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -22893,7 +22893,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -23154,7 +23154,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -23189,7 +23189,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -23450,7 +23450,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -23485,7 +23485,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -23746,7 +23746,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -23781,7 +23781,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -24042,7 +24042,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -24077,7 +24077,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -24338,7 +24338,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -24373,7 +24373,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -24634,7 +24634,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -24669,7 +24669,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -24930,7 +24930,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -24965,7 +24965,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -25226,7 +25226,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -25261,7 +25261,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -25522,7 +25522,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -25557,7 +25557,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -25818,7 +25818,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -25853,7 +25853,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -26114,7 +26114,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -26149,7 +26149,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -26410,7 +26410,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -26445,7 +26445,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -26706,7 +26706,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -26741,7 +26741,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -27002,7 +27002,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -27037,7 +27037,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -27298,7 +27298,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -27333,7 +27333,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -27594,7 +27594,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -27629,7 +27629,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -27890,7 +27890,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -27925,7 +27925,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -28186,7 +28186,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -28221,7 +28221,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -28482,7 +28482,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -28517,7 +28517,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -28778,7 +28778,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -28813,7 +28813,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -29074,7 +29074,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -29109,7 +29109,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -29431,7 +29431,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -29466,7 +29466,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -29788,7 +29788,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -29823,7 +29823,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -30145,7 +30145,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -30180,7 +30180,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -30502,7 +30502,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -30537,7 +30537,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -30859,7 +30859,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -30894,7 +30894,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -31216,7 +31216,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -31251,7 +31251,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -31573,7 +31573,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -31608,7 +31608,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -31930,7 +31930,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -31965,7 +31965,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -32287,7 +32287,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -32322,7 +32322,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -32644,7 +32644,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -32679,7 +32679,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -33001,7 +33001,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -33036,7 +33036,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -33358,7 +33358,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -33393,7 +33393,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -33715,7 +33715,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -33750,7 +33750,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -34085,7 +34085,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -34120,7 +34120,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -34381,7 +34381,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -34416,7 +34416,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -34677,7 +34677,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -34712,7 +34712,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -34973,7 +34973,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -35008,7 +35008,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -35269,7 +35269,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -35304,7 +35304,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -35565,7 +35565,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -35600,7 +35600,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -35861,7 +35861,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -35896,7 +35896,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -36157,7 +36157,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -36192,7 +36192,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -36453,7 +36453,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -36488,7 +36488,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -36823,7 +36823,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -36858,7 +36858,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -37193,7 +37193,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -37228,7 +37228,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -37532,7 +37532,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -37567,7 +37567,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -37882,7 +37882,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -37917,7 +37917,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -38235,7 +38235,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -38270,7 +38270,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -38599,7 +38599,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -38634,7 +38634,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, diff --git a/input/resources/structuremap/structuremap-emcare.b18-21.signs.2m.m.json b/input/resources/structuremap/structuremap-emcare.b18-21.signs.2m.m.json index 009e2c82..7a12d933 100644 --- a/input/resources/structuremap/structuremap-emcare.b18-21.signs.2m.m.json +++ b/input/resources/structuremap/structuremap-emcare.b18-21.signs.2m.m.json @@ -3,9 +3,9 @@ "id": "emcare.b18-21.signs.2m.m", "text": { "status": "generated", - "div": "
map "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcare.b18-21.signs.2m.m" = "emcare.b18-21.signs.2m.m"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/observation" alias 'Observation' as target\r\nuses "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" alias 'EmCare Observation' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n  src -> bundle.id = uuid() "id";\r\n  src -> bundle.type = 'batch' "type";\r\n  src.item first as item where (linkId = 'EmCare.B18S2.DE07') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb18s2de07(src, tgt) "ca6d2440";\r\n      } "4d3562ea";\r\n    } "1f5e2e49";\r\n  } "eeb88b76";\r\n  src.item first as item where (linkId = 'EmCare.B18S2.DE08') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb18s2de08(src, tgt) "c262db3f";\r\n      } "f43b4802";\r\n    } "b192f8b8";\r\n  } "45ffea94";\r\n  src.item first as item where (linkId = 'EmCare.B18S2.DE12') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb18s2de12(src, tgt) "6f6b2618";\r\n      } "09f8d74d";\r\n    } "5e6747fd";\r\n  } "8665f72f";\r\n  src.item first as item where (linkId = 'EmCare.B18S2.DE13') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb18s2de13(src, tgt) "80759c57";\r\n      } "f658f964";\r\n    } "30291a87";\r\n  } "5c0dbbd7";\r\n  src.item first as item where (linkId = 'EmCare.B19S2.DE01') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb19s2de01(src, tgt) "732434fb";\r\n      } "a79173fe";\r\n    } "355d3980";\r\n  } "55fa8d66";\r\n  src.item first as item where (linkId = 'EmCare.B19S2.DE02') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb19s2de02(src, tgt) "19b33283";\r\n      } "723e7b39";\r\n    } "ab195945";\r\n  } "a451ea64";\r\n  src.item first as item where (linkId = 'EmCare.B19S2.DE04') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb19s2de04(src, tgt) "5f959962";\r\n      } "ec59f51c";\r\n    } "08a1cfa8";\r\n  } "3bb01182";\r\n  src.item first as item where (linkId = 'EmCare.B11S2.DE01') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb11s2de01(src, tgt) "571f12fb";\r\n      } "df9369ca";\r\n    } "b1634b07";\r\n  } "bf55dba7";\r\n  src.item first as item where (linkId = 'EmCare.B11S2.DE02') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb11s2de02(src, tgt) "35df08c4";\r\n      } "52eb002b";\r\n    } "c096f5b2";\r\n  } "f35e6a90";\r\n  src.item first as item where (linkId = 'EmCare.B11S2.DE06') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb11s2de06(src, tgt) "048f10f9";\r\n      } "011caec9";\r\n    } "431cd0b3";\r\n  } "5a3f8e99";\r\n  src.item first as item where (linkId = 'EmCare.B21S2.DE01') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb21s2de01(src, tgt) "94478be1";\r\n      } "2cf57502";\r\n    } "a5752431";\r\n  } "431eb374";\r\n  src.item first as item where (linkId = 'EmCare.B21S2.DE05') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb21s2de05(src, tgt) "8cbd2b43";\r\n      } "04b19cec";\r\n    } "1e478ba6";\r\n  } "a6ecc4b7";\r\n  src.item first as item where (linkId = 'EmCare.B21S2.DE06') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb21s2de06(src, tgt) "2d3c82db";\r\n      } "d38f9e09";\r\n    } "18c5885a";\r\n  } "3a24e445";\r\n  src.item first as item where (linkId = 'EmCare.B21S2.DE08') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb21s2de08(src, tgt) "f361a68d";\r\n      } "5189a3f8";\r\n    } "a0b4c2bc";\r\n  } "79ee0a37";\r\n  src where src.item.where(linkId = 'EmCare.B21S2.DE09').answer.where(value.code = 'EmCare.B21S2.DE11') then {\r\n    src.item first as item where (linkId = 'EmCare.B21S2.DE09') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb21s2de09emcareb21s2de11t(src, tgt) "a9a122af";\r\n        } "d7f85848";\r\n      } "6de484e0";\r\n    } "37c1ad1e";\r\n  } "7d349d00";\r\n  src where src.item.where(linkId = 'EmCare.B21S2.DE09').exists() and src.item.where(linkId = 'EmCare.B21S2.DE09').answer.where(value.code = 'EmCare.B21S2.DE11').empty() then {\r\n    src.item first as item where (linkId = 'EmCare.B21S2.DE09') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb21s2de09emcareb21s2de11f(src, tgt) "d1d28f86";\r\n        } "d67305e0";\r\n      } "653bf0a8";\r\n    } "4899742e";\r\n  } "e01f9812";\r\n  src where src.item.where(linkId = 'EmCare.B21S2.DE09').answer.where(value.code = 'EmCare.B21S2.DE10') then {\r\n    src.item first as item where (linkId = 'EmCare.B21S2.DE09') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb21s2de09emcareb21s2de10t(src, tgt) "8e89324d";\r\n        } "93674a9a";\r\n      } "aa6f3f2f";\r\n    } "94e88b7c";\r\n  } "9864ed15";\r\n  src where src.item.where(linkId = 'EmCare.B21S2.DE09').exists() and src.item.where(linkId = 'EmCare.B21S2.DE09').answer.where(value.code = 'EmCare.B21S2.DE10').empty() then {\r\n    src.item first as item where (linkId = 'EmCare.B21S2.DE09') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb21s2de09emcareb21s2de10f(src, tgt) "b433f49e";\r\n        } "e8c61eb0";\r\n      } "fa7e3d84";\r\n    } "68af5a34";\r\n  } "e81b6afa";\r\n  src.item first as item where (linkId = 'EmCare.B21S2.DE12') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb21s2de12(src, tgt) "8f04b3ac";\r\n      } "b1374c84";\r\n    } "8cb03aa0";\r\n  } "e2b672db";\r\n  src.item first as item where (linkId = 'EmCare.B21S2.DE13') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb21s2de13(src, tgt) "0aaf1ecd";\r\n      } "695ddd29";\r\n    } "64398d2e";\r\n  } "e854f1bd";\r\n  src.item first as item where (linkId = 'EmCare.B21S2.DE15') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb21s2de15(src, tgt) "7858a431";\r\n      } "43de516f";\r\n    } "e494830e";\r\n  } "faf9102b";\r\n  src.item first as item where (linkId = 'EmCare.B21S2.DE16') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb21s2de16(src, tgt) "b2e4c410";\r\n      } "b8bfacf5";\r\n    } "9b56be06";\r\n  } "be6683f9";\r\n  src.item first as item where (linkId = 'EmCare.B21S2.DE18') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb21s2de18(src, tgt) "87a87f89";\r\n      } "ecd09b62";\r\n    } "af8f5c24";\r\n  } "c0db11dc";\r\n  src.item first as item where (linkId = 'EmCare.B21S2.DE21') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb21s2de21(src, tgt) "e288e392";\r\n      } "ae968910";\r\n    } "46cbfc52";\r\n  } "8f89318d";\r\n  src.item first as item where (linkId = 'EmCare.B21S2.DE24') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb21s2de24(src, tgt) "c746464e";\r\n      } "6b52ad04";\r\n    } "c7688cc7";\r\n  } "668c3c42";\r\n  src.item first as item where (linkId = 'EmCare.B21S2.DE27') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb21s2de27(src, tgt) "46c80d1a";\r\n      } "1c5eb3d7";\r\n    } "c270b0d1";\r\n  } "24323941";\r\n  src.item first as item where (linkId = 'EmCare.B21S2.DE30') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb21s2de30(src, tgt) "f7a188b4";\r\n      } "8891d1a4";\r\n    } "ec6c3ef3";\r\n  } "5e474dbb";\r\n  src.item first as item where (linkId = 'EmCare.B21S2.DE31') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb21s2de31(src, tgt) "7b00306c";\r\n      } "ded65bf0";\r\n    } "6c051e6d";\r\n  } "0dac018e";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE01') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de01(src, tgt) "94788d70";\r\n        } "cafa1f90";\r\n      } "44017cb3";\r\n    } "1c5108b8";\r\n  } "88bb5c43";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE02') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de02(src, tgt) "c3e885af";\r\n        } "60b301de";\r\n      } "815e425c";\r\n    } "85d3c3a3";\r\n  } "c7e0dbc2";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n    itm1.item first as itm2 where linkId = 'second' then {\r\n      itm2.item first as item where (linkId = 'EmCare.B22.DE04') and answer.exists() then {\r\n        src -> bundle.entry as entry then {\r\n          src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n          src -> entry.resource = create('Observation') as tgt then {\r\n            src -> tgt then emcareobservationemcareb22de04(src, tgt) "42ed4c3a";\r\n          } "b802d4a2";\r\n        } "c7431f4f";\r\n      } "ad5094ed";\r\n    } "3b2e9629";\r\n  } "318dfe75";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n    itm1.item first as itm2 where linkId = 'second' then {\r\n      itm2.item first as item where (linkId = 'EmCare.B22.DE05') and answer.exists() then {\r\n        src -> bundle.entry as entry then {\r\n          src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n          src -> entry.resource = create('Observation') as tgt then {\r\n            src -> tgt then emcareobservationemcareb22de05(src, tgt) "3be4cd34";\r\n          } "b7585bc2";\r\n        } "61b1a5c6";\r\n      } "d9d928a7";\r\n    } "9853d168";\r\n  } "c21c2c7c";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE07') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de07(src, tgt) "fa30cee1";\r\n        } "aad75965";\r\n      } "8267defb";\r\n    } "a2eebe03";\r\n  } "7ef76f25";\r\n}\r\n\r\ngroup emcareobservationemcareb18s2de07(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb18s2de07";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B18S2.DE07' "code-emcareb18s2de07";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B18S2.DE07') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb18s2de07";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb18s2de07";\r\n    } "bdab9370";\r\n  } "03e3bd99";\r\n}\r\n\r\ngroup emcareobservationemcareb18s2de08(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb18s2de08";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B18S2.DE08' "code-emcareb18s2de08";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B18S2.DE08') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n        val where val.code != 'none' ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' "a1050460";\r\n      } "310f4b1f";\r\n    } "6af9bfcc";\r\n  } "0b46e243";\r\n}\r\n\r\ngroup emcareobservationemcareb18s2de12(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb18s2de12";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B18S2.DE12' "code-emcareb18s2de12";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B18S2.DE12') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb18s2de12";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb18s2de12";\r\n    } "bdab9370";\r\n  } "c2b6211e";\r\n}\r\n\r\ngroup emcareobservationemcareb18s2de13(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb18s2de13";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B18S2.DE13' "code-emcareb18s2de13";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B18S2.DE13') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb18s2de13";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb18s2de13";\r\n    } "bdab9370";\r\n  } "5c58b9dd";\r\n}\r\n\r\ngroup emcareobservationemcareb19s2de01(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb19s2de01";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B19S2.DE01' "code-emcareb19s2de01";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B19S2.DE01') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb19s2de01";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb19s2de01";\r\n    } "bdab9370";\r\n  } "9cc43da0";\r\n}\r\n\r\ngroup emcareobservationemcareb19s2de02(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb19s2de02";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B19S2.DE02' "code-emcareb19s2de02";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B19S2.DE02') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb19s2de02";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb19s2de02";\r\n    } "bdab9370";\r\n  } "c6f7f824";\r\n}\r\n\r\ngroup emcareobservationemcareb19s2de04(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb19s2de04";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B19S2.DE04' "code-emcareb19s2de04";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B19S2.DE04') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n        val where val.code != 'none' ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' "a1050460";\r\n      } "310f4b1f";\r\n    } "6af9bfcc";\r\n  } "42fb84b8";\r\n}\r\n\r\ngroup emcareobservationemcareb11s2de01(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb11s2de01";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B11S2.DE01' "code-emcareb11s2de01";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B11S2.DE01') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb11s2de01";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb11s2de01";\r\n    } "bdab9370";\r\n  } "7fc3f941";\r\n}\r\n\r\ngroup emcareobservationemcareb11s2de02(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb11s2de02";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B11S2.DE02' "code-emcareb11s2de02";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B11S2.DE02') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n        val where val.code != 'none' ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' "a1050460";\r\n      } "310f4b1f";\r\n    } "6af9bfcc";\r\n  } "73bc942d";\r\n}\r\n\r\ngroup emcareobservationemcareb11s2de06(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb11s2de06";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B11S2.DE06' "code-emcareb11s2de06";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B11S2.DE06') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb11s2de06";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb11s2de06";\r\n    } "bdab9370";\r\n  } "47e72c0c";\r\n}\r\n\r\ngroup emcareobservationemcareb21s2de01(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb21s2de01";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B21S2.DE01' "code-emcareb21s2de01";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B21S2.DE01') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = create('Coding') as c,  c.code = val,  c.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  tgt.status = 'final' "759a9a54";\r\n      } "1b820ab0";\r\n    } "d39f9088";\r\n  } "75d5dd53";\r\n}\r\n\r\ngroup emcareobservationemcareb21s2de05(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb21s2de05";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B21S2.DE05' "code-emcareb21s2de05";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B21S2.DE05') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val ->  tgt.value = val,  tgt.status = 'final' "afa0ccc0";\r\n    } "d40466ff";\r\n  } "0d215e07";\r\n}\r\n\r\ngroup emcareobservationemcareb21s2de06(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb21s2de06";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B21S2.DE06' "code-emcareb21s2de06";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B21S2.DE06') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val ->  tgt.value = val,  tgt.status = 'final' "afa0ccc0";\r\n    } "d40466ff";\r\n  } "3a4a4375";\r\n}\r\n\r\ngroup emcareobservationemcareb21s2de08(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb21s2de08";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B21S2.DE08' "code-emcareb21s2de08";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B21S2.DE08') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb21s2de08";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb21s2de08";\r\n    } "bdab9370";\r\n  } "ac3004d0";\r\n}\r\n\r\ngroup emcareobservationemcareb21s2de09emcareb21s2de11t(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb21s2de09emcareb21s2de11t";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B21S2.DE09&EmCare.B21S2.DE11' "code-emcareobservationemcareb21s2de09emcareb21s2de11t";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'final',  tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb21s2de09emcareb21s2de11f(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb21s2de09emcareb21s2de11f";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B21S2.DE09&EmCare.B21S2.DE11' "code-emcareobservationemcareb21s2de09emcareb21s2de11f";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb21s2de09emcareb21s2de10t(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb21s2de09emcareb21s2de10t";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B21S2.DE09&EmCare.B21S2.DE10' "code-emcareobservationemcareb21s2de09emcareb21s2de10t";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'final',  tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb21s2de09emcareb21s2de10f(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb21s2de09emcareb21s2de10f";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B21S2.DE09&EmCare.B21S2.DE10' "code-emcareobservationemcareb21s2de09emcareb21s2de10f";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb21s2de12(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb21s2de12";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B21S2.DE12' "code-emcareb21s2de12";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B21S2.DE12') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val ->  tgt.value = val,  tgt.status = 'final' "afa0ccc0";\r\n    } "d40466ff";\r\n  } "fe73483f";\r\n}\r\n\r\ngroup emcareobservationemcareb21s2de13(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb21s2de13";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B21S2.DE13' "code-emcareb21s2de13";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B21S2.DE13') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb21s2de13";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb21s2de13";\r\n    } "bdab9370";\r\n  } "a1265fc3";\r\n}\r\n\r\ngroup emcareobservationemcareb21s2de15(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb21s2de15";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B21S2.DE15' "code-emcareb21s2de15";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B21S2.DE15') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val ->  tgt.value = val,  tgt.status = 'final' "afa0ccc0";\r\n    } "d40466ff";\r\n  } "1b63fd85";\r\n}\r\n\r\ngroup emcareobservationemcareb21s2de16(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb21s2de16";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B21S2.DE16' "code-emcareb21s2de16";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B21S2.DE16') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb21s2de16";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb21s2de16";\r\n    } "bdab9370";\r\n  } "e00da6e9";\r\n}\r\n\r\ngroup emcareobservationemcareb21s2de18(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb21s2de18";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B21S2.DE18' "code-emcareb21s2de18";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B21S2.DE18') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n        val where val.code != 'none' ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' "a1050460";\r\n      } "310f4b1f";\r\n    } "6af9bfcc";\r\n  } "af7f6c69";\r\n}\r\n\r\ngroup emcareobservationemcareb21s2de21(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb21s2de21";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B21S2.DE21' "code-emcareb21s2de21";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B21S2.DE21') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n        val where val.code != 'none' ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' "a1050460";\r\n      } "310f4b1f";\r\n    } "6af9bfcc";\r\n  } "b4ca78b5";\r\n}\r\n\r\ngroup emcareobservationemcareb21s2de24(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb21s2de24";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B21S2.DE24' "code-emcareb21s2de24";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B21S2.DE24') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n        val where val.code != 'none' ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' "a1050460";\r\n      } "310f4b1f";\r\n    } "6af9bfcc";\r\n  } "b08f8fe7";\r\n}\r\n\r\ngroup emcareobservationemcareb21s2de27(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb21s2de27";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B21S2.DE27' "code-emcareb21s2de27";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B21S2.DE27') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n        val where val.code != 'none' ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' "a1050460";\r\n      } "310f4b1f";\r\n    } "6af9bfcc";\r\n  } "49d85a6e";\r\n}\r\n\r\ngroup emcareobservationemcareb21s2de30(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb21s2de30";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B21S2.DE30' "code-emcareb21s2de30";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B21S2.DE30') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb21s2de30";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb21s2de30";\r\n    } "bdab9370";\r\n  } "fe4c0b1a";\r\n}\r\n\r\ngroup emcareobservationemcareb21s2de31(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb21s2de31";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B21S2.DE31' "code-emcareb21s2de31";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B21S2.DE31') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'true' ->  tgt.status = 'final',  tgt.value = true "8a65aaa5";\r\n      } "26c2c8c7";\r\n    } "721205d5";\r\n  } "789ed550";\r\n}\r\n\r\ngroup emcareobservationemcareb22de01(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de01";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE01' "code-emcareb22de01";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE01') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val ->  tgt.value = val,  tgt.status = 'final' "afa0ccc0";\r\n      } "d40466ff";\r\n    } "e1cd1fa1";\r\n  } "ad8e4fa6";\r\n}\r\n\r\ngroup emcareobservationemcareb22de02(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de02";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE02' "code-emcareb22de02";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE02') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val then {\r\n          val where val.code = 'true' ->  tgt.status = 'final',  tgt.value = true "8a65aaa5";\r\n        } "26c2c8c7";\r\n      } "721205d5";\r\n    } "38b3c27b";\r\n  } "5b046e45";\r\n}\r\n\r\ngroup emcareobservationemcareb22de04(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de04";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE04' "code-emcareb22de04";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n    itm1.item first as itm2 where linkId = 'second' then {\r\n      itm2.item first as item where (linkId = 'EmCare.B22.DE04') and answer.exists() then {\r\n        item.answer first as a then {\r\n          a.value as val ->  tgt.value = val,  tgt.status = 'final' "afa0ccc0";\r\n        } "d40466ff";\r\n      } "f66ca63f";\r\n    } "1b837896";\r\n  } "6b3a0b06";\r\n}\r\n\r\ngroup emcareobservationemcareb22de05(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de05";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE05' "code-emcareb22de05";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n    itm1.item first as itm2 where linkId = 'second' then {\r\n      itm2.item first as item where (linkId = 'EmCare.B22.DE05') and answer.exists() then {\r\n        item.answer first as a then {\r\n          a.value as val then {\r\n            val where val.code = 'true' ->  tgt.status = 'final',  tgt.value = true "8a65aaa5";\r\n          } "26c2c8c7";\r\n        } "721205d5";\r\n      } "48a81a4f";\r\n    } "9322cbb7";\r\n  } "ed73ec89";\r\n}\r\n\r\ngroup emcareobservationemcareb22de07(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de07";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE07' "code-emcareb22de07";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE07') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb22de07";\r\n        a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb22de07";\r\n      } "bdab9370";\r\n    } "b5e73929";\r\n  } "306838ed";\r\n}\r\n\r\n
" + "div": "
map "https://smart.who.int/ccc/StructureMap/emcare.b18-21.signs.2m.m" = "emcare.b18-21.signs.2m.m"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/observation" alias 'Observation' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/emcareobservation" alias 'EmCare Observation' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n  src -> bundle.id = uuid() "id";\r\n  src -> bundle.type = 'batch' "type";\r\n  src.item first as item where (linkId = 'EmCare.B18S2.DE07') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb18s2de07(src, tgt) "ca6d2440";\r\n      } "4d3562ea";\r\n    } "1f5e2e49";\r\n  } "eeb88b76";\r\n  src.item first as item where (linkId = 'EmCare.B18S2.DE08') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb18s2de08(src, tgt) "c262db3f";\r\n      } "f43b4802";\r\n    } "b192f8b8";\r\n  } "45ffea94";\r\n  src.item first as item where (linkId = 'EmCare.B18S2.DE12') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb18s2de12(src, tgt) "6f6b2618";\r\n      } "09f8d74d";\r\n    } "5e6747fd";\r\n  } "8665f72f";\r\n  src.item first as item where (linkId = 'EmCare.B18S2.DE13') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb18s2de13(src, tgt) "80759c57";\r\n      } "f658f964";\r\n    } "30291a87";\r\n  } "5c0dbbd7";\r\n  src.item first as item where (linkId = 'EmCare.B19S2.DE01') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb19s2de01(src, tgt) "732434fb";\r\n      } "a79173fe";\r\n    } "355d3980";\r\n  } "55fa8d66";\r\n  src.item first as item where (linkId = 'EmCare.B19S2.DE02') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb19s2de02(src, tgt) "19b33283";\r\n      } "723e7b39";\r\n    } "ab195945";\r\n  } "a451ea64";\r\n  src.item first as item where (linkId = 'EmCare.B19S2.DE04') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb19s2de04(src, tgt) "5f959962";\r\n      } "ec59f51c";\r\n    } "08a1cfa8";\r\n  } "3bb01182";\r\n  src.item first as item where (linkId = 'EmCare.B11S2.DE01') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb11s2de01(src, tgt) "571f12fb";\r\n      } "df9369ca";\r\n    } "b1634b07";\r\n  } "bf55dba7";\r\n  src.item first as item where (linkId = 'EmCare.B11S2.DE02') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb11s2de02(src, tgt) "35df08c4";\r\n      } "52eb002b";\r\n    } "c096f5b2";\r\n  } "f35e6a90";\r\n  src.item first as item where (linkId = 'EmCare.B11S2.DE06') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb11s2de06(src, tgt) "048f10f9";\r\n      } "011caec9";\r\n    } "431cd0b3";\r\n  } "5a3f8e99";\r\n  src.item first as item where (linkId = 'EmCare.B21S2.DE01') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb21s2de01(src, tgt) "94478be1";\r\n      } "2cf57502";\r\n    } "a5752431";\r\n  } "431eb374";\r\n  src.item first as item where (linkId = 'EmCare.B21S2.DE05') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb21s2de05(src, tgt) "8cbd2b43";\r\n      } "04b19cec";\r\n    } "1e478ba6";\r\n  } "a6ecc4b7";\r\n  src.item first as item where (linkId = 'EmCare.B21S2.DE06') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb21s2de06(src, tgt) "2d3c82db";\r\n      } "d38f9e09";\r\n    } "18c5885a";\r\n  } "3a24e445";\r\n  src.item first as item where (linkId = 'EmCare.B21S2.DE08') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb21s2de08(src, tgt) "f361a68d";\r\n      } "5189a3f8";\r\n    } "a0b4c2bc";\r\n  } "79ee0a37";\r\n  src where src.item.where(linkId = 'EmCare.B21S2.DE09').answer.where(value.code = 'EmCare.B21S2.DE11') then {\r\n    src.item first as item where (linkId = 'EmCare.B21S2.DE09') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb21s2de09emcareb21s2de11t(src, tgt) "a9a122af";\r\n        } "d7f85848";\r\n      } "6de484e0";\r\n    } "37c1ad1e";\r\n  } "7d349d00";\r\n  src where src.item.where(linkId = 'EmCare.B21S2.DE09').exists() and src.item.where(linkId = 'EmCare.B21S2.DE09').answer.where(value.code = 'EmCare.B21S2.DE11').empty() then {\r\n    src.item first as item where (linkId = 'EmCare.B21S2.DE09') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb21s2de09emcareb21s2de11f(src, tgt) "d1d28f86";\r\n        } "d67305e0";\r\n      } "653bf0a8";\r\n    } "4899742e";\r\n  } "e01f9812";\r\n  src where src.item.where(linkId = 'EmCare.B21S2.DE09').answer.where(value.code = 'EmCare.B21S2.DE10') then {\r\n    src.item first as item where (linkId = 'EmCare.B21S2.DE09') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb21s2de09emcareb21s2de10t(src, tgt) "8e89324d";\r\n        } "93674a9a";\r\n      } "aa6f3f2f";\r\n    } "94e88b7c";\r\n  } "9864ed15";\r\n  src where src.item.where(linkId = 'EmCare.B21S2.DE09').exists() and src.item.where(linkId = 'EmCare.B21S2.DE09').answer.where(value.code = 'EmCare.B21S2.DE10').empty() then {\r\n    src.item first as item where (linkId = 'EmCare.B21S2.DE09') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb21s2de09emcareb21s2de10f(src, tgt) "b433f49e";\r\n        } "e8c61eb0";\r\n      } "fa7e3d84";\r\n    } "68af5a34";\r\n  } "e81b6afa";\r\n  src.item first as item where (linkId = 'EmCare.B21S2.DE12') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb21s2de12(src, tgt) "8f04b3ac";\r\n      } "b1374c84";\r\n    } "8cb03aa0";\r\n  } "e2b672db";\r\n  src.item first as item where (linkId = 'EmCare.B21S2.DE13') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb21s2de13(src, tgt) "0aaf1ecd";\r\n      } "695ddd29";\r\n    } "64398d2e";\r\n  } "e854f1bd";\r\n  src.item first as item where (linkId = 'EmCare.B21S2.DE15') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb21s2de15(src, tgt) "7858a431";\r\n      } "43de516f";\r\n    } "e494830e";\r\n  } "faf9102b";\r\n  src.item first as item where (linkId = 'EmCare.B21S2.DE16') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb21s2de16(src, tgt) "b2e4c410";\r\n      } "b8bfacf5";\r\n    } "9b56be06";\r\n  } "be6683f9";\r\n  src.item first as item where (linkId = 'EmCare.B21S2.DE18') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb21s2de18(src, tgt) "87a87f89";\r\n      } "ecd09b62";\r\n    } "af8f5c24";\r\n  } "c0db11dc";\r\n  src.item first as item where (linkId = 'EmCare.B21S2.DE21') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb21s2de21(src, tgt) "e288e392";\r\n      } "ae968910";\r\n    } "46cbfc52";\r\n  } "8f89318d";\r\n  src.item first as item where (linkId = 'EmCare.B21S2.DE24') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb21s2de24(src, tgt) "c746464e";\r\n      } "6b52ad04";\r\n    } "c7688cc7";\r\n  } "668c3c42";\r\n  src.item first as item where (linkId = 'EmCare.B21S2.DE27') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb21s2de27(src, tgt) "46c80d1a";\r\n      } "1c5eb3d7";\r\n    } "c270b0d1";\r\n  } "24323941";\r\n  src.item first as item where (linkId = 'EmCare.B21S2.DE30') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb21s2de30(src, tgt) "f7a188b4";\r\n      } "8891d1a4";\r\n    } "ec6c3ef3";\r\n  } "5e474dbb";\r\n  src.item first as item where (linkId = 'EmCare.B21S2.DE31') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb21s2de31(src, tgt) "7b00306c";\r\n      } "ded65bf0";\r\n    } "6c051e6d";\r\n  } "0dac018e";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE01') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de01(src, tgt) "94788d70";\r\n        } "cafa1f90";\r\n      } "44017cb3";\r\n    } "1c5108b8";\r\n  } "88bb5c43";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE02') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de02(src, tgt) "c3e885af";\r\n        } "60b301de";\r\n      } "815e425c";\r\n    } "85d3c3a3";\r\n  } "c7e0dbc2";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n    itm1.item first as itm2 where linkId = 'second' then {\r\n      itm2.item first as item where (linkId = 'EmCare.B22.DE04') and answer.exists() then {\r\n        src -> bundle.entry as entry then {\r\n          src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n          src -> entry.resource = create('Observation') as tgt then {\r\n            src -> tgt then emcareobservationemcareb22de04(src, tgt) "42ed4c3a";\r\n          } "b802d4a2";\r\n        } "c7431f4f";\r\n      } "ad5094ed";\r\n    } "3b2e9629";\r\n  } "318dfe75";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n    itm1.item first as itm2 where linkId = 'second' then {\r\n      itm2.item first as item where (linkId = 'EmCare.B22.DE05') and answer.exists() then {\r\n        src -> bundle.entry as entry then {\r\n          src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n          src -> entry.resource = create('Observation') as tgt then {\r\n            src -> tgt then emcareobservationemcareb22de05(src, tgt) "3be4cd34";\r\n          } "b7585bc2";\r\n        } "61b1a5c6";\r\n      } "d9d928a7";\r\n    } "9853d168";\r\n  } "c21c2c7c";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE07') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de07(src, tgt) "fa30cee1";\r\n        } "aad75965";\r\n      } "8267defb";\r\n    } "a2eebe03";\r\n  } "7ef76f25";\r\n}\r\n\r\ngroup emcareobservationemcareb18s2de07(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb18s2de07";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B18S2.DE07' "code-emcareb18s2de07";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B18S2.DE07') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb18s2de07";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb18s2de07";\r\n    } "bdab9370";\r\n  } "03e3bd99";\r\n}\r\n\r\ngroup emcareobservationemcareb18s2de08(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb18s2de08";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B18S2.DE08' "code-emcareb18s2de08";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B18S2.DE08') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n        val where val.code != 'none' ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' "a1050460";\r\n      } "310f4b1f";\r\n    } "6af9bfcc";\r\n  } "0b46e243";\r\n}\r\n\r\ngroup emcareobservationemcareb18s2de12(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb18s2de12";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B18S2.DE12' "code-emcareb18s2de12";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B18S2.DE12') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb18s2de12";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb18s2de12";\r\n    } "bdab9370";\r\n  } "c2b6211e";\r\n}\r\n\r\ngroup emcareobservationemcareb18s2de13(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb18s2de13";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B18S2.DE13' "code-emcareb18s2de13";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B18S2.DE13') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb18s2de13";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb18s2de13";\r\n    } "bdab9370";\r\n  } "5c58b9dd";\r\n}\r\n\r\ngroup emcareobservationemcareb19s2de01(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb19s2de01";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B19S2.DE01' "code-emcareb19s2de01";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B19S2.DE01') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb19s2de01";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb19s2de01";\r\n    } "bdab9370";\r\n  } "9cc43da0";\r\n}\r\n\r\ngroup emcareobservationemcareb19s2de02(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb19s2de02";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B19S2.DE02' "code-emcareb19s2de02";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B19S2.DE02') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb19s2de02";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb19s2de02";\r\n    } "bdab9370";\r\n  } "c6f7f824";\r\n}\r\n\r\ngroup emcareobservationemcareb19s2de04(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb19s2de04";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B19S2.DE04' "code-emcareb19s2de04";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B19S2.DE04') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n        val where val.code != 'none' ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' "a1050460";\r\n      } "310f4b1f";\r\n    } "6af9bfcc";\r\n  } "42fb84b8";\r\n}\r\n\r\ngroup emcareobservationemcareb11s2de01(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb11s2de01";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B11S2.DE01' "code-emcareb11s2de01";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B11S2.DE01') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb11s2de01";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb11s2de01";\r\n    } "bdab9370";\r\n  } "7fc3f941";\r\n}\r\n\r\ngroup emcareobservationemcareb11s2de02(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb11s2de02";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B11S2.DE02' "code-emcareb11s2de02";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B11S2.DE02') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n        val where val.code != 'none' ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' "a1050460";\r\n      } "310f4b1f";\r\n    } "6af9bfcc";\r\n  } "73bc942d";\r\n}\r\n\r\ngroup emcareobservationemcareb11s2de06(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb11s2de06";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B11S2.DE06' "code-emcareb11s2de06";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B11S2.DE06') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb11s2de06";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb11s2de06";\r\n    } "bdab9370";\r\n  } "47e72c0c";\r\n}\r\n\r\ngroup emcareobservationemcareb21s2de01(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb21s2de01";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B21S2.DE01' "code-emcareb21s2de01";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B21S2.DE01') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = create('Coding') as c,  c.code = val,  c.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  tgt.status = 'final' "759a9a54";\r\n      } "1b820ab0";\r\n    } "d39f9088";\r\n  } "75d5dd53";\r\n}\r\n\r\ngroup emcareobservationemcareb21s2de05(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb21s2de05";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B21S2.DE05' "code-emcareb21s2de05";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B21S2.DE05') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val ->  tgt.value = val,  tgt.status = 'final' "afa0ccc0";\r\n    } "d40466ff";\r\n  } "0d215e07";\r\n}\r\n\r\ngroup emcareobservationemcareb21s2de06(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb21s2de06";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B21S2.DE06' "code-emcareb21s2de06";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B21S2.DE06') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val ->  tgt.value = val,  tgt.status = 'final' "afa0ccc0";\r\n    } "d40466ff";\r\n  } "3a4a4375";\r\n}\r\n\r\ngroup emcareobservationemcareb21s2de08(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb21s2de08";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B21S2.DE08' "code-emcareb21s2de08";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B21S2.DE08') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb21s2de08";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb21s2de08";\r\n    } "bdab9370";\r\n  } "ac3004d0";\r\n}\r\n\r\ngroup emcareobservationemcareb21s2de09emcareb21s2de11t(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb21s2de09emcareb21s2de11t";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B21S2.DE09&EmCare.B21S2.DE11' "code-emcareobservationemcareb21s2de09emcareb21s2de11t";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'final',  tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb21s2de09emcareb21s2de11f(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb21s2de09emcareb21s2de11f";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B21S2.DE09&EmCare.B21S2.DE11' "code-emcareobservationemcareb21s2de09emcareb21s2de11f";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb21s2de09emcareb21s2de10t(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb21s2de09emcareb21s2de10t";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B21S2.DE09&EmCare.B21S2.DE10' "code-emcareobservationemcareb21s2de09emcareb21s2de10t";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'final',  tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb21s2de09emcareb21s2de10f(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb21s2de09emcareb21s2de10f";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B21S2.DE09&EmCare.B21S2.DE10' "code-emcareobservationemcareb21s2de09emcareb21s2de10f";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb21s2de12(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb21s2de12";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B21S2.DE12' "code-emcareb21s2de12";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B21S2.DE12') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val ->  tgt.value = val,  tgt.status = 'final' "afa0ccc0";\r\n    } "d40466ff";\r\n  } "fe73483f";\r\n}\r\n\r\ngroup emcareobservationemcareb21s2de13(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb21s2de13";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B21S2.DE13' "code-emcareb21s2de13";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B21S2.DE13') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb21s2de13";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb21s2de13";\r\n    } "bdab9370";\r\n  } "a1265fc3";\r\n}\r\n\r\ngroup emcareobservationemcareb21s2de15(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb21s2de15";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B21S2.DE15' "code-emcareb21s2de15";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B21S2.DE15') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val ->  tgt.value = val,  tgt.status = 'final' "afa0ccc0";\r\n    } "d40466ff";\r\n  } "1b63fd85";\r\n}\r\n\r\ngroup emcareobservationemcareb21s2de16(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb21s2de16";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B21S2.DE16' "code-emcareb21s2de16";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B21S2.DE16') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb21s2de16";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb21s2de16";\r\n    } "bdab9370";\r\n  } "e00da6e9";\r\n}\r\n\r\ngroup emcareobservationemcareb21s2de18(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb21s2de18";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B21S2.DE18' "code-emcareb21s2de18";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B21S2.DE18') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n        val where val.code != 'none' ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' "a1050460";\r\n      } "310f4b1f";\r\n    } "6af9bfcc";\r\n  } "af7f6c69";\r\n}\r\n\r\ngroup emcareobservationemcareb21s2de21(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb21s2de21";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B21S2.DE21' "code-emcareb21s2de21";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B21S2.DE21') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n        val where val.code != 'none' ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' "a1050460";\r\n      } "310f4b1f";\r\n    } "6af9bfcc";\r\n  } "b4ca78b5";\r\n}\r\n\r\ngroup emcareobservationemcareb21s2de24(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb21s2de24";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B21S2.DE24' "code-emcareb21s2de24";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B21S2.DE24') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n        val where val.code != 'none' ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' "a1050460";\r\n      } "310f4b1f";\r\n    } "6af9bfcc";\r\n  } "b08f8fe7";\r\n}\r\n\r\ngroup emcareobservationemcareb21s2de27(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb21s2de27";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B21S2.DE27' "code-emcareb21s2de27";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B21S2.DE27') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n        val where val.code != 'none' ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' "a1050460";\r\n      } "310f4b1f";\r\n    } "6af9bfcc";\r\n  } "49d85a6e";\r\n}\r\n\r\ngroup emcareobservationemcareb21s2de30(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb21s2de30";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B21S2.DE30' "code-emcareb21s2de30";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B21S2.DE30') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb21s2de30";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb21s2de30";\r\n    } "bdab9370";\r\n  } "fe4c0b1a";\r\n}\r\n\r\ngroup emcareobservationemcareb21s2de31(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb21s2de31";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B21S2.DE31' "code-emcareb21s2de31";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B21S2.DE31') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'true' ->  tgt.status = 'final',  tgt.value = true "8a65aaa5";\r\n      } "26c2c8c7";\r\n    } "721205d5";\r\n  } "789ed550";\r\n}\r\n\r\ngroup emcareobservationemcareb22de01(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de01";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE01' "code-emcareb22de01";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE01') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val ->  tgt.value = val,  tgt.status = 'final' "afa0ccc0";\r\n      } "d40466ff";\r\n    } "e1cd1fa1";\r\n  } "ad8e4fa6";\r\n}\r\n\r\ngroup emcareobservationemcareb22de02(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de02";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE02' "code-emcareb22de02";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE02') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val then {\r\n          val where val.code = 'true' ->  tgt.status = 'final',  tgt.value = true "8a65aaa5";\r\n        } "26c2c8c7";\r\n      } "721205d5";\r\n    } "38b3c27b";\r\n  } "5b046e45";\r\n}\r\n\r\ngroup emcareobservationemcareb22de04(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de04";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE04' "code-emcareb22de04";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n    itm1.item first as itm2 where linkId = 'second' then {\r\n      itm2.item first as item where (linkId = 'EmCare.B22.DE04') and answer.exists() then {\r\n        item.answer first as a then {\r\n          a.value as val ->  tgt.value = val,  tgt.status = 'final' "afa0ccc0";\r\n        } "d40466ff";\r\n      } "f66ca63f";\r\n    } "1b837896";\r\n  } "6b3a0b06";\r\n}\r\n\r\ngroup emcareobservationemcareb22de05(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de05";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE05' "code-emcareb22de05";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n    itm1.item first as itm2 where linkId = 'second' then {\r\n      itm2.item first as item where (linkId = 'EmCare.B22.DE05') and answer.exists() then {\r\n        item.answer first as a then {\r\n          a.value as val then {\r\n            val where val.code = 'true' ->  tgt.status = 'final',  tgt.value = true "8a65aaa5";\r\n          } "26c2c8c7";\r\n        } "721205d5";\r\n      } "48a81a4f";\r\n    } "9322cbb7";\r\n  } "ed73ec89";\r\n}\r\n\r\ngroup emcareobservationemcareb22de07(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de07";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE07' "code-emcareb22de07";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE07') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb22de07";\r\n        a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb22de07";\r\n      } "bdab9370";\r\n    } "b5e73929";\r\n  } "306838ed";\r\n}\r\n\r\n
" }, - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcare.b18-21.signs.2m.m", + "url": "https://smart.who.int/ccc/StructureMap/emcare.b18-21.signs.2m.m", "name": "emcare.b18-21.signs.2m.m", "status": "active", "structure": [ @@ -20,12 +20,12 @@ "alias": "'Bundle'" }, { - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/observation", + "url": "https://smart.who.int/ccc/StructureDefinition/observation", "mode": "target", "alias": "'Observation'" }, { - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation", + "url": "https://smart.who.int/ccc/StructureDefinition/emcareobservation", "mode": "produced", "alias": "'EmCare Observation'" } @@ -4612,7 +4612,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -4647,7 +4647,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -4969,7 +4969,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -5004,7 +5004,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -5339,7 +5339,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -5374,7 +5374,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -5696,7 +5696,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -5731,7 +5731,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -6053,7 +6053,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -6088,7 +6088,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -6410,7 +6410,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -6445,7 +6445,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -6767,7 +6767,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -6802,7 +6802,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -7137,7 +7137,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -7172,7 +7172,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -7494,7 +7494,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -7529,7 +7529,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -7864,7 +7864,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -7899,7 +7899,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -8221,7 +8221,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -8256,7 +8256,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -8428,7 +8428,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -8591,7 +8591,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -8626,7 +8626,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -8916,7 +8916,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -8951,7 +8951,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -9241,7 +9241,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -9276,7 +9276,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -9598,7 +9598,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -9633,7 +9633,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -9894,7 +9894,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -9929,7 +9929,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -10190,7 +10190,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -10225,7 +10225,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -10486,7 +10486,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -10521,7 +10521,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -10782,7 +10782,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -10817,7 +10817,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -11107,7 +11107,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -11142,7 +11142,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -11464,7 +11464,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -11499,7 +11499,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -11789,7 +11789,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -11824,7 +11824,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -12146,7 +12146,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -12181,7 +12181,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -12516,7 +12516,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -12551,7 +12551,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -12886,7 +12886,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -12921,7 +12921,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -13256,7 +13256,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -13291,7 +13291,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -13626,7 +13626,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -13661,7 +13661,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -13983,7 +13983,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -14018,7 +14018,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -14319,7 +14319,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -14354,7 +14354,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -14658,7 +14658,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -14693,7 +14693,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -15008,7 +15008,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -15043,7 +15043,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -15361,7 +15361,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -15396,7 +15396,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -15725,7 +15725,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -15760,7 +15760,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, diff --git a/input/resources/structuremap/structuremap-emcare.b18-21.symptoms.2m.m.json b/input/resources/structuremap/structuremap-emcare.b18-21.symptoms.2m.m.json index 922663fe..7b8888d8 100644 --- a/input/resources/structuremap/structuremap-emcare.b18-21.symptoms.2m.m.json +++ b/input/resources/structuremap/structuremap-emcare.b18-21.symptoms.2m.m.json @@ -3,9 +3,9 @@ "id": "emcare.b18-21.symptoms.2m.m", "text": { "status": "generated", - "div": "
map "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcare.b18-21.symptoms.2m.m" = "emcare.b18-21.symptoms.2m.m"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/observation" alias 'Observation' as target\r\nuses "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" alias 'EmCare Observation' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n  src -> bundle.id = uuid() "id";\r\n  src -> bundle.type = 'batch' "type";\r\n  src.item first as item where (linkId = 'EmCare.B7.DE03') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb7de03(src, tgt) "f2e89805";\r\n      } "8dded58a";\r\n    } "6d815194";\r\n  } "a2e85aba";\r\n  src.item first as item where (linkId = 'EmCare.B18S1.DE02') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb18s1de02(src, tgt) "25a99ee2";\r\n      } "9a78f7db";\r\n    } "94862cbd";\r\n  } "49e0dedf";\r\n  src.item first as item where (linkId = 'EmCare.B11S1.DE01') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb11s1de01(src, tgt) "43d4af59";\r\n      } "bfd970ae";\r\n    } "b8eb69b0";\r\n  } "e1f73648";\r\n  src.item first as item where (linkId = 'EmCare.B21S1.DE06') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb21s1de06(src, tgt) "4fe5485a";\r\n      } "c849765a";\r\n    } "ce9b0830";\r\n  } "919b4a1a";\r\n}\r\n\r\ngroup emcareobservationemcareb7de03(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb7de03";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B7.DE03' "code-emcareb7de03";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B7.DE03') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb7de03";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb7de03";\r\n    } "bdab9370";\r\n  } "4ef6d709";\r\n}\r\n\r\ngroup emcareobservationemcareb18s1de02(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb18s1de02";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B18S1.DE02' "code-emcareb18s1de02";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B18S1.DE02') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n        val where val.code != 'none' ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' "a1050460";\r\n      } "310f4b1f";\r\n    } "6af9bfcc";\r\n  } "da9e8c81";\r\n}\r\n\r\ngroup emcareobservationemcareb11s1de01(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb11s1de01";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B11S1.DE01' "code-emcareb11s1de01";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B11S1.DE01') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb11s1de01";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb11s1de01";\r\n    } "bdab9370";\r\n  } "7b8564b3";\r\n}\r\n\r\ngroup emcareobservationemcareb21s1de06(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb21s1de06";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B21S1.DE06' "code-emcareb21s1de06";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B21S1.DE06') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb21s1de06";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb21s1de06";\r\n    } "bdab9370";\r\n  } "54923cd5";\r\n}\r\n\r\n
" + "div": "
map "https://smart.who.int/ccc/StructureMap/emcare.b18-21.symptoms.2m.m" = "emcare.b18-21.symptoms.2m.m"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/observation" alias 'Observation' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/emcareobservation" alias 'EmCare Observation' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n  src -> bundle.id = uuid() "id";\r\n  src -> bundle.type = 'batch' "type";\r\n  src.item first as item where (linkId = 'EmCare.B7.DE03') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb7de03(src, tgt) "f2e89805";\r\n      } "8dded58a";\r\n    } "6d815194";\r\n  } "a2e85aba";\r\n  src.item first as item where (linkId = 'EmCare.B18S1.DE02') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb18s1de02(src, tgt) "25a99ee2";\r\n      } "9a78f7db";\r\n    } "94862cbd";\r\n  } "49e0dedf";\r\n  src.item first as item where (linkId = 'EmCare.B11S1.DE01') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb11s1de01(src, tgt) "43d4af59";\r\n      } "bfd970ae";\r\n    } "b8eb69b0";\r\n  } "e1f73648";\r\n  src.item first as item where (linkId = 'EmCare.B21S1.DE06') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb21s1de06(src, tgt) "4fe5485a";\r\n      } "c849765a";\r\n    } "ce9b0830";\r\n  } "919b4a1a";\r\n}\r\n\r\ngroup emcareobservationemcareb7de03(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb7de03";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B7.DE03' "code-emcareb7de03";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B7.DE03') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb7de03";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb7de03";\r\n    } "bdab9370";\r\n  } "4ef6d709";\r\n}\r\n\r\ngroup emcareobservationemcareb18s1de02(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb18s1de02";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B18S1.DE02' "code-emcareb18s1de02";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B18S1.DE02') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n        val where val.code != 'none' ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' "a1050460";\r\n      } "310f4b1f";\r\n    } "6af9bfcc";\r\n  } "da9e8c81";\r\n}\r\n\r\ngroup emcareobservationemcareb11s1de01(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb11s1de01";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B11S1.DE01' "code-emcareb11s1de01";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B11S1.DE01') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb11s1de01";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb11s1de01";\r\n    } "bdab9370";\r\n  } "7b8564b3";\r\n}\r\n\r\ngroup emcareobservationemcareb21s1de06(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb21s1de06";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B21S1.DE06' "code-emcareb21s1de06";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B21S1.DE06') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb21s1de06";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb21s1de06";\r\n    } "bdab9370";\r\n  } "54923cd5";\r\n}\r\n\r\n
" }, - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcare.b18-21.symptoms.2m.m", + "url": "https://smart.who.int/ccc/StructureMap/emcare.b18-21.symptoms.2m.m", "name": "emcare.b18-21.symptoms.2m.m", "status": "active", "structure": [ @@ -20,12 +20,12 @@ "alias": "'Bundle'" }, { - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/observation", + "url": "https://smart.who.int/ccc/StructureDefinition/observation", "mode": "target", "alias": "'Observation'" }, { - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation", + "url": "https://smart.who.int/ccc/StructureDefinition/emcareobservation", "mode": "produced", "alias": "'EmCare Observation'" } @@ -744,7 +744,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -779,7 +779,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -1101,7 +1101,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -1136,7 +1136,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -1471,7 +1471,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -1506,7 +1506,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -1828,7 +1828,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -1863,7 +1863,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, diff --git a/input/resources/structuremap/structuremap-emcare.b22.assessmentstests.json b/input/resources/structuremap/structuremap-emcare.b22.assessmentstests.json index 8152039c..9060b2df 100644 --- a/input/resources/structuremap/structuremap-emcare.b22.assessmentstests.json +++ b/input/resources/structuremap/structuremap-emcare.b22.assessmentstests.json @@ -3,9 +3,9 @@ "id": "emcare.b22.assessmentstests", "text": { "status": "generated", - "div": "
map "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcare.b22.assessmentstests" = "emcare.b22.assessmentstests"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/observation" alias 'Observation' as target\r\nuses "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" alias 'EmCare Observation' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n  src -> bundle.id = uuid() "id";\r\n  src -> bundle.type = 'batch' "type";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE01') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de01(src, tgt) "94788d70";\r\n        } "cafa1f90";\r\n      } "44017cb3";\r\n    } "1c5108b8";\r\n  } "88bb5c43";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE02') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de02(src, tgt) "c3e885af";\r\n        } "60b301de";\r\n      } "815e425c";\r\n    } "85d3c3a3";\r\n  } "c7e0dbc2";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n    itm1.item first as itm2 where linkId = 'second' then {\r\n      itm2.item first as item where (linkId = 'EmCare.B22.DE04') and answer.exists() then {\r\n        src -> bundle.entry as entry then {\r\n          src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n          src -> entry.resource = create('Observation') as tgt then {\r\n            src -> tgt then emcareobservationemcareb22de04(src, tgt) "42ed4c3a";\r\n          } "b802d4a2";\r\n        } "c7431f4f";\r\n      } "ad5094ed";\r\n    } "3b2e9629";\r\n  } "318dfe75";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n    itm1.item first as itm2 where linkId = 'second' then {\r\n      itm2.item first as item where (linkId = 'EmCare.B22.DE05') and answer.exists() then {\r\n        src -> bundle.entry as entry then {\r\n          src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n          src -> entry.resource = create('Observation') as tgt then {\r\n            src -> tgt then emcareobservationemcareb22de05(src, tgt) "3be4cd34";\r\n          } "b7585bc2";\r\n        } "61b1a5c6";\r\n      } "d9d928a7";\r\n    } "9853d168";\r\n  } "c21c2c7c";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE07') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de07(src, tgt) "fa30cee1";\r\n        } "aad75965";\r\n      } "8267defb";\r\n    } "a2eebe03";\r\n  } "7ef76f25";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.FluidTest' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE08') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de08(src, tgt) "d34db40c";\r\n        } "bd8403a6";\r\n      } "09eb3e1a";\r\n    } "1b0282c4";\r\n  } "38d251fb";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.FluidTest' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE14') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de14(src, tgt) "128f555c";\r\n        } "2cba61ee";\r\n      } "1eb502ac";\r\n    } "b29de87e";\r\n  } "83edc111";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.FluidTest' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE14a') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de14a(src, tgt) "7b46291c";\r\n        } "17f1508c";\r\n      } "64f82f5e";\r\n    } "37f27338";\r\n  } "e265d4b9";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.FluidTest' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE15') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de15(src, tgt) "0d25d61c";\r\n        } "49095bbf";\r\n      } "7ffa5829";\r\n    } "fe87fcb7";\r\n  } "5149a74c";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.FluidTest' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE16') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de16(src, tgt) "2bef72fa";\r\n        } "f426fdde";\r\n      } "f53bf22c";\r\n    } "e18b8f07";\r\n  } "5b507a5c";\r\n  src where src.item.where(linkId = 'EmCare.B22.DE17').answer.where(value.code = 'EmCare.B22.DE18') then {\r\n    src.item first as itm1 where linkId = 'EmCare.B22.BronchodilatorTest' then {\r\n      itm1.item first as item where (linkId = 'EmCare.B22.DE17') and answer.exists() then {\r\n        src -> bundle.entry as entry then {\r\n          src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n          src -> entry.resource = create('Observation') as tgt then {\r\n            src then emcareobservationemcareb22de17emcareb22de18t(src, tgt) "4b4e3882";\r\n          } "a29f448d";\r\n        } "8c5fbec1";\r\n      } "34815add";\r\n    } "a5dcb8ca";\r\n  } "ea50860d";\r\n  src where src.item.where(linkId = 'EmCare.B22.DE17').exists() and src.item.where(linkId = 'EmCare.B22.DE17').answer.where(value.code = 'EmCare.B22.DE18').empty() then {\r\n    src.item first as itm1 where linkId = 'EmCare.B22.BronchodilatorTest' then {\r\n      itm1.item first as item where (linkId = 'EmCare.B22.DE17') and answer.exists() then {\r\n        src -> bundle.entry as entry then {\r\n          src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n          src -> entry.resource = create('Observation') as tgt then {\r\n            src then emcareobservationemcareb22de17emcareb22de18f(src, tgt) "4fd23ec4";\r\n          } "e477bbcc";\r\n        } "c329f1a7";\r\n      } "05305e3f";\r\n    } "b43560b2";\r\n  } "b2efd7b0";\r\n  src where src.item.where(linkId = 'EmCare.B22.DE17').answer.where(value.code = 'EmCare.B22.DE19') then {\r\n    src.item first as itm1 where linkId = 'EmCare.B22.BronchodilatorTest' then {\r\n      itm1.item first as item where (linkId = 'EmCare.B22.DE17') and answer.exists() then {\r\n        src -> bundle.entry as entry then {\r\n          src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n          src -> entry.resource = create('Observation') as tgt then {\r\n            src then emcareobservationemcareb22de17emcareb22de19t(src, tgt) "832556c2";\r\n          } "25d864fa";\r\n        } "d659dd64";\r\n      } "b4d55b8a";\r\n    } "427a7e63";\r\n  } "bb829570";\r\n  src where src.item.where(linkId = 'EmCare.B22.DE17').exists() and src.item.where(linkId = 'EmCare.B22.DE17').answer.where(value.code = 'EmCare.B22.DE19').empty() then {\r\n    src.item first as itm1 where linkId = 'EmCare.B22.BronchodilatorTest' then {\r\n      itm1.item first as item where (linkId = 'EmCare.B22.DE17') and answer.exists() then {\r\n        src -> bundle.entry as entry then {\r\n          src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n          src -> entry.resource = create('Observation') as tgt then {\r\n            src then emcareobservationemcareb22de17emcareb22de19f(src, tgt) "917126ea";\r\n          } "4d341549";\r\n        } "7cf5a310";\r\n      } "f627de60";\r\n    } "b50887e7";\r\n  } "65731df1";\r\n  src where src.item.where(linkId = 'EmCare.B22.DE17').answer.where(value.code = 'EmCare.B22.DE20') then {\r\n    src.item first as itm1 where linkId = 'EmCare.B22.BronchodilatorTest' then {\r\n      itm1.item first as item where (linkId = 'EmCare.B22.DE17') and answer.exists() then {\r\n        src -> bundle.entry as entry then {\r\n          src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n          src -> entry.resource = create('Observation') as tgt then {\r\n            src then emcareobservationemcareb22de17emcareb22de20t(src, tgt) "178da581";\r\n          } "1e80b046";\r\n        } "d67193a2";\r\n      } "43435fc6";\r\n    } "663fb49d";\r\n  } "720e8bc9";\r\n  src where src.item.where(linkId = 'EmCare.B22.DE17').exists() and src.item.where(linkId = 'EmCare.B22.DE17').answer.where(value.code = 'EmCare.B22.DE20').empty() then {\r\n    src.item first as itm1 where linkId = 'EmCare.B22.BronchodilatorTest' then {\r\n      itm1.item first as item where (linkId = 'EmCare.B22.DE17') and answer.exists() then {\r\n        src -> bundle.entry as entry then {\r\n          src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n          src -> entry.resource = create('Observation') as tgt then {\r\n            src then emcareobservationemcareb22de17emcareb22de20f(src, tgt) "4fa88d49";\r\n          } "30a84474";\r\n        } "25416983";\r\n      } "6a7e0a13";\r\n    } "16556d1c";\r\n  } "ddaf5ab3";\r\n  src where src.item.where(linkId = 'EmCare.B22.DE17').answer.where(value.code = 'EmCare.B22.DE21') then {\r\n    src.item first as itm1 where linkId = 'EmCare.B22.BronchodilatorTest' then {\r\n      itm1.item first as item where (linkId = 'EmCare.B22.DE17') and answer.exists() then {\r\n        src -> bundle.entry as entry then {\r\n          src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n          src -> entry.resource = create('Observation') as tgt then {\r\n            src then emcareobservationemcareb22de17emcareb22de21t(src, tgt) "628bfa1d";\r\n          } "0bf9d78c";\r\n        } "b0fa129e";\r\n      } "32b27262";\r\n    } "9c9cb9cf";\r\n  } "c28d7273";\r\n  src where src.item.where(linkId = 'EmCare.B22.DE17').exists() and src.item.where(linkId = 'EmCare.B22.DE17').answer.where(value.code = 'EmCare.B22.DE21').empty() then {\r\n    src.item first as itm1 where linkId = 'EmCare.B22.BronchodilatorTest' then {\r\n      itm1.item first as item where (linkId = 'EmCare.B22.DE17') and answer.exists() then {\r\n        src -> bundle.entry as entry then {\r\n          src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n          src -> entry.resource = create('Observation') as tgt then {\r\n            src then emcareobservationemcareb22de17emcareb22de21f(src, tgt) "f42ef3e7";\r\n          } "65279195";\r\n        } "954bbaec";\r\n      } "db19cd6e";\r\n    } "a57951b9";\r\n  } "00b8d186";\r\n  src where src.item.where(linkId = 'EmCare.B22.DE17').answer.where(value.code = 'EmCare.B22.DE22') then {\r\n    src.item first as itm1 where linkId = 'EmCare.B22.BronchodilatorTest' then {\r\n      itm1.item first as item where (linkId = 'EmCare.B22.DE17') and answer.exists() then {\r\n        src -> bundle.entry as entry then {\r\n          src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n          src -> entry.resource = create('Observation') as tgt then {\r\n            src then emcareobservationemcareb22de17emcareb22de22t(src, tgt) "a1caf2e7";\r\n          } "cea3f121";\r\n        } "f3d4e5ff";\r\n      } "b7ccc20a";\r\n    } "a057c365";\r\n  } "6bf6c194";\r\n  src where src.item.where(linkId = 'EmCare.B22.DE17').exists() and src.item.where(linkId = 'EmCare.B22.DE17').answer.where(value.code = 'EmCare.B22.DE22').empty() then {\r\n    src.item first as itm1 where linkId = 'EmCare.B22.BronchodilatorTest' then {\r\n      itm1.item first as item where (linkId = 'EmCare.B22.DE17') and answer.exists() then {\r\n        src -> bundle.entry as entry then {\r\n          src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n          src -> entry.resource = create('Observation') as tgt then {\r\n            src then emcareobservationemcareb22de17emcareb22de22f(src, tgt) "df402cb9";\r\n          } "a7736492";\r\n        } "0fd648ea";\r\n      } "708ba8cc";\r\n    } "141fcb13";\r\n  } "0a2cfb8c";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.BronchodilatorTest' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE22') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de22(src, tgt) "b9010fac";\r\n        } "109bcf94";\r\n      } "88ceffcd";\r\n    } "f6b5295e";\r\n  } "ff982ab4";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.BronchodilatorTest' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE21') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de21(src, tgt) "7c45409d";\r\n        } "ec6cbc70";\r\n      } "2bc763d0";\r\n    } "08d4fa9d";\r\n  } "dbbe5168";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE41') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de41(src, tgt) "35802f20";\r\n        } "765c240d";\r\n      } "9de4a229";\r\n    } "95a734dc";\r\n  } "e0648fb3";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE28') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de28(src, tgt) "dd9106b0";\r\n        } "72695e81";\r\n      } "5cc117e5";\r\n    } "72d43aa2";\r\n  } "2eb0afb7";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE29') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de29(src, tgt) "0bd03bad";\r\n        } "64565ab8";\r\n      } "a568a312";\r\n    } "c9435680";\r\n  } "532862db";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE30') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de30(src, tgt) "a8dbbfa4";\r\n        } "470a9773";\r\n      } "6aff1bf2";\r\n    } "58ef8f91";\r\n  } "d3925452";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE31') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de31(src, tgt) "3a858f1f";\r\n        } "bab0e868";\r\n      } "47ecf4e4";\r\n    } "adf0b112";\r\n  } "800f010d";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE32') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de32(src, tgt) "5537f1d1";\r\n        } "38fb811c";\r\n      } "77934152";\r\n    } "07d1a84a";\r\n  } "41f81bdf";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE33') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de33(src, tgt) "b9ca07b3";\r\n        } "e7981b54";\r\n      } "b81929fc";\r\n    } "65ea8f25";\r\n  } "92c89def";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE34') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de34(src, tgt) "81a7b6a0";\r\n        } "a60a44da";\r\n      } "9f5867b0";\r\n    } "7a811ac1";\r\n  } "c95a75ed";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE35') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de35(src, tgt) "99cdb2a9";\r\n        } "7976f991";\r\n      } "6b8eb7c7";\r\n    } "b3f8de08";\r\n  } "4d431e35";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE36') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de36(src, tgt) "5d275331";\r\n        } "cec8e27b";\r\n      } "e67b8382";\r\n    } "a45c350b";\r\n  } "3cf7714c";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE42') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de42(src, tgt) "273b1a16";\r\n        } "213a0dca";\r\n      } "56a5bbd9";\r\n    } "d7b806aa";\r\n  } "840b2bb8";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE44') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de44(src, tgt) "843d7b1e";\r\n        } "70061b03";\r\n      } "0e593cb2";\r\n    } "f7138270";\r\n  } "3f3d258e";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.Hemoglobin' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE81') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de81(src, tgt) "f56b8d65";\r\n        } "42cac8d1";\r\n      } "00ff1e0b";\r\n    } "12925695";\r\n  } "c39fe6fd";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.Hemoglobin' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE82') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de82(src, tgt) "1118b2e0";\r\n        } "565f125e";\r\n      } "cc5012ad";\r\n    } "ebd0ce98";\r\n  } "26935d1f";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.SecondTemperature' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE47') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de47(src, tgt) "27e1ae58";\r\n        } "68ad31bf";\r\n      } "6ac0c1c9";\r\n    } "39718bc0";\r\n  } "9b034abe";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.SecondTemperature' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE46') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de46(src, tgt) "d4ea6333";\r\n        } "1ee0adeb";\r\n      } "9266b262";\r\n    } "47f73f1e";\r\n  } "20d6b9bb";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.SecondTemperature' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE50') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de50(src, tgt) "b5c48578";\r\n        } "1d3deeec";\r\n      } "82120e52";\r\n    } "618f3cba";\r\n  } "f1772432";\r\n}\r\n\r\ngroup emcareobservationemcareb22de01(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de01";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE01' "code-emcareb22de01";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE01') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val ->  tgt.value = val,  tgt.status = 'final' "afa0ccc0";\r\n      } "d40466ff";\r\n    } "e1cd1fa1";\r\n  } "ad8e4fa6";\r\n}\r\n\r\ngroup emcareobservationemcareb22de02(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de02";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE02' "code-emcareb22de02";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE02') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val then {\r\n          val where val.code = 'true' ->  tgt.status = 'final',  tgt.value = true "8a65aaa5";\r\n        } "26c2c8c7";\r\n      } "721205d5";\r\n    } "38b3c27b";\r\n  } "5b046e45";\r\n}\r\n\r\ngroup emcareobservationemcareb22de04(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de04";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE04' "code-emcareb22de04";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n    itm1.item first as itm2 where linkId = 'second' then {\r\n      itm2.item first as item where (linkId = 'EmCare.B22.DE04') and answer.exists() then {\r\n        item.answer first as a then {\r\n          a.value as val ->  tgt.value = val,  tgt.status = 'final' "afa0ccc0";\r\n        } "d40466ff";\r\n      } "f66ca63f";\r\n    } "1b837896";\r\n  } "6b3a0b06";\r\n}\r\n\r\ngroup emcareobservationemcareb22de05(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de05";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE05' "code-emcareb22de05";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n    itm1.item first as itm2 where linkId = 'second' then {\r\n      itm2.item first as item where (linkId = 'EmCare.B22.DE05') and answer.exists() then {\r\n        item.answer first as a then {\r\n          a.value as val then {\r\n            val where val.code = 'true' ->  tgt.status = 'final',  tgt.value = true "8a65aaa5";\r\n          } "26c2c8c7";\r\n        } "721205d5";\r\n      } "48a81a4f";\r\n    } "9322cbb7";\r\n  } "ed73ec89";\r\n}\r\n\r\ngroup emcareobservationemcareb22de07(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de07";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE07' "code-emcareb22de07";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE07') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb22de07";\r\n        a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb22de07";\r\n      } "bdab9370";\r\n    } "b5e73929";\r\n  } "306838ed";\r\n}\r\n\r\ngroup emcareobservationemcareb22de08(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de08";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE08' "code-emcareb22de08";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.FluidTest' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE08') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val then {\r\n          val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n          val where val.code != 'none' ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' "a1050460";\r\n        } "310f4b1f";\r\n      } "6af9bfcc";\r\n    } "3b9ba04d";\r\n  } "6d73c74e";\r\n}\r\n\r\ngroup emcareobservationemcareb22de14(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de14";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE14' "code-emcareb22de14";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.FluidTest' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE14') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val then {\r\n          val where val.code = 'true' ->  tgt.status = 'final',  tgt.value = true "8a65aaa5";\r\n        } "26c2c8c7";\r\n      } "721205d5";\r\n    } "55651876";\r\n  } "5bdf34bc";\r\n}\r\n\r\ngroup emcareobservationemcareb22de14a(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de14a";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE14a' "code-emcareb22de14a";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.FluidTest' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE14a') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb22de14a";\r\n        a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb22de14a";\r\n      } "bdab9370";\r\n    } "e332bfd7";\r\n  } "1a47ca2a";\r\n}\r\n\r\ngroup emcareobservationemcareb22de15(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de15";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE15' "code-emcareb22de15";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.FluidTest' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE15') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb22de15";\r\n        a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb22de15";\r\n      } "bdab9370";\r\n    } "166040b8";\r\n  } "e23593aa";\r\n}\r\n\r\ngroup emcareobservationemcareb22de16(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de16";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE16' "code-emcareb22de16";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.FluidTest' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE16') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val then {\r\n          val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n          val where val.code != 'none' ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' "a1050460";\r\n        } "310f4b1f";\r\n      } "6af9bfcc";\r\n    } "b1dde0d2";\r\n  } "b36b8a09";\r\n}\r\n\r\ngroup emcareobservationemcareb22de17emcareb22de18t(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb22de17emcareb22de18t";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE17&EmCare.B22.DE18' "code-emcareobservationemcareb22de17emcareb22de18t";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'final',  tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb22de17emcareb22de18f(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb22de17emcareb22de18f";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE17&EmCare.B22.DE18' "code-emcareobservationemcareb22de17emcareb22de18f";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb22de17emcareb22de19t(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb22de17emcareb22de19t";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE17&EmCare.B22.DE19' "code-emcareobservationemcareb22de17emcareb22de19t";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'final',  tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb22de17emcareb22de19f(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb22de17emcareb22de19f";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE17&EmCare.B22.DE19' "code-emcareobservationemcareb22de17emcareb22de19f";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb22de17emcareb22de20t(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb22de17emcareb22de20t";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE17&EmCare.B22.DE20' "code-emcareobservationemcareb22de17emcareb22de20t";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'final',  tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb22de17emcareb22de20f(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb22de17emcareb22de20f";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE17&EmCare.B22.DE20' "code-emcareobservationemcareb22de17emcareb22de20f";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb22de17emcareb22de21t(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb22de17emcareb22de21t";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE17&EmCare.B22.DE21' "code-emcareobservationemcareb22de17emcareb22de21t";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'final',  tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb22de17emcareb22de21f(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb22de17emcareb22de21f";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE17&EmCare.B22.DE21' "code-emcareobservationemcareb22de17emcareb22de21f";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb22de17emcareb22de22t(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb22de17emcareb22de22t";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE17&EmCare.B22.DE22' "code-emcareobservationemcareb22de17emcareb22de22t";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'final',  tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb22de17emcareb22de22f(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb22de17emcareb22de22f";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE17&EmCare.B22.DE22' "code-emcareobservationemcareb22de17emcareb22de22f";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb22de22(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de22";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE22' "code-emcareb22de22";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.BronchodilatorTest' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE22') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val then {\r\n          val where val.code = 'true' ->  tgt.status = 'final',  tgt.value = true "8a65aaa5";\r\n        } "26c2c8c7";\r\n      } "721205d5";\r\n    } "3e1d6082";\r\n  } "e1414539";\r\n}\r\n\r\ngroup emcareobservationemcareb22de21(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de21";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE21' "code-emcareb22de21";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.BronchodilatorTest' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE21') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb22de21";\r\n        a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb22de21";\r\n      } "bdab9370";\r\n    } "36586abf";\r\n  } "a412e00a";\r\n}\r\n\r\ngroup emcareobservationemcareb22de41(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de41";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE41' "code-emcareb22de41";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE41') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val then {\r\n          val where val.code = 'true' ->  tgt.status = 'final',  tgt.value = true "8a65aaa5";\r\n        } "26c2c8c7";\r\n      } "721205d5";\r\n    } "6df944ed";\r\n  } "d888a973";\r\n}\r\n\r\ngroup emcareobservationemcareb22de28(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de28";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE28' "code-emcareb22de28";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE28') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb22de28";\r\n        a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb22de28";\r\n      } "bdab9370";\r\n    } "58c52233";\r\n  } "aad3db2c";\r\n}\r\n\r\ngroup emcareobservationemcareb22de29(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de29";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE29' "code-emcareb22de29";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE29') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb22de29";\r\n        a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb22de29";\r\n      } "bdab9370";\r\n    } "95a367de";\r\n  } "960d28f0";\r\n}\r\n\r\ngroup emcareobservationemcareb22de30(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de30";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE30' "code-emcareb22de30";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE30') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb22de30";\r\n        a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb22de30";\r\n      } "bdab9370";\r\n    } "c3834bca";\r\n  } "3b102368";\r\n}\r\n\r\ngroup emcareobservationemcareb22de31(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de31";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE31' "code-emcareb22de31";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE31') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb22de31";\r\n        a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb22de31";\r\n      } "bdab9370";\r\n    } "bb8ba529";\r\n  } "9e9be797";\r\n}\r\n\r\ngroup emcareobservationemcareb22de32(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de32";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE32' "code-emcareb22de32";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE32') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb22de32";\r\n        a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb22de32";\r\n      } "bdab9370";\r\n    } "4adca3b8";\r\n  } "59b588e0";\r\n}\r\n\r\ngroup emcareobservationemcareb22de33(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de33";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE33' "code-emcareb22de33";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE33') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb22de33";\r\n        a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb22de33";\r\n      } "bdab9370";\r\n    } "ba6b3c81";\r\n  } "56745630";\r\n}\r\n\r\ngroup emcareobservationemcareb22de34(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de34";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE34' "code-emcareb22de34";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE34') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb22de34";\r\n        a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb22de34";\r\n      } "bdab9370";\r\n    } "a958300a";\r\n  } "f384d1b9";\r\n}\r\n\r\ngroup emcareobservationemcareb22de35(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de35";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE35' "code-emcareb22de35";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE35') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb22de35";\r\n        a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb22de35";\r\n      } "bdab9370";\r\n    } "9412283c";\r\n  } "5ed5ea0e";\r\n}\r\n\r\ngroup emcareobservationemcareb22de36(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb22de36";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE36' "code-emcareobservationemcareb22de36";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE36') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where value = 'Not well Attached to Breast', a.value as val then {\r\n          val ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = create('Coding') as c,  c.code = EmCare.B22.DE37,  c.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  tgt.status = 'final' "71afb672";\r\n        } "a53091ee";\r\n        a where value = 'Good Attachment', a.value as val then {\r\n          val ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = create('Coding') as c,  c.code = EmCare.B22.DE38,  c.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  tgt.status = 'final' "3053aa3e";\r\n        } "239a32e6";\r\n        a where value = 'Not Sucking Effectively', a.value as val then {\r\n          val ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = create('Coding') as c,  c.code = EmCare.B22.DE39,  c.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  tgt.status = 'final' "0e60e5cc";\r\n        } "ae925fc5";\r\n        a where value = 'Sucking Effectively', a.value as val then {\r\n          val ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = create('Coding') as c,  c.code = EmCare.B22.DE40,  c.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  tgt.status = 'final' "5eeaf122";\r\n        } "714e8fb5";\r\n      } "bd419d51";\r\n    } "713debc5";\r\n  } "b4145e76";\r\n}\r\n\r\ngroup emcareobservationemcareb22de42(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de42";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE42' "code-emcareb22de42";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE42') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb22de42";\r\n        a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb22de42";\r\n      } "bdab9370";\r\n    } "3dcc04b3";\r\n  } "0d852c2e";\r\n}\r\n\r\ngroup emcareobservationemcareb22de44(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de44";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE44' "code-emcareb22de44";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE44') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb22de44";\r\n        a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb22de44";\r\n      } "bdab9370";\r\n    } "d4bad53b";\r\n  } "fbdc7921";\r\n}\r\n\r\ngroup emcareobservationemcareb22de81(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de81";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE81' "code-emcareb22de81";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.Hemoglobin' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE81') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val ->  tgt.value = val,  tgt.status = 'final' "afa0ccc0";\r\n      } "d40466ff";\r\n    } "185ffa99";\r\n  } "44836ba1";\r\n}\r\n\r\ngroup emcareobservationemcareb22de82(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de82";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE82' "code-emcareb22de82";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.Hemoglobin' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE82') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val then {\r\n          val where val.code = 'true' ->  tgt.status = 'final',  tgt.value = true "8a65aaa5";\r\n        } "26c2c8c7";\r\n      } "721205d5";\r\n    } "29107a72";\r\n  } "7485a680";\r\n}\r\n\r\ngroup emcareobservationemcareb22de47(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de47";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE47' "code-emcareb22de47";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.SecondTemperature' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE47') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val ->  tgt.value = val,  tgt.status = 'final' "afa0ccc0";\r\n      } "d40466ff";\r\n    } "10fc9c80";\r\n  } "932aad6b";\r\n}\r\n\r\ngroup emcareobservationemcareb22de46(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de46";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE46' "code-emcareb22de46";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.SecondTemperature' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE46') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val then {\r\n          val where val.code = 'true' ->  tgt.status = 'final',  tgt.value = true "8a65aaa5";\r\n        } "26c2c8c7";\r\n      } "721205d5";\r\n    } "b66a0bcd";\r\n  } "b937d546";\r\n}\r\n\r\ngroup emcareobservationemcareb22de50(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de50";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE50' "code-emcareb22de50";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.SecondTemperature' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE50') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val then {\r\n          val ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = create('Coding') as c,  c.code = val,  c.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  tgt.status = 'final' "759a9a54";\r\n        } "1b820ab0";\r\n      } "d39f9088";\r\n    } "336c73e3";\r\n  } "3bf9ecd0";\r\n}\r\n\r\n
" + "div": "
map "https://smart.who.int/ccc/StructureMap/emcare.b22.assessmentstests" = "emcare.b22.assessmentstests"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/observation" alias 'Observation' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/emcareobservation" alias 'EmCare Observation' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n  src -> bundle.id = uuid() "id";\r\n  src -> bundle.type = 'batch' "type";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE01') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de01(src, tgt) "94788d70";\r\n        } "cafa1f90";\r\n      } "44017cb3";\r\n    } "1c5108b8";\r\n  } "88bb5c43";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE02') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de02(src, tgt) "c3e885af";\r\n        } "60b301de";\r\n      } "815e425c";\r\n    } "85d3c3a3";\r\n  } "c7e0dbc2";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n    itm1.item first as itm2 where linkId = 'second' then {\r\n      itm2.item first as item where (linkId = 'EmCare.B22.DE04') and answer.exists() then {\r\n        src -> bundle.entry as entry then {\r\n          src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n          src -> entry.resource = create('Observation') as tgt then {\r\n            src -> tgt then emcareobservationemcareb22de04(src, tgt) "42ed4c3a";\r\n          } "b802d4a2";\r\n        } "c7431f4f";\r\n      } "ad5094ed";\r\n    } "3b2e9629";\r\n  } "318dfe75";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n    itm1.item first as itm2 where linkId = 'second' then {\r\n      itm2.item first as item where (linkId = 'EmCare.B22.DE05') and answer.exists() then {\r\n        src -> bundle.entry as entry then {\r\n          src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n          src -> entry.resource = create('Observation') as tgt then {\r\n            src -> tgt then emcareobservationemcareb22de05(src, tgt) "3be4cd34";\r\n          } "b7585bc2";\r\n        } "61b1a5c6";\r\n      } "d9d928a7";\r\n    } "9853d168";\r\n  } "c21c2c7c";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE07') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de07(src, tgt) "fa30cee1";\r\n        } "aad75965";\r\n      } "8267defb";\r\n    } "a2eebe03";\r\n  } "7ef76f25";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.FluidTest' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE08') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de08(src, tgt) "d34db40c";\r\n        } "bd8403a6";\r\n      } "09eb3e1a";\r\n    } "1b0282c4";\r\n  } "38d251fb";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.FluidTest' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE14') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de14(src, tgt) "128f555c";\r\n        } "2cba61ee";\r\n      } "1eb502ac";\r\n    } "b29de87e";\r\n  } "83edc111";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.FluidTest' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE14a') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de14a(src, tgt) "7b46291c";\r\n        } "17f1508c";\r\n      } "64f82f5e";\r\n    } "37f27338";\r\n  } "e265d4b9";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.FluidTest' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE15') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de15(src, tgt) "0d25d61c";\r\n        } "49095bbf";\r\n      } "7ffa5829";\r\n    } "fe87fcb7";\r\n  } "5149a74c";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.FluidTest' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE16') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de16(src, tgt) "2bef72fa";\r\n        } "f426fdde";\r\n      } "f53bf22c";\r\n    } "e18b8f07";\r\n  } "5b507a5c";\r\n  src where src.item.where(linkId = 'EmCare.B22.DE17').answer.where(value.code = 'EmCare.B22.DE18') then {\r\n    src.item first as itm1 where linkId = 'EmCare.B22.BronchodilatorTest' then {\r\n      itm1.item first as item where (linkId = 'EmCare.B22.DE17') and answer.exists() then {\r\n        src -> bundle.entry as entry then {\r\n          src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n          src -> entry.resource = create('Observation') as tgt then {\r\n            src then emcareobservationemcareb22de17emcareb22de18t(src, tgt) "4b4e3882";\r\n          } "a29f448d";\r\n        } "8c5fbec1";\r\n      } "34815add";\r\n    } "a5dcb8ca";\r\n  } "ea50860d";\r\n  src where src.item.where(linkId = 'EmCare.B22.DE17').exists() and src.item.where(linkId = 'EmCare.B22.DE17').answer.where(value.code = 'EmCare.B22.DE18').empty() then {\r\n    src.item first as itm1 where linkId = 'EmCare.B22.BronchodilatorTest' then {\r\n      itm1.item first as item where (linkId = 'EmCare.B22.DE17') and answer.exists() then {\r\n        src -> bundle.entry as entry then {\r\n          src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n          src -> entry.resource = create('Observation') as tgt then {\r\n            src then emcareobservationemcareb22de17emcareb22de18f(src, tgt) "4fd23ec4";\r\n          } "e477bbcc";\r\n        } "c329f1a7";\r\n      } "05305e3f";\r\n    } "b43560b2";\r\n  } "b2efd7b0";\r\n  src where src.item.where(linkId = 'EmCare.B22.DE17').answer.where(value.code = 'EmCare.B22.DE19') then {\r\n    src.item first as itm1 where linkId = 'EmCare.B22.BronchodilatorTest' then {\r\n      itm1.item first as item where (linkId = 'EmCare.B22.DE17') and answer.exists() then {\r\n        src -> bundle.entry as entry then {\r\n          src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n          src -> entry.resource = create('Observation') as tgt then {\r\n            src then emcareobservationemcareb22de17emcareb22de19t(src, tgt) "832556c2";\r\n          } "25d864fa";\r\n        } "d659dd64";\r\n      } "b4d55b8a";\r\n    } "427a7e63";\r\n  } "bb829570";\r\n  src where src.item.where(linkId = 'EmCare.B22.DE17').exists() and src.item.where(linkId = 'EmCare.B22.DE17').answer.where(value.code = 'EmCare.B22.DE19').empty() then {\r\n    src.item first as itm1 where linkId = 'EmCare.B22.BronchodilatorTest' then {\r\n      itm1.item first as item where (linkId = 'EmCare.B22.DE17') and answer.exists() then {\r\n        src -> bundle.entry as entry then {\r\n          src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n          src -> entry.resource = create('Observation') as tgt then {\r\n            src then emcareobservationemcareb22de17emcareb22de19f(src, tgt) "917126ea";\r\n          } "4d341549";\r\n        } "7cf5a310";\r\n      } "f627de60";\r\n    } "b50887e7";\r\n  } "65731df1";\r\n  src where src.item.where(linkId = 'EmCare.B22.DE17').answer.where(value.code = 'EmCare.B22.DE20') then {\r\n    src.item first as itm1 where linkId = 'EmCare.B22.BronchodilatorTest' then {\r\n      itm1.item first as item where (linkId = 'EmCare.B22.DE17') and answer.exists() then {\r\n        src -> bundle.entry as entry then {\r\n          src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n          src -> entry.resource = create('Observation') as tgt then {\r\n            src then emcareobservationemcareb22de17emcareb22de20t(src, tgt) "178da581";\r\n          } "1e80b046";\r\n        } "d67193a2";\r\n      } "43435fc6";\r\n    } "663fb49d";\r\n  } "720e8bc9";\r\n  src where src.item.where(linkId = 'EmCare.B22.DE17').exists() and src.item.where(linkId = 'EmCare.B22.DE17').answer.where(value.code = 'EmCare.B22.DE20').empty() then {\r\n    src.item first as itm1 where linkId = 'EmCare.B22.BronchodilatorTest' then {\r\n      itm1.item first as item where (linkId = 'EmCare.B22.DE17') and answer.exists() then {\r\n        src -> bundle.entry as entry then {\r\n          src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n          src -> entry.resource = create('Observation') as tgt then {\r\n            src then emcareobservationemcareb22de17emcareb22de20f(src, tgt) "4fa88d49";\r\n          } "30a84474";\r\n        } "25416983";\r\n      } "6a7e0a13";\r\n    } "16556d1c";\r\n  } "ddaf5ab3";\r\n  src where src.item.where(linkId = 'EmCare.B22.DE17').answer.where(value.code = 'EmCare.B22.DE21') then {\r\n    src.item first as itm1 where linkId = 'EmCare.B22.BronchodilatorTest' then {\r\n      itm1.item first as item where (linkId = 'EmCare.B22.DE17') and answer.exists() then {\r\n        src -> bundle.entry as entry then {\r\n          src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n          src -> entry.resource = create('Observation') as tgt then {\r\n            src then emcareobservationemcareb22de17emcareb22de21t(src, tgt) "628bfa1d";\r\n          } "0bf9d78c";\r\n        } "b0fa129e";\r\n      } "32b27262";\r\n    } "9c9cb9cf";\r\n  } "c28d7273";\r\n  src where src.item.where(linkId = 'EmCare.B22.DE17').exists() and src.item.where(linkId = 'EmCare.B22.DE17').answer.where(value.code = 'EmCare.B22.DE21').empty() then {\r\n    src.item first as itm1 where linkId = 'EmCare.B22.BronchodilatorTest' then {\r\n      itm1.item first as item where (linkId = 'EmCare.B22.DE17') and answer.exists() then {\r\n        src -> bundle.entry as entry then {\r\n          src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n          src -> entry.resource = create('Observation') as tgt then {\r\n            src then emcareobservationemcareb22de17emcareb22de21f(src, tgt) "f42ef3e7";\r\n          } "65279195";\r\n        } "954bbaec";\r\n      } "db19cd6e";\r\n    } "a57951b9";\r\n  } "00b8d186";\r\n  src where src.item.where(linkId = 'EmCare.B22.DE17').answer.where(value.code = 'EmCare.B22.DE22') then {\r\n    src.item first as itm1 where linkId = 'EmCare.B22.BronchodilatorTest' then {\r\n      itm1.item first as item where (linkId = 'EmCare.B22.DE17') and answer.exists() then {\r\n        src -> bundle.entry as entry then {\r\n          src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n          src -> entry.resource = create('Observation') as tgt then {\r\n            src then emcareobservationemcareb22de17emcareb22de22t(src, tgt) "a1caf2e7";\r\n          } "cea3f121";\r\n        } "f3d4e5ff";\r\n      } "b7ccc20a";\r\n    } "a057c365";\r\n  } "6bf6c194";\r\n  src where src.item.where(linkId = 'EmCare.B22.DE17').exists() and src.item.where(linkId = 'EmCare.B22.DE17').answer.where(value.code = 'EmCare.B22.DE22').empty() then {\r\n    src.item first as itm1 where linkId = 'EmCare.B22.BronchodilatorTest' then {\r\n      itm1.item first as item where (linkId = 'EmCare.B22.DE17') and answer.exists() then {\r\n        src -> bundle.entry as entry then {\r\n          src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n          src -> entry.resource = create('Observation') as tgt then {\r\n            src then emcareobservationemcareb22de17emcareb22de22f(src, tgt) "df402cb9";\r\n          } "a7736492";\r\n        } "0fd648ea";\r\n      } "708ba8cc";\r\n    } "141fcb13";\r\n  } "0a2cfb8c";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.BronchodilatorTest' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE22') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de22(src, tgt) "b9010fac";\r\n        } "109bcf94";\r\n      } "88ceffcd";\r\n    } "f6b5295e";\r\n  } "ff982ab4";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.BronchodilatorTest' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE21') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de21(src, tgt) "7c45409d";\r\n        } "ec6cbc70";\r\n      } "2bc763d0";\r\n    } "08d4fa9d";\r\n  } "dbbe5168";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE41') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de41(src, tgt) "35802f20";\r\n        } "765c240d";\r\n      } "9de4a229";\r\n    } "95a734dc";\r\n  } "e0648fb3";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE28') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de28(src, tgt) "dd9106b0";\r\n        } "72695e81";\r\n      } "5cc117e5";\r\n    } "72d43aa2";\r\n  } "2eb0afb7";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE29') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de29(src, tgt) "0bd03bad";\r\n        } "64565ab8";\r\n      } "a568a312";\r\n    } "c9435680";\r\n  } "532862db";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE30') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de30(src, tgt) "a8dbbfa4";\r\n        } "470a9773";\r\n      } "6aff1bf2";\r\n    } "58ef8f91";\r\n  } "d3925452";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE31') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de31(src, tgt) "3a858f1f";\r\n        } "bab0e868";\r\n      } "47ecf4e4";\r\n    } "adf0b112";\r\n  } "800f010d";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE32') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de32(src, tgt) "5537f1d1";\r\n        } "38fb811c";\r\n      } "77934152";\r\n    } "07d1a84a";\r\n  } "41f81bdf";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE33') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de33(src, tgt) "b9ca07b3";\r\n        } "e7981b54";\r\n      } "b81929fc";\r\n    } "65ea8f25";\r\n  } "92c89def";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE34') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de34(src, tgt) "81a7b6a0";\r\n        } "a60a44da";\r\n      } "9f5867b0";\r\n    } "7a811ac1";\r\n  } "c95a75ed";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE35') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de35(src, tgt) "99cdb2a9";\r\n        } "7976f991";\r\n      } "6b8eb7c7";\r\n    } "b3f8de08";\r\n  } "4d431e35";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE36') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de36(src, tgt) "5d275331";\r\n        } "cec8e27b";\r\n      } "e67b8382";\r\n    } "a45c350b";\r\n  } "3cf7714c";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE42') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de42(src, tgt) "273b1a16";\r\n        } "213a0dca";\r\n      } "56a5bbd9";\r\n    } "d7b806aa";\r\n  } "840b2bb8";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE44') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de44(src, tgt) "843d7b1e";\r\n        } "70061b03";\r\n      } "0e593cb2";\r\n    } "f7138270";\r\n  } "3f3d258e";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.Hemoglobin' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE81') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de81(src, tgt) "f56b8d65";\r\n        } "42cac8d1";\r\n      } "00ff1e0b";\r\n    } "12925695";\r\n  } "c39fe6fd";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.Hemoglobin' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE82') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de82(src, tgt) "1118b2e0";\r\n        } "565f125e";\r\n      } "cc5012ad";\r\n    } "ebd0ce98";\r\n  } "26935d1f";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.SecondTemperature' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE47') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de47(src, tgt) "27e1ae58";\r\n        } "68ad31bf";\r\n      } "6ac0c1c9";\r\n    } "39718bc0";\r\n  } "9b034abe";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.SecondTemperature' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE46') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de46(src, tgt) "d4ea6333";\r\n        } "1ee0adeb";\r\n      } "9266b262";\r\n    } "47f73f1e";\r\n  } "20d6b9bb";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.SecondTemperature' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE50') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de50(src, tgt) "b5c48578";\r\n        } "1d3deeec";\r\n      } "82120e52";\r\n    } "618f3cba";\r\n  } "f1772432";\r\n}\r\n\r\ngroup emcareobservationemcareb22de01(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de01";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE01' "code-emcareb22de01";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE01') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val ->  tgt.value = val,  tgt.status = 'final' "afa0ccc0";\r\n      } "d40466ff";\r\n    } "e1cd1fa1";\r\n  } "ad8e4fa6";\r\n}\r\n\r\ngroup emcareobservationemcareb22de02(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de02";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE02' "code-emcareb22de02";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE02') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val then {\r\n          val where val.code = 'true' ->  tgt.status = 'final',  tgt.value = true "8a65aaa5";\r\n        } "26c2c8c7";\r\n      } "721205d5";\r\n    } "38b3c27b";\r\n  } "5b046e45";\r\n}\r\n\r\ngroup emcareobservationemcareb22de04(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de04";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE04' "code-emcareb22de04";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n    itm1.item first as itm2 where linkId = 'second' then {\r\n      itm2.item first as item where (linkId = 'EmCare.B22.DE04') and answer.exists() then {\r\n        item.answer first as a then {\r\n          a.value as val ->  tgt.value = val,  tgt.status = 'final' "afa0ccc0";\r\n        } "d40466ff";\r\n      } "f66ca63f";\r\n    } "1b837896";\r\n  } "6b3a0b06";\r\n}\r\n\r\ngroup emcareobservationemcareb22de05(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de05";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE05' "code-emcareb22de05";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n    itm1.item first as itm2 where linkId = 'second' then {\r\n      itm2.item first as item where (linkId = 'EmCare.B22.DE05') and answer.exists() then {\r\n        item.answer first as a then {\r\n          a.value as val then {\r\n            val where val.code = 'true' ->  tgt.status = 'final',  tgt.value = true "8a65aaa5";\r\n          } "26c2c8c7";\r\n        } "721205d5";\r\n      } "48a81a4f";\r\n    } "9322cbb7";\r\n  } "ed73ec89";\r\n}\r\n\r\ngroup emcareobservationemcareb22de07(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de07";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE07' "code-emcareb22de07";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE07') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb22de07";\r\n        a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb22de07";\r\n      } "bdab9370";\r\n    } "b5e73929";\r\n  } "306838ed";\r\n}\r\n\r\ngroup emcareobservationemcareb22de08(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de08";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE08' "code-emcareb22de08";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.FluidTest' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE08') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val then {\r\n          val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n          val where val.code != 'none' ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' "a1050460";\r\n        } "310f4b1f";\r\n      } "6af9bfcc";\r\n    } "3b9ba04d";\r\n  } "6d73c74e";\r\n}\r\n\r\ngroup emcareobservationemcareb22de14(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de14";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE14' "code-emcareb22de14";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.FluidTest' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE14') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val then {\r\n          val where val.code = 'true' ->  tgt.status = 'final',  tgt.value = true "8a65aaa5";\r\n        } "26c2c8c7";\r\n      } "721205d5";\r\n    } "55651876";\r\n  } "5bdf34bc";\r\n}\r\n\r\ngroup emcareobservationemcareb22de14a(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de14a";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE14a' "code-emcareb22de14a";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.FluidTest' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE14a') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb22de14a";\r\n        a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb22de14a";\r\n      } "bdab9370";\r\n    } "e332bfd7";\r\n  } "1a47ca2a";\r\n}\r\n\r\ngroup emcareobservationemcareb22de15(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de15";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE15' "code-emcareb22de15";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.FluidTest' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE15') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb22de15";\r\n        a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb22de15";\r\n      } "bdab9370";\r\n    } "166040b8";\r\n  } "e23593aa";\r\n}\r\n\r\ngroup emcareobservationemcareb22de16(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de16";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE16' "code-emcareb22de16";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.FluidTest' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE16') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val then {\r\n          val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n          val where val.code != 'none' ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' "a1050460";\r\n        } "310f4b1f";\r\n      } "6af9bfcc";\r\n    } "b1dde0d2";\r\n  } "b36b8a09";\r\n}\r\n\r\ngroup emcareobservationemcareb22de17emcareb22de18t(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb22de17emcareb22de18t";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE17&EmCare.B22.DE18' "code-emcareobservationemcareb22de17emcareb22de18t";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'final',  tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb22de17emcareb22de18f(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb22de17emcareb22de18f";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE17&EmCare.B22.DE18' "code-emcareobservationemcareb22de17emcareb22de18f";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb22de17emcareb22de19t(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb22de17emcareb22de19t";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE17&EmCare.B22.DE19' "code-emcareobservationemcareb22de17emcareb22de19t";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'final',  tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb22de17emcareb22de19f(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb22de17emcareb22de19f";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE17&EmCare.B22.DE19' "code-emcareobservationemcareb22de17emcareb22de19f";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb22de17emcareb22de20t(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb22de17emcareb22de20t";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE17&EmCare.B22.DE20' "code-emcareobservationemcareb22de17emcareb22de20t";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'final',  tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb22de17emcareb22de20f(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb22de17emcareb22de20f";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE17&EmCare.B22.DE20' "code-emcareobservationemcareb22de17emcareb22de20f";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb22de17emcareb22de21t(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb22de17emcareb22de21t";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE17&EmCare.B22.DE21' "code-emcareobservationemcareb22de17emcareb22de21t";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'final',  tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb22de17emcareb22de21f(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb22de17emcareb22de21f";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE17&EmCare.B22.DE21' "code-emcareobservationemcareb22de17emcareb22de21f";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb22de17emcareb22de22t(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb22de17emcareb22de22t";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE17&EmCare.B22.DE22' "code-emcareobservationemcareb22de17emcareb22de22t";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'final',  tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb22de17emcareb22de22f(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb22de17emcareb22de22f";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE17&EmCare.B22.DE22' "code-emcareobservationemcareb22de17emcareb22de22f";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb22de22(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de22";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE22' "code-emcareb22de22";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.BronchodilatorTest' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE22') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val then {\r\n          val where val.code = 'true' ->  tgt.status = 'final',  tgt.value = true "8a65aaa5";\r\n        } "26c2c8c7";\r\n      } "721205d5";\r\n    } "3e1d6082";\r\n  } "e1414539";\r\n}\r\n\r\ngroup emcareobservationemcareb22de21(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de21";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE21' "code-emcareb22de21";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.BronchodilatorTest' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE21') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb22de21";\r\n        a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb22de21";\r\n      } "bdab9370";\r\n    } "36586abf";\r\n  } "a412e00a";\r\n}\r\n\r\ngroup emcareobservationemcareb22de41(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de41";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE41' "code-emcareb22de41";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE41') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val then {\r\n          val where val.code = 'true' ->  tgt.status = 'final',  tgt.value = true "8a65aaa5";\r\n        } "26c2c8c7";\r\n      } "721205d5";\r\n    } "6df944ed";\r\n  } "d888a973";\r\n}\r\n\r\ngroup emcareobservationemcareb22de28(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de28";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE28' "code-emcareb22de28";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE28') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb22de28";\r\n        a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb22de28";\r\n      } "bdab9370";\r\n    } "58c52233";\r\n  } "aad3db2c";\r\n}\r\n\r\ngroup emcareobservationemcareb22de29(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de29";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE29' "code-emcareb22de29";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE29') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb22de29";\r\n        a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb22de29";\r\n      } "bdab9370";\r\n    } "95a367de";\r\n  } "960d28f0";\r\n}\r\n\r\ngroup emcareobservationemcareb22de30(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de30";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE30' "code-emcareb22de30";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE30') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb22de30";\r\n        a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb22de30";\r\n      } "bdab9370";\r\n    } "c3834bca";\r\n  } "3b102368";\r\n}\r\n\r\ngroup emcareobservationemcareb22de31(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de31";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE31' "code-emcareb22de31";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE31') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb22de31";\r\n        a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb22de31";\r\n      } "bdab9370";\r\n    } "bb8ba529";\r\n  } "9e9be797";\r\n}\r\n\r\ngroup emcareobservationemcareb22de32(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de32";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE32' "code-emcareb22de32";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE32') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb22de32";\r\n        a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb22de32";\r\n      } "bdab9370";\r\n    } "4adca3b8";\r\n  } "59b588e0";\r\n}\r\n\r\ngroup emcareobservationemcareb22de33(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de33";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE33' "code-emcareb22de33";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE33') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb22de33";\r\n        a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb22de33";\r\n      } "bdab9370";\r\n    } "ba6b3c81";\r\n  } "56745630";\r\n}\r\n\r\ngroup emcareobservationemcareb22de34(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de34";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE34' "code-emcareb22de34";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE34') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb22de34";\r\n        a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb22de34";\r\n      } "bdab9370";\r\n    } "a958300a";\r\n  } "f384d1b9";\r\n}\r\n\r\ngroup emcareobservationemcareb22de35(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de35";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE35' "code-emcareb22de35";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE35') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb22de35";\r\n        a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb22de35";\r\n      } "bdab9370";\r\n    } "9412283c";\r\n  } "5ed5ea0e";\r\n}\r\n\r\ngroup emcareobservationemcareb22de36(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb22de36";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE36' "code-emcareobservationemcareb22de36";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE36') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where value = 'Not well Attached to Breast', a.value as val then {\r\n          val ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = create('Coding') as c,  c.code = EmCare.B22.DE37,  c.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  tgt.status = 'final' "71afb672";\r\n        } "a53091ee";\r\n        a where value = 'Good Attachment', a.value as val then {\r\n          val ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = create('Coding') as c,  c.code = EmCare.B22.DE38,  c.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  tgt.status = 'final' "3053aa3e";\r\n        } "239a32e6";\r\n        a where value = 'Not Sucking Effectively', a.value as val then {\r\n          val ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = create('Coding') as c,  c.code = EmCare.B22.DE39,  c.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  tgt.status = 'final' "0e60e5cc";\r\n        } "ae925fc5";\r\n        a where value = 'Sucking Effectively', a.value as val then {\r\n          val ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = create('Coding') as c,  c.code = EmCare.B22.DE40,  c.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  tgt.status = 'final' "5eeaf122";\r\n        } "714e8fb5";\r\n      } "bd419d51";\r\n    } "713debc5";\r\n  } "b4145e76";\r\n}\r\n\r\ngroup emcareobservationemcareb22de42(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de42";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE42' "code-emcareb22de42";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE42') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb22de42";\r\n        a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb22de42";\r\n      } "bdab9370";\r\n    } "3dcc04b3";\r\n  } "0d852c2e";\r\n}\r\n\r\ngroup emcareobservationemcareb22de44(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de44";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE44' "code-emcareb22de44";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE44') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb22de44";\r\n        a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb22de44";\r\n      } "bdab9370";\r\n    } "d4bad53b";\r\n  } "fbdc7921";\r\n}\r\n\r\ngroup emcareobservationemcareb22de81(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de81";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE81' "code-emcareb22de81";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.Hemoglobin' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE81') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val ->  tgt.value = val,  tgt.status = 'final' "afa0ccc0";\r\n      } "d40466ff";\r\n    } "185ffa99";\r\n  } "44836ba1";\r\n}\r\n\r\ngroup emcareobservationemcareb22de82(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de82";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE82' "code-emcareb22de82";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.Hemoglobin' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE82') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val then {\r\n          val where val.code = 'true' ->  tgt.status = 'final',  tgt.value = true "8a65aaa5";\r\n        } "26c2c8c7";\r\n      } "721205d5";\r\n    } "29107a72";\r\n  } "7485a680";\r\n}\r\n\r\ngroup emcareobservationemcareb22de47(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de47";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE47' "code-emcareb22de47";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.SecondTemperature' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE47') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val ->  tgt.value = val,  tgt.status = 'final' "afa0ccc0";\r\n      } "d40466ff";\r\n    } "10fc9c80";\r\n  } "932aad6b";\r\n}\r\n\r\ngroup emcareobservationemcareb22de46(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de46";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE46' "code-emcareb22de46";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.SecondTemperature' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE46') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val then {\r\n          val where val.code = 'true' ->  tgt.status = 'final',  tgt.value = true "8a65aaa5";\r\n        } "26c2c8c7";\r\n      } "721205d5";\r\n    } "b66a0bcd";\r\n  } "b937d546";\r\n}\r\n\r\ngroup emcareobservationemcareb22de50(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de50";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE50' "code-emcareb22de50";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'EmCare.B22.SecondTemperature' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE50') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val then {\r\n          val ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = create('Coding') as c,  c.code = val,  c.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  tgt.status = 'final' "759a9a54";\r\n        } "1b820ab0";\r\n      } "d39f9088";\r\n    } "336c73e3";\r\n  } "3bf9ecd0";\r\n}\r\n\r\n
" }, - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcare.b22.assessmentstests", + "url": "https://smart.who.int/ccc/StructureMap/emcare.b22.assessmentstests", "name": "emcare.b22.assessmentstests", "status": "active", "structure": [ @@ -20,12 +20,12 @@ "alias": "'Bundle'" }, { - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/observation", + "url": "https://smart.who.int/ccc/StructureDefinition/observation", "mode": "target", "alias": "'Observation'" }, { - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation", + "url": "https://smart.who.int/ccc/StructureDefinition/emcareobservation", "mode": "produced", "alias": "'EmCare Observation'" } @@ -5868,7 +5868,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -5903,7 +5903,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -6207,7 +6207,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -6242,7 +6242,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -6557,7 +6557,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -6592,7 +6592,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -6910,7 +6910,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -6945,7 +6945,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -7274,7 +7274,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -7309,7 +7309,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -7645,7 +7645,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -7680,7 +7680,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -8029,7 +8029,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -8064,7 +8064,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -8379,7 +8379,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -8414,7 +8414,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -8750,7 +8750,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -8785,7 +8785,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -9121,7 +9121,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -9156,7 +9156,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -9505,7 +9505,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -9540,7 +9540,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -9801,7 +9801,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -9836,7 +9836,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -10097,7 +10097,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -10132,7 +10132,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -10393,7 +10393,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -10428,7 +10428,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -10689,7 +10689,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -10724,7 +10724,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -10985,7 +10985,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -11020,7 +11020,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -11281,7 +11281,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -11316,7 +11316,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -11577,7 +11577,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -11612,7 +11612,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -11873,7 +11873,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -11908,7 +11908,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -12169,7 +12169,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -12204,7 +12204,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -12465,7 +12465,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -12500,7 +12500,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -12815,7 +12815,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -12850,7 +12850,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -13186,7 +13186,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -13221,7 +13221,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -13536,7 +13536,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -13571,7 +13571,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -13907,7 +13907,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -13942,7 +13942,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -14278,7 +14278,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -14313,7 +14313,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -14649,7 +14649,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -14684,7 +14684,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -15020,7 +15020,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -15055,7 +15055,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -15391,7 +15391,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -15426,7 +15426,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -15762,7 +15762,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -15797,7 +15797,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -16133,7 +16133,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -16168,7 +16168,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -16504,7 +16504,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -16539,7 +16539,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -16727,7 +16727,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -16810,7 +16810,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -16893,7 +16893,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -16976,7 +16976,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -17141,7 +17141,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -17176,7 +17176,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -17512,7 +17512,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -17547,7 +17547,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -17883,7 +17883,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -17918,7 +17918,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -18222,7 +18222,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -18257,7 +18257,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -18572,7 +18572,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -18607,7 +18607,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -18911,7 +18911,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -18946,7 +18946,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -19261,7 +19261,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -19296,7 +19296,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -19480,7 +19480,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, diff --git a/input/resources/structuremap/structuremap-emcare.b22.breastfeeding.json b/input/resources/structuremap/structuremap-emcare.b22.breastfeeding.json index 4a81cd9d..c38a2c33 100644 --- a/input/resources/structuremap/structuremap-emcare.b22.breastfeeding.json +++ b/input/resources/structuremap/structuremap-emcare.b22.breastfeeding.json @@ -3,9 +3,9 @@ "id": "emcare.b22.breastfeeding", "text": { "status": "generated", - "div": "
map "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcare.b22.breastfeeding" = "emcare.b22.breastfeeding"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/observation" alias 'Observation' as target\r\nuses "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" alias 'EmCare Observation' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n  src -> bundle.id = uuid() "id";\r\n  src -> bundle.type = 'batch' "type";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE41') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb22de41(src, tgt) "35802f20";\r\n      } "765c240d";\r\n    } "9de4a229";\r\n  } "75985b2b";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE28') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb22de28(src, tgt) "dd9106b0";\r\n      } "72695e81";\r\n    } "5cc117e5";\r\n  } "9bad69d4";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE29') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb22de29(src, tgt) "0bd03bad";\r\n      } "64565ab8";\r\n    } "a568a312";\r\n  } "76a8dde8";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE30') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb22de30(src, tgt) "a8dbbfa4";\r\n      } "470a9773";\r\n    } "6aff1bf2";\r\n  } "2229067c";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE31') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb22de31(src, tgt) "3a858f1f";\r\n      } "bab0e868";\r\n    } "47ecf4e4";\r\n  } "c5443b3c";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE32') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb22de32(src, tgt) "5537f1d1";\r\n      } "38fb811c";\r\n    } "77934152";\r\n  } "42b13a25";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE33') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb22de33(src, tgt) "b9ca07b3";\r\n      } "e7981b54";\r\n    } "b81929fc";\r\n  } "09721163";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE34') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb22de34(src, tgt) "81a7b6a0";\r\n      } "a60a44da";\r\n    } "9f5867b0";\r\n  } "22a4c1bd";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE35') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb22de35(src, tgt) "99cdb2a9";\r\n      } "7976f991";\r\n    } "6b8eb7c7";\r\n  } "2d0973e6";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE36') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb22de36(src, tgt) "5d275331";\r\n      } "cec8e27b";\r\n    } "e67b8382";\r\n  } "407c94f0";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE42') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb22de42(src, tgt) "273b1a16";\r\n      } "213a0dca";\r\n    } "56a5bbd9";\r\n  } "36bdb5b8";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE44') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb22de44(src, tgt) "843d7b1e";\r\n      } "70061b03";\r\n    } "0e593cb2";\r\n  } "4199346d";\r\n}\r\n\r\ngroup emcareobservationemcareb22de41(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de41";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE41' "code-emcareb22de41";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE41') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'true' ->  tgt.status = 'final',  tgt.value = true "8a65aaa5";\r\n      } "26c2c8c7";\r\n    } "721205d5";\r\n  } "24def288";\r\n}\r\n\r\ngroup emcareobservationemcareb22de28(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de28";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE28' "code-emcareb22de28";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE28') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb22de28";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb22de28";\r\n    } "bdab9370";\r\n  } "f2e6f4c7";\r\n}\r\n\r\ngroup emcareobservationemcareb22de29(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de29";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE29' "code-emcareb22de29";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE29') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb22de29";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb22de29";\r\n    } "bdab9370";\r\n  } "9c93669f";\r\n}\r\n\r\ngroup emcareobservationemcareb22de30(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de30";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE30' "code-emcareb22de30";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE30') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb22de30";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb22de30";\r\n    } "bdab9370";\r\n  } "46ca8d36";\r\n}\r\n\r\ngroup emcareobservationemcareb22de31(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de31";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE31' "code-emcareb22de31";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE31') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb22de31";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb22de31";\r\n    } "bdab9370";\r\n  } "27a8c087";\r\n}\r\n\r\ngroup emcareobservationemcareb22de32(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de32";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE32' "code-emcareb22de32";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE32') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb22de32";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb22de32";\r\n    } "bdab9370";\r\n  } "24ee0901";\r\n}\r\n\r\ngroup emcareobservationemcareb22de33(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de33";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE33' "code-emcareb22de33";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE33') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb22de33";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb22de33";\r\n    } "bdab9370";\r\n  } "17cd42bb";\r\n}\r\n\r\ngroup emcareobservationemcareb22de34(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de34";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE34' "code-emcareb22de34";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE34') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb22de34";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb22de34";\r\n    } "bdab9370";\r\n  } "aa1487ce";\r\n}\r\n\r\ngroup emcareobservationemcareb22de35(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de35";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE35' "code-emcareb22de35";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE35') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb22de35";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb22de35";\r\n    } "bdab9370";\r\n  } "4be5f694";\r\n}\r\n\r\ngroup emcareobservationemcareb22de36(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb22de36";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE36' "code-emcareobservationemcareb22de36";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE36') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where value = 'Not well Attached to Breast', a.value as val then {\r\n        val ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = create('Coding') as c,  c.code = EmCare.B22.DE37,  c.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  tgt.status = 'final' "71afb672";\r\n      } "a53091ee";\r\n      a where value = 'Good Attachment', a.value as val then {\r\n        val ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = create('Coding') as c,  c.code = EmCare.B22.DE38,  c.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  tgt.status = 'final' "3053aa3e";\r\n      } "239a32e6";\r\n      a where value = 'Not Sucking Effectively', a.value as val then {\r\n        val ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = create('Coding') as c,  c.code = EmCare.B22.DE39,  c.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  tgt.status = 'final' "0e60e5cc";\r\n      } "ae925fc5";\r\n      a where value = 'Sucking Effectively', a.value as val then {\r\n        val ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = create('Coding') as c,  c.code = EmCare.B22.DE40,  c.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  tgt.status = 'final' "5eeaf122";\r\n      } "714e8fb5";\r\n    } "bd419d51";\r\n  } "1b30376c";\r\n}\r\n\r\ngroup emcareobservationemcareb22de42(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de42";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE42' "code-emcareb22de42";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE42') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb22de42";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb22de42";\r\n    } "bdab9370";\r\n  } "da98ddbd";\r\n}\r\n\r\ngroup emcareobservationemcareb22de44(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de44";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE44' "code-emcareb22de44";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE44') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb22de44";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb22de44";\r\n    } "bdab9370";\r\n  } "53869acc";\r\n}\r\n\r\n
" + "div": "
map "https://smart.who.int/ccc/StructureMap/emcare.b22.breastfeeding" = "emcare.b22.breastfeeding"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/observation" alias 'Observation' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/emcareobservation" alias 'EmCare Observation' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n  src -> bundle.id = uuid() "id";\r\n  src -> bundle.type = 'batch' "type";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE41') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb22de41(src, tgt) "35802f20";\r\n      } "765c240d";\r\n    } "9de4a229";\r\n  } "75985b2b";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE28') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb22de28(src, tgt) "dd9106b0";\r\n      } "72695e81";\r\n    } "5cc117e5";\r\n  } "9bad69d4";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE29') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb22de29(src, tgt) "0bd03bad";\r\n      } "64565ab8";\r\n    } "a568a312";\r\n  } "76a8dde8";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE30') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb22de30(src, tgt) "a8dbbfa4";\r\n      } "470a9773";\r\n    } "6aff1bf2";\r\n  } "2229067c";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE31') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb22de31(src, tgt) "3a858f1f";\r\n      } "bab0e868";\r\n    } "47ecf4e4";\r\n  } "c5443b3c";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE32') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb22de32(src, tgt) "5537f1d1";\r\n      } "38fb811c";\r\n    } "77934152";\r\n  } "42b13a25";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE33') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb22de33(src, tgt) "b9ca07b3";\r\n      } "e7981b54";\r\n    } "b81929fc";\r\n  } "09721163";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE34') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb22de34(src, tgt) "81a7b6a0";\r\n      } "a60a44da";\r\n    } "9f5867b0";\r\n  } "22a4c1bd";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE35') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb22de35(src, tgt) "99cdb2a9";\r\n      } "7976f991";\r\n    } "6b8eb7c7";\r\n  } "2d0973e6";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE36') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb22de36(src, tgt) "5d275331";\r\n      } "cec8e27b";\r\n    } "e67b8382";\r\n  } "407c94f0";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE42') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb22de42(src, tgt) "273b1a16";\r\n      } "213a0dca";\r\n    } "56a5bbd9";\r\n  } "36bdb5b8";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE44') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb22de44(src, tgt) "843d7b1e";\r\n      } "70061b03";\r\n    } "0e593cb2";\r\n  } "4199346d";\r\n}\r\n\r\ngroup emcareobservationemcareb22de41(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de41";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE41' "code-emcareb22de41";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE41') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'true' ->  tgt.status = 'final',  tgt.value = true "8a65aaa5";\r\n      } "26c2c8c7";\r\n    } "721205d5";\r\n  } "24def288";\r\n}\r\n\r\ngroup emcareobservationemcareb22de28(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de28";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE28' "code-emcareb22de28";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE28') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb22de28";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb22de28";\r\n    } "bdab9370";\r\n  } "f2e6f4c7";\r\n}\r\n\r\ngroup emcareobservationemcareb22de29(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de29";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE29' "code-emcareb22de29";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE29') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb22de29";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb22de29";\r\n    } "bdab9370";\r\n  } "9c93669f";\r\n}\r\n\r\ngroup emcareobservationemcareb22de30(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de30";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE30' "code-emcareb22de30";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE30') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb22de30";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb22de30";\r\n    } "bdab9370";\r\n  } "46ca8d36";\r\n}\r\n\r\ngroup emcareobservationemcareb22de31(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de31";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE31' "code-emcareb22de31";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE31') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb22de31";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb22de31";\r\n    } "bdab9370";\r\n  } "27a8c087";\r\n}\r\n\r\ngroup emcareobservationemcareb22de32(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de32";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE32' "code-emcareb22de32";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE32') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb22de32";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb22de32";\r\n    } "bdab9370";\r\n  } "24ee0901";\r\n}\r\n\r\ngroup emcareobservationemcareb22de33(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de33";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE33' "code-emcareb22de33";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE33') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb22de33";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb22de33";\r\n    } "bdab9370";\r\n  } "17cd42bb";\r\n}\r\n\r\ngroup emcareobservationemcareb22de34(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de34";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE34' "code-emcareb22de34";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE34') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb22de34";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb22de34";\r\n    } "bdab9370";\r\n  } "aa1487ce";\r\n}\r\n\r\ngroup emcareobservationemcareb22de35(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de35";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE35' "code-emcareb22de35";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE35') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb22de35";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb22de35";\r\n    } "bdab9370";\r\n  } "4be5f694";\r\n}\r\n\r\ngroup emcareobservationemcareb22de36(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb22de36";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE36' "code-emcareobservationemcareb22de36";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE36') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where value = 'Not well Attached to Breast', a.value as val then {\r\n        val ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = create('Coding') as c,  c.code = EmCare.B22.DE37,  c.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  tgt.status = 'final' "71afb672";\r\n      } "a53091ee";\r\n      a where value = 'Good Attachment', a.value as val then {\r\n        val ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = create('Coding') as c,  c.code = EmCare.B22.DE38,  c.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  tgt.status = 'final' "3053aa3e";\r\n      } "239a32e6";\r\n      a where value = 'Not Sucking Effectively', a.value as val then {\r\n        val ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = create('Coding') as c,  c.code = EmCare.B22.DE39,  c.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  tgt.status = 'final' "0e60e5cc";\r\n      } "ae925fc5";\r\n      a where value = 'Sucking Effectively', a.value as val then {\r\n        val ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = create('Coding') as c,  c.code = EmCare.B22.DE40,  c.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  tgt.status = 'final' "5eeaf122";\r\n      } "714e8fb5";\r\n    } "bd419d51";\r\n  } "1b30376c";\r\n}\r\n\r\ngroup emcareobservationemcareb22de42(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de42";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE42' "code-emcareb22de42";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE42') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb22de42";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb22de42";\r\n    } "bdab9370";\r\n  } "da98ddbd";\r\n}\r\n\r\ngroup emcareobservationemcareb22de44(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de44";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE44' "code-emcareb22de44";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE44') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb22de44";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb22de44";\r\n    } "bdab9370";\r\n  } "53869acc";\r\n}\r\n\r\n
" }, - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcare.b22.breastfeeding", + "url": "https://smart.who.int/ccc/StructureMap/emcare.b22.breastfeeding", "name": "emcare.b22.breastfeeding", "status": "active", "structure": [ @@ -20,12 +20,12 @@ "alias": "'Bundle'" }, { - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/observation", + "url": "https://smart.who.int/ccc/StructureDefinition/observation", "mode": "target", "alias": "'Observation'" }, { - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation", + "url": "https://smart.who.int/ccc/StructureDefinition/emcareobservation", "mode": "produced", "alias": "'EmCare Observation'" } @@ -1784,7 +1784,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -1819,7 +1819,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -2120,7 +2120,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -2155,7 +2155,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -2477,7 +2477,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -2512,7 +2512,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -2834,7 +2834,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -2869,7 +2869,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -3191,7 +3191,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -3226,7 +3226,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -3548,7 +3548,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -3583,7 +3583,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -3905,7 +3905,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -3940,7 +3940,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -4262,7 +4262,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -4297,7 +4297,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -4619,7 +4619,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -4654,7 +4654,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -4976,7 +4976,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -5011,7 +5011,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -5187,7 +5187,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -5270,7 +5270,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -5353,7 +5353,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -5436,7 +5436,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -5599,7 +5599,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -5634,7 +5634,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -5956,7 +5956,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -5991,7 +5991,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, diff --git a/input/resources/structuremap/structuremap-emcare.b22.bronchodilatortest.json b/input/resources/structuremap/structuremap-emcare.b22.bronchodilatortest.json index 32b696cd..5ed27d4b 100644 --- a/input/resources/structuremap/structuremap-emcare.b22.bronchodilatortest.json +++ b/input/resources/structuremap/structuremap-emcare.b22.bronchodilatortest.json @@ -3,9 +3,9 @@ "id": "emcare.b22.bronchodilatortest", "text": { "status": "generated", - "div": "
map "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcare.b22.bronchodilatortest" = "emcare.b22.bronchodilatortest"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/observation" alias 'Observation' as target\r\nuses "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" alias 'EmCare Observation' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n  src -> bundle.id = uuid() "id";\r\n  src -> bundle.type = 'batch' "type";\r\n  src where src.item.where(linkId = 'EmCare.B22.DE17').answer.where(value.code = 'EmCare.B22.DE18') then {\r\n    src.item first as item where (linkId = 'EmCare.B22.DE17') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb22de17emcareb22de18t(src, tgt) "4b4e3882";\r\n        } "a29f448d";\r\n      } "8c5fbec1";\r\n    } "b0f57b45";\r\n  } "21951d21";\r\n  src where src.item.where(linkId = 'EmCare.B22.DE17').exists() and src.item.where(linkId = 'EmCare.B22.DE17').answer.where(value.code = 'EmCare.B22.DE18').empty() then {\r\n    src.item first as item where (linkId = 'EmCare.B22.DE17') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb22de17emcareb22de18f(src, tgt) "4fd23ec4";\r\n        } "e477bbcc";\r\n      } "c329f1a7";\r\n    } "78424877";\r\n  } "c5976cd7";\r\n  src where src.item.where(linkId = 'EmCare.B22.DE17').answer.where(value.code = 'EmCare.B22.DE19') then {\r\n    src.item first as item where (linkId = 'EmCare.B22.DE17') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb22de17emcareb22de19t(src, tgt) "832556c2";\r\n        } "25d864fa";\r\n      } "d659dd64";\r\n    } "5b545a39";\r\n  } "5e2e09fd";\r\n  src where src.item.where(linkId = 'EmCare.B22.DE17').exists() and src.item.where(linkId = 'EmCare.B22.DE17').answer.where(value.code = 'EmCare.B22.DE19').empty() then {\r\n    src.item first as item where (linkId = 'EmCare.B22.DE17') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb22de17emcareb22de19f(src, tgt) "917126ea";\r\n        } "4d341549";\r\n      } "7cf5a310";\r\n    } "c89d7013";\r\n  } "9e5f2bdb";\r\n  src where src.item.where(linkId = 'EmCare.B22.DE17').answer.where(value.code = 'EmCare.B22.DE20') then {\r\n    src.item first as item where (linkId = 'EmCare.B22.DE17') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb22de17emcareb22de20t(src, tgt) "178da581";\r\n        } "1e80b046";\r\n      } "d67193a2";\r\n    } "59186280";\r\n  } "f429fd81";\r\n  src where src.item.where(linkId = 'EmCare.B22.DE17').exists() and src.item.where(linkId = 'EmCare.B22.DE17').answer.where(value.code = 'EmCare.B22.DE20').empty() then {\r\n    src.item first as item where (linkId = 'EmCare.B22.DE17') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb22de17emcareb22de20f(src, tgt) "4fa88d49";\r\n        } "30a84474";\r\n      } "25416983";\r\n    } "7552e3d3";\r\n  } "8363b35b";\r\n  src where src.item.where(linkId = 'EmCare.B22.DE17').answer.where(value.code = 'EmCare.B22.DE21') then {\r\n    src.item first as item where (linkId = 'EmCare.B22.DE17') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb22de17emcareb22de21t(src, tgt) "628bfa1d";\r\n        } "0bf9d78c";\r\n      } "b0fa129e";\r\n    } "913a00ce";\r\n  } "1561f370";\r\n  src where src.item.where(linkId = 'EmCare.B22.DE17').exists() and src.item.where(linkId = 'EmCare.B22.DE17').answer.where(value.code = 'EmCare.B22.DE21').empty() then {\r\n    src.item first as item where (linkId = 'EmCare.B22.DE17') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb22de17emcareb22de21f(src, tgt) "f42ef3e7";\r\n        } "65279195";\r\n      } "954bbaec";\r\n    } "f61383c6";\r\n  } "530338c0";\r\n  src where src.item.where(linkId = 'EmCare.B22.DE17').answer.where(value.code = 'EmCare.B22.DE22') then {\r\n    src.item first as item where (linkId = 'EmCare.B22.DE17') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb22de17emcareb22de22t(src, tgt) "a1caf2e7";\r\n        } "cea3f121";\r\n      } "f3d4e5ff";\r\n    } "119d61d2";\r\n  } "ba871435";\r\n  src where src.item.where(linkId = 'EmCare.B22.DE17').exists() and src.item.where(linkId = 'EmCare.B22.DE17').answer.where(value.code = 'EmCare.B22.DE22').empty() then {\r\n    src.item first as item where (linkId = 'EmCare.B22.DE17') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb22de17emcareb22de22f(src, tgt) "df402cb9";\r\n        } "a7736492";\r\n      } "0fd648ea";\r\n    } "cad5ab21";\r\n  } "e57a3dc1";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE22') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb22de22(src, tgt) "b9010fac";\r\n      } "109bcf94";\r\n    } "88ceffcd";\r\n  } "88960ea0";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE21') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb22de21(src, tgt) "7c45409d";\r\n      } "ec6cbc70";\r\n    } "2bc763d0";\r\n  } "86c6f66b";\r\n}\r\n\r\ngroup emcareobservationemcareb22de17emcareb22de18t(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb22de17emcareb22de18t";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE17&EmCare.B22.DE18' "code-emcareobservationemcareb22de17emcareb22de18t";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'final',  tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb22de17emcareb22de18f(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb22de17emcareb22de18f";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE17&EmCare.B22.DE18' "code-emcareobservationemcareb22de17emcareb22de18f";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb22de17emcareb22de19t(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb22de17emcareb22de19t";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE17&EmCare.B22.DE19' "code-emcareobservationemcareb22de17emcareb22de19t";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'final',  tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb22de17emcareb22de19f(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb22de17emcareb22de19f";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE17&EmCare.B22.DE19' "code-emcareobservationemcareb22de17emcareb22de19f";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb22de17emcareb22de20t(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb22de17emcareb22de20t";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE17&EmCare.B22.DE20' "code-emcareobservationemcareb22de17emcareb22de20t";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'final',  tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb22de17emcareb22de20f(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb22de17emcareb22de20f";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE17&EmCare.B22.DE20' "code-emcareobservationemcareb22de17emcareb22de20f";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb22de17emcareb22de21t(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb22de17emcareb22de21t";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE17&EmCare.B22.DE21' "code-emcareobservationemcareb22de17emcareb22de21t";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'final',  tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb22de17emcareb22de21f(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb22de17emcareb22de21f";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE17&EmCare.B22.DE21' "code-emcareobservationemcareb22de17emcareb22de21f";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb22de17emcareb22de22t(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb22de17emcareb22de22t";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE17&EmCare.B22.DE22' "code-emcareobservationemcareb22de17emcareb22de22t";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'final',  tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb22de17emcareb22de22f(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb22de17emcareb22de22f";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE17&EmCare.B22.DE22' "code-emcareobservationemcareb22de17emcareb22de22f";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb22de22(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de22";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE22' "code-emcareb22de22";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE22') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'true' ->  tgt.status = 'final',  tgt.value = true "8a65aaa5";\r\n      } "26c2c8c7";\r\n    } "721205d5";\r\n  } "dd2a446b";\r\n}\r\n\r\ngroup emcareobservationemcareb22de21(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de21";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE21' "code-emcareb22de21";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE21') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb22de21";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb22de21";\r\n    } "bdab9370";\r\n  } "be0b9dbe";\r\n}\r\n\r\n
" + "div": "
map "https://smart.who.int/ccc/StructureMap/emcare.b22.bronchodilatortest" = "emcare.b22.bronchodilatortest"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/observation" alias 'Observation' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/emcareobservation" alias 'EmCare Observation' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n  src -> bundle.id = uuid() "id";\r\n  src -> bundle.type = 'batch' "type";\r\n  src where src.item.where(linkId = 'EmCare.B22.DE17').answer.where(value.code = 'EmCare.B22.DE18') then {\r\n    src.item first as item where (linkId = 'EmCare.B22.DE17') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb22de17emcareb22de18t(src, tgt) "4b4e3882";\r\n        } "a29f448d";\r\n      } "8c5fbec1";\r\n    } "b0f57b45";\r\n  } "21951d21";\r\n  src where src.item.where(linkId = 'EmCare.B22.DE17').exists() and src.item.where(linkId = 'EmCare.B22.DE17').answer.where(value.code = 'EmCare.B22.DE18').empty() then {\r\n    src.item first as item where (linkId = 'EmCare.B22.DE17') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb22de17emcareb22de18f(src, tgt) "4fd23ec4";\r\n        } "e477bbcc";\r\n      } "c329f1a7";\r\n    } "78424877";\r\n  } "c5976cd7";\r\n  src where src.item.where(linkId = 'EmCare.B22.DE17').answer.where(value.code = 'EmCare.B22.DE19') then {\r\n    src.item first as item where (linkId = 'EmCare.B22.DE17') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb22de17emcareb22de19t(src, tgt) "832556c2";\r\n        } "25d864fa";\r\n      } "d659dd64";\r\n    } "5b545a39";\r\n  } "5e2e09fd";\r\n  src where src.item.where(linkId = 'EmCare.B22.DE17').exists() and src.item.where(linkId = 'EmCare.B22.DE17').answer.where(value.code = 'EmCare.B22.DE19').empty() then {\r\n    src.item first as item where (linkId = 'EmCare.B22.DE17') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb22de17emcareb22de19f(src, tgt) "917126ea";\r\n        } "4d341549";\r\n      } "7cf5a310";\r\n    } "c89d7013";\r\n  } "9e5f2bdb";\r\n  src where src.item.where(linkId = 'EmCare.B22.DE17').answer.where(value.code = 'EmCare.B22.DE20') then {\r\n    src.item first as item where (linkId = 'EmCare.B22.DE17') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb22de17emcareb22de20t(src, tgt) "178da581";\r\n        } "1e80b046";\r\n      } "d67193a2";\r\n    } "59186280";\r\n  } "f429fd81";\r\n  src where src.item.where(linkId = 'EmCare.B22.DE17').exists() and src.item.where(linkId = 'EmCare.B22.DE17').answer.where(value.code = 'EmCare.B22.DE20').empty() then {\r\n    src.item first as item where (linkId = 'EmCare.B22.DE17') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb22de17emcareb22de20f(src, tgt) "4fa88d49";\r\n        } "30a84474";\r\n      } "25416983";\r\n    } "7552e3d3";\r\n  } "8363b35b";\r\n  src where src.item.where(linkId = 'EmCare.B22.DE17').answer.where(value.code = 'EmCare.B22.DE21') then {\r\n    src.item first as item where (linkId = 'EmCare.B22.DE17') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb22de17emcareb22de21t(src, tgt) "628bfa1d";\r\n        } "0bf9d78c";\r\n      } "b0fa129e";\r\n    } "913a00ce";\r\n  } "1561f370";\r\n  src where src.item.where(linkId = 'EmCare.B22.DE17').exists() and src.item.where(linkId = 'EmCare.B22.DE17').answer.where(value.code = 'EmCare.B22.DE21').empty() then {\r\n    src.item first as item where (linkId = 'EmCare.B22.DE17') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb22de17emcareb22de21f(src, tgt) "f42ef3e7";\r\n        } "65279195";\r\n      } "954bbaec";\r\n    } "f61383c6";\r\n  } "530338c0";\r\n  src where src.item.where(linkId = 'EmCare.B22.DE17').answer.where(value.code = 'EmCare.B22.DE22') then {\r\n    src.item first as item where (linkId = 'EmCare.B22.DE17') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb22de17emcareb22de22t(src, tgt) "a1caf2e7";\r\n        } "cea3f121";\r\n      } "f3d4e5ff";\r\n    } "119d61d2";\r\n  } "ba871435";\r\n  src where src.item.where(linkId = 'EmCare.B22.DE17').exists() and src.item.where(linkId = 'EmCare.B22.DE17').answer.where(value.code = 'EmCare.B22.DE22').empty() then {\r\n    src.item first as item where (linkId = 'EmCare.B22.DE17') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src then emcareobservationemcareb22de17emcareb22de22f(src, tgt) "df402cb9";\r\n        } "a7736492";\r\n      } "0fd648ea";\r\n    } "cad5ab21";\r\n  } "e57a3dc1";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE22') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb22de22(src, tgt) "b9010fac";\r\n      } "109bcf94";\r\n    } "88ceffcd";\r\n  } "88960ea0";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE21') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb22de21(src, tgt) "7c45409d";\r\n      } "ec6cbc70";\r\n    } "2bc763d0";\r\n  } "86c6f66b";\r\n}\r\n\r\ngroup emcareobservationemcareb22de17emcareb22de18t(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb22de17emcareb22de18t";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE17&EmCare.B22.DE18' "code-emcareobservationemcareb22de17emcareb22de18t";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'final',  tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb22de17emcareb22de18f(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb22de17emcareb22de18f";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE17&EmCare.B22.DE18' "code-emcareobservationemcareb22de17emcareb22de18f";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb22de17emcareb22de19t(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb22de17emcareb22de19t";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE17&EmCare.B22.DE19' "code-emcareobservationemcareb22de17emcareb22de19t";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'final',  tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb22de17emcareb22de19f(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb22de17emcareb22de19f";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE17&EmCare.B22.DE19' "code-emcareobservationemcareb22de17emcareb22de19f";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb22de17emcareb22de20t(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb22de17emcareb22de20t";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE17&EmCare.B22.DE20' "code-emcareobservationemcareb22de17emcareb22de20t";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'final',  tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb22de17emcareb22de20f(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb22de17emcareb22de20f";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE17&EmCare.B22.DE20' "code-emcareobservationemcareb22de17emcareb22de20f";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb22de17emcareb22de21t(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb22de17emcareb22de21t";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE17&EmCare.B22.DE21' "code-emcareobservationemcareb22de17emcareb22de21t";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'final',  tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb22de17emcareb22de21f(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb22de17emcareb22de21f";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE17&EmCare.B22.DE21' "code-emcareobservationemcareb22de17emcareb22de21f";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb22de17emcareb22de22t(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb22de17emcareb22de22t";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE17&EmCare.B22.DE22' "code-emcareobservationemcareb22de17emcareb22de22t";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'final',  tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb22de17emcareb22de22f(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareobservationemcareb22de17emcareb22de22f";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE17&EmCare.B22.DE22' "code-emcareobservationemcareb22de17emcareb22de22f";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb22de22(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de22";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE22' "code-emcareb22de22";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE22') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'true' ->  tgt.status = 'final',  tgt.value = true "8a65aaa5";\r\n      } "26c2c8c7";\r\n    } "721205d5";\r\n  } "dd2a446b";\r\n}\r\n\r\ngroup emcareobservationemcareb22de21(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de21";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE21' "code-emcareb22de21";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE21') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb22de21";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb22de21";\r\n    } "bdab9370";\r\n  } "be0b9dbe";\r\n}\r\n\r\n
" }, - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcare.b22.bronchodilatortest", + "url": "https://smart.who.int/ccc/StructureMap/emcare.b22.bronchodilatortest", "name": "emcare.b22.bronchodilatortest", "status": "active", "structure": [ @@ -20,12 +20,12 @@ "alias": "'Bundle'" }, { - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/observation", + "url": "https://smart.who.int/ccc/StructureDefinition/observation", "mode": "target", "alias": "'Observation'" }, { - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation", + "url": "https://smart.who.int/ccc/StructureDefinition/emcareobservation", "mode": "produced", "alias": "'EmCare Observation'" } @@ -1784,7 +1784,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -1819,7 +1819,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -2080,7 +2080,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -2115,7 +2115,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -2376,7 +2376,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -2411,7 +2411,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -2672,7 +2672,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -2707,7 +2707,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -2968,7 +2968,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -3003,7 +3003,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -3264,7 +3264,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -3299,7 +3299,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -3560,7 +3560,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -3595,7 +3595,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -3856,7 +3856,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -3891,7 +3891,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -4152,7 +4152,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -4187,7 +4187,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -4448,7 +4448,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -4483,7 +4483,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -4744,7 +4744,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -4779,7 +4779,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -5080,7 +5080,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -5115,7 +5115,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, diff --git a/input/resources/structuremap/structuremap-emcare.b22.fluidtest.json b/input/resources/structuremap/structuremap-emcare.b22.fluidtest.json index 020f2f8f..d563a58c 100644 --- a/input/resources/structuremap/structuremap-emcare.b22.fluidtest.json +++ b/input/resources/structuremap/structuremap-emcare.b22.fluidtest.json @@ -3,9 +3,9 @@ "id": "emcare.b22.fluidtest", "text": { "status": "generated", - "div": "
map "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcare.b22.fluidtest" = "emcare.b22.fluidtest"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/observation" alias 'Observation' as target\r\nuses "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" alias 'EmCare Observation' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n  src -> bundle.id = uuid() "id";\r\n  src -> bundle.type = 'batch' "type";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE08') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb22de08(src, tgt) "d34db40c";\r\n      } "bd8403a6";\r\n    } "09eb3e1a";\r\n  } "9a6f78aa";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE14') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb22de14(src, tgt) "128f555c";\r\n      } "2cba61ee";\r\n    } "1eb502ac";\r\n  } "4a69f58d";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE14a') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb22de14a(src, tgt) "7b46291c";\r\n      } "17f1508c";\r\n    } "64f82f5e";\r\n  } "17d5b370";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE15') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb22de15(src, tgt) "0d25d61c";\r\n      } "49095bbf";\r\n    } "7ffa5829";\r\n  } "33c9d538";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE16') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb22de16(src, tgt) "2bef72fa";\r\n      } "f426fdde";\r\n    } "f53bf22c";\r\n  } "1a49e616";\r\n}\r\n\r\ngroup emcareobservationemcareb22de08(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de08";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE08' "code-emcareb22de08";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE08') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n        val where val.code != 'none' ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' "a1050460";\r\n      } "310f4b1f";\r\n    } "6af9bfcc";\r\n  } "64bb2211";\r\n}\r\n\r\ngroup emcareobservationemcareb22de14(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de14";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE14' "code-emcareb22de14";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE14') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'true' ->  tgt.status = 'final',  tgt.value = true "8a65aaa5";\r\n      } "26c2c8c7";\r\n    } "721205d5";\r\n  } "0ac7445d";\r\n}\r\n\r\ngroup emcareobservationemcareb22de14a(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de14a";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE14a' "code-emcareb22de14a";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE14a') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb22de14a";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb22de14a";\r\n    } "bdab9370";\r\n  } "b79a05a4";\r\n}\r\n\r\ngroup emcareobservationemcareb22de15(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de15";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE15' "code-emcareb22de15";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE15') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb22de15";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb22de15";\r\n    } "bdab9370";\r\n  } "6c50dbd5";\r\n}\r\n\r\ngroup emcareobservationemcareb22de16(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de16";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE16' "code-emcareb22de16";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE16') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n        val where val.code != 'none' ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' "a1050460";\r\n      } "310f4b1f";\r\n    } "6af9bfcc";\r\n  } "6d23b905";\r\n}\r\n\r\n
" + "div": "
map "https://smart.who.int/ccc/StructureMap/emcare.b22.fluidtest" = "emcare.b22.fluidtest"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/observation" alias 'Observation' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/emcareobservation" alias 'EmCare Observation' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n  src -> bundle.id = uuid() "id";\r\n  src -> bundle.type = 'batch' "type";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE08') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb22de08(src, tgt) "d34db40c";\r\n      } "bd8403a6";\r\n    } "09eb3e1a";\r\n  } "9a6f78aa";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE14') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb22de14(src, tgt) "128f555c";\r\n      } "2cba61ee";\r\n    } "1eb502ac";\r\n  } "4a69f58d";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE14a') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb22de14a(src, tgt) "7b46291c";\r\n      } "17f1508c";\r\n    } "64f82f5e";\r\n  } "17d5b370";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE15') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb22de15(src, tgt) "0d25d61c";\r\n      } "49095bbf";\r\n    } "7ffa5829";\r\n  } "33c9d538";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE16') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb22de16(src, tgt) "2bef72fa";\r\n      } "f426fdde";\r\n    } "f53bf22c";\r\n  } "1a49e616";\r\n}\r\n\r\ngroup emcareobservationemcareb22de08(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de08";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE08' "code-emcareb22de08";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE08') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n        val where val.code != 'none' ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' "a1050460";\r\n      } "310f4b1f";\r\n    } "6af9bfcc";\r\n  } "64bb2211";\r\n}\r\n\r\ngroup emcareobservationemcareb22de14(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de14";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE14' "code-emcareb22de14";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE14') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'true' ->  tgt.status = 'final',  tgt.value = true "8a65aaa5";\r\n      } "26c2c8c7";\r\n    } "721205d5";\r\n  } "0ac7445d";\r\n}\r\n\r\ngroup emcareobservationemcareb22de14a(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de14a";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE14a' "code-emcareb22de14a";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE14a') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb22de14a";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb22de14a";\r\n    } "bdab9370";\r\n  } "b79a05a4";\r\n}\r\n\r\ngroup emcareobservationemcareb22de15(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de15";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE15' "code-emcareb22de15";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE15') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb22de15";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb22de15";\r\n    } "bdab9370";\r\n  } "6c50dbd5";\r\n}\r\n\r\ngroup emcareobservationemcareb22de16(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de16";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE16' "code-emcareb22de16";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE16') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n        val where val.code != 'none' ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' "a1050460";\r\n      } "310f4b1f";\r\n    } "6af9bfcc";\r\n  } "6d23b905";\r\n}\r\n\r\n
" }, - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcare.b22.fluidtest", + "url": "https://smart.who.int/ccc/StructureMap/emcare.b22.fluidtest", "name": "emcare.b22.fluidtest", "status": "active", "structure": [ @@ -20,12 +20,12 @@ "alias": "'Bundle'" }, { - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/observation", + "url": "https://smart.who.int/ccc/StructureDefinition/observation", "mode": "target", "alias": "'Observation'" }, { - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation", + "url": "https://smart.who.int/ccc/StructureDefinition/emcareobservation", "mode": "produced", "alias": "'EmCare Observation'" } @@ -874,7 +874,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -909,7 +909,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -1244,7 +1244,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -1279,7 +1279,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -1580,7 +1580,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -1615,7 +1615,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -1937,7 +1937,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -1972,7 +1972,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -2294,7 +2294,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -2329,7 +2329,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, diff --git a/input/resources/structuremap/structuremap-emcare.b22.hemoglobin.json b/input/resources/structuremap/structuremap-emcare.b22.hemoglobin.json index a217d578..de7c45b3 100644 --- a/input/resources/structuremap/structuremap-emcare.b22.hemoglobin.json +++ b/input/resources/structuremap/structuremap-emcare.b22.hemoglobin.json @@ -3,9 +3,9 @@ "id": "emcare.b22.hemoglobin", "text": { "status": "generated", - "div": "
map "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcare.b22.hemoglobin" = "emcare.b22.hemoglobin"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/observation" alias 'Observation' as target\r\nuses "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" alias 'EmCare Observation' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n  src -> bundle.id = uuid() "id";\r\n  src -> bundle.type = 'batch' "type";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE81') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb22de81(src, tgt) "f56b8d65";\r\n      } "42cac8d1";\r\n    } "00ff1e0b";\r\n  } "f4f9d360";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE82') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb22de82(src, tgt) "1118b2e0";\r\n      } "565f125e";\r\n    } "cc5012ad";\r\n  } "ba583c69";\r\n}\r\n\r\ngroup emcareobservationemcareb22de81(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de81";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE81' "code-emcareb22de81";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE81') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val ->  tgt.value = val,  tgt.status = 'final' "afa0ccc0";\r\n    } "d40466ff";\r\n  } "dfc1d2c2";\r\n}\r\n\r\ngroup emcareobservationemcareb22de82(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de82";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE82' "code-emcareb22de82";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE82') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'true' ->  tgt.status = 'final',  tgt.value = true "8a65aaa5";\r\n      } "26c2c8c7";\r\n    } "721205d5";\r\n  } "cc79d81a";\r\n}\r\n\r\n
" + "div": "
map "https://smart.who.int/ccc/StructureMap/emcare.b22.hemoglobin" = "emcare.b22.hemoglobin"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/observation" alias 'Observation' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/emcareobservation" alias 'EmCare Observation' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n  src -> bundle.id = uuid() "id";\r\n  src -> bundle.type = 'batch' "type";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE81') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb22de81(src, tgt) "f56b8d65";\r\n      } "42cac8d1";\r\n    } "00ff1e0b";\r\n  } "f4f9d360";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE82') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb22de82(src, tgt) "1118b2e0";\r\n      } "565f125e";\r\n    } "cc5012ad";\r\n  } "ba583c69";\r\n}\r\n\r\ngroup emcareobservationemcareb22de81(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de81";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE81' "code-emcareb22de81";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE81') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val ->  tgt.value = val,  tgt.status = 'final' "afa0ccc0";\r\n    } "d40466ff";\r\n  } "dfc1d2c2";\r\n}\r\n\r\ngroup emcareobservationemcareb22de82(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de82";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE82' "code-emcareb22de82";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE82') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'true' ->  tgt.status = 'final',  tgt.value = true "8a65aaa5";\r\n      } "26c2c8c7";\r\n    } "721205d5";\r\n  } "cc79d81a";\r\n}\r\n\r\n
" }, - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcare.b22.hemoglobin", + "url": "https://smart.who.int/ccc/StructureMap/emcare.b22.hemoglobin", "name": "emcare.b22.hemoglobin", "status": "active", "structure": [ @@ -20,12 +20,12 @@ "alias": "'Bundle'" }, { - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/observation", + "url": "https://smart.who.int/ccc/StructureDefinition/observation", "mode": "target", "alias": "'Observation'" }, { - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation", + "url": "https://smart.who.int/ccc/StructureDefinition/emcareobservation", "mode": "produced", "alias": "'EmCare Observation'" } @@ -484,7 +484,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -519,7 +519,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -809,7 +809,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -844,7 +844,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, diff --git a/input/resources/structuremap/structuremap-emcare.b22.respiratoryrate.json b/input/resources/structuremap/structuremap-emcare.b22.respiratoryrate.json index 988d4fc8..862b1f20 100644 --- a/input/resources/structuremap/structuremap-emcare.b22.respiratoryrate.json +++ b/input/resources/structuremap/structuremap-emcare.b22.respiratoryrate.json @@ -3,9 +3,9 @@ "id": "emcare.b22.respiratoryrate", "text": { "status": "generated", - "div": "
map "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcare.b22.respiratoryrate" = "emcare.b22.respiratoryrate"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/observation" alias 'Observation' as target\r\nuses "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" alias 'EmCare Observation' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n  src -> bundle.id = uuid() "id";\r\n  src -> bundle.type = 'batch' "type";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE01') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb22de01(src, tgt) "94788d70";\r\n      } "cafa1f90";\r\n    } "44017cb3";\r\n  } "77649f73";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE02') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb22de02(src, tgt) "c3e885af";\r\n      } "60b301de";\r\n    } "815e425c";\r\n  } "7ee0496a";\r\n  src.item first as itm1 where linkId = 'second' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE04') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de04(src, tgt) "42ed4c3a";\r\n        } "b802d4a2";\r\n      } "c7431f4f";\r\n    } "db1f14c6";\r\n  } "b4376f1a";\r\n  src.item first as itm1 where linkId = 'second' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE05') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de05(src, tgt) "3be4cd34";\r\n        } "b7585bc2";\r\n      } "61b1a5c6";\r\n    } "e18939cc";\r\n  } "521e128f";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE07') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb22de07(src, tgt) "fa30cee1";\r\n      } "aad75965";\r\n    } "8267defb";\r\n  } "f682bc2d";\r\n}\r\n\r\ngroup emcareobservationemcareb22de01(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de01";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE01' "code-emcareb22de01";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE01') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val ->  tgt.value = val,  tgt.status = 'final' "afa0ccc0";\r\n    } "d40466ff";\r\n  } "49ffb8b4";\r\n}\r\n\r\ngroup emcareobservationemcareb22de02(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de02";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE02' "code-emcareb22de02";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE02') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'true' ->  tgt.status = 'final',  tgt.value = true "8a65aaa5";\r\n      } "26c2c8c7";\r\n    } "721205d5";\r\n  } "3b9acb5e";\r\n}\r\n\r\ngroup emcareobservationemcareb22de04(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de04";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE04' "code-emcareb22de04";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'second' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE04') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val ->  tgt.value = val,  tgt.status = 'final' "afa0ccc0";\r\n      } "d40466ff";\r\n    } "a51bfd6b";\r\n  } "dfb413f3";\r\n}\r\n\r\ngroup emcareobservationemcareb22de05(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de05";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE05' "code-emcareb22de05";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'second' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE05') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val then {\r\n          val where val.code = 'true' ->  tgt.status = 'final',  tgt.value = true "8a65aaa5";\r\n        } "26c2c8c7";\r\n      } "721205d5";\r\n    } "64195ab2";\r\n  } "e7a272dd";\r\n}\r\n\r\ngroup emcareobservationemcareb22de07(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de07";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE07' "code-emcareb22de07";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE07') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb22de07";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb22de07";\r\n    } "bdab9370";\r\n  } "07e9b85b";\r\n}\r\n\r\n
" + "div": "
map "https://smart.who.int/ccc/StructureMap/emcare.b22.respiratoryrate" = "emcare.b22.respiratoryrate"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/observation" alias 'Observation' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/emcareobservation" alias 'EmCare Observation' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n  src -> bundle.id = uuid() "id";\r\n  src -> bundle.type = 'batch' "type";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE01') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb22de01(src, tgt) "94788d70";\r\n      } "cafa1f90";\r\n    } "44017cb3";\r\n  } "77649f73";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE02') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb22de02(src, tgt) "c3e885af";\r\n      } "60b301de";\r\n    } "815e425c";\r\n  } "7ee0496a";\r\n  src.item first as itm1 where linkId = 'second' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE04') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de04(src, tgt) "42ed4c3a";\r\n        } "b802d4a2";\r\n      } "c7431f4f";\r\n    } "db1f14c6";\r\n  } "b4376f1a";\r\n  src.item first as itm1 where linkId = 'second' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE05') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb22de05(src, tgt) "3be4cd34";\r\n        } "b7585bc2";\r\n      } "61b1a5c6";\r\n    } "e18939cc";\r\n  } "521e128f";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE07') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb22de07(src, tgt) "fa30cee1";\r\n      } "aad75965";\r\n    } "8267defb";\r\n  } "f682bc2d";\r\n}\r\n\r\ngroup emcareobservationemcareb22de01(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de01";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE01' "code-emcareb22de01";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE01') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val ->  tgt.value = val,  tgt.status = 'final' "afa0ccc0";\r\n    } "d40466ff";\r\n  } "49ffb8b4";\r\n}\r\n\r\ngroup emcareobservationemcareb22de02(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de02";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE02' "code-emcareb22de02";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE02') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'true' ->  tgt.status = 'final',  tgt.value = true "8a65aaa5";\r\n      } "26c2c8c7";\r\n    } "721205d5";\r\n  } "3b9acb5e";\r\n}\r\n\r\ngroup emcareobservationemcareb22de04(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de04";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE04' "code-emcareb22de04";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'second' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE04') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val ->  tgt.value = val,  tgt.status = 'final' "afa0ccc0";\r\n      } "d40466ff";\r\n    } "a51bfd6b";\r\n  } "dfb413f3";\r\n}\r\n\r\ngroup emcareobservationemcareb22de05(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de05";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE05' "code-emcareb22de05";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'second' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B22.DE05') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val then {\r\n          val where val.code = 'true' ->  tgt.status = 'final',  tgt.value = true "8a65aaa5";\r\n        } "26c2c8c7";\r\n      } "721205d5";\r\n    } "64195ab2";\r\n  } "e7a272dd";\r\n}\r\n\r\ngroup emcareobservationemcareb22de07(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de07";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE07' "code-emcareb22de07";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE07') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb22de07";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb22de07";\r\n    } "bdab9370";\r\n  } "07e9b85b";\r\n}\r\n\r\n
" }, - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcare.b22.respiratoryrate", + "url": "https://smart.who.int/ccc/StructureMap/emcare.b22.respiratoryrate", "name": "emcare.b22.respiratoryrate", "status": "active", "structure": [ @@ -20,12 +20,12 @@ "alias": "'Bundle'" }, { - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/observation", + "url": "https://smart.who.int/ccc/StructureDefinition/observation", "mode": "target", "alias": "'Observation'" }, { - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation", + "url": "https://smart.who.int/ccc/StructureDefinition/emcareobservation", "mode": "produced", "alias": "'EmCare Observation'" } @@ -902,7 +902,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -937,7 +937,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -1227,7 +1227,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -1262,7 +1262,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -1563,7 +1563,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -1598,7 +1598,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -1902,7 +1902,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -1937,7 +1937,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -2252,7 +2252,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -2287,7 +2287,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, diff --git a/input/resources/structuremap/structuremap-emcare.b22.secondtemperature.json b/input/resources/structuremap/structuremap-emcare.b22.secondtemperature.json index ef52adb0..8e9060b1 100644 --- a/input/resources/structuremap/structuremap-emcare.b22.secondtemperature.json +++ b/input/resources/structuremap/structuremap-emcare.b22.secondtemperature.json @@ -3,9 +3,9 @@ "id": "emcare.b22.secondtemperature", "text": { "status": "generated", - "div": "
map "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcare.b22.secondtemperature" = "emcare.b22.secondtemperature"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/observation" alias 'Observation' as target\r\nuses "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" alias 'EmCare Observation' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n  src -> bundle.id = uuid() "id";\r\n  src -> bundle.type = 'batch' "type";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE47') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb22de47(src, tgt) "27e1ae58";\r\n      } "68ad31bf";\r\n    } "6ac0c1c9";\r\n  } "921b6c4e";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE46') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb22de46(src, tgt) "d4ea6333";\r\n      } "1ee0adeb";\r\n    } "9266b262";\r\n  } "822ffc0d";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE50') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb22de50(src, tgt) "b5c48578";\r\n      } "1d3deeec";\r\n    } "82120e52";\r\n  } "7a077eb8";\r\n}\r\n\r\ngroup emcareobservationemcareb22de47(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de47";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE47' "code-emcareb22de47";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE47') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val ->  tgt.value = val,  tgt.status = 'final' "afa0ccc0";\r\n    } "d40466ff";\r\n  } "48393240";\r\n}\r\n\r\ngroup emcareobservationemcareb22de46(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de46";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE46' "code-emcareb22de46";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE46') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'true' ->  tgt.status = 'final',  tgt.value = true "8a65aaa5";\r\n      } "26c2c8c7";\r\n    } "721205d5";\r\n  } "a4475795";\r\n}\r\n\r\ngroup emcareobservationemcareb22de50(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de50";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE50' "code-emcareb22de50";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE50') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = create('Coding') as c,  c.code = val,  c.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  tgt.status = 'final' "759a9a54";\r\n      } "1b820ab0";\r\n    } "d39f9088";\r\n  } "7972a70f";\r\n}\r\n\r\n
" + "div": "
map "https://smart.who.int/ccc/StructureMap/emcare.b22.secondtemperature" = "emcare.b22.secondtemperature"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/observation" alias 'Observation' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/emcareobservation" alias 'EmCare Observation' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n  src -> bundle.id = uuid() "id";\r\n  src -> bundle.type = 'batch' "type";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE47') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb22de47(src, tgt) "27e1ae58";\r\n      } "68ad31bf";\r\n    } "6ac0c1c9";\r\n  } "921b6c4e";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE46') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb22de46(src, tgt) "d4ea6333";\r\n      } "1ee0adeb";\r\n    } "9266b262";\r\n  } "822ffc0d";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE50') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb22de50(src, tgt) "b5c48578";\r\n      } "1d3deeec";\r\n    } "82120e52";\r\n  } "7a077eb8";\r\n}\r\n\r\ngroup emcareobservationemcareb22de47(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de47";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE47' "code-emcareb22de47";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE47') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val ->  tgt.value = val,  tgt.status = 'final' "afa0ccc0";\r\n    } "d40466ff";\r\n  } "48393240";\r\n}\r\n\r\ngroup emcareobservationemcareb22de46(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de46";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE46' "code-emcareb22de46";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE46') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'true' ->  tgt.status = 'final',  tgt.value = true "8a65aaa5";\r\n      } "26c2c8c7";\r\n    } "721205d5";\r\n  } "a4475795";\r\n}\r\n\r\ngroup emcareobservationemcareb22de50(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de50";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE50' "code-emcareb22de50";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B22.DE50') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = create('Coding') as c,  c.code = val,  c.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  tgt.status = 'final' "759a9a54";\r\n      } "1b820ab0";\r\n    } "d39f9088";\r\n  } "7972a70f";\r\n}\r\n\r\n
" }, - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcare.b22.secondtemperature", + "url": "https://smart.who.int/ccc/StructureMap/emcare.b22.secondtemperature", "name": "emcare.b22.secondtemperature", "status": "active", "structure": [ @@ -20,12 +20,12 @@ "alias": "'Bundle'" }, { - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/observation", + "url": "https://smart.who.int/ccc/StructureDefinition/observation", "mode": "target", "alias": "'Observation'" }, { - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation", + "url": "https://smart.who.int/ccc/StructureDefinition/emcareobservation", "mode": "produced", "alias": "'EmCare Observation'" } @@ -614,7 +614,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -649,7 +649,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -939,7 +939,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -974,7 +974,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -1275,7 +1275,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -1310,7 +1310,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -1482,7 +1482,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, diff --git a/input/resources/structuremap/structuremap-emcare.b23.classification.json b/input/resources/structuremap/structuremap-emcare.b23.classification.json index 93e60e67..5247b877 100644 --- a/input/resources/structuremap/structuremap-emcare.b23.classification.json +++ b/input/resources/structuremap/structuremap-emcare.b23.classification.json @@ -3,9 +3,9 @@ "id": "emcare.b23.classification", "text": { "status": "generated", - "div": "
map "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcare.b23.classification" = "emcare.b23.classification"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/observation" alias 'Observation' as target\r\nuses "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/condition" alias 'Condition' as target\r\nuses "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" alias 'EmCare Observation' as produced\r\nuses "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcarecondition" alias 'EmCare Condition' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n  src -> bundle.id = uuid() "id";\r\n  src -> bundle.type = 'batch' "type";\r\n  src.item first as item where (linkId = 'EmCare.B6.DE08') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb6de08(src, tgt) "6bb35e76";\r\n      } "eb449882";\r\n    } "e71738d1";\r\n  } "b739680e";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE01') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE01') and answer.exists() then {\r\n          item then emcareconditionemcareb23de01(src, item, tgt) "2f5a16b2";\r\n        } "bfe7a55c";\r\n      } "50a5819f";\r\n    } "e8f6cc23";\r\n  } "7a454a82";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE03') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE03') and answer.exists() then {\r\n          item then emcareconditionemcareb23de03(src, item, tgt) "a67360e4";\r\n        } "42024447";\r\n      } "78d1fec3";\r\n    } "ab9b8f9b";\r\n  } "f63c99d7";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE06') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE06') and answer.exists() then {\r\n          item then emcareconditionemcareb23de06(src, item, tgt) "9c759e88";\r\n        } "060d6b0f";\r\n      } "6909c9cb";\r\n    } "80a2a642";\r\n  } "93603109";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE10') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE10') and answer.exists() then {\r\n          item then emcareconditionemcareb23de10(src, item, tgt) "68412bef";\r\n        } "f7cba384";\r\n      } "395852f7";\r\n    } "fe607810";\r\n  } "b387304c";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE13') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE13') and answer.exists() then {\r\n          item then emcareconditionemcareb23de13(src, item, tgt) "66186a0c";\r\n        } "a1450efb";\r\n      } "076ff820";\r\n    } "08bcb577";\r\n  } "feb0d657";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE14') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE14') and answer.exists() then {\r\n          item then emcareconditionemcareb23de14(src, item, tgt) "2dcb0090";\r\n        } "88d1e8c7";\r\n      } "3ef7f05b";\r\n    } "90e804b6";\r\n  } "d819a392";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE15') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE15') and answer.exists() then {\r\n          item then emcareconditionemcareb23de15(src, item, tgt) "fe470a2a";\r\n        } "21fccbde";\r\n      } "2eb659f8";\r\n    } "79ef4ab2";\r\n  } "e3b54720";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE16') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE16') and answer.exists() then {\r\n          item then emcareconditionemcareb23de16(src, item, tgt) "5ca68bc9";\r\n        } "13f73669";\r\n      } "004176aa";\r\n    } "f197824a";\r\n  } "30f296ff";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE17') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE17') and answer.exists() then {\r\n          item then emcareconditionemcareb23de17(src, item, tgt) "b84270e5";\r\n        } "40c0e1f5";\r\n      } "ed28a431";\r\n    } "8655026f";\r\n  } "e00a237b";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE18') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE18') and answer.exists() then {\r\n          item then emcareconditionemcareb23de18(src, item, tgt) "dfbf48ee";\r\n        } "ad789b95";\r\n      } "d65389e8";\r\n    } "78232367";\r\n  } "8cc4fc87";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE18.a') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE18.a') and answer.exists() then {\r\n          item then emcareconditionemcareb23de18a(src, item, tgt) "5c3c2d1d";\r\n        } "43c599a6";\r\n      } "75af673e";\r\n    } "f32ce9b9";\r\n  } "316d35e0";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE100') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE100') and answer.exists() then {\r\n          item then emcareconditionemcareb23de100(src, item, tgt) "56f36841";\r\n        } "97f35c84";\r\n      } "89555aa7";\r\n    } "f85ae159";\r\n  } "af08e4be";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE6101') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE6101') and answer.exists() then {\r\n          item then emcareconditionemcareb23de6101(src, item, tgt) "753668eb";\r\n        } "1e95b03f";\r\n      } "098ed11a";\r\n    } "3ad2ebe1";\r\n  } "083bdfa7";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE6102') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE6102') and answer.exists() then {\r\n          item then emcareconditionemcareb23de6102(src, item, tgt) "b18c060f";\r\n        } "9885316c";\r\n      } "02844368";\r\n    } "60e42bf7";\r\n  } "be28d894";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE6103') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE6103') and answer.exists() then {\r\n          item then emcareconditionemcareb23de6103(src, item, tgt) "694ad147";\r\n        } "f8d3c6a0";\r\n      } "deaa28f3";\r\n    } "39431803";\r\n  } "8c74e110";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE30') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE30') and answer.exists() then {\r\n          item then emcareconditionemcareb23de30(src, item, tgt) "32bbb313";\r\n        } "92db22d8";\r\n      } "8cd3b82f";\r\n    } "98322930";\r\n  } "304f990a";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE31') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE31') and answer.exists() then {\r\n          item then emcareconditionemcareb23de31(src, item, tgt) "9964826f";\r\n        } "f5203f81";\r\n      } "0f3128f2";\r\n    } "062d38a4";\r\n  } "8d94ef29";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE32') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE32') and answer.exists() then {\r\n          item then emcareconditionemcareb23de32(src, item, tgt) "59173520";\r\n        } "d5cfadca";\r\n      } "0f17a43e";\r\n    } "b3942453";\r\n  } "1d3e64f6";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE33') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE33') and answer.exists() then {\r\n          item then emcareconditionemcareb23de33(src, item, tgt) "c837ebf0";\r\n        } "1edd3bf3";\r\n      } "4ae746e1";\r\n    } "5b4ed518";\r\n  } "932b4857";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE19') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE19') and answer.exists() then {\r\n          item then emcareconditionemcareb23de19(src, item, tgt) "52279224";\r\n        } "6f81d3f9";\r\n      } "113ecc5c";\r\n    } "04d55a2c";\r\n  } "12b7ac16";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE104') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE104') and answer.exists() then {\r\n          item then emcareconditionemcareb23de104(src, item, tgt) "70ac88c0";\r\n        } "ba965067";\r\n      } "7af6d913";\r\n    } "b926b389";\r\n  } "b8498228";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE105') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE105') and answer.exists() then {\r\n          item then emcareconditionemcareb23de105(src, item, tgt) "fd65bdec";\r\n        } "2814799c";\r\n      } "4c17029d";\r\n    } "50b5f05d";\r\n  } "fd02db7e";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE27') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE27') and answer.exists() then {\r\n          item then emcareconditionemcareb23de27(src, item, tgt) "26e04269";\r\n        } "101a50d8";\r\n      } "202d5c60";\r\n    } "79e4637e";\r\n  } "7034785e";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE28') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE28') and answer.exists() then {\r\n          item then emcareconditionemcareb23de28(src, item, tgt) "9cd8c124";\r\n        } "a14217b2";\r\n      } "22888f47";\r\n    } "037df360";\r\n  } "a0c36d7f";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE29') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE29') and answer.exists() then {\r\n          item then emcareconditionemcareb23de29(src, item, tgt) "d4810ead";\r\n        } "1c12d5db";\r\n      } "ea7f1382";\r\n    } "905f043d";\r\n  } "5f2e1416";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE62') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE62') and answer.exists() then {\r\n          item then emcareconditionemcareb23de62(src, item, tgt) "2054edb9";\r\n        } "02044741";\r\n      } "159e31e9";\r\n    } "b02885dc";\r\n  } "112da7cb";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE63') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE63') and answer.exists() then {\r\n          item then emcareconditionemcareb23de63(src, item, tgt) "a3f40895";\r\n        } "7d52bc70";\r\n      } "20460d5f";\r\n    } "ff14bba0";\r\n  } "f48b3870";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE64') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE64') and answer.exists() then {\r\n          item then emcareconditionemcareb23de64(src, item, tgt) "f29b8184";\r\n        } "14c8b550";\r\n      } "e5734e77";\r\n    } "36cc09a7";\r\n  } "66a082c4";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE34') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE34') and answer.exists() then {\r\n          item then emcareconditionemcareb23de34(src, item, tgt) "d9034209";\r\n        } "551a67f8";\r\n      } "8b3401ff";\r\n    } "640f5832";\r\n  } "f733b9d7";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE35') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE35') and answer.exists() then {\r\n          item then emcareconditionemcareb23de35(src, item, tgt) "04b69b69";\r\n        } "edd58a6a";\r\n      } "171d392a";\r\n    } "074be390";\r\n  } "7234989d";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE41') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE41') and answer.exists() then {\r\n          item then emcareconditionemcareb23de41(src, item, tgt) "e644496b";\r\n        } "b0b2d547";\r\n      } "10a4e114";\r\n    } "144ac84e";\r\n  } "be581407";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE42') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE42') and answer.exists() then {\r\n          item then emcareconditionemcareb23de42(src, item, tgt) "8906f237";\r\n        } "825180a4";\r\n      } "cdb5f085";\r\n    } "61767b45";\r\n  } "fd2318de";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE44') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE44') and answer.exists() then {\r\n          item then emcareconditionemcareb23de44(src, item, tgt) "8b745e32";\r\n        } "a297489e";\r\n      } "2a87d904";\r\n    } "31c42b4a";\r\n  } "15c107e8";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE45') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE45') and answer.exists() then {\r\n          item then emcareconditionemcareb23de45(src, item, tgt) "e2a48a8a";\r\n        } "5ac1cbfe";\r\n      } "3ae81ddc";\r\n    } "af5a73ee";\r\n  } "b89e4982";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE47') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE47') and answer.exists() then {\r\n          item then emcareconditionemcareb23de47(src, item, tgt) "59e3f98e";\r\n        } "94021c1f";\r\n      } "bdb92c29";\r\n    } "4313c455";\r\n  } "f4732c43";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE49') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE49') and answer.exists() then {\r\n          item then emcareconditionemcareb23de49(src, item, tgt) "12ffb049";\r\n        } "586e9069";\r\n      } "38e3ba7c";\r\n    } "09e8e39a";\r\n  } "b716ffcf";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE52') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE52') and answer.exists() then {\r\n          item then emcareconditionemcareb23de52(src, item, tgt) "a793cbe8";\r\n        } "db3fe5e7";\r\n      } "dbb84c90";\r\n    } "87a2f3d1";\r\n  } "c771fb59";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE53') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE53') and answer.exists() then {\r\n          item then emcareconditionemcareb23de53(src, item, tgt) "649c99ff";\r\n        } "07fdede8";\r\n      } "6c7dda52";\r\n    } "65dc7390";\r\n  } "aabd61a9";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE54') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE54') and answer.exists() then {\r\n          item then emcareconditionemcareb23de54(src, item, tgt) "c44c1a67";\r\n        } "33495720";\r\n      } "f537bd3f";\r\n    } "3292a5b7";\r\n  } "5586adfb";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE56') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE56') and answer.exists() then {\r\n          item then emcareconditionemcareb23de56(src, item, tgt) "c075c713";\r\n        } "b19e1e77";\r\n      } "1f53e6e7";\r\n    } "1fff823c";\r\n  } "eb0fa007";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE57') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE57') and answer.exists() then {\r\n          item then emcareconditionemcareb23de57(src, item, tgt) "3fef72d0";\r\n        } "95696bb5";\r\n      } "c36398d4";\r\n    } "e245f919";\r\n  } "bd893565";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE58') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE58') and answer.exists() then {\r\n          item then emcareconditionemcareb23de58(src, item, tgt) "59c41e8c";\r\n        } "39386628";\r\n      } "18b79c9c";\r\n    } "0e7307dc";\r\n  } "d0cc854b";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE59') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE59') and answer.exists() then {\r\n          item then emcareconditionemcareb23de59(src, item, tgt) "2cb1e1ca";\r\n        } "ab082ec2";\r\n      } "6065b9b9";\r\n    } "351db615";\r\n  } "6ff9138e";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE61') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE61') and answer.exists() then {\r\n          item then emcareconditionemcareb23de61(src, item, tgt) "260b475c";\r\n        } "c464855a";\r\n      } "9bc3a2f7";\r\n    } "fb4ac959";\r\n  } "d7071092";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE106') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE106') and answer.exists() then {\r\n          item then emcareconditionemcareb23de106(src, item, tgt) "1385c52a";\r\n        } "f5b0e691";\r\n      } "cffa49c6";\r\n    } "f8df0e47";\r\n  } "a8b97e3f";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE107') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE107') and answer.exists() then {\r\n          item then emcareconditionemcareb23de107(src, item, tgt) "c2e4c8aa";\r\n        } "b47a06ed";\r\n      } "ddc34ddb";\r\n    } "4bd4c8ca";\r\n  } "80a21e15";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE108') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE108') and answer.exists() then {\r\n          item then emcareconditionemcareb23de108(src, item, tgt) "71dee3f9";\r\n        } "6dd7f385";\r\n      } "f9f042d3";\r\n    } "aa990e3b";\r\n  } "62bc2a23";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE01') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de01(src, item, tgt) "64b9f2ed";\r\n        } "8ac761e7";\r\n      } "4d3c5911";\r\n    } "8a9e262f";\r\n  } "1a7bd4e6";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE03') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de03(src, item, tgt) "b1c1cd66";\r\n        } "010509dd";\r\n      } "d18e6c9c";\r\n    } "0ddf1e04";\r\n  } "b4ab6b36";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE06') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de06(src, item, tgt) "ab6f052f";\r\n        } "e87439ac";\r\n      } "37d42e73";\r\n    } "7708b4b0";\r\n  } "ca7b518e";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE10') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de10(src, item, tgt) "0b7e0dd8";\r\n        } "2addbd30";\r\n      } "944a4843";\r\n    } "0e6c6c5e";\r\n  } "624540df";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE13') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de13(src, item, tgt) "ca1c2344";\r\n        } "e291ac38";\r\n      } "a3790ce2";\r\n    } "df1da7ee";\r\n  } "db30808b";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE14') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de14(src, item, tgt) "d2d217d7";\r\n        } "71ec8c01";\r\n      } "eec21165";\r\n    } "4bec0867";\r\n  } "b6cebe17";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE15') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de15(src, item, tgt) "d06cdfa3";\r\n        } "78497d5c";\r\n      } "5f0e524b";\r\n    } "84c7d9e0";\r\n  } "5fb77efc";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE16') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de16(src, item, tgt) "694adbe8";\r\n        } "b4ffe6d7";\r\n      } "019739d6";\r\n    } "f03364f0";\r\n  } "80b4094a";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE17') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de17(src, item, tgt) "cc19d396";\r\n        } "18e9e9c8";\r\n      } "c03c1182";\r\n    } "77b63bab";\r\n  } "ff70de9a";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE18') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de18(src, item, tgt) "7bb9024b";\r\n        } "68fe032f";\r\n      } "ed54cd94";\r\n    } "8b8510f5";\r\n  } "632cb525";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE18.a') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de18a(src, item, tgt) "b60dcb5b";\r\n        } "b812de89";\r\n      } "7e16782b";\r\n    } "2e857828";\r\n  } "44580a8e";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE100') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de100(src, item, tgt) "630c1b4f";\r\n        } "41d237f0";\r\n      } "ac9a35e1";\r\n    } "490124cb";\r\n  } "3cac9099";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE6101') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de6101(src, item, tgt) "b8a94b6b";\r\n        } "c5e81286";\r\n      } "f91c76bc";\r\n    } "004bae37";\r\n  } "0fefd9c9";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE6102') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de6102(src, item, tgt) "7660041a";\r\n        } "b83d5bd8";\r\n      } "afa6d915";\r\n    } "e56c0843";\r\n  } "1cfede52";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE6103') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de6103(src, item, tgt) "4acf003e";\r\n        } "052597db";\r\n      } "0d306c2e";\r\n    } "bde18a8c";\r\n  } "9e8a0879";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE30') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de30(src, item, tgt) "6aa7cf7e";\r\n        } "21ed2b92";\r\n      } "b950cabe";\r\n    } "38dc397b";\r\n  } "a771b576";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE31') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de31(src, item, tgt) "0b62776c";\r\n        } "718d4b87";\r\n      } "a826c054";\r\n    } "50550799";\r\n  } "2fb7bb3e";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE32') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de32(src, item, tgt) "8d2e2b23";\r\n        } "85fecf83";\r\n      } "115750dd";\r\n    } "130e1c53";\r\n  } "ac3dd1e5";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE33') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de33(src, item, tgt) "30d2abfe";\r\n        } "e6a31cdd";\r\n      } "d1297d3e";\r\n    } "ef3283c2";\r\n  } "b5d854cd";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE19') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de19(src, item, tgt) "9d939c47";\r\n        } "b6456e02";\r\n      } "88264770";\r\n    } "18e9b3aa";\r\n  } "4af8b98f";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE104') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de104(src, item, tgt) "7124044e";\r\n        } "6dd0b0f1";\r\n      } "362898cd";\r\n    } "6ee2f034";\r\n  } "87957a8c";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE105') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de105(src, item, tgt) "565f9699";\r\n        } "deccc025";\r\n      } "6ffe0a40";\r\n    } "ca66f70c";\r\n  } "4981fb26";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE27') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de27(src, item, tgt) "0da758bb";\r\n        } "240424fd";\r\n      } "42ac4364";\r\n    } "14da060d";\r\n  } "ad5837c4";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE28') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de28(src, item, tgt) "f02ea85f";\r\n        } "9674e4f8";\r\n      } "4215cfc9";\r\n    } "cc83a9a6";\r\n  } "10b29f3a";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE29') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de29(src, item, tgt) "30518e39";\r\n        } "443496d9";\r\n      } "4b8a2cfa";\r\n    } "45aa51e3";\r\n  } "29a1e48b";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE62') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de62(src, item, tgt) "923ea559";\r\n        } "253ad99c";\r\n      } "e1d211b3";\r\n    } "66d2ac7f";\r\n  } "34070da4";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE63') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de63(src, item, tgt) "2cba00a0";\r\n        } "7431d7aa";\r\n      } "dd159d2b";\r\n    } "6088497e";\r\n  } "6d937c64";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE64') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de64(src, item, tgt) "1bdeb81e";\r\n        } "823b626d";\r\n      } "6c269ed8";\r\n    } "c0166a2f";\r\n  } "ef32feea";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE34') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de34(src, item, tgt) "1b5079e7";\r\n        } "e3eec4b3";\r\n      } "c0170815";\r\n    } "9a1a4b51";\r\n  } "02fb5c32";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE35') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de35(src, item, tgt) "359aadb6";\r\n        } "8752dcf9";\r\n      } "5587f633";\r\n    } "436512de";\r\n  } "f74fb871";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE41') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de41(src, item, tgt) "6b245d77";\r\n        } "7880e418";\r\n      } "31ed2847";\r\n    } "69bddf54";\r\n  } "f3925752";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE42') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de42(src, item, tgt) "a013ff50";\r\n        } "a1112e83";\r\n      } "80f89c3b";\r\n    } "c28e55f5";\r\n  } "5a4f405d";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE44') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de44(src, item, tgt) "2e18a455";\r\n        } "05602096";\r\n      } "14ff0531";\r\n    } "e4d8d14c";\r\n  } "106b8412";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE45') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de45(src, item, tgt) "b7776d8c";\r\n        } "0161a3e1";\r\n      } "9041cce3";\r\n    } "d5a11665";\r\n  } "fa69f51a";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE47') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de47(src, item, tgt) "3ef4c39a";\r\n        } "cc30da8e";\r\n      } "3c571f7a";\r\n    } "9c46143a";\r\n  } "7ce713b2";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE49') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de49(src, item, tgt) "9422f693";\r\n        } "270f01c9";\r\n      } "2e5719c3";\r\n    } "86381b92";\r\n  } "dba4472f";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE52') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de52(src, item, tgt) "4dc5850c";\r\n        } "1305ff09";\r\n      } "1e7a4f1d";\r\n    } "823dad96";\r\n  } "f8980fc9";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE53') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de53(src, item, tgt) "f3ebb24f";\r\n        } "8a06bf9b";\r\n      } "82127571";\r\n    } "438bfa1e";\r\n  } "a6b3b052";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE54') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de54(src, item, tgt) "7d9b72a9";\r\n        } "57b6a17c";\r\n      } "3f0c44e2";\r\n    } "9176d48e";\r\n  } "472d138a";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE56') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de56(src, item, tgt) "171d0d02";\r\n        } "a8403d8d";\r\n      } "933c8359";\r\n    } "29b48437";\r\n  } "8633ecac";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE57') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de57(src, item, tgt) "28c69067";\r\n        } "712614f8";\r\n      } "f5aa3751";\r\n    } "b4b69b8b";\r\n  } "275e0558";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE58') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de58(src, item, tgt) "1ecfb370";\r\n        } "a5d3fb11";\r\n      } "abbb00cd";\r\n    } "5c12666c";\r\n  } "9ee9a18a";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE59') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de59(src, item, tgt) "f3cc5dd6";\r\n        } "c2af2708";\r\n      } "420f3c42";\r\n    } "940b499b";\r\n  } "77bb110d";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE61') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de61(src, item, tgt) "3ee47ea8";\r\n        } "14a2cbce";\r\n      } "69da036c";\r\n    } "8d2fc1e7";\r\n  } "5baa46cb";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE106') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de106(src, item, tgt) "5f3c80c3";\r\n        } "8a9ab3d6";\r\n      } "b3badac5";\r\n    } "8aec9c45";\r\n  } "332b8a91";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE107') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de107(src, item, tgt) "d7ceb954";\r\n        } "62594d12";\r\n      } "6660c144";\r\n    } "897c260c";\r\n  } "4dfafc7a";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE108') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de108(src, item, tgt) "ed29c4d5";\r\n        } "a304721d";\r\n      } "f9a90d39";\r\n    } "031643b1";\r\n  } "f52a6f86";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'collector') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectorcollector(src, item, tgt) "dee30196";\r\n        } "dbad65ac";\r\n      } "652cfd04";\r\n    } "63e7ab00";\r\n  } "d596b39a";\r\n}\r\n\r\ngroup emcareobservationemcareb6de08(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb6de08";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B6.DE08' "code-emcareb6de08";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B6.DE08') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val ->  tgt.value = val,  tgt.status = 'final' "afa0ccc0";\r\n    } "d40466ff";\r\n  } "dc896557";\r\n}\r\n\r\ngroup emcareconditionemcareb23de01(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE01',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "38c776ef";\r\n    } "dcfcb65d";\r\n  } "48b723fb";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de03(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE03',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "97f42802";\r\n    } "539676b6";\r\n  } "72db4093";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE04') and answer.exists() then {\r\n    item.answer first as a where a.value = true then {\r\n      src ->  tgt.extension = create('Extension') as ext,  ext.url = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir//StructureDefinition/postcoordination',  ext.value = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE04',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "38e7535e";\r\n    } "dd1642cb";\r\n  } "c35c9cd0";\r\n}\r\n\r\ngroup emcareconditionemcareb23de06(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE06',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "dd0fd01c";\r\n    } "8ef845b0";\r\n  } "558d6c0d";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE05') and answer.exists() then {\r\n    item.answer first as a where a.value = true then {\r\n      src ->  tgt.extension = create('Extension') as ext,  ext.url = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir//StructureDefinition/postcoordination',  ext.value = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE05',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "45430313";\r\n    } "fbb8aa6b";\r\n  } "2361285f";\r\n}\r\n\r\ngroup emcareconditionemcareb23de10(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE10',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "901c4fa4";\r\n    } "39e6334e";\r\n  } "f313d249";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE05') and answer.exists() then {\r\n    item.answer first as a where a.value = true then {\r\n      src ->  tgt.extension = create('Extension') as ext,  ext.url = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir//StructureDefinition/postcoordination',  ext.value = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE05',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "45430313";\r\n    } "fbb8aa6b";\r\n  } "2361285f";\r\n}\r\n\r\ngroup emcareconditionemcareb23de13(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE13',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "0b87b4e7";\r\n    } "6cc1c549";\r\n  } "dc54929c";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de14(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE14',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "c77e81e6";\r\n    } "a3de578a";\r\n  } "d565e84e";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de15(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE15',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "16e4a2c3";\r\n    } "088a39f1";\r\n  } "b194144a";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de16(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE16',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "672b006b";\r\n    } "c458ff7e";\r\n  } "a834b1c4";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de17(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE17',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "bd34c671";\r\n    } "0cc3c5de";\r\n  } "8b51a13d";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de18(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE18',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "422373d9";\r\n    } "8f1dcdd2";\r\n  } "6c227934";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de18a(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE18.a',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "b2c23048";\r\n    } "422663d8";\r\n  } "12b34bed";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de100(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE100',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "515f36ee";\r\n    } "e9f1a397";\r\n  } "5e6079c2";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de6101(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE6101',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "6a9c0b56";\r\n    } "970b5053";\r\n  } "ce2b70a1";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de6102(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE6102',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "1522be60";\r\n    } "18159ba1";\r\n  } "cb2b50a2";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de6103(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE6103',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "248ab88b";\r\n    } "9f402fa1";\r\n  } "5f770596";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de30(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE30',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "60650f2a";\r\n    } "453d3cff";\r\n  } "e00da291";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de31(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE31',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "ab1c5076";\r\n    } "11935d2f";\r\n  } "e29a8881";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de32(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE32',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "b634fab6";\r\n    } "4ead4dac";\r\n  } "48ea19ef";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n  src.item first as itm1 where linkId = 'EmCare.B23.DE32' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B23.DE32a_l') and answer.exists() then {\r\n      item.answer first as a where a.value = true then {\r\n        src ->  tgt.extension = create('Extension') as ext,  ext.url = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir//StructureDefinition/postcoordination',  ext.value = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE32a_l',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "e1fd65a9";\r\n      } "c8109922";\r\n    } "812d89a8";\r\n  } "c3ccc3f2";\r\n}\r\n\r\ngroup emcareconditionemcareb23de33(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE33',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "57e99b51";\r\n    } "82481cbe";\r\n  } "ef2558fa";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de19(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE19',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "8cb2637d";\r\n    } "69ddcad6";\r\n  } "36529e3a";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de104(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE104',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "6627d17b";\r\n    } "008eb1e8";\r\n  } "99bdabd7";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n  src.item first as itm1 where linkId = 'EmCare.B23.DE104' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B23.DE26a_l') and answer.exists() then {\r\n      item.answer first as a where a.value = true then {\r\n        src ->  tgt.extension = create('Extension') as ext,  ext.url = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir//StructureDefinition/postcoordination',  ext.value = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE26a_l',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "2bb3282a";\r\n      } "059c54a8";\r\n    } "bfa2f7ed";\r\n  } "d6b41478";\r\n}\r\n\r\ngroup emcareconditionemcareb23de105(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE105',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "bfa6a728";\r\n    } "503587f4";\r\n  } "b4cd8d75";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de27(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE27',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "10a11fd8";\r\n    } "7e9f6c96";\r\n  } "47747496";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de28(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE28',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "bd635f9e";\r\n    } "ac92c02f";\r\n  } "591966f0";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de29(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE29',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "59037b30";\r\n    } "cfcf61aa";\r\n  } "b6fcf002";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de62(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE62',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "1d89b4e7";\r\n    } "7a9976ac";\r\n  } "59bce4a5";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de63(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE63',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "7160c75f";\r\n    } "f74f505b";\r\n  } "ab307e84";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de64(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE64',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "f6ad72a0";\r\n    } "9035e530";\r\n  } "9a8830e5";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de34(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE34',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "e5f9a7d3";\r\n    } "ff3ce60d";\r\n  } "c84a5f54";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de35(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE35',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "7f5b9cb3";\r\n    } "30144f76";\r\n  } "b15dce6e";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE36') and answer.exists() then {\r\n    item.answer first as a where a.value = true then {\r\n      src ->  tgt.extension = create('Extension') as ext,  ext.url = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir//StructureDefinition/postcoordination',  ext.value = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE36',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "337a4af0";\r\n    } "00bff3d2";\r\n  } "9a029988";\r\n}\r\n\r\ngroup emcareconditionemcareb23de41(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE41',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "e288c87d";\r\n    } "8173bdfa";\r\n  } "2297565b";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de42(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE42',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "94e86dfd";\r\n    } "1282d921";\r\n  } "f89496b0";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE43a') and answer.exists() then {\r\n    item.answer first as a where a.value = true then {\r\n      src ->  tgt.extension = create('Extension') as ext,  ext.url = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir//StructureDefinition/postcoordination',  ext.value = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE43a',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "3982894f";\r\n    } "bb6efca4";\r\n  } "fc0928c7";\r\n}\r\n\r\ngroup emcareconditionemcareb23de44(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE44',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "e3f3e6d5";\r\n    } "bed4feb4";\r\n  } "629e48b0";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de45(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE45',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "606d51c8";\r\n    } "7d5d59ca";\r\n  } "e36660f4";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE46A') and answer.exists() then {\r\n    item.answer first as a where a.value = true then {\r\n      src ->  tgt.extension = create('Extension') as ext,  ext.url = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir//StructureDefinition/postcoordination',  ext.value = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE46A',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "b043e119";\r\n    } "b1d8b88c";\r\n  } "a1ec2dd1";\r\n}\r\n\r\ngroup emcareconditionemcareb23de47(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE47',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "6bae8d25";\r\n    } "5e31a07c";\r\n  } "a43d53e8";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE48') and answer.exists() then {\r\n    item.answer first as a where a.value = true then {\r\n      src ->  tgt.extension = create('Extension') as ext,  ext.url = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir//StructureDefinition/postcoordination',  ext.value = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE48',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "88de7a80";\r\n    } "7cd5181a";\r\n  } "3c6f199b";\r\n}\r\n\r\ngroup emcareconditionemcareb23de49(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE49',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "b581f2e7";\r\n    } "1cc86632";\r\n  } "f58199bf";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE50') and answer.exists() then {\r\n    item.answer first as a where a.value = true then {\r\n      src ->  tgt.extension = create('Extension') as ext,  ext.url = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir//StructureDefinition/postcoordination',  ext.value = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE50',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "b871091f";\r\n    } "3562dee3";\r\n  } "ba9bd30c";\r\n}\r\n\r\ngroup emcareconditionemcareb23de52(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE52',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "eb984457";\r\n    } "124cd652";\r\n  } "c77f1d4e";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE52a') and answer.exists() then {\r\n    item.answer first as a where a.value = true then {\r\n      src ->  tgt.extension = create('Extension') as ext,  ext.url = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir//StructureDefinition/postcoordination',  ext.value = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE52a',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "3a81b32e";\r\n    } "2c4ce5dc";\r\n  } "510e64e3";\r\n}\r\n\r\ngroup emcareconditionemcareb23de53(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE53',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "0f3a6755";\r\n    } "863552f3";\r\n  } "35439fa7";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE53a') and answer.exists() then {\r\n    item.answer first as a where a.value = true then {\r\n      src ->  tgt.extension = create('Extension') as ext,  ext.url = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir//StructureDefinition/postcoordination',  ext.value = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE53a',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "172c98f5";\r\n    } "77f7bdf7";\r\n  } "6481f816";\r\n}\r\n\r\ngroup emcareconditionemcareb23de54(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE54',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "fafd5b25";\r\n    } "61c9d7c8";\r\n  } "78b12d83";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE55') and answer.exists() then {\r\n    item.answer first as a where a.value = true then {\r\n      src ->  tgt.extension = create('Extension') as ext,  ext.url = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir//StructureDefinition/postcoordination',  ext.value = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE55',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "703de849";\r\n    } "82394009";\r\n  } "626ae745";\r\n}\r\n\r\ngroup emcareconditionemcareb23de56(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE56',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "9a929971";\r\n    } "b7c8a104";\r\n  } "0dd631f3";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de57(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE57',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "2c0d395c";\r\n    } "f04e9b50";\r\n  } "af692636";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE57a') and answer.exists() then {\r\n    item.answer first as a where a.value = true then {\r\n      src ->  tgt.extension = create('Extension') as ext,  ext.url = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir//StructureDefinition/postcoordination',  ext.value = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE57a',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "0273738c";\r\n    } "3e41ae3b";\r\n  } "d8c20ee2";\r\n}\r\n\r\ngroup emcareconditionemcareb23de58(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE58',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "d913f145";\r\n    } "ecd18d6c";\r\n  } "a88f6164";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de59(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE59',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "8f74fb03";\r\n    } "4cae7202";\r\n  } "b30797dc";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE60') and answer.exists() then {\r\n    item.answer first as a where a.value = true then {\r\n      src ->  tgt.extension = create('Extension') as ext,  ext.url = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir//StructureDefinition/postcoordination',  ext.value = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE60',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "da15433c";\r\n    } "8622d264";\r\n  } "0e509ca1";\r\n}\r\n\r\ngroup emcareconditionemcareb23de61(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE61',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "9134fe36";\r\n    } "280470c5";\r\n  } "8aa97bdd";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de106(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE106',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "70f0a4fa";\r\n    } "d8d6d130";\r\n  } "671ed411";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de107(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE107',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "4b1b0c22";\r\n    } "d096a052";\r\n  } "8e8ee9b4";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de108(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE108',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "3de5c106";\r\n    } "58d1e9ce";\r\n  } "81cf1715";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de01(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE01',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "38c776ef";\r\n    } "dcfcb65d";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "9ef26449";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de03(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE03',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "97f42802";\r\n    } "539676b6";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "cfd7a9f6";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de06(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE06',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "dd0fd01c";\r\n    } "8ef845b0";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "8ede6446";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de10(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE10',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "901c4fa4";\r\n    } "39e6334e";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "91de6eff";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de13(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE13',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "0b87b4e7";\r\n    } "6cc1c549";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "39e0fe5e";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de14(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE14',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "c77e81e6";\r\n    } "a3de578a";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "da0791a5";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de15(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE15',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "16e4a2c3";\r\n    } "088a39f1";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "b16e2ac9";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de16(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE16',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "672b006b";\r\n    } "c458ff7e";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "56c3513e";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de17(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE17',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "bd34c671";\r\n    } "0cc3c5de";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "bcc64d8c";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de18(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE18',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "422373d9";\r\n    } "8f1dcdd2";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "c59123ce";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de18a(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE18.a',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "b2c23048";\r\n    } "422663d8";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "25273533";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de100(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE100',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "515f36ee";\r\n    } "e9f1a397";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "8c3a108e";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de6101(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE6101',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "6a9c0b56";\r\n    } "970b5053";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "bcd054c6";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de6102(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE6102',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "1522be60";\r\n    } "18159ba1";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "d067f021";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de6103(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE6103',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "248ab88b";\r\n    } "9f402fa1";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "63883e24";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de30(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE30',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "60650f2a";\r\n    } "453d3cff";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "a68b918e";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de31(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE31',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "ab1c5076";\r\n    } "11935d2f";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "822b0f6f";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de32(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE32',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "b634fab6";\r\n    } "4ead4dac";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "d4c988ea";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de33(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE33',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "57e99b51";\r\n    } "82481cbe";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "fe5543e1";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de19(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE19',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "8cb2637d";\r\n    } "69ddcad6";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "70cc0dd3";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de104(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE104',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "6627d17b";\r\n    } "008eb1e8";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "20bd1c4d";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de105(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE105',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "bfa6a728";\r\n    } "503587f4";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "fef353a9";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de27(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE27',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "10a11fd8";\r\n    } "7e9f6c96";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "0290fee9";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de28(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE28',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "bd635f9e";\r\n    } "ac92c02f";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "83be838f";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de29(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE29',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "59037b30";\r\n    } "cfcf61aa";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "6e4bf79f";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de62(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE62',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "1d89b4e7";\r\n    } "7a9976ac";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "57723227";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de63(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE63',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "7160c75f";\r\n    } "f74f505b";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "33888f75";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de64(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE64',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "f6ad72a0";\r\n    } "9035e530";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "1cf80989";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de34(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE34',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "e5f9a7d3";\r\n    } "ff3ce60d";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "d108e57f";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de35(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE35',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "7f5b9cb3";\r\n    } "30144f76";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "1b6c2929";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de41(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE41',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "e288c87d";\r\n    } "8173bdfa";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "6346630d";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de42(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE42',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "94e86dfd";\r\n    } "1282d921";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "8bdb0925";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de44(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE44',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "e3f3e6d5";\r\n    } "bed4feb4";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "01ad58f9";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de45(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE45',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "606d51c8";\r\n    } "7d5d59ca";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "8d718fac";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de47(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE47',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "6bae8d25";\r\n    } "5e31a07c";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "0403cb73";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de49(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE49',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "b581f2e7";\r\n    } "1cc86632";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "01b77ffc";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de52(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE52',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "eb984457";\r\n    } "124cd652";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "4f42555c";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de53(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE53',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "0f3a6755";\r\n    } "863552f3";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "28aceb4b";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de54(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE54',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "fafd5b25";\r\n    } "61c9d7c8";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "4a7c61b0";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de56(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE56',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "9a929971";\r\n    } "b7c8a104";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "0a350e2a";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de57(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE57',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "2c0d395c";\r\n    } "f04e9b50";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "4581b0aa";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de58(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE58',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "d913f145";\r\n    } "ecd18d6c";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "52e04bef";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de59(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE59',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "8f74fb03";\r\n    } "4cae7202";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "4fd3684b";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de61(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE61',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "9134fe36";\r\n    } "280470c5";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "ebbc1c98";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de106(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE106',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "70f0a4fa";\r\n    } "d8d6d130";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "c5746d18";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de107(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE107',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "4b1b0c22";\r\n    } "d096a052";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "1df42064";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de108(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE108',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "3de5c106";\r\n    } "58d1e9ce";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "474da804";\r\n}\r\n\r\ngroup emcareconditioncollectorcollector(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'collector',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "ab5440b5";\r\n    } "6fc817a4";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "d8e38123";\r\n}\r\n\r\n
" + "div": "
map "https://smart.who.int/ccc/StructureMap/emcare.b23.classification" = "emcare.b23.classification"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/observation" alias 'Observation' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/condition" alias 'Condition' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/emcareobservation" alias 'EmCare Observation' as produced\r\nuses "https://smart.who.int/ccc/StructureDefinition/emcarecondition" alias 'EmCare Condition' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n  src -> bundle.id = uuid() "id";\r\n  src -> bundle.type = 'batch' "type";\r\n  src.item first as item where (linkId = 'EmCare.B6.DE08') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb6de08(src, tgt) "6bb35e76";\r\n      } "eb449882";\r\n    } "e71738d1";\r\n  } "b739680e";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE01') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE01') and answer.exists() then {\r\n          item then emcareconditionemcareb23de01(src, item, tgt) "2f5a16b2";\r\n        } "bfe7a55c";\r\n      } "50a5819f";\r\n    } "e8f6cc23";\r\n  } "7a454a82";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE03') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE03') and answer.exists() then {\r\n          item then emcareconditionemcareb23de03(src, item, tgt) "a67360e4";\r\n        } "42024447";\r\n      } "78d1fec3";\r\n    } "ab9b8f9b";\r\n  } "f63c99d7";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE06') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE06') and answer.exists() then {\r\n          item then emcareconditionemcareb23de06(src, item, tgt) "9c759e88";\r\n        } "060d6b0f";\r\n      } "6909c9cb";\r\n    } "80a2a642";\r\n  } "93603109";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE10') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE10') and answer.exists() then {\r\n          item then emcareconditionemcareb23de10(src, item, tgt) "68412bef";\r\n        } "f7cba384";\r\n      } "395852f7";\r\n    } "fe607810";\r\n  } "b387304c";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE13') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE13') and answer.exists() then {\r\n          item then emcareconditionemcareb23de13(src, item, tgt) "66186a0c";\r\n        } "a1450efb";\r\n      } "076ff820";\r\n    } "08bcb577";\r\n  } "feb0d657";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE14') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE14') and answer.exists() then {\r\n          item then emcareconditionemcareb23de14(src, item, tgt) "2dcb0090";\r\n        } "88d1e8c7";\r\n      } "3ef7f05b";\r\n    } "90e804b6";\r\n  } "d819a392";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE15') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE15') and answer.exists() then {\r\n          item then emcareconditionemcareb23de15(src, item, tgt) "fe470a2a";\r\n        } "21fccbde";\r\n      } "2eb659f8";\r\n    } "79ef4ab2";\r\n  } "e3b54720";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE16') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE16') and answer.exists() then {\r\n          item then emcareconditionemcareb23de16(src, item, tgt) "5ca68bc9";\r\n        } "13f73669";\r\n      } "004176aa";\r\n    } "f197824a";\r\n  } "30f296ff";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE17') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE17') and answer.exists() then {\r\n          item then emcareconditionemcareb23de17(src, item, tgt) "b84270e5";\r\n        } "40c0e1f5";\r\n      } "ed28a431";\r\n    } "8655026f";\r\n  } "e00a237b";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE18') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE18') and answer.exists() then {\r\n          item then emcareconditionemcareb23de18(src, item, tgt) "dfbf48ee";\r\n        } "ad789b95";\r\n      } "d65389e8";\r\n    } "78232367";\r\n  } "8cc4fc87";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE18.a') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE18.a') and answer.exists() then {\r\n          item then emcareconditionemcareb23de18a(src, item, tgt) "5c3c2d1d";\r\n        } "43c599a6";\r\n      } "75af673e";\r\n    } "f32ce9b9";\r\n  } "316d35e0";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE100') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE100') and answer.exists() then {\r\n          item then emcareconditionemcareb23de100(src, item, tgt) "56f36841";\r\n        } "97f35c84";\r\n      } "89555aa7";\r\n    } "f85ae159";\r\n  } "af08e4be";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE6101') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE6101') and answer.exists() then {\r\n          item then emcareconditionemcareb23de6101(src, item, tgt) "753668eb";\r\n        } "1e95b03f";\r\n      } "098ed11a";\r\n    } "3ad2ebe1";\r\n  } "083bdfa7";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE6102') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE6102') and answer.exists() then {\r\n          item then emcareconditionemcareb23de6102(src, item, tgt) "b18c060f";\r\n        } "9885316c";\r\n      } "02844368";\r\n    } "60e42bf7";\r\n  } "be28d894";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE6103') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE6103') and answer.exists() then {\r\n          item then emcareconditionemcareb23de6103(src, item, tgt) "694ad147";\r\n        } "f8d3c6a0";\r\n      } "deaa28f3";\r\n    } "39431803";\r\n  } "8c74e110";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE30') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE30') and answer.exists() then {\r\n          item then emcareconditionemcareb23de30(src, item, tgt) "32bbb313";\r\n        } "92db22d8";\r\n      } "8cd3b82f";\r\n    } "98322930";\r\n  } "304f990a";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE31') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE31') and answer.exists() then {\r\n          item then emcareconditionemcareb23de31(src, item, tgt) "9964826f";\r\n        } "f5203f81";\r\n      } "0f3128f2";\r\n    } "062d38a4";\r\n  } "8d94ef29";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE32') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE32') and answer.exists() then {\r\n          item then emcareconditionemcareb23de32(src, item, tgt) "59173520";\r\n        } "d5cfadca";\r\n      } "0f17a43e";\r\n    } "b3942453";\r\n  } "1d3e64f6";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE33') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE33') and answer.exists() then {\r\n          item then emcareconditionemcareb23de33(src, item, tgt) "c837ebf0";\r\n        } "1edd3bf3";\r\n      } "4ae746e1";\r\n    } "5b4ed518";\r\n  } "932b4857";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE19') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE19') and answer.exists() then {\r\n          item then emcareconditionemcareb23de19(src, item, tgt) "52279224";\r\n        } "6f81d3f9";\r\n      } "113ecc5c";\r\n    } "04d55a2c";\r\n  } "12b7ac16";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE104') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE104') and answer.exists() then {\r\n          item then emcareconditionemcareb23de104(src, item, tgt) "70ac88c0";\r\n        } "ba965067";\r\n      } "7af6d913";\r\n    } "b926b389";\r\n  } "b8498228";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE105') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE105') and answer.exists() then {\r\n          item then emcareconditionemcareb23de105(src, item, tgt) "fd65bdec";\r\n        } "2814799c";\r\n      } "4c17029d";\r\n    } "50b5f05d";\r\n  } "fd02db7e";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE27') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE27') and answer.exists() then {\r\n          item then emcareconditionemcareb23de27(src, item, tgt) "26e04269";\r\n        } "101a50d8";\r\n      } "202d5c60";\r\n    } "79e4637e";\r\n  } "7034785e";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE28') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE28') and answer.exists() then {\r\n          item then emcareconditionemcareb23de28(src, item, tgt) "9cd8c124";\r\n        } "a14217b2";\r\n      } "22888f47";\r\n    } "037df360";\r\n  } "a0c36d7f";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE29') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE29') and answer.exists() then {\r\n          item then emcareconditionemcareb23de29(src, item, tgt) "d4810ead";\r\n        } "1c12d5db";\r\n      } "ea7f1382";\r\n    } "905f043d";\r\n  } "5f2e1416";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE62') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE62') and answer.exists() then {\r\n          item then emcareconditionemcareb23de62(src, item, tgt) "2054edb9";\r\n        } "02044741";\r\n      } "159e31e9";\r\n    } "b02885dc";\r\n  } "112da7cb";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE63') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE63') and answer.exists() then {\r\n          item then emcareconditionemcareb23de63(src, item, tgt) "a3f40895";\r\n        } "7d52bc70";\r\n      } "20460d5f";\r\n    } "ff14bba0";\r\n  } "f48b3870";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE64') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE64') and answer.exists() then {\r\n          item then emcareconditionemcareb23de64(src, item, tgt) "f29b8184";\r\n        } "14c8b550";\r\n      } "e5734e77";\r\n    } "36cc09a7";\r\n  } "66a082c4";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE34') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE34') and answer.exists() then {\r\n          item then emcareconditionemcareb23de34(src, item, tgt) "d9034209";\r\n        } "551a67f8";\r\n      } "8b3401ff";\r\n    } "640f5832";\r\n  } "f733b9d7";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE35') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE35') and answer.exists() then {\r\n          item then emcareconditionemcareb23de35(src, item, tgt) "04b69b69";\r\n        } "edd58a6a";\r\n      } "171d392a";\r\n    } "074be390";\r\n  } "7234989d";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE41') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE41') and answer.exists() then {\r\n          item then emcareconditionemcareb23de41(src, item, tgt) "e644496b";\r\n        } "b0b2d547";\r\n      } "10a4e114";\r\n    } "144ac84e";\r\n  } "be581407";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE42') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE42') and answer.exists() then {\r\n          item then emcareconditionemcareb23de42(src, item, tgt) "8906f237";\r\n        } "825180a4";\r\n      } "cdb5f085";\r\n    } "61767b45";\r\n  } "fd2318de";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE44') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE44') and answer.exists() then {\r\n          item then emcareconditionemcareb23de44(src, item, tgt) "8b745e32";\r\n        } "a297489e";\r\n      } "2a87d904";\r\n    } "31c42b4a";\r\n  } "15c107e8";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE45') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE45') and answer.exists() then {\r\n          item then emcareconditionemcareb23de45(src, item, tgt) "e2a48a8a";\r\n        } "5ac1cbfe";\r\n      } "3ae81ddc";\r\n    } "af5a73ee";\r\n  } "b89e4982";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE47') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE47') and answer.exists() then {\r\n          item then emcareconditionemcareb23de47(src, item, tgt) "59e3f98e";\r\n        } "94021c1f";\r\n      } "bdb92c29";\r\n    } "4313c455";\r\n  } "f4732c43";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE49') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE49') and answer.exists() then {\r\n          item then emcareconditionemcareb23de49(src, item, tgt) "12ffb049";\r\n        } "586e9069";\r\n      } "38e3ba7c";\r\n    } "09e8e39a";\r\n  } "b716ffcf";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE52') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE52') and answer.exists() then {\r\n          item then emcareconditionemcareb23de52(src, item, tgt) "a793cbe8";\r\n        } "db3fe5e7";\r\n      } "dbb84c90";\r\n    } "87a2f3d1";\r\n  } "c771fb59";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE53') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE53') and answer.exists() then {\r\n          item then emcareconditionemcareb23de53(src, item, tgt) "649c99ff";\r\n        } "07fdede8";\r\n      } "6c7dda52";\r\n    } "65dc7390";\r\n  } "aabd61a9";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE54') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE54') and answer.exists() then {\r\n          item then emcareconditionemcareb23de54(src, item, tgt) "c44c1a67";\r\n        } "33495720";\r\n      } "f537bd3f";\r\n    } "3292a5b7";\r\n  } "5586adfb";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE56') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE56') and answer.exists() then {\r\n          item then emcareconditionemcareb23de56(src, item, tgt) "c075c713";\r\n        } "b19e1e77";\r\n      } "1f53e6e7";\r\n    } "1fff823c";\r\n  } "eb0fa007";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE57') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE57') and answer.exists() then {\r\n          item then emcareconditionemcareb23de57(src, item, tgt) "3fef72d0";\r\n        } "95696bb5";\r\n      } "c36398d4";\r\n    } "e245f919";\r\n  } "bd893565";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE58') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE58') and answer.exists() then {\r\n          item then emcareconditionemcareb23de58(src, item, tgt) "59c41e8c";\r\n        } "39386628";\r\n      } "18b79c9c";\r\n    } "0e7307dc";\r\n  } "d0cc854b";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE59') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE59') and answer.exists() then {\r\n          item then emcareconditionemcareb23de59(src, item, tgt) "2cb1e1ca";\r\n        } "ab082ec2";\r\n      } "6065b9b9";\r\n    } "351db615";\r\n  } "6ff9138e";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE61') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE61') and answer.exists() then {\r\n          item then emcareconditionemcareb23de61(src, item, tgt) "260b475c";\r\n        } "c464855a";\r\n      } "9bc3a2f7";\r\n    } "fb4ac959";\r\n  } "d7071092";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE106') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE106') and answer.exists() then {\r\n          item then emcareconditionemcareb23de106(src, item, tgt) "1385c52a";\r\n        } "f5b0e691";\r\n      } "cffa49c6";\r\n    } "f8df0e47";\r\n  } "a8b97e3f";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE107') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE107') and answer.exists() then {\r\n          item then emcareconditionemcareb23de107(src, item, tgt) "c2e4c8aa";\r\n        } "b47a06ed";\r\n      } "ddc34ddb";\r\n    } "4bd4c8ca";\r\n  } "80a21e15";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE108') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE108') and answer.exists() then {\r\n          item then emcareconditionemcareb23de108(src, item, tgt) "71dee3f9";\r\n        } "6dd7f385";\r\n      } "f9f042d3";\r\n    } "aa990e3b";\r\n  } "62bc2a23";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE01') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de01(src, item, tgt) "64b9f2ed";\r\n        } "8ac761e7";\r\n      } "4d3c5911";\r\n    } "8a9e262f";\r\n  } "1a7bd4e6";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE03') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de03(src, item, tgt) "b1c1cd66";\r\n        } "010509dd";\r\n      } "d18e6c9c";\r\n    } "0ddf1e04";\r\n  } "b4ab6b36";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE06') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de06(src, item, tgt) "ab6f052f";\r\n        } "e87439ac";\r\n      } "37d42e73";\r\n    } "7708b4b0";\r\n  } "ca7b518e";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE10') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de10(src, item, tgt) "0b7e0dd8";\r\n        } "2addbd30";\r\n      } "944a4843";\r\n    } "0e6c6c5e";\r\n  } "624540df";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE13') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de13(src, item, tgt) "ca1c2344";\r\n        } "e291ac38";\r\n      } "a3790ce2";\r\n    } "df1da7ee";\r\n  } "db30808b";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE14') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de14(src, item, tgt) "d2d217d7";\r\n        } "71ec8c01";\r\n      } "eec21165";\r\n    } "4bec0867";\r\n  } "b6cebe17";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE15') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de15(src, item, tgt) "d06cdfa3";\r\n        } "78497d5c";\r\n      } "5f0e524b";\r\n    } "84c7d9e0";\r\n  } "5fb77efc";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE16') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de16(src, item, tgt) "694adbe8";\r\n        } "b4ffe6d7";\r\n      } "019739d6";\r\n    } "f03364f0";\r\n  } "80b4094a";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE17') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de17(src, item, tgt) "cc19d396";\r\n        } "18e9e9c8";\r\n      } "c03c1182";\r\n    } "77b63bab";\r\n  } "ff70de9a";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE18') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de18(src, item, tgt) "7bb9024b";\r\n        } "68fe032f";\r\n      } "ed54cd94";\r\n    } "8b8510f5";\r\n  } "632cb525";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE18.a') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de18a(src, item, tgt) "b60dcb5b";\r\n        } "b812de89";\r\n      } "7e16782b";\r\n    } "2e857828";\r\n  } "44580a8e";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE100') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de100(src, item, tgt) "630c1b4f";\r\n        } "41d237f0";\r\n      } "ac9a35e1";\r\n    } "490124cb";\r\n  } "3cac9099";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE6101') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de6101(src, item, tgt) "b8a94b6b";\r\n        } "c5e81286";\r\n      } "f91c76bc";\r\n    } "004bae37";\r\n  } "0fefd9c9";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE6102') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de6102(src, item, tgt) "7660041a";\r\n        } "b83d5bd8";\r\n      } "afa6d915";\r\n    } "e56c0843";\r\n  } "1cfede52";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE6103') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de6103(src, item, tgt) "4acf003e";\r\n        } "052597db";\r\n      } "0d306c2e";\r\n    } "bde18a8c";\r\n  } "9e8a0879";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE30') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de30(src, item, tgt) "6aa7cf7e";\r\n        } "21ed2b92";\r\n      } "b950cabe";\r\n    } "38dc397b";\r\n  } "a771b576";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE31') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de31(src, item, tgt) "0b62776c";\r\n        } "718d4b87";\r\n      } "a826c054";\r\n    } "50550799";\r\n  } "2fb7bb3e";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE32') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de32(src, item, tgt) "8d2e2b23";\r\n        } "85fecf83";\r\n      } "115750dd";\r\n    } "130e1c53";\r\n  } "ac3dd1e5";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE33') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de33(src, item, tgt) "30d2abfe";\r\n        } "e6a31cdd";\r\n      } "d1297d3e";\r\n    } "ef3283c2";\r\n  } "b5d854cd";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE19') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de19(src, item, tgt) "9d939c47";\r\n        } "b6456e02";\r\n      } "88264770";\r\n    } "18e9b3aa";\r\n  } "4af8b98f";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE104') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de104(src, item, tgt) "7124044e";\r\n        } "6dd0b0f1";\r\n      } "362898cd";\r\n    } "6ee2f034";\r\n  } "87957a8c";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE105') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de105(src, item, tgt) "565f9699";\r\n        } "deccc025";\r\n      } "6ffe0a40";\r\n    } "ca66f70c";\r\n  } "4981fb26";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE27') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de27(src, item, tgt) "0da758bb";\r\n        } "240424fd";\r\n      } "42ac4364";\r\n    } "14da060d";\r\n  } "ad5837c4";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE28') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de28(src, item, tgt) "f02ea85f";\r\n        } "9674e4f8";\r\n      } "4215cfc9";\r\n    } "cc83a9a6";\r\n  } "10b29f3a";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE29') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de29(src, item, tgt) "30518e39";\r\n        } "443496d9";\r\n      } "4b8a2cfa";\r\n    } "45aa51e3";\r\n  } "29a1e48b";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE62') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de62(src, item, tgt) "923ea559";\r\n        } "253ad99c";\r\n      } "e1d211b3";\r\n    } "66d2ac7f";\r\n  } "34070da4";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE63') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de63(src, item, tgt) "2cba00a0";\r\n        } "7431d7aa";\r\n      } "dd159d2b";\r\n    } "6088497e";\r\n  } "6d937c64";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE64') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de64(src, item, tgt) "1bdeb81e";\r\n        } "823b626d";\r\n      } "6c269ed8";\r\n    } "c0166a2f";\r\n  } "ef32feea";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE34') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de34(src, item, tgt) "1b5079e7";\r\n        } "e3eec4b3";\r\n      } "c0170815";\r\n    } "9a1a4b51";\r\n  } "02fb5c32";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE35') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de35(src, item, tgt) "359aadb6";\r\n        } "8752dcf9";\r\n      } "5587f633";\r\n    } "436512de";\r\n  } "f74fb871";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE41') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de41(src, item, tgt) "6b245d77";\r\n        } "7880e418";\r\n      } "31ed2847";\r\n    } "69bddf54";\r\n  } "f3925752";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE42') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de42(src, item, tgt) "a013ff50";\r\n        } "a1112e83";\r\n      } "80f89c3b";\r\n    } "c28e55f5";\r\n  } "5a4f405d";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE44') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de44(src, item, tgt) "2e18a455";\r\n        } "05602096";\r\n      } "14ff0531";\r\n    } "e4d8d14c";\r\n  } "106b8412";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE45') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de45(src, item, tgt) "b7776d8c";\r\n        } "0161a3e1";\r\n      } "9041cce3";\r\n    } "d5a11665";\r\n  } "fa69f51a";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE47') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de47(src, item, tgt) "3ef4c39a";\r\n        } "cc30da8e";\r\n      } "3c571f7a";\r\n    } "9c46143a";\r\n  } "7ce713b2";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE49') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de49(src, item, tgt) "9422f693";\r\n        } "270f01c9";\r\n      } "2e5719c3";\r\n    } "86381b92";\r\n  } "dba4472f";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE52') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de52(src, item, tgt) "4dc5850c";\r\n        } "1305ff09";\r\n      } "1e7a4f1d";\r\n    } "823dad96";\r\n  } "f8980fc9";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE53') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de53(src, item, tgt) "f3ebb24f";\r\n        } "8a06bf9b";\r\n      } "82127571";\r\n    } "438bfa1e";\r\n  } "a6b3b052";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE54') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de54(src, item, tgt) "7d9b72a9";\r\n        } "57b6a17c";\r\n      } "3f0c44e2";\r\n    } "9176d48e";\r\n  } "472d138a";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE56') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de56(src, item, tgt) "171d0d02";\r\n        } "a8403d8d";\r\n      } "933c8359";\r\n    } "29b48437";\r\n  } "8633ecac";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE57') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de57(src, item, tgt) "28c69067";\r\n        } "712614f8";\r\n      } "f5aa3751";\r\n    } "b4b69b8b";\r\n  } "275e0558";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE58') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de58(src, item, tgt) "1ecfb370";\r\n        } "a5d3fb11";\r\n      } "abbb00cd";\r\n    } "5c12666c";\r\n  } "9ee9a18a";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE59') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de59(src, item, tgt) "f3cc5dd6";\r\n        } "c2af2708";\r\n      } "420f3c42";\r\n    } "940b499b";\r\n  } "77bb110d";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE61') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de61(src, item, tgt) "3ee47ea8";\r\n        } "14a2cbce";\r\n      } "69da036c";\r\n    } "8d2fc1e7";\r\n  } "5baa46cb";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE106') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de106(src, item, tgt) "5f3c80c3";\r\n        } "8a9ab3d6";\r\n      } "b3badac5";\r\n    } "8aec9c45";\r\n  } "332b8a91";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE107') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de107(src, item, tgt) "d7ceb954";\r\n        } "62594d12";\r\n      } "6660c144";\r\n    } "897c260c";\r\n  } "4dfafc7a";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE108') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de108(src, item, tgt) "ed29c4d5";\r\n        } "a304721d";\r\n      } "f9a90d39";\r\n    } "031643b1";\r\n  } "f52a6f86";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'collector') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectorcollector(src, item, tgt) "dee30196";\r\n        } "dbad65ac";\r\n      } "652cfd04";\r\n    } "63e7ab00";\r\n  } "d596b39a";\r\n}\r\n\r\ngroup emcareobservationemcareb6de08(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb6de08";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B6.DE08' "code-emcareb6de08";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B6.DE08') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val ->  tgt.value = val,  tgt.status = 'final' "afa0ccc0";\r\n    } "d40466ff";\r\n  } "dc896557";\r\n}\r\n\r\ngroup emcareconditionemcareb23de01(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE01',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "38c776ef";\r\n    } "dcfcb65d";\r\n  } "48b723fb";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de03(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE03',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "97f42802";\r\n    } "539676b6";\r\n  } "72db4093";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE04') and answer.exists() then {\r\n    item.answer first as a where a.value = true then {\r\n      src ->  tgt.extension = create('Extension') as ext,  ext.url = 'https://smart.who.int/ccc/StructureDefinition/postcoordination',  ext.value = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE04',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "38e7535e";\r\n    } "dd1642cb";\r\n  } "c35c9cd0";\r\n}\r\n\r\ngroup emcareconditionemcareb23de06(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE06',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "dd0fd01c";\r\n    } "8ef845b0";\r\n  } "558d6c0d";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE05') and answer.exists() then {\r\n    item.answer first as a where a.value = true then {\r\n      src ->  tgt.extension = create('Extension') as ext,  ext.url = 'https://smart.who.int/ccc/StructureDefinition/postcoordination',  ext.value = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE05',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "45430313";\r\n    } "fbb8aa6b";\r\n  } "2361285f";\r\n}\r\n\r\ngroup emcareconditionemcareb23de10(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE10',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "901c4fa4";\r\n    } "39e6334e";\r\n  } "f313d249";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE05') and answer.exists() then {\r\n    item.answer first as a where a.value = true then {\r\n      src ->  tgt.extension = create('Extension') as ext,  ext.url = 'https://smart.who.int/ccc/StructureDefinition/postcoordination',  ext.value = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE05',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "45430313";\r\n    } "fbb8aa6b";\r\n  } "2361285f";\r\n}\r\n\r\ngroup emcareconditionemcareb23de13(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE13',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "0b87b4e7";\r\n    } "6cc1c549";\r\n  } "dc54929c";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de14(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE14',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "c77e81e6";\r\n    } "a3de578a";\r\n  } "d565e84e";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de15(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE15',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "16e4a2c3";\r\n    } "088a39f1";\r\n  } "b194144a";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de16(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE16',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "672b006b";\r\n    } "c458ff7e";\r\n  } "a834b1c4";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de17(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE17',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "bd34c671";\r\n    } "0cc3c5de";\r\n  } "8b51a13d";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de18(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE18',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "422373d9";\r\n    } "8f1dcdd2";\r\n  } "6c227934";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de18a(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE18.a',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "b2c23048";\r\n    } "422663d8";\r\n  } "12b34bed";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de100(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE100',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "515f36ee";\r\n    } "e9f1a397";\r\n  } "5e6079c2";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de6101(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE6101',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "6a9c0b56";\r\n    } "970b5053";\r\n  } "ce2b70a1";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de6102(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE6102',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "1522be60";\r\n    } "18159ba1";\r\n  } "cb2b50a2";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de6103(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE6103',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "248ab88b";\r\n    } "9f402fa1";\r\n  } "5f770596";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de30(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE30',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "60650f2a";\r\n    } "453d3cff";\r\n  } "e00da291";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de31(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE31',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "ab1c5076";\r\n    } "11935d2f";\r\n  } "e29a8881";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de32(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE32',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "b634fab6";\r\n    } "4ead4dac";\r\n  } "48ea19ef";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n  src.item first as itm1 where linkId = 'EmCare.B23.DE32' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B23.DE32a_l') and answer.exists() then {\r\n      item.answer first as a where a.value = true then {\r\n        src ->  tgt.extension = create('Extension') as ext,  ext.url = 'https://smart.who.int/ccc/StructureDefinition/postcoordination',  ext.value = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE32a_l',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "e1fd65a9";\r\n      } "c8109922";\r\n    } "812d89a8";\r\n  } "c3ccc3f2";\r\n}\r\n\r\ngroup emcareconditionemcareb23de33(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE33',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "57e99b51";\r\n    } "82481cbe";\r\n  } "ef2558fa";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de19(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE19',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "8cb2637d";\r\n    } "69ddcad6";\r\n  } "36529e3a";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de104(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE104',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "6627d17b";\r\n    } "008eb1e8";\r\n  } "99bdabd7";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n  src.item first as itm1 where linkId = 'EmCare.B23.DE104' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B23.DE26a_l') and answer.exists() then {\r\n      item.answer first as a where a.value = true then {\r\n        src ->  tgt.extension = create('Extension') as ext,  ext.url = 'https://smart.who.int/ccc/StructureDefinition/postcoordination',  ext.value = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE26a_l',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "2bb3282a";\r\n      } "059c54a8";\r\n    } "bfa2f7ed";\r\n  } "d6b41478";\r\n}\r\n\r\ngroup emcareconditionemcareb23de105(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE105',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "bfa6a728";\r\n    } "503587f4";\r\n  } "b4cd8d75";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de27(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE27',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "10a11fd8";\r\n    } "7e9f6c96";\r\n  } "47747496";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de28(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE28',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "bd635f9e";\r\n    } "ac92c02f";\r\n  } "591966f0";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de29(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE29',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "59037b30";\r\n    } "cfcf61aa";\r\n  } "b6fcf002";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de62(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE62',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "1d89b4e7";\r\n    } "7a9976ac";\r\n  } "59bce4a5";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de63(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE63',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "7160c75f";\r\n    } "f74f505b";\r\n  } "ab307e84";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de64(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE64',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "f6ad72a0";\r\n    } "9035e530";\r\n  } "9a8830e5";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de34(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE34',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "e5f9a7d3";\r\n    } "ff3ce60d";\r\n  } "c84a5f54";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de35(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE35',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "7f5b9cb3";\r\n    } "30144f76";\r\n  } "b15dce6e";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE36') and answer.exists() then {\r\n    item.answer first as a where a.value = true then {\r\n      src ->  tgt.extension = create('Extension') as ext,  ext.url = 'https://smart.who.int/ccc/StructureDefinition/postcoordination',  ext.value = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE36',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "337a4af0";\r\n    } "00bff3d2";\r\n  } "9a029988";\r\n}\r\n\r\ngroup emcareconditionemcareb23de41(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE41',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "e288c87d";\r\n    } "8173bdfa";\r\n  } "2297565b";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de42(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE42',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "94e86dfd";\r\n    } "1282d921";\r\n  } "f89496b0";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE43a') and answer.exists() then {\r\n    item.answer first as a where a.value = true then {\r\n      src ->  tgt.extension = create('Extension') as ext,  ext.url = 'https://smart.who.int/ccc/StructureDefinition/postcoordination',  ext.value = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE43a',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "3982894f";\r\n    } "bb6efca4";\r\n  } "fc0928c7";\r\n}\r\n\r\ngroup emcareconditionemcareb23de44(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE44',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "e3f3e6d5";\r\n    } "bed4feb4";\r\n  } "629e48b0";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de45(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE45',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "606d51c8";\r\n    } "7d5d59ca";\r\n  } "e36660f4";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE46A') and answer.exists() then {\r\n    item.answer first as a where a.value = true then {\r\n      src ->  tgt.extension = create('Extension') as ext,  ext.url = 'https://smart.who.int/ccc/StructureDefinition/postcoordination',  ext.value = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE46A',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "b043e119";\r\n    } "b1d8b88c";\r\n  } "a1ec2dd1";\r\n}\r\n\r\ngroup emcareconditionemcareb23de47(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE47',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "6bae8d25";\r\n    } "5e31a07c";\r\n  } "a43d53e8";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE48') and answer.exists() then {\r\n    item.answer first as a where a.value = true then {\r\n      src ->  tgt.extension = create('Extension') as ext,  ext.url = 'https://smart.who.int/ccc/StructureDefinition/postcoordination',  ext.value = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE48',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "88de7a80";\r\n    } "7cd5181a";\r\n  } "3c6f199b";\r\n}\r\n\r\ngroup emcareconditionemcareb23de49(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE49',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "b581f2e7";\r\n    } "1cc86632";\r\n  } "f58199bf";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE50') and answer.exists() then {\r\n    item.answer first as a where a.value = true then {\r\n      src ->  tgt.extension = create('Extension') as ext,  ext.url = 'https://smart.who.int/ccc/StructureDefinition/postcoordination',  ext.value = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE50',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "b871091f";\r\n    } "3562dee3";\r\n  } "ba9bd30c";\r\n}\r\n\r\ngroup emcareconditionemcareb23de52(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE52',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "eb984457";\r\n    } "124cd652";\r\n  } "c77f1d4e";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE52a') and answer.exists() then {\r\n    item.answer first as a where a.value = true then {\r\n      src ->  tgt.extension = create('Extension') as ext,  ext.url = 'https://smart.who.int/ccc/StructureDefinition/postcoordination',  ext.value = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE52a',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "3a81b32e";\r\n    } "2c4ce5dc";\r\n  } "510e64e3";\r\n}\r\n\r\ngroup emcareconditionemcareb23de53(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE53',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "0f3a6755";\r\n    } "863552f3";\r\n  } "35439fa7";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE53a') and answer.exists() then {\r\n    item.answer first as a where a.value = true then {\r\n      src ->  tgt.extension = create('Extension') as ext,  ext.url = 'https://smart.who.int/ccc/StructureDefinition/postcoordination',  ext.value = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE53a',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "172c98f5";\r\n    } "77f7bdf7";\r\n  } "6481f816";\r\n}\r\n\r\ngroup emcareconditionemcareb23de54(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE54',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "fafd5b25";\r\n    } "61c9d7c8";\r\n  } "78b12d83";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE55') and answer.exists() then {\r\n    item.answer first as a where a.value = true then {\r\n      src ->  tgt.extension = create('Extension') as ext,  ext.url = 'https://smart.who.int/ccc/StructureDefinition/postcoordination',  ext.value = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE55',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "703de849";\r\n    } "82394009";\r\n  } "626ae745";\r\n}\r\n\r\ngroup emcareconditionemcareb23de56(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE56',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "9a929971";\r\n    } "b7c8a104";\r\n  } "0dd631f3";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de57(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE57',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "2c0d395c";\r\n    } "f04e9b50";\r\n  } "af692636";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE57a') and answer.exists() then {\r\n    item.answer first as a where a.value = true then {\r\n      src ->  tgt.extension = create('Extension') as ext,  ext.url = 'https://smart.who.int/ccc/StructureDefinition/postcoordination',  ext.value = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE57a',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "0273738c";\r\n    } "3e41ae3b";\r\n  } "d8c20ee2";\r\n}\r\n\r\ngroup emcareconditionemcareb23de58(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE58',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "d913f145";\r\n    } "ecd18d6c";\r\n  } "a88f6164";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de59(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE59',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "8f74fb03";\r\n    } "4cae7202";\r\n  } "b30797dc";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE60') and answer.exists() then {\r\n    item.answer first as a where a.value = true then {\r\n      src ->  tgt.extension = create('Extension') as ext,  ext.url = 'https://smart.who.int/ccc/StructureDefinition/postcoordination',  ext.value = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE60',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "da15433c";\r\n    } "8622d264";\r\n  } "0e509ca1";\r\n}\r\n\r\ngroup emcareconditionemcareb23de61(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE61',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "9134fe36";\r\n    } "280470c5";\r\n  } "8aa97bdd";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de106(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE106',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "70f0a4fa";\r\n    } "d8d6d130";\r\n  } "671ed411";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de107(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE107',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "4b1b0c22";\r\n    } "d096a052";\r\n  } "8e8ee9b4";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de108(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE108',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "3de5c106";\r\n    } "58d1e9ce";\r\n  } "81cf1715";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de01(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE01',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "38c776ef";\r\n    } "dcfcb65d";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "9ef26449";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de03(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE03',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "97f42802";\r\n    } "539676b6";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "cfd7a9f6";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de06(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE06',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "dd0fd01c";\r\n    } "8ef845b0";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "8ede6446";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de10(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE10',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "901c4fa4";\r\n    } "39e6334e";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "91de6eff";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de13(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE13',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "0b87b4e7";\r\n    } "6cc1c549";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "39e0fe5e";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de14(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE14',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "c77e81e6";\r\n    } "a3de578a";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "da0791a5";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de15(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE15',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "16e4a2c3";\r\n    } "088a39f1";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "b16e2ac9";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de16(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE16',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "672b006b";\r\n    } "c458ff7e";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "56c3513e";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de17(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE17',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "bd34c671";\r\n    } "0cc3c5de";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "bcc64d8c";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de18(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE18',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "422373d9";\r\n    } "8f1dcdd2";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "c59123ce";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de18a(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE18.a',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "b2c23048";\r\n    } "422663d8";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "25273533";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de100(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE100',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "515f36ee";\r\n    } "e9f1a397";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "8c3a108e";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de6101(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE6101',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "6a9c0b56";\r\n    } "970b5053";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "bcd054c6";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de6102(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE6102',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "1522be60";\r\n    } "18159ba1";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "d067f021";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de6103(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE6103',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "248ab88b";\r\n    } "9f402fa1";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "63883e24";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de30(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE30',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "60650f2a";\r\n    } "453d3cff";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "a68b918e";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de31(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE31',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "ab1c5076";\r\n    } "11935d2f";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "822b0f6f";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de32(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE32',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "b634fab6";\r\n    } "4ead4dac";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "d4c988ea";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de33(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE33',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "57e99b51";\r\n    } "82481cbe";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "fe5543e1";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de19(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE19',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "8cb2637d";\r\n    } "69ddcad6";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "70cc0dd3";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de104(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE104',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "6627d17b";\r\n    } "008eb1e8";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "20bd1c4d";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de105(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE105',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "bfa6a728";\r\n    } "503587f4";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "fef353a9";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de27(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE27',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "10a11fd8";\r\n    } "7e9f6c96";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "0290fee9";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de28(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE28',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "bd635f9e";\r\n    } "ac92c02f";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "83be838f";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de29(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE29',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "59037b30";\r\n    } "cfcf61aa";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "6e4bf79f";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de62(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE62',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "1d89b4e7";\r\n    } "7a9976ac";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "57723227";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de63(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE63',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "7160c75f";\r\n    } "f74f505b";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "33888f75";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de64(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE64',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "f6ad72a0";\r\n    } "9035e530";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "1cf80989";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de34(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE34',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "e5f9a7d3";\r\n    } "ff3ce60d";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "d108e57f";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de35(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE35',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "7f5b9cb3";\r\n    } "30144f76";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "1b6c2929";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de41(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE41',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "e288c87d";\r\n    } "8173bdfa";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "6346630d";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de42(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE42',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "94e86dfd";\r\n    } "1282d921";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "8bdb0925";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de44(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE44',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "e3f3e6d5";\r\n    } "bed4feb4";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "01ad58f9";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de45(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE45',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "606d51c8";\r\n    } "7d5d59ca";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "8d718fac";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de47(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE47',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "6bae8d25";\r\n    } "5e31a07c";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "0403cb73";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de49(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE49',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "b581f2e7";\r\n    } "1cc86632";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "01b77ffc";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de52(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE52',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "eb984457";\r\n    } "124cd652";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "4f42555c";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de53(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE53',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "0f3a6755";\r\n    } "863552f3";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "28aceb4b";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de54(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE54',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "fafd5b25";\r\n    } "61c9d7c8";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "4a7c61b0";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de56(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE56',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "9a929971";\r\n    } "b7c8a104";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "0a350e2a";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de57(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE57',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "2c0d395c";\r\n    } "f04e9b50";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "4581b0aa";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de58(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE58',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "d913f145";\r\n    } "ecd18d6c";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "52e04bef";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de59(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE59',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "8f74fb03";\r\n    } "4cae7202";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "4fd3684b";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de61(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE61',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "9134fe36";\r\n    } "280470c5";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "ebbc1c98";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de106(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE106',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "70f0a4fa";\r\n    } "d8d6d130";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "c5746d18";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de107(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE107',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "4b1b0c22";\r\n    } "d096a052";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "1df42064";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de108(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE108',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "3de5c106";\r\n    } "58d1e9ce";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "474da804";\r\n}\r\n\r\ngroup emcareconditioncollectorcollector(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'collector',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "ab5440b5";\r\n    } "6fc817a4";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "d8e38123";\r\n}\r\n\r\n
" }, - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcare.b23.classification", + "url": "https://smart.who.int/ccc/StructureMap/emcare.b23.classification", "name": "emcare.b23.classification", "status": "active", "structure": [ @@ -20,22 +20,22 @@ "alias": "'Bundle'" }, { - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/observation", + "url": "https://smart.who.int/ccc/StructureDefinition/observation", "mode": "target", "alias": "'Observation'" }, { - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/condition", + "url": "https://smart.who.int/ccc/StructureDefinition/condition", "mode": "target", "alias": "'Condition'" }, { - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation", + "url": "https://smart.who.int/ccc/StructureDefinition/emcareobservation", "mode": "produced", "alias": "'EmCare Observation'" }, { - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcarecondition", + "url": "https://smart.who.int/ccc/StructureDefinition/emcarecondition", "mode": "produced", "alias": "'EmCare Condition'" } @@ -12950,7 +12950,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -12985,7 +12985,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -13333,7 +13333,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -13789,7 +13789,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -14098,7 +14098,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir//StructureDefinition/postcoordination" + "valueString": "https://smart.who.int/ccc/StructureDefinition/postcoordination" } ] }, @@ -14144,7 +14144,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -14352,7 +14352,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -14661,7 +14661,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir//StructureDefinition/postcoordination" + "valueString": "https://smart.who.int/ccc/StructureDefinition/postcoordination" } ] }, @@ -14707,7 +14707,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -14915,7 +14915,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -15224,7 +15224,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir//StructureDefinition/postcoordination" + "valueString": "https://smart.who.int/ccc/StructureDefinition/postcoordination" } ] }, @@ -15270,7 +15270,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -15478,7 +15478,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -15934,7 +15934,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -16390,7 +16390,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -16846,7 +16846,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -17302,7 +17302,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -17758,7 +17758,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -18214,7 +18214,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -18670,7 +18670,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -19126,7 +19126,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -19582,7 +19582,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -20038,7 +20038,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -20494,7 +20494,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -20950,7 +20950,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -21406,7 +21406,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -21727,7 +21727,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir//StructureDefinition/postcoordination" + "valueString": "https://smart.who.int/ccc/StructureDefinition/postcoordination" } ] }, @@ -21773,7 +21773,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -21983,7 +21983,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -22439,7 +22439,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -22895,7 +22895,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -23216,7 +23216,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir//StructureDefinition/postcoordination" + "valueString": "https://smart.who.int/ccc/StructureDefinition/postcoordination" } ] }, @@ -23262,7 +23262,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -23472,7 +23472,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -23928,7 +23928,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -24384,7 +24384,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -24840,7 +24840,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -25296,7 +25296,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -25752,7 +25752,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -26208,7 +26208,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -26664,7 +26664,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -27120,7 +27120,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -27429,7 +27429,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir//StructureDefinition/postcoordination" + "valueString": "https://smart.who.int/ccc/StructureDefinition/postcoordination" } ] }, @@ -27475,7 +27475,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -27683,7 +27683,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -28139,7 +28139,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -28448,7 +28448,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir//StructureDefinition/postcoordination" + "valueString": "https://smart.who.int/ccc/StructureDefinition/postcoordination" } ] }, @@ -28494,7 +28494,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -28702,7 +28702,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -29158,7 +29158,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -29467,7 +29467,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir//StructureDefinition/postcoordination" + "valueString": "https://smart.who.int/ccc/StructureDefinition/postcoordination" } ] }, @@ -29513,7 +29513,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -29721,7 +29721,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -30030,7 +30030,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir//StructureDefinition/postcoordination" + "valueString": "https://smart.who.int/ccc/StructureDefinition/postcoordination" } ] }, @@ -30076,7 +30076,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -30284,7 +30284,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -30593,7 +30593,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir//StructureDefinition/postcoordination" + "valueString": "https://smart.who.int/ccc/StructureDefinition/postcoordination" } ] }, @@ -30639,7 +30639,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -30847,7 +30847,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -31156,7 +31156,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir//StructureDefinition/postcoordination" + "valueString": "https://smart.who.int/ccc/StructureDefinition/postcoordination" } ] }, @@ -31202,7 +31202,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -31410,7 +31410,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -31719,7 +31719,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir//StructureDefinition/postcoordination" + "valueString": "https://smart.who.int/ccc/StructureDefinition/postcoordination" } ] }, @@ -31765,7 +31765,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -31973,7 +31973,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -32282,7 +32282,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir//StructureDefinition/postcoordination" + "valueString": "https://smart.who.int/ccc/StructureDefinition/postcoordination" } ] }, @@ -32328,7 +32328,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -32536,7 +32536,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -32992,7 +32992,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -33301,7 +33301,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir//StructureDefinition/postcoordination" + "valueString": "https://smart.who.int/ccc/StructureDefinition/postcoordination" } ] }, @@ -33347,7 +33347,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -33555,7 +33555,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -34011,7 +34011,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -34320,7 +34320,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir//StructureDefinition/postcoordination" + "valueString": "https://smart.who.int/ccc/StructureDefinition/postcoordination" } ] }, @@ -34366,7 +34366,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -34574,7 +34574,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -35030,7 +35030,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -35486,7 +35486,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -35942,7 +35942,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -36398,7 +36398,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -36718,7 +36718,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -37038,7 +37038,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -37358,7 +37358,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -37678,7 +37678,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -37998,7 +37998,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -38318,7 +38318,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -38638,7 +38638,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -38958,7 +38958,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -39278,7 +39278,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -39598,7 +39598,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -39918,7 +39918,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -40238,7 +40238,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -40558,7 +40558,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -40878,7 +40878,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -41198,7 +41198,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -41518,7 +41518,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -41838,7 +41838,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -42158,7 +42158,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -42478,7 +42478,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -42798,7 +42798,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -43118,7 +43118,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -43438,7 +43438,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -43758,7 +43758,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -44078,7 +44078,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -44398,7 +44398,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -44718,7 +44718,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -45038,7 +45038,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -45358,7 +45358,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -45678,7 +45678,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -45998,7 +45998,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -46318,7 +46318,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -46638,7 +46638,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -46958,7 +46958,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -47278,7 +47278,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -47598,7 +47598,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -47918,7 +47918,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -48238,7 +48238,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -48558,7 +48558,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -48878,7 +48878,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -49198,7 +49198,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -49518,7 +49518,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -49838,7 +49838,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -50158,7 +50158,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -50478,7 +50478,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -50798,7 +50798,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -51118,7 +51118,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -51438,7 +51438,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } diff --git a/input/resources/structuremap/structuremap-emcare.b23.classification.m.json b/input/resources/structuremap/structuremap-emcare.b23.classification.m.json index 82460416..76098de3 100644 --- a/input/resources/structuremap/structuremap-emcare.b23.classification.m.json +++ b/input/resources/structuremap/structuremap-emcare.b23.classification.m.json @@ -3,9 +3,9 @@ "id": "emcare.b23.classification.m", "text": { "status": "generated", - "div": "
map "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcare.b23.classification.m" = "emcare.b23.classification.m"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/condition" alias 'Condition' as target\r\nuses "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcarecondition" alias 'EmCare Condition' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n  src -> bundle.id = uuid() "id";\r\n  src -> bundle.type = 'batch' "type";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE83') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE83') and answer.exists() then {\r\n          item then emcareconditionemcareb23de83(src, item, tgt) "178343d7";\r\n        } "a8097d41";\r\n      } "ad9073a1";\r\n    } "83bc4493";\r\n  } "09b682e0";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE06') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE06') and answer.exists() then {\r\n          item then emcareconditionemcareb23de06(src, item, tgt) "9c759e88";\r\n        } "060d6b0f";\r\n      } "6909c9cb";\r\n    } "80a2a642";\r\n  } "93603109";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE85') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE85') and answer.exists() then {\r\n          item then emcareconditionemcareb23de85(src, item, tgt) "935222a8";\r\n        } "d50b3ee7";\r\n      } "b5ace6e4";\r\n    } "6e6a68c3";\r\n  } "a87e641b";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE86') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE86') and answer.exists() then {\r\n          item then emcareconditionemcareb23de86(src, item, tgt) "7b5655d0";\r\n        } "a02dff61";\r\n      } "f6d60d42";\r\n    } "e66f46ee";\r\n  } "67b6f016";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE106') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE106') and answer.exists() then {\r\n          item then emcareconditionemcareb23de106(src, item, tgt) "1385c52a";\r\n        } "f5b0e691";\r\n      } "cffa49c6";\r\n    } "f8df0e47";\r\n  } "a8b97e3f";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE87') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE87') and answer.exists() then {\r\n          item then emcareconditionemcareb23de87(src, item, tgt) "ba174f0b";\r\n        } "30f36551";\r\n      } "7e51b325";\r\n    } "efdd0e20";\r\n  } "2521504d";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE88') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE88') and answer.exists() then {\r\n          item then emcareconditionemcareb23de88(src, item, tgt) "f570c42d";\r\n        } "f0521ba0";\r\n      } "999ae6b0";\r\n    } "0077703f";\r\n  } "3efea57e";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE89') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE89') and answer.exists() then {\r\n          item then emcareconditionemcareb23de89(src, item, tgt) "226a96b3";\r\n        } "72e06a74";\r\n      } "d6e439e9";\r\n    } "09b39961";\r\n  } "cc634914";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE13') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE13') and answer.exists() then {\r\n          item then emcareconditionemcareb23de13(src, item, tgt) "66186a0c";\r\n        } "a1450efb";\r\n      } "076ff820";\r\n    } "08bcb577";\r\n  } "feb0d657";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE14') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE14') and answer.exists() then {\r\n          item then emcareconditionemcareb23de14(src, item, tgt) "2dcb0090";\r\n        } "88d1e8c7";\r\n      } "3ef7f05b";\r\n    } "90e804b6";\r\n  } "d819a392";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE15') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE15') and answer.exists() then {\r\n          item then emcareconditionemcareb23de15(src, item, tgt) "fe470a2a";\r\n        } "21fccbde";\r\n      } "2eb659f8";\r\n    } "79ef4ab2";\r\n  } "e3b54720";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE94') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE94') and answer.exists() then {\r\n          item then emcareconditionemcareb23de94(src, item, tgt) "4bfe2573";\r\n        } "a323ced7";\r\n      } "4238505f";\r\n    } "cb434a7e";\r\n  } "974a1d36";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE98') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE98') and answer.exists() then {\r\n          item then emcareconditionemcareb23de98(src, item, tgt) "ec699e2c";\r\n        } "19da18a9";\r\n      } "b82b0c05";\r\n    } "67075fc4";\r\n  } "51f9d108";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE83') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de83(src, item, tgt) "a49f2674";\r\n        } "5a82b6a2";\r\n      } "d2d9497c";\r\n    } "c5fd054e";\r\n  } "0a3b92c9";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE06') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de06(src, item, tgt) "ab6f052f";\r\n        } "e87439ac";\r\n      } "37d42e73";\r\n    } "7708b4b0";\r\n  } "ca7b518e";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE85') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de85(src, item, tgt) "34be21c7";\r\n        } "dd73e267";\r\n      } "17b29f54";\r\n    } "7a81127f";\r\n  } "3bb7e65c";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE86') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de86(src, item, tgt) "85e79f33";\r\n        } "b37e1f00";\r\n      } "5ebec517";\r\n    } "742af28b";\r\n  } "125b7e31";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE106') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de106(src, item, tgt) "5f3c80c3";\r\n        } "8a9ab3d6";\r\n      } "b3badac5";\r\n    } "8aec9c45";\r\n  } "332b8a91";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE87') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de87(src, item, tgt) "69dafef9";\r\n        } "7d2dd85f";\r\n      } "3814725e";\r\n    } "98d3b1f5";\r\n  } "4afba6d2";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE88') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de88(src, item, tgt) "b8d9f845";\r\n        } "65150a1a";\r\n      } "43b46f0d";\r\n    } "c4a03e24";\r\n  } "4ed6008e";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE89') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de89(src, item, tgt) "e0b2a7ea";\r\n        } "5f78e785";\r\n      } "4b1fc155";\r\n    } "ad230210";\r\n  } "fd95ca9c";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE13') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de13(src, item, tgt) "ca1c2344";\r\n        } "e291ac38";\r\n      } "a3790ce2";\r\n    } "df1da7ee";\r\n  } "db30808b";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE14') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de14(src, item, tgt) "d2d217d7";\r\n        } "71ec8c01";\r\n      } "eec21165";\r\n    } "4bec0867";\r\n  } "b6cebe17";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE15') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de15(src, item, tgt) "d06cdfa3";\r\n        } "78497d5c";\r\n      } "5f0e524b";\r\n    } "84c7d9e0";\r\n  } "5fb77efc";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE94') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de94(src, item, tgt) "fd905dcf";\r\n        } "887a5cf4";\r\n      } "e9cd9662";\r\n    } "d351f4bc";\r\n  } "1277893a";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE98') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de98(src, item, tgt) "50233ad8";\r\n        } "3c87eb32";\r\n      } "ac7c8731";\r\n    } "18115b63";\r\n  } "a8b5fbe8";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'collector') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectorcollector(src, item, tgt) "dee30196";\r\n        } "dbad65ac";\r\n      } "652cfd04";\r\n    } "63e7ab00";\r\n  } "d596b39a";\r\n}\r\n\r\ngroup emcareconditionemcareb23de83(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE83',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "8e761921";\r\n    } "a10c1e7b";\r\n  } "13fd46f9";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de06(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE06',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "dd0fd01c";\r\n    } "8ef845b0";\r\n  } "558d6c0d";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de85(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE85',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "edf923c3";\r\n    } "a2ce3a97";\r\n  } "6f3a3752";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de86(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE86',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "342850aa";\r\n    } "9338b358";\r\n  } "fc719a3c";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de106(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE106',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "70f0a4fa";\r\n    } "d8d6d130";\r\n  } "671ed411";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de87(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE87',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "01f1ca5f";\r\n    } "62727c30";\r\n  } "9ff74c9e";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de88(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE88',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "2803d2d8";\r\n    } "360a74b4";\r\n  } "36ea706b";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de89(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE89',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "d0ba1006";\r\n    } "10f03284";\r\n  } "0d943b47";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de13(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE13',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "0b87b4e7";\r\n    } "6cc1c549";\r\n  } "dc54929c";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de14(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE14',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "c77e81e6";\r\n    } "a3de578a";\r\n  } "d565e84e";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de15(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE15',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "16e4a2c3";\r\n    } "088a39f1";\r\n  } "b194144a";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de94(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE94',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "61234ed0";\r\n    } "ba5673dd";\r\n  } "b957f076";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de98(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE98',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "11d6b9d2";\r\n    } "cbe98666";\r\n  } "98163aba";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de83(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE83',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "8e761921";\r\n    } "a10c1e7b";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "64537b70";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de06(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE06',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "dd0fd01c";\r\n    } "8ef845b0";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "8ede6446";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de85(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE85',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "edf923c3";\r\n    } "a2ce3a97";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "7ab58b18";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de86(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE86',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "342850aa";\r\n    } "9338b358";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "c7e15e0e";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de106(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE106',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "70f0a4fa";\r\n    } "d8d6d130";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "c5746d18";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de87(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE87',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "01f1ca5f";\r\n    } "62727c30";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "8dee988b";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de88(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE88',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "2803d2d8";\r\n    } "360a74b4";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "e6ded7f8";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de89(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE89',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "d0ba1006";\r\n    } "10f03284";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "38f340fb";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de13(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE13',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "0b87b4e7";\r\n    } "6cc1c549";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "39e0fe5e";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de14(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE14',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "c77e81e6";\r\n    } "a3de578a";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "da0791a5";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de15(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE15',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "16e4a2c3";\r\n    } "088a39f1";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "b16e2ac9";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de94(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE94',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "61234ed0";\r\n    } "ba5673dd";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "82182761";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de98(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE98',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "11d6b9d2";\r\n    } "cbe98666";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "869e7605";\r\n}\r\n\r\ngroup emcareconditioncollectorcollector(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'collector',  ccs.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' "ab5440b5";\r\n    } "6fc817a4";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "d8e38123";\r\n}\r\n\r\n
" + "div": "
map "https://smart.who.int/ccc/StructureMap/emcare.b23.classification.m" = "emcare.b23.classification.m"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/condition" alias 'Condition' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/emcarecondition" alias 'EmCare Condition' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n  src -> bundle.id = uuid() "id";\r\n  src -> bundle.type = 'batch' "type";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE83') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE83') and answer.exists() then {\r\n          item then emcareconditionemcareb23de83(src, item, tgt) "178343d7";\r\n        } "a8097d41";\r\n      } "ad9073a1";\r\n    } "83bc4493";\r\n  } "09b682e0";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE06') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE06') and answer.exists() then {\r\n          item then emcareconditionemcareb23de06(src, item, tgt) "9c759e88";\r\n        } "060d6b0f";\r\n      } "6909c9cb";\r\n    } "80a2a642";\r\n  } "93603109";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE85') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE85') and answer.exists() then {\r\n          item then emcareconditionemcareb23de85(src, item, tgt) "935222a8";\r\n        } "d50b3ee7";\r\n      } "b5ace6e4";\r\n    } "6e6a68c3";\r\n  } "a87e641b";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE86') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE86') and answer.exists() then {\r\n          item then emcareconditionemcareb23de86(src, item, tgt) "7b5655d0";\r\n        } "a02dff61";\r\n      } "f6d60d42";\r\n    } "e66f46ee";\r\n  } "67b6f016";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE106') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE106') and answer.exists() then {\r\n          item then emcareconditionemcareb23de106(src, item, tgt) "1385c52a";\r\n        } "f5b0e691";\r\n      } "cffa49c6";\r\n    } "f8df0e47";\r\n  } "a8b97e3f";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE87') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE87') and answer.exists() then {\r\n          item then emcareconditionemcareb23de87(src, item, tgt) "ba174f0b";\r\n        } "30f36551";\r\n      } "7e51b325";\r\n    } "efdd0e20";\r\n  } "2521504d";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE88') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE88') and answer.exists() then {\r\n          item then emcareconditionemcareb23de88(src, item, tgt) "f570c42d";\r\n        } "f0521ba0";\r\n      } "999ae6b0";\r\n    } "0077703f";\r\n  } "3efea57e";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE89') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE89') and answer.exists() then {\r\n          item then emcareconditionemcareb23de89(src, item, tgt) "226a96b3";\r\n        } "72e06a74";\r\n      } "d6e439e9";\r\n    } "09b39961";\r\n  } "cc634914";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE13') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE13') and answer.exists() then {\r\n          item then emcareconditionemcareb23de13(src, item, tgt) "66186a0c";\r\n        } "a1450efb";\r\n      } "076ff820";\r\n    } "08bcb577";\r\n  } "feb0d657";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE14') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE14') and answer.exists() then {\r\n          item then emcareconditionemcareb23de14(src, item, tgt) "2dcb0090";\r\n        } "88d1e8c7";\r\n      } "3ef7f05b";\r\n    } "90e804b6";\r\n  } "d819a392";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE15') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE15') and answer.exists() then {\r\n          item then emcareconditionemcareb23de15(src, item, tgt) "fe470a2a";\r\n        } "21fccbde";\r\n      } "2eb659f8";\r\n    } "79ef4ab2";\r\n  } "e3b54720";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE94') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE94') and answer.exists() then {\r\n          item then emcareconditionemcareb23de94(src, item, tgt) "4bfe2573";\r\n        } "a323ced7";\r\n      } "4238505f";\r\n    } "cb434a7e";\r\n  } "974a1d36";\r\n  src.item first as item where (linkId = 'EmCare.B23.DE98') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n      src -> entry.resource = create('Condition') as tgt then {\r\n        src.item first as item where (linkId = 'EmCare.B23.DE98') and answer.exists() then {\r\n          item then emcareconditionemcareb23de98(src, item, tgt) "ec699e2c";\r\n        } "19da18a9";\r\n      } "b82b0c05";\r\n    } "67075fc4";\r\n  } "51f9d108";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE83') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de83(src, item, tgt) "a49f2674";\r\n        } "5a82b6a2";\r\n      } "d2d9497c";\r\n    } "c5fd054e";\r\n  } "0a3b92c9";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE06') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de06(src, item, tgt) "ab6f052f";\r\n        } "e87439ac";\r\n      } "37d42e73";\r\n    } "7708b4b0";\r\n  } "ca7b518e";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE85') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de85(src, item, tgt) "34be21c7";\r\n        } "dd73e267";\r\n      } "17b29f54";\r\n    } "7a81127f";\r\n  } "3bb7e65c";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE86') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de86(src, item, tgt) "85e79f33";\r\n        } "b37e1f00";\r\n      } "5ebec517";\r\n    } "742af28b";\r\n  } "125b7e31";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE106') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de106(src, item, tgt) "5f3c80c3";\r\n        } "8a9ab3d6";\r\n      } "b3badac5";\r\n    } "8aec9c45";\r\n  } "332b8a91";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE87') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de87(src, item, tgt) "69dafef9";\r\n        } "7d2dd85f";\r\n      } "3814725e";\r\n    } "98d3b1f5";\r\n  } "4afba6d2";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE88') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de88(src, item, tgt) "b8d9f845";\r\n        } "65150a1a";\r\n      } "43b46f0d";\r\n    } "c4a03e24";\r\n  } "4ed6008e";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE89') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de89(src, item, tgt) "e0b2a7ea";\r\n        } "5f78e785";\r\n      } "4b1fc155";\r\n    } "ad230210";\r\n  } "fd95ca9c";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE13') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de13(src, item, tgt) "ca1c2344";\r\n        } "e291ac38";\r\n      } "a3790ce2";\r\n    } "df1da7ee";\r\n  } "db30808b";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE14') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de14(src, item, tgt) "d2d217d7";\r\n        } "71ec8c01";\r\n      } "eec21165";\r\n    } "4bec0867";\r\n  } "b6cebe17";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE15') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de15(src, item, tgt) "d06cdfa3";\r\n        } "78497d5c";\r\n      } "5f0e524b";\r\n    } "84c7d9e0";\r\n  } "5fb77efc";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE94') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de94(src, item, tgt) "fd905dcf";\r\n        } "887a5cf4";\r\n      } "e9cd9662";\r\n    } "d351f4bc";\r\n  } "1277893a";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE98') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectoremcareb23de98(src, item, tgt) "50233ad8";\r\n        } "3c87eb32";\r\n      } "ac7c8731";\r\n    } "18115b63";\r\n  } "a8b5fbe8";\r\n  src where src.item.where(linkId = 'collector').answer.where(value.code = 'collector') then {\r\n    src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Condition/', uuid) "9805d737";\r\n        src -> entry.resource = create('Condition') as tgt then {\r\n          src then emcareconditioncollectorcollector(src, item, tgt) "dee30196";\r\n        } "dbad65ac";\r\n      } "652cfd04";\r\n    } "63e7ab00";\r\n  } "d596b39a";\r\n}\r\n\r\ngroup emcareconditionemcareb23de83(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE83',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "8e761921";\r\n    } "a10c1e7b";\r\n  } "13fd46f9";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de06(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE06',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "dd0fd01c";\r\n    } "8ef845b0";\r\n  } "558d6c0d";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de85(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE85',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "edf923c3";\r\n    } "a2ce3a97";\r\n  } "6f3a3752";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de86(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE86',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "342850aa";\r\n    } "9338b358";\r\n  } "fc719a3c";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de106(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE106',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "70f0a4fa";\r\n    } "d8d6d130";\r\n  } "671ed411";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de87(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE87',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "01f1ca5f";\r\n    } "62727c30";\r\n  } "9ff74c9e";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de88(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE88',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "2803d2d8";\r\n    } "360a74b4";\r\n  } "36ea706b";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de89(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE89',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "d0ba1006";\r\n    } "10f03284";\r\n  } "0d943b47";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de13(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE13',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "0b87b4e7";\r\n    } "6cc1c549";\r\n  } "dc54929c";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de14(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE14',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "c77e81e6";\r\n    } "a3de578a";\r\n  } "d565e84e";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de15(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE15',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "16e4a2c3";\r\n    } "088a39f1";\r\n  } "b194144a";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de94(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE94',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "61234ed0";\r\n    } "ba5673dd";\r\n  } "b957f076";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de98(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE98',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "11d6b9d2";\r\n    } "cbe98666";\r\n  } "98163aba";\r\n  item.answer where value.code = 'agree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'confirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n  } "a8956d4e";\r\n  item.answer where value.code = 'disagree' then {\r\n    src ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'inactive',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n    src ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'refuted',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n  } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de83(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE83',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "8e761921";\r\n    } "a10c1e7b";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "64537b70";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de06(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE06',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "dd0fd01c";\r\n    } "8ef845b0";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "8ede6446";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de85(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE85',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "edf923c3";\r\n    } "a2ce3a97";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "7ab58b18";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de86(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE86',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "342850aa";\r\n    } "9338b358";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "c7e15e0e";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de106(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE106',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "70f0a4fa";\r\n    } "d8d6d130";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "c5746d18";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de87(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE87',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "01f1ca5f";\r\n    } "62727c30";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "8dee988b";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de88(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE88',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "2803d2d8";\r\n    } "360a74b4";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "e6ded7f8";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de89(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE89',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "d0ba1006";\r\n    } "10f03284";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "38f340fb";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de13(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE13',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "0b87b4e7";\r\n    } "6cc1c549";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "39e0fe5e";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de14(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE14',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "c77e81e6";\r\n    } "a3de578a";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "da0791a5";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de15(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE15',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "16e4a2c3";\r\n    } "088a39f1";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "b16e2ac9";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de94(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE94',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "61234ed0";\r\n    } "ba5673dd";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "82182761";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de98(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'EmCare.B23.DE98',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "11d6b9d2";\r\n    } "cbe98666";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "869e7605";\r\n}\r\n\r\ngroup emcareconditioncollectorcollector(source src, source item, target tgt) {\r\n  item.answer first as a then {\r\n    src.subject as sub -> tgt.subject = sub "23252e10";\r\n    src.encounter as en -> tgt.encounter = en "553aae7e";\r\n    src.item as itemtimestamp where linkId = 'timestamp' then {\r\n      itemtimestamp.answer first as atimestamp then {\r\n        atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n      } "46018ce4";\r\n    } "cce2a9b1";\r\n    src -> tgt.code = create('CodeableConcept') as cs then {\r\n      src ->  tgt.code = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'collector',  ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "ab5440b5";\r\n    } "6fc817a4";\r\n    a ->  tgt.clinicalStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'active',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n    a ->  tgt.verificationStatus = create('CodeableConcept') as cs,  cs.coding = create('Coding') as ccs,  ccs.code = 'unconfirmed',  ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n  } "d8e38123";\r\n}\r\n\r\n
" }, - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcare.b23.classification.m", + "url": "https://smart.who.int/ccc/StructureMap/emcare.b23.classification.m", "name": "emcare.b23.classification.m", "status": "active", "structure": [ @@ -20,12 +20,12 @@ "alias": "'Bundle'" }, { - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/condition", + "url": "https://smart.who.int/ccc/StructureDefinition/condition", "mode": "target", "alias": "'Condition'" }, { - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcarecondition", + "url": "https://smart.who.int/ccc/StructureDefinition/emcarecondition", "mode": "produced", "alias": "'EmCare Condition'" } @@ -3858,7 +3858,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -4314,7 +4314,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -4770,7 +4770,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -5226,7 +5226,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -5682,7 +5682,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -6138,7 +6138,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -6594,7 +6594,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -7050,7 +7050,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -7506,7 +7506,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -7962,7 +7962,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -8418,7 +8418,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -8874,7 +8874,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -9330,7 +9330,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -9786,7 +9786,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -10106,7 +10106,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -10426,7 +10426,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -10746,7 +10746,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -11066,7 +11066,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -11386,7 +11386,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -11706,7 +11706,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -12026,7 +12026,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -12346,7 +12346,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -12666,7 +12666,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -12986,7 +12986,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -13306,7 +13306,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -13626,7 +13626,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } @@ -13946,7 +13946,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] } diff --git a/input/resources/structuremap/structuremap-emcare.b6.measurements.json b/input/resources/structuremap/structuremap-emcare.b6.measurements.json index 500d8510..fc87bd77 100644 --- a/input/resources/structuremap/structuremap-emcare.b6.measurements.json +++ b/input/resources/structuremap/structuremap-emcare.b6.measurements.json @@ -3,9 +3,9 @@ "id": "emcare.b6.measurements", "text": { "status": "generated", - "div": "
map "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcare.b6.measurements" = "emcare.b6.measurements"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/observation" alias 'Observation' as target\r\nuses "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" alias 'EmCare Observation' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n  src -> bundle.id = uuid() "id";\r\n  src -> bundle.type = 'batch' "type";\r\n  src.item first as item where (linkId = 'EmCare.B6.DE01') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb6de01(src, tgt) "7b9e1570";\r\n      } "9adbf767";\r\n    } "a36f7a7c";\r\n  } "5af679c2";\r\n  src.item first as item where (linkId = 'EmCare.B6.DE04') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb6de04(src, tgt) "67f4a10a";\r\n      } "0e7daada";\r\n    } "536a3c54";\r\n  } "1e7dc3b3";\r\n  src.item first as item where (linkId = 'EmCare.B6.DE05') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb6de05(src, tgt) "1b781b40";\r\n      } "b078a223";\r\n    } "8261a595";\r\n  } "f69a4aa0";\r\n  src.item first as item where (linkId = 'EmCare.B6.DE01A') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb6de01a(src, tgt) "12e03591";\r\n      } "ce53c93f";\r\n    } "b254b7a3";\r\n  } "75778e5d";\r\n  src.item first as item where (linkId = 'EmCare.B6.DE06') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb6de06(src, tgt) "12cee51c";\r\n      } "2efb0b06";\r\n    } "b561f2d8";\r\n  } "a4bb9383";\r\n  src.item first as item where (linkId = 'EmCare.B6.DE08') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb6de08(src, tgt) "6bb35e76";\r\n      } "eb449882";\r\n    } "e71738d1";\r\n  } "b739680e";\r\n  src.item first as itm1 where linkId = 'HeightOrLength' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B6.DE09') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb6de09(src, tgt) "266493b1";\r\n        } "2f726482";\r\n      } "6e52b729";\r\n    } "8eeae5c7";\r\n  } "b0d72fdc";\r\n  src.item first as itm1 where linkId = 'HeightOrLength' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B6.DE11') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb6de11(src, tgt) "561b6a20";\r\n        } "e820b17c";\r\n      } "083c0960";\r\n    } "89d9cbf4";\r\n  } "407446d8";\r\n  src.item first as itm1 where linkId = 'HeightOrLength' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B6.DE12') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb6de12(src, tgt) "68ca10f0";\r\n        } "c5484336";\r\n      } "36f4bed7";\r\n    } "af843ed1";\r\n  } "3eece966";\r\n  src.item first as itm1 where linkId = 'HeightOrLength' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B6.DE16') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb6de16(src, tgt) "e096bb18";\r\n        } "bd26fdf7";\r\n      } "6699c1df";\r\n    } "22423885";\r\n  } "f65b099d";\r\n  src.item first as itm1 where linkId = 'HeightOrLength' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B6.DE17') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb6de17(src, tgt) "ba2a3c82";\r\n        } "e7d4b396";\r\n      } "5b9abbd1";\r\n    } "69c61b5c";\r\n  } "ec872a8f";\r\n  src.item first as itm1 where linkId = 'HeightOrLength' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B6.DE17a') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb6de17a(src, tgt) "7bc3b5ea";\r\n        } "5622cb01";\r\n      } "d4830ac3";\r\n    } "75bc4091";\r\n  } "40e94db6";\r\n  src.item first as itm1 where linkId = 'HeightOrLength' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B6.DE18') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb6de18(src, tgt) "307489c1";\r\n        } "e8491d3e";\r\n      } "9e7c1f1c";\r\n    } "4570d962";\r\n  } "f83a9a0e";\r\n}\r\n\r\ngroup emcareobservationemcareb6de01(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb6de01";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B6.DE01' "code-emcareb6de01";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B6.DE01') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val ->  tgt.value = val,  tgt.status = 'final' "afa0ccc0";\r\n    } "d40466ff";\r\n  } "74f627a9";\r\n}\r\n\r\ngroup emcareobservationemcareb6de04(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb6de04";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B6.DE04' "code-emcareb6de04";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B6.DE04') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'true' ->  tgt.status = 'final',  tgt.value = true "8a65aaa5";\r\n      } "26c2c8c7";\r\n    } "721205d5";\r\n  } "a27d71d0";\r\n}\r\n\r\ngroup emcareobservationemcareb6de05(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb6de05";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B6.DE05' "code-emcareb6de05";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B6.DE05') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb6de05";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb6de05";\r\n    } "bdab9370";\r\n  } "fe4a3fce";\r\n}\r\n\r\ngroup emcareobservationemcareb6de01a(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb6de01a";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B6.DE01A' "code-emcareb6de01a";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B6.DE01A') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = create('Coding') as c,  c.code = val,  c.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  tgt.status = 'final' "759a9a54";\r\n      } "1b820ab0";\r\n    } "d39f9088";\r\n  } "a471ce48";\r\n}\r\n\r\ngroup emcareobservationemcareb6de06(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb6de06";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B6.DE06' "code-emcareb6de06";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B6.DE06') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val ->  tgt.value = val,  tgt.status = 'final' "afa0ccc0";\r\n    } "d40466ff";\r\n  } "39925fe2";\r\n}\r\n\r\ngroup emcareobservationemcareb6de08(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb6de08";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B6.DE08' "code-emcareb6de08";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B6.DE08') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val ->  tgt.value = val,  tgt.status = 'final' "afa0ccc0";\r\n    } "d40466ff";\r\n  } "dc896557";\r\n}\r\n\r\ngroup emcareobservationemcareb6de09(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb6de09";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B6.DE09' "code-emcareb6de09";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'HeightOrLength' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B6.DE09') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val ->  tgt.value = val,  tgt.status = 'final' "afa0ccc0";\r\n      } "d40466ff";\r\n    } "589bbaf1";\r\n  } "a045bbd4";\r\n}\r\n\r\ngroup emcareobservationemcareb6de11(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb6de11";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B6.DE11' "code-emcareb6de11";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'HeightOrLength' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B6.DE11') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val then {\r\n          val where val.code = 'true' ->  tgt.status = 'final',  tgt.value = true "8a65aaa5";\r\n        } "26c2c8c7";\r\n      } "721205d5";\r\n    } "d64ae780";\r\n  } "9a6a0b00";\r\n}\r\n\r\ngroup emcareobservationemcareb6de12(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb6de12";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B6.DE12' "code-emcareb6de12";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'HeightOrLength' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B6.DE12') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val ->  tgt.value = val,  tgt.status = 'final' "afa0ccc0";\r\n      } "d40466ff";\r\n    } "c68f5944";\r\n  } "145f1ff6";\r\n}\r\n\r\ngroup emcareobservationemcareb6de16(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb6de16";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B6.DE16' "code-emcareb6de16";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'HeightOrLength' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B6.DE16') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb6de16";\r\n        a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb6de16";\r\n      } "bdab9370";\r\n    } "c4642432";\r\n  } "8e8f1cd4";\r\n}\r\n\r\ngroup emcareobservationemcareb6de17(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb6de17";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B6.DE17' "code-emcareb6de17";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'HeightOrLength' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B6.DE17') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val ->  tgt.value = val,  tgt.status = 'final' "afa0ccc0";\r\n      } "d40466ff";\r\n    } "66a9743a";\r\n  } "b27154a0";\r\n}\r\n\r\ngroup emcareobservationemcareb6de17a(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb6de17a";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B6.DE17a' "code-emcareb6de17a";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'HeightOrLength' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B6.DE17a') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val then {\r\n          val where val.code = 'true' ->  tgt.status = 'final',  tgt.value = true "8a65aaa5";\r\n        } "26c2c8c7";\r\n      } "721205d5";\r\n    } "a25ca60a";\r\n  } "04002c97";\r\n}\r\n\r\ngroup emcareobservationemcareb6de18(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb6de18";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B6.DE18' "code-emcareb6de18";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'HeightOrLength' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B6.DE18') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val then {\r\n          val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n          val where val.code != 'none' ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' "a1050460";\r\n        } "310f4b1f";\r\n      } "6af9bfcc";\r\n    } "a14ebcf7";\r\n  } "72053a9a";\r\n}\r\n\r\n
" + "div": "
map "https://smart.who.int/ccc/StructureMap/emcare.b6.measurements" = "emcare.b6.measurements"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/observation" alias 'Observation' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/emcareobservation" alias 'EmCare Observation' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n  src -> bundle.id = uuid() "id";\r\n  src -> bundle.type = 'batch' "type";\r\n  src.item first as item where (linkId = 'EmCare.B6.DE01') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb6de01(src, tgt) "7b9e1570";\r\n      } "9adbf767";\r\n    } "a36f7a7c";\r\n  } "5af679c2";\r\n  src.item first as item where (linkId = 'EmCare.B6.DE04') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb6de04(src, tgt) "67f4a10a";\r\n      } "0e7daada";\r\n    } "536a3c54";\r\n  } "1e7dc3b3";\r\n  src.item first as item where (linkId = 'EmCare.B6.DE05') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb6de05(src, tgt) "1b781b40";\r\n      } "b078a223";\r\n    } "8261a595";\r\n  } "f69a4aa0";\r\n  src.item first as item where (linkId = 'EmCare.B6.DE01A') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb6de01a(src, tgt) "12e03591";\r\n      } "ce53c93f";\r\n    } "b254b7a3";\r\n  } "75778e5d";\r\n  src.item first as item where (linkId = 'EmCare.B6.DE06') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb6de06(src, tgt) "12cee51c";\r\n      } "2efb0b06";\r\n    } "b561f2d8";\r\n  } "a4bb9383";\r\n  src.item first as item where (linkId = 'EmCare.B6.DE08') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb6de08(src, tgt) "6bb35e76";\r\n      } "eb449882";\r\n    } "e71738d1";\r\n  } "b739680e";\r\n  src.item first as itm1 where linkId = 'HeightOrLength' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B6.DE09') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb6de09(src, tgt) "266493b1";\r\n        } "2f726482";\r\n      } "6e52b729";\r\n    } "8eeae5c7";\r\n  } "b0d72fdc";\r\n  src.item first as itm1 where linkId = 'HeightOrLength' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B6.DE11') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb6de11(src, tgt) "561b6a20";\r\n        } "e820b17c";\r\n      } "083c0960";\r\n    } "89d9cbf4";\r\n  } "407446d8";\r\n  src.item first as itm1 where linkId = 'HeightOrLength' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B6.DE12') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb6de12(src, tgt) "68ca10f0";\r\n        } "c5484336";\r\n      } "36f4bed7";\r\n    } "af843ed1";\r\n  } "3eece966";\r\n  src.item first as itm1 where linkId = 'HeightOrLength' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B6.DE16') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb6de16(src, tgt) "e096bb18";\r\n        } "bd26fdf7";\r\n      } "6699c1df";\r\n    } "22423885";\r\n  } "f65b099d";\r\n  src.item first as itm1 where linkId = 'HeightOrLength' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B6.DE17') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb6de17(src, tgt) "ba2a3c82";\r\n        } "e7d4b396";\r\n      } "5b9abbd1";\r\n    } "69c61b5c";\r\n  } "ec872a8f";\r\n  src.item first as itm1 where linkId = 'HeightOrLength' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B6.DE17a') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb6de17a(src, tgt) "7bc3b5ea";\r\n        } "5622cb01";\r\n      } "d4830ac3";\r\n    } "75bc4091";\r\n  } "40e94db6";\r\n  src.item first as itm1 where linkId = 'HeightOrLength' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B6.DE18') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb6de18(src, tgt) "307489c1";\r\n        } "e8491d3e";\r\n      } "9e7c1f1c";\r\n    } "4570d962";\r\n  } "f83a9a0e";\r\n}\r\n\r\ngroup emcareobservationemcareb6de01(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb6de01";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B6.DE01' "code-emcareb6de01";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B6.DE01') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val ->  tgt.value = val,  tgt.status = 'final' "afa0ccc0";\r\n    } "d40466ff";\r\n  } "74f627a9";\r\n}\r\n\r\ngroup emcareobservationemcareb6de04(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb6de04";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B6.DE04' "code-emcareb6de04";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B6.DE04') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'true' ->  tgt.status = 'final',  tgt.value = true "8a65aaa5";\r\n      } "26c2c8c7";\r\n    } "721205d5";\r\n  } "a27d71d0";\r\n}\r\n\r\ngroup emcareobservationemcareb6de05(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb6de05";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B6.DE05' "code-emcareb6de05";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B6.DE05') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb6de05";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb6de05";\r\n    } "bdab9370";\r\n  } "fe4a3fce";\r\n}\r\n\r\ngroup emcareobservationemcareb6de01a(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb6de01a";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B6.DE01A' "code-emcareb6de01a";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B6.DE01A') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = create('Coding') as c,  c.code = val,  c.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  tgt.status = 'final' "759a9a54";\r\n      } "1b820ab0";\r\n    } "d39f9088";\r\n  } "a471ce48";\r\n}\r\n\r\ngroup emcareobservationemcareb6de06(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb6de06";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B6.DE06' "code-emcareb6de06";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B6.DE06') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val ->  tgt.value = val,  tgt.status = 'final' "afa0ccc0";\r\n    } "d40466ff";\r\n  } "39925fe2";\r\n}\r\n\r\ngroup emcareobservationemcareb6de08(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb6de08";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B6.DE08' "code-emcareb6de08";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B6.DE08') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val ->  tgt.value = val,  tgt.status = 'final' "afa0ccc0";\r\n    } "d40466ff";\r\n  } "dc896557";\r\n}\r\n\r\ngroup emcareobservationemcareb6de09(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb6de09";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B6.DE09' "code-emcareb6de09";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'HeightOrLength' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B6.DE09') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val ->  tgt.value = val,  tgt.status = 'final' "afa0ccc0";\r\n      } "d40466ff";\r\n    } "589bbaf1";\r\n  } "a045bbd4";\r\n}\r\n\r\ngroup emcareobservationemcareb6de11(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb6de11";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B6.DE11' "code-emcareb6de11";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'HeightOrLength' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B6.DE11') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val then {\r\n          val where val.code = 'true' ->  tgt.status = 'final',  tgt.value = true "8a65aaa5";\r\n        } "26c2c8c7";\r\n      } "721205d5";\r\n    } "d64ae780";\r\n  } "9a6a0b00";\r\n}\r\n\r\ngroup emcareobservationemcareb6de12(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb6de12";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B6.DE12' "code-emcareb6de12";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'HeightOrLength' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B6.DE12') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val ->  tgt.value = val,  tgt.status = 'final' "afa0ccc0";\r\n      } "d40466ff";\r\n    } "c68f5944";\r\n  } "145f1ff6";\r\n}\r\n\r\ngroup emcareobservationemcareb6de16(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb6de16";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B6.DE16' "code-emcareb6de16";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'HeightOrLength' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B6.DE16') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb6de16";\r\n        a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb6de16";\r\n      } "bdab9370";\r\n    } "c4642432";\r\n  } "8e8f1cd4";\r\n}\r\n\r\ngroup emcareobservationemcareb6de17(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb6de17";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B6.DE17' "code-emcareb6de17";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'HeightOrLength' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B6.DE17') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val ->  tgt.value = val,  tgt.status = 'final' "afa0ccc0";\r\n      } "d40466ff";\r\n    } "66a9743a";\r\n  } "b27154a0";\r\n}\r\n\r\ngroup emcareobservationemcareb6de17a(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb6de17a";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B6.DE17a' "code-emcareb6de17a";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'HeightOrLength' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B6.DE17a') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val then {\r\n          val where val.code = 'true' ->  tgt.status = 'final',  tgt.value = true "8a65aaa5";\r\n        } "26c2c8c7";\r\n      } "721205d5";\r\n    } "a25ca60a";\r\n  } "04002c97";\r\n}\r\n\r\ngroup emcareobservationemcareb6de18(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb6de18";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B6.DE18' "code-emcareb6de18";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'HeightOrLength' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B6.DE18') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val then {\r\n          val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n          val where val.code != 'none' ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' "a1050460";\r\n        } "310f4b1f";\r\n      } "6af9bfcc";\r\n    } "a14ebcf7";\r\n  } "72053a9a";\r\n}\r\n\r\n
" }, - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcare.b6.measurements", + "url": "https://smart.who.int/ccc/StructureMap/emcare.b6.measurements", "name": "emcare.b6.measurements", "status": "active", "structure": [ @@ -20,12 +20,12 @@ "alias": "'Bundle'" }, { - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/observation", + "url": "https://smart.who.int/ccc/StructureDefinition/observation", "mode": "target", "alias": "'Observation'" }, { - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation", + "url": "https://smart.who.int/ccc/StructureDefinition/emcareobservation", "mode": "produced", "alias": "'EmCare Observation'" } @@ -2012,7 +2012,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -2047,7 +2047,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -2337,7 +2337,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -2372,7 +2372,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -2673,7 +2673,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -2708,7 +2708,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -3030,7 +3030,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -3065,7 +3065,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -3237,7 +3237,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -3400,7 +3400,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -3435,7 +3435,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -3725,7 +3725,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -3760,7 +3760,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -4050,7 +4050,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -4085,7 +4085,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -4389,7 +4389,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -4424,7 +4424,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -4739,7 +4739,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -4774,7 +4774,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -5078,7 +5078,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -5113,7 +5113,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -5449,7 +5449,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -5484,7 +5484,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -5788,7 +5788,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -5823,7 +5823,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -6138,7 +6138,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -6173,7 +6173,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, diff --git a/input/resources/structuremap/structuremap-emcare.b7.lti-dangersigns.json b/input/resources/structuremap/structuremap-emcare.b7.lti-dangersigns.json index 518363db..ad64e6bb 100644 --- a/input/resources/structuremap/structuremap-emcare.b7.lti-dangersigns.json +++ b/input/resources/structuremap/structuremap-emcare.b7.lti-dangersigns.json @@ -3,9 +3,9 @@ "id": "emcare.b7.lti-dangersigns", "text": { "status": "generated", - "div": "
map "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcare.b7.lti-dangersigns" = "emcare.b7.lti-dangersigns"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/observation" alias 'Observation' as target\r\nuses "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" alias 'EmCare Observation' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n  src -> bundle.id = uuid() "id";\r\n  src -> bundle.type = 'batch' "type";\r\n  src.item first as item where (linkId = 'EmCare.B7.DE02') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb7de02(src, tgt) "004b4d1e";\r\n      } "92e7f5f9";\r\n    } "402826af";\r\n  } "8c26175a";\r\n  src.item first as item where (linkId = 'EmCare.B7-B8-B9.DE01') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb7b8b9de01(src, tgt) "ff2fa2ef";\r\n      } "a8c4cecd";\r\n    } "cab32791";\r\n  } "8f0ade51";\r\n  src.item first as itm1 where linkId = 'stable-child' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B7.DE03') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb7de03(src, tgt) "f2e89805";\r\n        } "8dded58a";\r\n      } "6d815194";\r\n    } "b1580360";\r\n  } "f9ff931c";\r\n  src.item first as itm1 where linkId = 'stable-child' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B7.DE08b') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb7de08b(src, tgt) "7c424dce";\r\n        } "090c71e8";\r\n      } "366ba7ba";\r\n    } "65aaf8e5";\r\n  } "340cad6a";\r\n  src.item first as itm1 where linkId = 'stable-child' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B7.DE08') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb7de08(src, tgt) "279d6969";\r\n        } "20cc88b6";\r\n      } "3f40ba3d";\r\n    } "350d6fc4";\r\n  } "eaa550b2";\r\n  src.item first as itm1 where linkId = 'stable-child' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B7.DE08a') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb7de08a(src, tgt) "d2861aff";\r\n        } "7be6660a";\r\n      } "bd06a10d";\r\n    } "1343a39a";\r\n  } "d8ac86b0";\r\n  src.item first as itm1 where linkId = 'stable-child' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B7.DE09') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb7de09(src, tgt) "3f6a9726";\r\n        } "2c4ac41f";\r\n      } "98869034";\r\n    } "0ea146b2";\r\n  } "dd9b5c52";\r\n  src.item first as itm1 where linkId = 'stable-child' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B7.DE10') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb7de10(src, tgt) "1fe53b0d";\r\n        } "0fb952bc";\r\n      } "980ae740";\r\n    } "5b813bca";\r\n  } "492052bb";\r\n  src.item first as itm1 where linkId = 'stable-child' then {\r\n    itm1.item first as itm2 where linkId = 'EmCare.B22.FluidTest' then {\r\n      itm2.item first as item where (linkId = 'EmCare.B22.DE08') and answer.exists() then {\r\n        src -> bundle.entry as entry then {\r\n          src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n          src -> entry.resource = create('Observation') as tgt then {\r\n            src -> tgt then emcareobservationemcareb22de08(src, tgt) "d34db40c";\r\n          } "bd8403a6";\r\n        } "09eb3e1a";\r\n      } "5b2cdf2b";\r\n    } "147ec831";\r\n  } "e1f072a2";\r\n  src.item first as itm1 where linkId = 'stable-child' then {\r\n    itm1.item first as itm2 where linkId = 'EmCare.B22.FluidTest' then {\r\n      itm2.item first as item where (linkId = 'EmCare.B22.DE14') and answer.exists() then {\r\n        src -> bundle.entry as entry then {\r\n          src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n          src -> entry.resource = create('Observation') as tgt then {\r\n            src -> tgt then emcareobservationemcareb22de14(src, tgt) "128f555c";\r\n          } "2cba61ee";\r\n        } "1eb502ac";\r\n      } "9758fd8e";\r\n    } "680dcb34";\r\n  } "8bc21454";\r\n  src.item first as itm1 where linkId = 'stable-child' then {\r\n    itm1.item first as itm2 where linkId = 'EmCare.B22.FluidTest' then {\r\n      itm2.item first as item where (linkId = 'EmCare.B22.DE14a') and answer.exists() then {\r\n        src -> bundle.entry as entry then {\r\n          src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n          src -> entry.resource = create('Observation') as tgt then {\r\n            src -> tgt then emcareobservationemcareb22de14a(src, tgt) "7b46291c";\r\n          } "17f1508c";\r\n        } "64f82f5e";\r\n      } "d955cd1e";\r\n    } "29fc59e7";\r\n  } "5a220c96";\r\n  src.item first as itm1 where linkId = 'stable-child' then {\r\n    itm1.item first as itm2 where linkId = 'EmCare.B22.FluidTest' then {\r\n      itm2.item first as item where (linkId = 'EmCare.B22.DE15') and answer.exists() then {\r\n        src -> bundle.entry as entry then {\r\n          src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n          src -> entry.resource = create('Observation') as tgt then {\r\n            src -> tgt then emcareobservationemcareb22de15(src, tgt) "0d25d61c";\r\n          } "49095bbf";\r\n        } "7ffa5829";\r\n      } "408d099b";\r\n    } "f64298f5";\r\n  } "28f93c51";\r\n  src.item first as itm1 where linkId = 'stable-child' then {\r\n    itm1.item first as itm2 where linkId = 'EmCare.B22.FluidTest' then {\r\n      itm2.item first as item where (linkId = 'EmCare.B22.DE16') and answer.exists() then {\r\n        src -> bundle.entry as entry then {\r\n          src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n          src -> entry.resource = create('Observation') as tgt then {\r\n            src -> tgt then emcareobservationemcareb22de16(src, tgt) "2bef72fa";\r\n          } "f426fdde";\r\n        } "f53bf22c";\r\n      } "756331ed";\r\n    } "bc80f5f5";\r\n  } "0636116b";\r\n}\r\n\r\ngroup emcareobservationemcareb7de02(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb7de02";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B7.DE02' "code-emcareb7de02";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B7.DE02') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb7de02";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb7de02";\r\n    } "bdab9370";\r\n  } "25c89b41";\r\n}\r\n\r\ngroup emcareobservationemcareb7b8b9de01(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb7b8b9de01";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B7-B8-B9.DE01' "code-emcareb7b8b9de01";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B7-B8-B9.DE01') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n        val where val.code != 'none' ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' "a1050460";\r\n      } "310f4b1f";\r\n    } "6af9bfcc";\r\n  } "1deb5925";\r\n}\r\n\r\ngroup emcareobservationemcareb7de03(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb7de03";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B7.DE03' "code-emcareb7de03";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'stable-child' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B7.DE03') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb7de03";\r\n        a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb7de03";\r\n      } "bdab9370";\r\n    } "a2c65533";\r\n  } "06440f2e";\r\n}\r\n\r\ngroup emcareobservationemcareb7de08b(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb7de08b";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B7.DE08b' "code-emcareb7de08b";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'stable-child' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B7.DE08b') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb7de08b";\r\n        a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb7de08b";\r\n      } "bdab9370";\r\n    } "9b1cc305";\r\n  } "5c09828f";\r\n}\r\n\r\ngroup emcareobservationemcareb7de08(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb7de08";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B7.DE08' "code-emcareb7de08";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'stable-child' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B7.DE08') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb7de08";\r\n        a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb7de08";\r\n      } "bdab9370";\r\n    } "2bfe418a";\r\n  } "899ae4be";\r\n}\r\n\r\ngroup emcareobservationemcareb7de08a(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb7de08a";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B7.DE08a' "code-emcareb7de08a";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'stable-child' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B7.DE08a') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb7de08a";\r\n        a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb7de08a";\r\n      } "bdab9370";\r\n    } "f01cf4cb";\r\n  } "dffa204b";\r\n}\r\n\r\ngroup emcareobservationemcareb7de09(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb7de09";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B7.DE09' "code-emcareb7de09";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'stable-child' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B7.DE09') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb7de09";\r\n        a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb7de09";\r\n      } "bdab9370";\r\n    } "d2857a7f";\r\n  } "9311a6c3";\r\n}\r\n\r\ngroup emcareobservationemcareb7de10(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb7de10";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B7.DE10' "code-emcareb7de10";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'stable-child' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B7.DE10') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb7de10";\r\n        a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb7de10";\r\n      } "bdab9370";\r\n    } "86a60301";\r\n  } "d7b8fbb0";\r\n}\r\n\r\ngroup emcareobservationemcareb22de08(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de08";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE08' "code-emcareb22de08";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'stable-child' then {\r\n    itm1.item first as itm2 where linkId = 'EmCare.B22.FluidTest' then {\r\n      itm2.item first as item where (linkId = 'EmCare.B22.DE08') and answer.exists() then {\r\n        item.answer first as a then {\r\n          a.value as val then {\r\n            val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n            val where val.code != 'none' ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' "a1050460";\r\n          } "310f4b1f";\r\n        } "6af9bfcc";\r\n      } "217a0abc";\r\n    } "1ebe5f9b";\r\n  } "4113c5c7";\r\n}\r\n\r\ngroup emcareobservationemcareb22de14(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de14";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE14' "code-emcareb22de14";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'stable-child' then {\r\n    itm1.item first as itm2 where linkId = 'EmCare.B22.FluidTest' then {\r\n      itm2.item first as item where (linkId = 'EmCare.B22.DE14') and answer.exists() then {\r\n        item.answer first as a then {\r\n          a.value as val then {\r\n            val where val.code = 'true' ->  tgt.status = 'final',  tgt.value = true "8a65aaa5";\r\n          } "26c2c8c7";\r\n        } "721205d5";\r\n      } "b72aac92";\r\n    } "e7d47de7";\r\n  } "0204726e";\r\n}\r\n\r\ngroup emcareobservationemcareb22de14a(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de14a";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE14a' "code-emcareb22de14a";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'stable-child' then {\r\n    itm1.item first as itm2 where linkId = 'EmCare.B22.FluidTest' then {\r\n      itm2.item first as item where (linkId = 'EmCare.B22.DE14a') and answer.exists() then {\r\n        item.answer first as a then {\r\n          a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb22de14a";\r\n          a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb22de14a";\r\n        } "bdab9370";\r\n      } "120b0bc5";\r\n    } "ffa20ee2";\r\n  } "e1505882";\r\n}\r\n\r\ngroup emcareobservationemcareb22de15(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de15";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE15' "code-emcareb22de15";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'stable-child' then {\r\n    itm1.item first as itm2 where linkId = 'EmCare.B22.FluidTest' then {\r\n      itm2.item first as item where (linkId = 'EmCare.B22.DE15') and answer.exists() then {\r\n        item.answer first as a then {\r\n          a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb22de15";\r\n          a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb22de15";\r\n        } "bdab9370";\r\n      } "f886f65c";\r\n    } "0ff7ff35";\r\n  } "455546fc";\r\n}\r\n\r\ngroup emcareobservationemcareb22de16(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de16";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE16' "code-emcareb22de16";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'stable-child' then {\r\n    itm1.item first as itm2 where linkId = 'EmCare.B22.FluidTest' then {\r\n      itm2.item first as item where (linkId = 'EmCare.B22.DE16') and answer.exists() then {\r\n        item.answer first as a then {\r\n          a.value as val then {\r\n            val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n            val where val.code != 'none' ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' "a1050460";\r\n          } "310f4b1f";\r\n        } "6af9bfcc";\r\n      } "56e7c54b";\r\n    } "270c6d04";\r\n  } "1b98a048";\r\n}\r\n\r\n
" + "div": "
map "https://smart.who.int/ccc/StructureMap/emcare.b7.lti-dangersigns" = "emcare.b7.lti-dangersigns"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/observation" alias 'Observation' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/emcareobservation" alias 'EmCare Observation' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n  src -> bundle.id = uuid() "id";\r\n  src -> bundle.type = 'batch' "type";\r\n  src.item first as item where (linkId = 'EmCare.B7.DE02') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb7de02(src, tgt) "004b4d1e";\r\n      } "92e7f5f9";\r\n    } "402826af";\r\n  } "8c26175a";\r\n  src.item first as item where (linkId = 'EmCare.B7-B8-B9.DE01') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb7b8b9de01(src, tgt) "ff2fa2ef";\r\n      } "a8c4cecd";\r\n    } "cab32791";\r\n  } "8f0ade51";\r\n  src.item first as itm1 where linkId = 'stable-child' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B7.DE03') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb7de03(src, tgt) "f2e89805";\r\n        } "8dded58a";\r\n      } "6d815194";\r\n    } "b1580360";\r\n  } "f9ff931c";\r\n  src.item first as itm1 where linkId = 'stable-child' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B7.DE08b') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb7de08b(src, tgt) "7c424dce";\r\n        } "090c71e8";\r\n      } "366ba7ba";\r\n    } "65aaf8e5";\r\n  } "340cad6a";\r\n  src.item first as itm1 where linkId = 'stable-child' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B7.DE08') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb7de08(src, tgt) "279d6969";\r\n        } "20cc88b6";\r\n      } "3f40ba3d";\r\n    } "350d6fc4";\r\n  } "eaa550b2";\r\n  src.item first as itm1 where linkId = 'stable-child' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B7.DE08a') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb7de08a(src, tgt) "d2861aff";\r\n        } "7be6660a";\r\n      } "bd06a10d";\r\n    } "1343a39a";\r\n  } "d8ac86b0";\r\n  src.item first as itm1 where linkId = 'stable-child' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B7.DE09') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb7de09(src, tgt) "3f6a9726";\r\n        } "2c4ac41f";\r\n      } "98869034";\r\n    } "0ea146b2";\r\n  } "dd9b5c52";\r\n  src.item first as itm1 where linkId = 'stable-child' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B7.DE10') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n        src -> entry.resource = create('Observation') as tgt then {\r\n          src -> tgt then emcareobservationemcareb7de10(src, tgt) "1fe53b0d";\r\n        } "0fb952bc";\r\n      } "980ae740";\r\n    } "5b813bca";\r\n  } "492052bb";\r\n  src.item first as itm1 where linkId = 'stable-child' then {\r\n    itm1.item first as itm2 where linkId = 'EmCare.B22.FluidTest' then {\r\n      itm2.item first as item where (linkId = 'EmCare.B22.DE08') and answer.exists() then {\r\n        src -> bundle.entry as entry then {\r\n          src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n          src -> entry.resource = create('Observation') as tgt then {\r\n            src -> tgt then emcareobservationemcareb22de08(src, tgt) "d34db40c";\r\n          } "bd8403a6";\r\n        } "09eb3e1a";\r\n      } "5b2cdf2b";\r\n    } "147ec831";\r\n  } "e1f072a2";\r\n  src.item first as itm1 where linkId = 'stable-child' then {\r\n    itm1.item first as itm2 where linkId = 'EmCare.B22.FluidTest' then {\r\n      itm2.item first as item where (linkId = 'EmCare.B22.DE14') and answer.exists() then {\r\n        src -> bundle.entry as entry then {\r\n          src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n          src -> entry.resource = create('Observation') as tgt then {\r\n            src -> tgt then emcareobservationemcareb22de14(src, tgt) "128f555c";\r\n          } "2cba61ee";\r\n        } "1eb502ac";\r\n      } "9758fd8e";\r\n    } "680dcb34";\r\n  } "8bc21454";\r\n  src.item first as itm1 where linkId = 'stable-child' then {\r\n    itm1.item first as itm2 where linkId = 'EmCare.B22.FluidTest' then {\r\n      itm2.item first as item where (linkId = 'EmCare.B22.DE14a') and answer.exists() then {\r\n        src -> bundle.entry as entry then {\r\n          src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n          src -> entry.resource = create('Observation') as tgt then {\r\n            src -> tgt then emcareobservationemcareb22de14a(src, tgt) "7b46291c";\r\n          } "17f1508c";\r\n        } "64f82f5e";\r\n      } "d955cd1e";\r\n    } "29fc59e7";\r\n  } "5a220c96";\r\n  src.item first as itm1 where linkId = 'stable-child' then {\r\n    itm1.item first as itm2 where linkId = 'EmCare.B22.FluidTest' then {\r\n      itm2.item first as item where (linkId = 'EmCare.B22.DE15') and answer.exists() then {\r\n        src -> bundle.entry as entry then {\r\n          src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n          src -> entry.resource = create('Observation') as tgt then {\r\n            src -> tgt then emcareobservationemcareb22de15(src, tgt) "0d25d61c";\r\n          } "49095bbf";\r\n        } "7ffa5829";\r\n      } "408d099b";\r\n    } "f64298f5";\r\n  } "28f93c51";\r\n  src.item first as itm1 where linkId = 'stable-child' then {\r\n    itm1.item first as itm2 where linkId = 'EmCare.B22.FluidTest' then {\r\n      itm2.item first as item where (linkId = 'EmCare.B22.DE16') and answer.exists() then {\r\n        src -> bundle.entry as entry then {\r\n          src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n          src -> entry.resource = create('Observation') as tgt then {\r\n            src -> tgt then emcareobservationemcareb22de16(src, tgt) "2bef72fa";\r\n          } "f426fdde";\r\n        } "f53bf22c";\r\n      } "756331ed";\r\n    } "bc80f5f5";\r\n  } "0636116b";\r\n}\r\n\r\ngroup emcareobservationemcareb7de02(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb7de02";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B7.DE02' "code-emcareb7de02";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B7.DE02') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb7de02";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb7de02";\r\n    } "bdab9370";\r\n  } "25c89b41";\r\n}\r\n\r\ngroup emcareobservationemcareb7b8b9de01(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb7b8b9de01";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B7-B8-B9.DE01' "code-emcareb7b8b9de01";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B7-B8-B9.DE01') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n        val where val.code != 'none' ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' "a1050460";\r\n      } "310f4b1f";\r\n    } "6af9bfcc";\r\n  } "1deb5925";\r\n}\r\n\r\ngroup emcareobservationemcareb7de03(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb7de03";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B7.DE03' "code-emcareb7de03";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'stable-child' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B7.DE03') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb7de03";\r\n        a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb7de03";\r\n      } "bdab9370";\r\n    } "a2c65533";\r\n  } "06440f2e";\r\n}\r\n\r\ngroup emcareobservationemcareb7de08b(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb7de08b";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B7.DE08b' "code-emcareb7de08b";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'stable-child' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B7.DE08b') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb7de08b";\r\n        a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb7de08b";\r\n      } "bdab9370";\r\n    } "9b1cc305";\r\n  } "5c09828f";\r\n}\r\n\r\ngroup emcareobservationemcareb7de08(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb7de08";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B7.DE08' "code-emcareb7de08";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'stable-child' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B7.DE08') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb7de08";\r\n        a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb7de08";\r\n      } "bdab9370";\r\n    } "2bfe418a";\r\n  } "899ae4be";\r\n}\r\n\r\ngroup emcareobservationemcareb7de08a(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb7de08a";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B7.DE08a' "code-emcareb7de08a";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'stable-child' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B7.DE08a') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb7de08a";\r\n        a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb7de08a";\r\n      } "bdab9370";\r\n    } "f01cf4cb";\r\n  } "dffa204b";\r\n}\r\n\r\ngroup emcareobservationemcareb7de09(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb7de09";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B7.DE09' "code-emcareb7de09";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'stable-child' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B7.DE09') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb7de09";\r\n        a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb7de09";\r\n      } "bdab9370";\r\n    } "d2857a7f";\r\n  } "9311a6c3";\r\n}\r\n\r\ngroup emcareobservationemcareb7de10(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb7de10";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B7.DE10' "code-emcareb7de10";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'stable-child' then {\r\n    itm1.item first as item where (linkId = 'EmCare.B7.DE10') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb7de10";\r\n        a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb7de10";\r\n      } "bdab9370";\r\n    } "86a60301";\r\n  } "d7b8fbb0";\r\n}\r\n\r\ngroup emcareobservationemcareb22de08(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de08";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE08' "code-emcareb22de08";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'stable-child' then {\r\n    itm1.item first as itm2 where linkId = 'EmCare.B22.FluidTest' then {\r\n      itm2.item first as item where (linkId = 'EmCare.B22.DE08') and answer.exists() then {\r\n        item.answer first as a then {\r\n          a.value as val then {\r\n            val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n            val where val.code != 'none' ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' "a1050460";\r\n          } "310f4b1f";\r\n        } "6af9bfcc";\r\n      } "217a0abc";\r\n    } "1ebe5f9b";\r\n  } "4113c5c7";\r\n}\r\n\r\ngroup emcareobservationemcareb22de14(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de14";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE14' "code-emcareb22de14";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'stable-child' then {\r\n    itm1.item first as itm2 where linkId = 'EmCare.B22.FluidTest' then {\r\n      itm2.item first as item where (linkId = 'EmCare.B22.DE14') and answer.exists() then {\r\n        item.answer first as a then {\r\n          a.value as val then {\r\n            val where val.code = 'true' ->  tgt.status = 'final',  tgt.value = true "8a65aaa5";\r\n          } "26c2c8c7";\r\n        } "721205d5";\r\n      } "b72aac92";\r\n    } "e7d47de7";\r\n  } "0204726e";\r\n}\r\n\r\ngroup emcareobservationemcareb22de14a(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de14a";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE14a' "code-emcareb22de14a";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'stable-child' then {\r\n    itm1.item first as itm2 where linkId = 'EmCare.B22.FluidTest' then {\r\n      itm2.item first as item where (linkId = 'EmCare.B22.DE14a') and answer.exists() then {\r\n        item.answer first as a then {\r\n          a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb22de14a";\r\n          a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb22de14a";\r\n        } "bdab9370";\r\n      } "120b0bc5";\r\n    } "ffa20ee2";\r\n  } "e1505882";\r\n}\r\n\r\ngroup emcareobservationemcareb22de15(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de15";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE15' "code-emcareb22de15";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'stable-child' then {\r\n    itm1.item first as itm2 where linkId = 'EmCare.B22.FluidTest' then {\r\n      itm2.item first as item where (linkId = 'EmCare.B22.DE15') and answer.exists() then {\r\n        item.answer first as a then {\r\n          a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb22de15";\r\n          a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb22de15";\r\n        } "bdab9370";\r\n      } "f886f65c";\r\n    } "0ff7ff35";\r\n  } "455546fc";\r\n}\r\n\r\ngroup emcareobservationemcareb22de16(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb22de16";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B22.DE16' "code-emcareb22de16";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as itm1 where linkId = 'stable-child' then {\r\n    itm1.item first as itm2 where linkId = 'EmCare.B22.FluidTest' then {\r\n      itm2.item first as item where (linkId = 'EmCare.B22.DE16') and answer.exists() then {\r\n        item.answer first as a then {\r\n          a.value as val then {\r\n            val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n            val where val.code != 'none' ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' "a1050460";\r\n          } "310f4b1f";\r\n        } "6af9bfcc";\r\n      } "56e7c54b";\r\n    } "270c6d04";\r\n  } "1b98a048";\r\n}\r\n\r\n
" }, - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcare.b7.lti-dangersigns", + "url": "https://smart.who.int/ccc/StructureMap/emcare.b7.lti-dangersigns", "name": "emcare.b7.lti-dangersigns", "status": "active", "structure": [ @@ -20,12 +20,12 @@ "alias": "'Bundle'" }, { - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/observation", + "url": "https://smart.who.int/ccc/StructureDefinition/observation", "mode": "target", "alias": "'Observation'" }, { - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation", + "url": "https://smart.who.int/ccc/StructureDefinition/emcareobservation", "mode": "produced", "alias": "'EmCare Observation'" } @@ -2138,7 +2138,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -2173,7 +2173,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -2495,7 +2495,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -2530,7 +2530,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -2865,7 +2865,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -2900,7 +2900,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -3236,7 +3236,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -3271,7 +3271,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -3607,7 +3607,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -3642,7 +3642,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -3978,7 +3978,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -4013,7 +4013,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -4349,7 +4349,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -4384,7 +4384,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -4720,7 +4720,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -4755,7 +4755,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -5091,7 +5091,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -5126,7 +5126,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -5489,7 +5489,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -5524,7 +5524,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -5853,7 +5853,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -5888,7 +5888,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -6238,7 +6238,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -6273,7 +6273,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, @@ -6623,7 +6623,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -6658,7 +6658,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, diff --git a/input/resources/structuremap/structuremap-emcare.treatment.json b/input/resources/structuremap/structuremap-emcare.treatment.json index e024d68a..579f845e 100644 --- a/input/resources/structuremap/structuremap-emcare.treatment.json +++ b/input/resources/structuremap/structuremap-emcare.treatment.json @@ -3,9 +3,9 @@ "id": "emcare.treatment", "text": { "status": "generated", - "div": "
map "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcare.treatment" = "emcare.treatment"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n  src -> bundle.id = uuid() "id";\r\n  src -> bundle.type = 'batch' "type";\r\n}\r\n\r\n
" + "div": "
map "https://smart.who.int/ccc/StructureMap/emcare.treatment" = "emcare.treatment"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n  src -> bundle.id = uuid() "id";\r\n  src -> bundle.type = 'batch' "type";\r\n}\r\n\r\n
" }, - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcare.treatment", + "url": "https://smart.who.int/ccc/StructureMap/emcare.treatment", "name": "emcare.treatment", "status": "active", "structure": [ diff --git a/input/resources/structuremap/structuremap-emcarea.registration.p.json b/input/resources/structuremap/structuremap-emcarea.registration.p.json index 79d7c9e2..a54c1435 100644 --- a/input/resources/structuremap/structuremap-emcarea.registration.p.json +++ b/input/resources/structuremap/structuremap-emcarea.registration.p.json @@ -3,9 +3,9 @@ "id": "emcarea.registration.p", "text": { "status": "generated", - "div": "
map "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcarea.registration.p" = "emcarea.registration.p"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/patient" alias 'Patient' as target\r\nuses "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/relatedperson" alias 'RelatedPerson' as target\r\nuses "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/communicationrequest" alias 'CommunicationRequest' as target\r\nuses "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcarepatient" alias 'EmCare Patient' as produced\r\nuses "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/relatedperson" alias 'RelatedPerson' as produced\r\nuses "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/communicationrequest" alias 'CommunicationRequest' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n  src -> bundle.id = uuid() "id";\r\n  src -> bundle.type = 'batch' "type";\r\n  src -> bundle.entry as entry then {\r\n    src.subject as subject then {\r\n      subject.id as idval ->  entry.request as request,  request.method = 'PUT',  request.url = append('/Patient/', idval) "1153aa45";\r\n    } "cf5b2513";\r\n    src -> entry.resource = create('Patient') as tgt then {\r\n      src -> tgt then emcarepatient(src, tgt) "77f3ac03";\r\n    } "75beb242";\r\n  } "put-emcarepatient";\r\n  src.item first as itm1 where linkId = 'EmCare.A.DE21.1' then {\r\n    itm1.item first as item where (linkId = 'relatedpersonid') and answer.exists() then {\r\n      src ->  bundle.entry as entry,  entry.request as request,  request.method = 'POST',  entry.resource = create('RelatedPerson') as tgt then {\r\n        src -> tgt then relatedperson(src, tgt) "8f0b9602";\r\n        item.answer first as a then {\r\n          a.value as val -> request.url = append('/RelatedPerson/', val) "78d8bc69";\r\n        } "eec70023";\r\n      } "00574b8e";\r\n    } "74cc3511";\r\n  } "54daac33";\r\n  src.item first as itm1 where linkId = 'EmCare.A.DE21.1' then {\r\n    itm1.item first as item where (linkId = 'EmCare.A.DE38') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/CommunicationRequest/', uuid) "e5343f50";\r\n        src -> entry.resource = create('CommunicationRequest') as tgt then {\r\n          src -> tgt then communicationrequestemcareade38(src, tgt) "82d8a873";\r\n        } "33eeb100";\r\n      } "d4cd942b";\r\n    } "5ca7be0f";\r\n  } "b78fbe33";\r\n}\r\n\r\ngroup SetOfficalGivenNameemcarepatient(source src, target tgt) {\r\n  src -> tgt.use = 'official' then {\r\n    src.item first as item where (linkId = 'EmCare.A.DE06') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val -> tgt.family = val "77d1bd4f";\r\n      } "e0827d5d";\r\n    } "607c4e16";\r\n    src.item first as item where (linkId = 'EmCare.A.DE04') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val -> tgt.given = val "5d3d44f6";\r\n      } "18edd234";\r\n    } "e9deb0f3";\r\n    src.item first as item where (linkId = 'EmCare.A.DE05') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val -> tgt.given = val "5d3d44f6";\r\n      } "18edd234";\r\n    } "d95279c0";\r\n  } "ef0f6810";\r\n}\r\n\r\ngroup MapValueSetExtCodeemcareade16(source src, target tgt) {\r\n  src -> tgt then {\r\n    src -> tgt then {\r\n      src where value.code = 'EmCare.A.DE17' -> tgt.gender = 'female' "368f2e2a";\r\n      src where value.code = 'EmCare.A.DE18' -> tgt.gender = 'male' "2ae3beca";\r\n      src where value.code = 'EmCare.A.DE19' -> tgt.gender = 'unknown' "de22e8b7";\r\n    } "mapbase";\r\n  } "57676688";\r\n}\r\n\r\ngroup emcarepatient(source src : questionnaireResponse, target tgt : Patient) {\r\n  src.item first as item where (linkId = 'EmCare.A.DE01') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val -> tgt.identifier = create('Identifier') as identifier then {\r\n        val ->  identifier.value = val,  identifier.use = 'official' "id";\r\n      } "aemcareade01";\r\n    } "aemcareade01";\r\n  } "c243b020";\r\n  src.item first as item where (linkId = 'EmCare.A.DE03') and answer.exists() then {\r\n    item.answer first as a ->  tgt.extension = create('Extension') as ext,  ext.url = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/anonymous',  ext.value = true "aemcareade03";\r\n  } "54d12495";\r\n  src.item first as item where (linkId = 'EmCare.A.DE06') or (linkId = 'EmCare.A.DE04') or ((linkId = 'EmCare.A.DE05') and answer.exists()) then {\r\n    src ->  tgt as target,  target.name as name then SetOfficalGivenNameemcarepatient(src, name) "30643049";\r\n  } "7483ae2e";\r\n  src.item first as item where (linkId = 'EmCare.A.DE12') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val ->  tgt.extension = create('Extension') as ext,  ext.url = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/birthDateEstimator',  ext.value = val "aemcareade12";\r\n    } "aemcareade12";\r\n  } "c05cf203";\r\n  src.item first as item where (linkId = 'EmCare.A.DE08') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val -> tgt.birthDate = val "aemcareade08";\r\n    } "aemcareade08";\r\n  } "bded6ae8";\r\n  src.item first as item where (linkId = 'EmCare.A.DE16') and answer.exists() then {\r\n    item.answer first as a then MapValueSetExtCodeemcareade16(a, tgt) "225baa79";\r\n  } "bf4b35f0";\r\n  src.item first as item where (linkId = 'EmCare.A.DE48') and answer.exists() then {\r\n    item.answer first as a ->  tgt.extension = create('Extension') as ext,  ext.url = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/primarycaregiver',  ext.value = create('Reference') as ref,  ref.reference = 'relatated-person-id' "aemcareade48";\r\n  } "04772b09";\r\n  src.item first as itm1 where linkId = 'EmCare.A.DE21.1' then {\r\n    itm1.item first as item where (linkId = 'EmCare.A.DE31') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val ->  tgt.extension = create('Extension') as ext,  ext.url = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Extension/motherVitalStatus',  ext.value = val "aemcareade31";\r\n      } "aemcareade31";\r\n    } "7f408694";\r\n  } "39f45e5d";\r\n  src.item first as itm1 where linkId = 'EmCare.A.DE21.1' then {\r\n    itm1.item first as item where (linkId = 'EmCare.A.DE32') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val ->  tgt.extension = create('Extension') as ext,  ext.url = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Extension/fatherVitalStatus',  ext.value = val "aemcareade32";\r\n      } "aemcareade32";\r\n    } "06ec2524";\r\n  } "f7424037";\r\n}\r\n\r\ngroup SetOfficalGivenNamerelatedperson(source src, target tgt) {\r\n  src -> tgt.use = 'official' then {\r\n    src.item first as itm1 where linkId = 'EmCare.A.DE21.1' then {\r\n      itm1.item first as item where (linkId = 'EmCare.A.DE23') and answer.exists() then {\r\n        item.answer first as a then {\r\n          a.value as val -> tgt.family = val "77d1bd4f";\r\n        } "e0827d5d";\r\n      } "8c426238";\r\n    } "4cc155ee";\r\n    src.item first as itm1 where linkId = 'EmCare.A.DE21.1' then {\r\n      itm1.item first as item where (linkId = 'EmCare.A.DE21') and answer.exists() then {\r\n        item.answer first as a then {\r\n          a.value as val -> tgt.given = val "5d3d44f6";\r\n        } "18edd234";\r\n      } "ad3fbc15";\r\n    } "8bc880ed";\r\n    src.item first as itm1 where linkId = 'EmCare.A.DE21.1' then {\r\n      itm1.item first as item where (linkId = 'EmCare.A.DE22') and answer.exists() then {\r\n        item.answer first as a then {\r\n          a.value as val -> tgt.given = val "5d3d44f6";\r\n        } "18edd234";\r\n      } "e9ba83c8";\r\n    } "17d8d988";\r\n  } "f41b9847";\r\n}\r\n\r\ngroup MapValueSetExtCodeemcareade24(source src, target tgt) {\r\n  src -> tgt then {\r\n    src ->  tgt.relationship = create('CodeableConcept') as cc,  cc.coding = create('Coding') as coding then {\r\n      src where value.code = 'EmCare.A.DE25' ->  coding.code = 'MTH',  coding.system = 'http://terminology.hl7.org/CodeSystem/v3-RoleCode' "abd34a78";\r\n      src where value.code = 'EmCare.A.DE26' ->  coding.code = 'FTH',  coding.system = 'http://terminology.hl7.org/CodeSystem/v3-RoleCode' "b53d1d15";\r\n      src where value.code = 'EmCare.A.DE27' ->  coding.code = 'SIB',  coding.system = 'http://terminology.hl7.org/CodeSystem/v3-RoleCode' "949ee35f";\r\n      src where value.code = 'EmCare.A.DE28' ->  coding.code = 'EXT',  coding.system = 'http://terminology.hl7.org/CodeSystem/v3-RoleCode' "7c5a4400";\r\n      src where value.code = 'EmCare.A.DE29' ->  coding.code = 'PRNINLAW',  coding.system = 'http://terminology.hl7.org/CodeSystem/v3-RoleCode' "544df0cc";\r\n      src where value.code = 'EmCare.A.DE30' ->  coding.code = 'U',  coding.system = 'http://terminology.hl7.org/CodeSystem/v2-0131' "8c2d96fc";\r\n    } "4a251df5";\r\n  } "1b7b6d7a";\r\n}\r\n\r\ngroup relatedperson(source src : questionnaireResponse, target tgt : RelatedPerson) {\r\n  src.item first as item where (linkId = 'emcarerelatedpersoncaregiverid') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val ->  tgt.extension = create('Extension') as ext,  ext.url = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/primary-caregiver',  ext.value = create('Reference') as ref,  ref.reference = append('/RelatedPerson/', val) "aemcarerelatedpersoncaregiverid";\r\n    } "aemcarerelatedpersoncaregiverid";\r\n  } "04cd0ec2";\r\n  src.item first as itm1 where linkId = 'EmCare.A.DE21.1' then {\r\n    itm1.item first as item where (linkId = 'EmCare.A.DE23') or (linkId = 'EmCare.A.DE21') or ((linkId = 'EmCare.A.DE22') and answer.exists()) then {\r\n      src ->  tgt as target,  target.name as name then SetOfficalGivenNamerelatedperson(src, name) "8e1455ea";\r\n    } "18dc21d5";\r\n  } "f0e6459e";\r\n  src.item first as itm1 where linkId = 'EmCare.A.DE21.1' then {\r\n    itm1.item first as item where (linkId = 'EmCare.A.DE35') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val ->  tgt.telecom as tel,  tel.system = 'phone',  tel.use = 'mobile',  tel.value = val "aemcareade35";\r\n      } "aemcareade35";\r\n    } "9731ba92";\r\n  } "30b90d37";\r\n  src.item first as itm1 where linkId = 'EmCare.A.DE21.1' then {\r\n    itm1.item first as item where (linkId = 'relatedpersonid') and answer.exists() then {\r\n      item.answer first as a -> tgt then {\r\n        src.subject as subject -> tgt.patient = subject "patient";\r\n      } "arelatedpersonid";\r\n    } "d79d72db";\r\n  } "d50c1aed";\r\n  src.item first as itm1 where linkId = 'EmCare.A.DE21.1' then {\r\n    itm1.item first as item where (linkId = 'EmCare.A.DE24') and answer.exists() then {\r\n      item.answer first as a then MapValueSetExtCodeemcareade24(a, tgt) "24e5e488";\r\n    } "6adb811a";\r\n  } "92a0e955";\r\n}\r\n\r\ngroup communicationrequestemcareade38(source src, target tgt) {\r\n  src ->  tgt.category = create('CodeableConcept') as cc,  cc.coding = create('Coding') as c,  c.system = 'http://hl7.org/fhir/ValueSet/communication-category',  c.code = 'notification' "053233cd";\r\n  src.questionnaire as q ->  tgt.about = create('Reference') as ref,  ref.type = 'Questionnaire',  ref.reference = q "quest";\r\n  src.subject as subject -> tgt.subject = subject "fe3bec4d";\r\n  src -> tgt.recipient = create('Reference') as ref then {\r\n    src -> ref.type = 'RelatedPerson' "c26ab31f";\r\n    src.item first as item where linkId = 'emcarerelatedpersonCaregiveruuid' -> tgt then {\r\n      item.answer first as a -> tgt then {\r\n        a.value as val -> ref.reference = append('/RelatedPerson/', val) "25b16148";\r\n      } "00b2016a";\r\n    } "3c6c4c80";\r\n  } "eaa7d3cf";\r\n}\r\n\r\n
" + "div": "
map "https://smart.who.int/ccc/StructureMap/emcarea.registration.p" = "emcarea.registration.p"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/patient" alias 'Patient' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/relatedperson" alias 'RelatedPerson' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/communicationrequest" alias 'CommunicationRequest' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/emcarepatient" alias 'EmCare Patient' as produced\r\nuses "https://smart.who.int/ccc/StructureDefinition/relatedperson" alias 'RelatedPerson' as produced\r\nuses "https://smart.who.int/ccc/StructureDefinition/communicationrequest" alias 'CommunicationRequest' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n  src -> bundle.id = uuid() "id";\r\n  src -> bundle.type = 'batch' "type";\r\n  src -> bundle.entry as entry then {\r\n    src.subject as subject then {\r\n      subject.id as idval ->  entry.request as request,  request.method = 'PUT',  request.url = append('/Patient/', idval) "1153aa45";\r\n    } "cf5b2513";\r\n    src -> entry.resource = create('Patient') as tgt then {\r\n      src -> tgt then emcarepatient(src, tgt) "77f3ac03";\r\n    } "75beb242";\r\n  } "put-emcarepatient";\r\n  src.item first as itm1 where linkId = 'EmCare.A.DE21.1' then {\r\n    itm1.item first as item where (linkId = 'relatedpersonid') and answer.exists() then {\r\n      src ->  bundle.entry as entry,  entry.request as request,  request.method = 'POST',  entry.resource = create('RelatedPerson') as tgt then {\r\n        src -> tgt then relatedperson(src, tgt) "8f0b9602";\r\n        item.answer first as a then {\r\n          a.value as val -> request.url = append('/RelatedPerson/', val) "78d8bc69";\r\n        } "eec70023";\r\n      } "00574b8e";\r\n    } "74cc3511";\r\n  } "54daac33";\r\n  src.item first as itm1 where linkId = 'EmCare.A.DE21.1' then {\r\n    itm1.item first as item where (linkId = 'EmCare.A.DE38') and answer.exists() then {\r\n      src -> bundle.entry as entry then {\r\n        src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/CommunicationRequest/', uuid) "e5343f50";\r\n        src -> entry.resource = create('CommunicationRequest') as tgt then {\r\n          src -> tgt then communicationrequestemcareade38(src, tgt) "82d8a873";\r\n        } "33eeb100";\r\n      } "d4cd942b";\r\n    } "5ca7be0f";\r\n  } "b78fbe33";\r\n}\r\n\r\ngroup SetOfficalGivenNameemcarepatient(source src, target tgt) {\r\n  src -> tgt.use = 'official' then {\r\n    src.item first as item where (linkId = 'EmCare.A.DE06') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val -> tgt.family = val "77d1bd4f";\r\n      } "e0827d5d";\r\n    } "607c4e16";\r\n    src.item first as item where (linkId = 'EmCare.A.DE04') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val -> tgt.given = val "5d3d44f6";\r\n      } "18edd234";\r\n    } "e9deb0f3";\r\n    src.item first as item where (linkId = 'EmCare.A.DE05') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val -> tgt.given = val "5d3d44f6";\r\n      } "18edd234";\r\n    } "d95279c0";\r\n  } "ef0f6810";\r\n}\r\n\r\ngroup MapValueSetExtCodeemcareade16(source src, target tgt) {\r\n  src -> tgt then {\r\n    src -> tgt then {\r\n      src where value.code = 'EmCare.A.DE17' -> tgt.gender = 'female' "368f2e2a";\r\n      src where value.code = 'EmCare.A.DE18' -> tgt.gender = 'male' "2ae3beca";\r\n      src where value.code = 'EmCare.A.DE19' -> tgt.gender = 'unknown' "de22e8b7";\r\n    } "mapbase";\r\n  } "57676688";\r\n}\r\n\r\ngroup emcarepatient(source src : questionnaireResponse, target tgt : Patient) {\r\n  src.item first as item where (linkId = 'EmCare.A.DE01') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val -> tgt.identifier = create('Identifier') as identifier then {\r\n        val ->  identifier.value = val,  identifier.use = 'official' "id";\r\n      } "aemcareade01";\r\n    } "aemcareade01";\r\n  } "c243b020";\r\n  src.item first as item where (linkId = 'EmCare.A.DE03') and answer.exists() then {\r\n    item.answer first as a ->  tgt.extension = create('Extension') as ext,  ext.url = 'https://smart.who.int/ccc/StructureDefinition/anonymous',  ext.value = true "aemcareade03";\r\n  } "54d12495";\r\n  src.item first as item where (linkId = 'EmCare.A.DE06') or (linkId = 'EmCare.A.DE04') or ((linkId = 'EmCare.A.DE05') and answer.exists()) then {\r\n    src ->  tgt as target,  target.name as name then SetOfficalGivenNameemcarepatient(src, name) "30643049";\r\n  } "7483ae2e";\r\n  src.item first as item where (linkId = 'EmCare.A.DE12') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val ->  tgt.extension = create('Extension') as ext,  ext.url = 'https://smart.who.int/ccc/StructureDefinition/birthDateEstimator',  ext.value = val "aemcareade12";\r\n    } "aemcareade12";\r\n  } "c05cf203";\r\n  src.item first as item where (linkId = 'EmCare.A.DE08') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val -> tgt.birthDate = val "aemcareade08";\r\n    } "aemcareade08";\r\n  } "bded6ae8";\r\n  src.item first as item where (linkId = 'EmCare.A.DE16') and answer.exists() then {\r\n    item.answer first as a then MapValueSetExtCodeemcareade16(a, tgt) "225baa79";\r\n  } "bf4b35f0";\r\n  src.item first as item where (linkId = 'EmCare.A.DE48') and answer.exists() then {\r\n    item.answer first as a ->  tgt.extension = create('Extension') as ext,  ext.url = 'https://smart.who.int/ccc/StructureDefinition/primarycaregiver',  ext.value = create('Reference') as ref,  ref.reference = 'relatated-person-id' "aemcareade48";\r\n  } "04772b09";\r\n  src.item first as itm1 where linkId = 'EmCare.A.DE21.1' then {\r\n    itm1.item first as item where (linkId = 'EmCare.A.DE31') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val ->  tgt.extension = create('Extension') as ext,  ext.url = 'https://smart.who.int/ccc/Extension/motherVitalStatus',  ext.value = val "aemcareade31";\r\n      } "aemcareade31";\r\n    } "7f408694";\r\n  } "39f45e5d";\r\n  src.item first as itm1 where linkId = 'EmCare.A.DE21.1' then {\r\n    itm1.item first as item where (linkId = 'EmCare.A.DE32') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val ->  tgt.extension = create('Extension') as ext,  ext.url = 'https://smart.who.int/ccc/Extension/fatherVitalStatus',  ext.value = val "aemcareade32";\r\n      } "aemcareade32";\r\n    } "06ec2524";\r\n  } "f7424037";\r\n}\r\n\r\ngroup SetOfficalGivenNamerelatedperson(source src, target tgt) {\r\n  src -> tgt.use = 'official' then {\r\n    src.item first as itm1 where linkId = 'EmCare.A.DE21.1' then {\r\n      itm1.item first as item where (linkId = 'EmCare.A.DE23') and answer.exists() then {\r\n        item.answer first as a then {\r\n          a.value as val -> tgt.family = val "77d1bd4f";\r\n        } "e0827d5d";\r\n      } "8c426238";\r\n    } "4cc155ee";\r\n    src.item first as itm1 where linkId = 'EmCare.A.DE21.1' then {\r\n      itm1.item first as item where (linkId = 'EmCare.A.DE21') and answer.exists() then {\r\n        item.answer first as a then {\r\n          a.value as val -> tgt.given = val "5d3d44f6";\r\n        } "18edd234";\r\n      } "ad3fbc15";\r\n    } "8bc880ed";\r\n    src.item first as itm1 where linkId = 'EmCare.A.DE21.1' then {\r\n      itm1.item first as item where (linkId = 'EmCare.A.DE22') and answer.exists() then {\r\n        item.answer first as a then {\r\n          a.value as val -> tgt.given = val "5d3d44f6";\r\n        } "18edd234";\r\n      } "e9ba83c8";\r\n    } "17d8d988";\r\n  } "f41b9847";\r\n}\r\n\r\ngroup MapValueSetExtCodeemcareade24(source src, target tgt) {\r\n  src -> tgt then {\r\n    src ->  tgt.relationship = create('CodeableConcept') as cc,  cc.coding = create('Coding') as coding then {\r\n      src where value.code = 'EmCare.A.DE25' ->  coding.code = 'MTH',  coding.system = 'http://terminology.hl7.org/CodeSystem/v3-RoleCode' "abd34a78";\r\n      src where value.code = 'EmCare.A.DE26' ->  coding.code = 'FTH',  coding.system = 'http://terminology.hl7.org/CodeSystem/v3-RoleCode' "b53d1d15";\r\n      src where value.code = 'EmCare.A.DE27' ->  coding.code = 'SIB',  coding.system = 'http://terminology.hl7.org/CodeSystem/v3-RoleCode' "949ee35f";\r\n      src where value.code = 'EmCare.A.DE28' ->  coding.code = 'EXT',  coding.system = 'http://terminology.hl7.org/CodeSystem/v3-RoleCode' "7c5a4400";\r\n      src where value.code = 'EmCare.A.DE29' ->  coding.code = 'PRNINLAW',  coding.system = 'http://terminology.hl7.org/CodeSystem/v3-RoleCode' "544df0cc";\r\n      src where value.code = 'EmCare.A.DE30' ->  coding.code = 'U',  coding.system = 'http://terminology.hl7.org/CodeSystem/v2-0131' "8c2d96fc";\r\n    } "4a251df5";\r\n  } "1b7b6d7a";\r\n}\r\n\r\ngroup relatedperson(source src : questionnaireResponse, target tgt : RelatedPerson) {\r\n  src.item first as item where (linkId = 'emcarerelatedpersoncaregiverid') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val ->  tgt.extension = create('Extension') as ext,  ext.url = 'https://smart.who.int/ccc/StructureDefinition/primary-caregiver',  ext.value = create('Reference') as ref,  ref.reference = append('/RelatedPerson/', val) "aemcarerelatedpersoncaregiverid";\r\n    } "aemcarerelatedpersoncaregiverid";\r\n  } "04cd0ec2";\r\n  src.item first as itm1 where linkId = 'EmCare.A.DE21.1' then {\r\n    itm1.item first as item where (linkId = 'EmCare.A.DE23') or (linkId = 'EmCare.A.DE21') or ((linkId = 'EmCare.A.DE22') and answer.exists()) then {\r\n      src ->  tgt as target,  target.name as name then SetOfficalGivenNamerelatedperson(src, name) "8e1455ea";\r\n    } "18dc21d5";\r\n  } "f0e6459e";\r\n  src.item first as itm1 where linkId = 'EmCare.A.DE21.1' then {\r\n    itm1.item first as item where (linkId = 'EmCare.A.DE35') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val ->  tgt.telecom as tel,  tel.system = 'phone',  tel.use = 'mobile',  tel.value = val "aemcareade35";\r\n      } "aemcareade35";\r\n    } "9731ba92";\r\n  } "30b90d37";\r\n  src.item first as itm1 where linkId = 'EmCare.A.DE21.1' then {\r\n    itm1.item first as item where (linkId = 'relatedpersonid') and answer.exists() then {\r\n      item.answer first as a -> tgt then {\r\n        src.subject as subject -> tgt.patient = subject "patient";\r\n      } "arelatedpersonid";\r\n    } "d79d72db";\r\n  } "d50c1aed";\r\n  src.item first as itm1 where linkId = 'EmCare.A.DE21.1' then {\r\n    itm1.item first as item where (linkId = 'EmCare.A.DE24') and answer.exists() then {\r\n      item.answer first as a then MapValueSetExtCodeemcareade24(a, tgt) "24e5e488";\r\n    } "6adb811a";\r\n  } "92a0e955";\r\n}\r\n\r\ngroup communicationrequestemcareade38(source src, target tgt) {\r\n  src ->  tgt.category = create('CodeableConcept') as cc,  cc.coding = create('Coding') as c,  c.system = 'http://hl7.org/fhir/ValueSet/communication-category',  c.code = 'notification' "053233cd";\r\n  src.questionnaire as q ->  tgt.about = create('Reference') as ref,  ref.type = 'Questionnaire',  ref.reference = q "quest";\r\n  src.subject as subject -> tgt.subject = subject "fe3bec4d";\r\n  src -> tgt.recipient = create('Reference') as ref then {\r\n    src -> ref.type = 'RelatedPerson' "c26ab31f";\r\n    src.item first as item where linkId = 'emcarerelatedpersonCaregiveruuid' -> tgt then {\r\n      item.answer first as a -> tgt then {\r\n        a.value as val -> ref.reference = append('/RelatedPerson/', val) "25b16148";\r\n      } "00b2016a";\r\n    } "3c6c4c80";\r\n  } "eaa7d3cf";\r\n}\r\n\r\n
" }, - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcarea.registration.p", + "url": "https://smart.who.int/ccc/StructureMap/emcarea.registration.p", "name": "emcarea.registration.p", "status": "active", "structure": [ @@ -20,32 +20,32 @@ "alias": "'Bundle'" }, { - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/patient", + "url": "https://smart.who.int/ccc/StructureDefinition/patient", "mode": "target", "alias": "'Patient'" }, { - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/relatedperson", + "url": "https://smart.who.int/ccc/StructureDefinition/relatedperson", "mode": "target", "alias": "'RelatedPerson'" }, { - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/communicationrequest", + "url": "https://smart.who.int/ccc/StructureDefinition/communicationrequest", "mode": "target", "alias": "'CommunicationRequest'" }, { - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcarepatient", + "url": "https://smart.who.int/ccc/StructureDefinition/emcarepatient", "mode": "produced", "alias": "'EmCare Patient'" }, { - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/relatedperson", + "url": "https://smart.who.int/ccc/StructureDefinition/relatedperson", "mode": "produced", "alias": "'RelatedPerson'" }, { - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/communicationrequest", + "url": "https://smart.who.int/ccc/StructureDefinition/communicationrequest", "mode": "produced", "alias": "'CommunicationRequest'" } @@ -973,7 +973,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/anonymous" + "valueString": "https://smart.who.int/ccc/StructureDefinition/anonymous" } ] }, @@ -1093,7 +1093,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/birthDateEstimator" + "valueString": "https://smart.who.int/ccc/StructureDefinition/birthDateEstimator" } ] }, @@ -1240,7 +1240,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/primarycaregiver" + "valueString": "https://smart.who.int/ccc/StructureDefinition/primarycaregiver" } ] }, @@ -1335,7 +1335,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Extension/motherVitalStatus" + "valueString": "https://smart.who.int/ccc/Extension/motherVitalStatus" } ] }, @@ -1422,7 +1422,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Extension/fatherVitalStatus" + "valueString": "https://smart.who.int/ccc/Extension/fatherVitalStatus" } ] }, @@ -2017,7 +2017,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/primary-caregiver" + "valueString": "https://smart.who.int/ccc/StructureDefinition/primary-caregiver" } ] }, diff --git a/input/resources/structuremap/structuremap-emcareb.registration.e.json b/input/resources/structuremap/structuremap-emcareb.registration.e.json index 17a27aff..ddacc2b0 100644 --- a/input/resources/structuremap/structuremap-emcareb.registration.e.json +++ b/input/resources/structuremap/structuremap-emcareb.registration.e.json @@ -3,9 +3,9 @@ "id": "emcareb.registration.e", "text": { "status": "generated", - "div": "
map "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcareb.registration.e" = "emcareb.registration.e"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/encounter" alias 'Encounter' as target\r\nuses "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/observation" alias 'Observation' as target\r\nuses "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareencounter" alias 'EmCare Encounter' as produced\r\nuses "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" alias 'EmCare Observation' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n  src -> bundle.id = uuid() "id";\r\n  src -> bundle.type = 'batch' "type";\r\n  src -> bundle.entry as entry then {\r\n    src.encounter as encounter then {\r\n      encounter.id as idval ->  entry.request as request,  request.method = 'PUT',  request.url = append('/Encounter/', idval) "f7ed42d5";\r\n    } "49f4ed45";\r\n    src -> entry.resource = create('Encounter') as tgt then {\r\n      src -> tgt then emcareencounter(src, tgt) "fd415ba8";\r\n      src.subject as sub -> tgt.subject = sub "23252e10";\r\n    } "8f0160c6";\r\n  } "put-emcareencounter";\r\n  src.item first as item where (linkId = 'EmCare.B3.DE05') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb3de05(src, tgt) "918130f9";\r\n      } "172606cb";\r\n    } "a322e7db";\r\n  } "1af195c5";\r\n}\r\n\r\ngroup emcareencounter(source src : questionnaireResponse, target tgt : Encounter) {\r\n  src.item first as item where (linkId = 'EmCare.B3.DE01') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val ->  tgt.reasonCode = create('CodeableConcept') as CC,  CC.text = 'new consultation',  CC.coding = val "aemcareb3de01";\r\n    } "aemcareb3de01";\r\n  } "5ea28a7f";\r\n  src.item first as item where (linkId = 'EmCare.B3.DE06') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val ->  tgt.type = create('CodeableConcept') as CC,  CC.text = 'new consultation',  CC.coding = val "aemcareb3de06";\r\n    } "aemcareb3de06";\r\n  } "58ee7f8b";\r\n}\r\n\r\ngroup emcareobservationemcareb3de05(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb3de05";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B3.DE05' "code-emcareb3de05";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B3.DE05') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb3de05";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb3de05";\r\n    } "bdab9370";\r\n  } "5cf8dcb4";\r\n}\r\n\r\n
" + "div": "
map "https://smart.who.int/ccc/StructureMap/emcareb.registration.e" = "emcareb.registration.e"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/encounter" alias 'Encounter' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/observation" alias 'Observation' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/emcareencounter" alias 'EmCare Encounter' as produced\r\nuses "https://smart.who.int/ccc/StructureDefinition/emcareobservation" alias 'EmCare Observation' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n  src -> bundle.id = uuid() "id";\r\n  src -> bundle.type = 'batch' "type";\r\n  src -> bundle.entry as entry then {\r\n    src.encounter as encounter then {\r\n      encounter.id as idval ->  entry.request as request,  request.method = 'PUT',  request.url = append('/Encounter/', idval) "f7ed42d5";\r\n    } "49f4ed45";\r\n    src -> entry.resource = create('Encounter') as tgt then {\r\n      src -> tgt then emcareencounter(src, tgt) "fd415ba8";\r\n      src.subject as sub -> tgt.subject = sub "23252e10";\r\n    } "8f0160c6";\r\n  } "put-emcareencounter";\r\n  src.item first as item where (linkId = 'EmCare.B3.DE05') and answer.exists() then {\r\n    src -> bundle.entry as entry then {\r\n      src ->  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) "b50ac4c5";\r\n      src -> entry.resource = create('Observation') as tgt then {\r\n        src -> tgt then emcareobservationemcareb3de05(src, tgt) "918130f9";\r\n      } "172606cb";\r\n    } "a322e7db";\r\n  } "1af195c5";\r\n}\r\n\r\ngroup emcareencounter(source src : questionnaireResponse, target tgt : Encounter) {\r\n  src.item first as item where (linkId = 'EmCare.B3.DE01') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val ->  tgt.reasonCode = create('CodeableConcept') as CC,  CC.text = 'new consultation',  CC.coding = val "aemcareb3de01";\r\n    } "aemcareb3de01";\r\n  } "5ea28a7f";\r\n  src.item first as item where (linkId = 'EmCare.B3.DE06') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val ->  tgt.type = create('CodeableConcept') as CC,  CC.text = 'new consultation',  CC.coding = val "aemcareb3de06";\r\n    } "aemcareb3de06";\r\n  } "58ee7f8b";\r\n}\r\n\r\ngroup emcareobservationemcareb3de05(source src, target tgt) {\r\n  src ->  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() "id-emcareb3de05";\r\n  src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n  src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes',  coding.code = 'EmCare.B3.DE05' "code-emcareb3de05";\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n    } "7f22f29f";\r\n  } "aae7a11d";\r\n  src.subject as subject -> tgt.subject = subject "patient";\r\n  src.item first as item where (linkId = 'EmCare.B3.DE05') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-emcareb3de05";\r\n      a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-emcareb3de05";\r\n    } "bdab9370";\r\n  } "5cf8dcb4";\r\n}\r\n\r\n
" }, - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/emcareb.registration.e", + "url": "https://smart.who.int/ccc/StructureMap/emcareb.registration.e", "name": "emcareb.registration.e", "status": "active", "structure": [ @@ -20,22 +20,22 @@ "alias": "'Bundle'" }, { - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/encounter", + "url": "https://smart.who.int/ccc/StructureDefinition/encounter", "mode": "target", "alias": "'Encounter'" }, { - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/observation", + "url": "https://smart.who.int/ccc/StructureDefinition/observation", "mode": "target", "alias": "'Observation'" }, { - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareencounter", + "url": "https://smart.who.int/ccc/StructureDefinition/emcareencounter", "mode": "produced", "alias": "'EmCare Encounter'" }, { - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation", + "url": "https://smart.who.int/ccc/StructureDefinition/emcareobservation", "mode": "produced", "alias": "'EmCare Observation'" } @@ -676,7 +676,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/emcareobservation" + "valueString": "https://smart.who.int/ccc/StructureDefinition/emcareobservation" } ] }, @@ -711,7 +711,7 @@ "transform": "copy", "parameter": [ { - "valueString": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes" + "valueString": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes" } ] }, diff --git a/input/emc-cds.xml b/input/smart.who.int.ccc.xml similarity index 97% rename from input/emc-cds.xml rename to input/smart.who.int.ccc.xml index 0ec0cf17..09880b83 100644 --- a/input/emc-cds.xml +++ b/input/smart.who.int.ccc.xml @@ -1,9 +1,10 @@ - - + + + - + <status value="draft"/> <experimental value="false"/> @@ -22,7 +23,7 @@ <code value="001"/> </coding> </jurisdiction> - <packageId value="who.fhir.emc-cds"/> + <packageId value="smart.who.int.ccc"/> <license value="CC0-1.0"/> <fhirVersion value="4.0.1"/> <dependsOn id="cpg"> diff --git a/input/vocabulary/codesystem/codesystem-emcare.json b/input/vocabulary/codesystem/codesystem-emcare.json index 705af2ab..db939a8b 100644 --- a/input/vocabulary/codesystem/codesystem-emcare.json +++ b/input/vocabulary/codesystem/codesystem-emcare.json @@ -1,7 +1,7 @@ { "resourceType": "CodeSystem", "id": "emcare-custom-codes", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "url": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "name": "emcare", "title": "Extended Codes CodeSystem", "status": "draft", diff --git a/input/vocabulary/valueset/valueset-abilitytoswallow.json b/input/vocabulary/valueset/valueset-abilitytoswallow.json index 269a7403..247a4283 100644 --- a/input/vocabulary/valueset/valueset-abilitytoswallow.json +++ b/input/vocabulary/valueset/valueset-abilitytoswallow.json @@ -1,7 +1,7 @@ { "resourceType": "ValueSet", "id": "abilitytoswallow", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ValueSet/abilitytoswallow", + "url": "https://smart.who.int/ccc/ValueSet/abilitytoswallow", "name": "valueset-abilitytoswallow", "status": "draft", "experimental": false, @@ -10,7 +10,7 @@ "compose": { "include": [ { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "concept": [ { "code": "EmCare.B17S1.DE08", diff --git a/input/vocabulary/valueset/valueset-add-pb.json b/input/vocabulary/valueset/valueset-add-pb.json index 17be92a9..cec5f5ab 100644 --- a/input/vocabulary/valueset/valueset-add-pb.json +++ b/input/vocabulary/valueset/valueset-add-pb.json @@ -1,7 +1,7 @@ { "resourceType": "ValueSet", "id": "add-pb", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ValueSet/add-pb", + "url": "https://smart.who.int/ccc/ValueSet/add-pb", "name": "valueset-add-pb", "title": "EmCare.B14S2.DE43", "status": "draft", @@ -11,7 +11,7 @@ "compose": { "include": [ { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "concept": [ { "code": "EmCare.B14S2.DE44", diff --git a/input/vocabulary/valueset/valueset-agreedisagree.json b/input/vocabulary/valueset/valueset-agreedisagree.json index 64e3bca5..992cc4d9 100644 --- a/input/vocabulary/valueset/valueset-agreedisagree.json +++ b/input/vocabulary/valueset/valueset-agreedisagree.json @@ -1,7 +1,7 @@ { "resourceType": "ValueSet", "id": "agreedisagree", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ValueSet/agreedisagree", + "url": "https://smart.who.int/ccc/ValueSet/agreedisagree", "name": "valueset-agreedisagree", "status": "draft", "experimental": false, @@ -10,7 +10,7 @@ "compose": { "include": [ { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "concept": [ { "code": "agree", diff --git a/input/vocabulary/valueset/valueset-appetite-test.json b/input/vocabulary/valueset/valueset-appetite-test.json index fd933d16..e6513e7b 100644 --- a/input/vocabulary/valueset/valueset-appetite-test.json +++ b/input/vocabulary/valueset/valueset-appetite-test.json @@ -1,7 +1,7 @@ { "resourceType": "ValueSet", "id": "appetite-test", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ValueSet/appetite-test", + "url": "https://smart.who.int/ccc/ValueSet/appetite-test", "name": "valueset-appetite-test", "title": "EmCare.B22.DE23", "status": "draft", @@ -11,7 +11,7 @@ "compose": { "include": [ { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "concept": [ { "code": "EmCare.B22.DE24", diff --git a/input/vocabulary/valueset/valueset-bioparent-status.json b/input/vocabulary/valueset/valueset-bioparent-status.json index e01ab4c0..9342a675 100644 --- a/input/vocabulary/valueset/valueset-bioparent-status.json +++ b/input/vocabulary/valueset/valueset-bioparent-status.json @@ -1,7 +1,7 @@ { "resourceType": "ValueSet", "id": "bioparent-status", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ValueSet/bioparent-status", + "url": "https://smart.who.int/ccc/ValueSet/bioparent-status", "name": "valueset-bioparent-status", "status": "draft", "experimental": false, @@ -10,7 +10,7 @@ "compose": { "include": [ { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "concept": [ { "code": "EmCare.A.DE46", diff --git a/input/vocabulary/valueset/valueset-breastfeed-assessment.json b/input/vocabulary/valueset/valueset-breastfeed-assessment.json index 1936e1df..22f32f44 100644 --- a/input/vocabulary/valueset/valueset-breastfeed-assessment.json +++ b/input/vocabulary/valueset/valueset-breastfeed-assessment.json @@ -1,7 +1,7 @@ { "resourceType": "ValueSet", "id": "breastfeed-assessment", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ValueSet/breastfeed-assessment", + "url": "https://smart.who.int/ccc/ValueSet/breastfeed-assessment", "name": "valueset-breastfeed-assessment", "title": "EmCare.B22.DE36", "status": "draft", @@ -11,7 +11,7 @@ "compose": { "include": [ { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "concept": [ { "code": "EmCare.B22.DE37", diff --git a/input/vocabulary/valueset/valueset-child-last-hiv-status.json b/input/vocabulary/valueset/valueset-child-last-hiv-status.json index 3c9d5726..2a7f37c0 100644 --- a/input/vocabulary/valueset/valueset-child-last-hiv-status.json +++ b/input/vocabulary/valueset/valueset-child-last-hiv-status.json @@ -1,7 +1,7 @@ { "resourceType": "ValueSet", "id": "child-last-hiv-status", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ValueSet/child-last-hiv-status", + "url": "https://smart.who.int/ccc/ValueSet/child-last-hiv-status", "name": "valueset-child-last-hiv-status", "title": "EmCare.B17.DE30", "status": "draft", @@ -11,7 +11,7 @@ "compose": { "include": [ { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "concept": [ { "code": "EmCare.B17.DE31", diff --git a/input/vocabulary/valueset/valueset-child-vaccination-status.json b/input/vocabulary/valueset/valueset-child-vaccination-status.json index 8658c304..9895a8d0 100644 --- a/input/vocabulary/valueset/valueset-child-vaccination-status.json +++ b/input/vocabulary/valueset/valueset-child-vaccination-status.json @@ -1,7 +1,7 @@ { "resourceType": "ValueSet", "id": "child-vaccination-status", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ValueSet/child-vaccination-status", + "url": "https://smart.who.int/ccc/ValueSet/child-vaccination-status", "name": "valueset-child-vaccination-status", "title": "EmCare.B17.DE45", "status": "draft", @@ -11,7 +11,7 @@ "compose": { "include": [ { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "concept": [ { "code": "EmCare.B17.DE46", diff --git a/input/vocabulary/valueset/valueset-child-vaccines.json b/input/vocabulary/valueset/valueset-child-vaccines.json index 26c908d4..c2c6ddaa 100644 --- a/input/vocabulary/valueset/valueset-child-vaccines.json +++ b/input/vocabulary/valueset/valueset-child-vaccines.json @@ -1,7 +1,7 @@ { "resourceType": "ValueSet", "id": "child-vaccines", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ValueSet/child-vaccines", + "url": "https://smart.who.int/ccc/ValueSet/child-vaccines", "name": "valueset-child-vaccines", "title": "EmCare.B17.DE50", "status": "draft", @@ -11,7 +11,7 @@ "compose": { "include": [ { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "concept": [ { "code": "EmCare.B17.DE51", diff --git a/input/vocabulary/valueset/valueset-consultation-status.json b/input/vocabulary/valueset/valueset-consultation-status.json index 4bd90df4..bfa88f4c 100644 --- a/input/vocabulary/valueset/valueset-consultation-status.json +++ b/input/vocabulary/valueset/valueset-consultation-status.json @@ -1,7 +1,7 @@ { "resourceType": "ValueSet", "id": "consultation-status", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ValueSet/consultation-status", + "url": "https://smart.who.int/ccc/ValueSet/consultation-status", "name": "valueset-consultation-status", "title": "Continue to Assess Sick Child", "status": "draft", @@ -11,7 +11,7 @@ "compose": { "include": [ { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "concept": [ { "code": "EmCare.B7-B8-B9.DE03", diff --git a/input/vocabulary/valueset/valueset-consultation-type.json b/input/vocabulary/valueset/valueset-consultation-type.json index 289d19cb..177fdfa6 100644 --- a/input/vocabulary/valueset/valueset-consultation-type.json +++ b/input/vocabulary/valueset/valueset-consultation-type.json @@ -1,7 +1,7 @@ { "resourceType": "ValueSet", "id": "consultation-type", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ValueSet/consultation-type", + "url": "https://smart.who.int/ccc/ValueSet/consultation-type", "name": "valueset-consultation-type", "status": "draft", "experimental": false, @@ -10,7 +10,7 @@ "compose": { "include": [ { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "concept": [ { "code": "EmCare.B3.DE07", diff --git a/input/vocabulary/valueset/valueset-difficulty-feeding.json b/input/vocabulary/valueset/valueset-difficulty-feeding.json index a5c9606a..33aaf810 100644 --- a/input/vocabulary/valueset/valueset-difficulty-feeding.json +++ b/input/vocabulary/valueset/valueset-difficulty-feeding.json @@ -1,7 +1,7 @@ { "resourceType": "ValueSet", "id": "difficulty-feeding", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ValueSet/difficulty-feeding", + "url": "https://smart.who.int/ccc/ValueSet/difficulty-feeding", "name": "valueset-difficulty-feeding", "title": "EmCare.B18S1.DE02", "status": "draft", diff --git a/input/vocabulary/valueset/valueset-dob-estimator.json b/input/vocabulary/valueset/valueset-dob-estimator.json index 96e2a608..b97aca5d 100644 --- a/input/vocabulary/valueset/valueset-dob-estimator.json +++ b/input/vocabulary/valueset/valueset-dob-estimator.json @@ -1,7 +1,7 @@ { "resourceType": "ValueSet", "id": "dob-estimator", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ValueSet/dob-estimator", + "url": "https://smart.who.int/ccc/ValueSet/dob-estimator", "name": "valueset-dob-estimator", "title": "Provide an estimated age or estimated date of birth", "status": "draft", @@ -11,7 +11,7 @@ "compose": { "include": [ { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "concept": [ { "code": "EmCare.A.DE13", diff --git a/input/vocabulary/valueset/valueset-emcarecondition.json b/input/vocabulary/valueset/valueset-emcarecondition.json index 67a8392a..3186dce6 100644 --- a/input/vocabulary/valueset/valueset-emcarecondition.json +++ b/input/vocabulary/valueset/valueset-emcarecondition.json @@ -1,7 +1,7 @@ { "resourceType": "ValueSet", "id": "emcarecondition", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ValueSet/emcarecondition", + "url": "https://smart.who.int/ccc/ValueSet/emcarecondition", "name": "valueset-emcarecondition", "status": "draft", "experimental": false, @@ -10,7 +10,7 @@ "compose": { "include": [ { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "concept": [ { "code": "EmCare.B23.DE83", diff --git a/input/vocabulary/valueset/valueset-emcareobservation-valueset.json b/input/vocabulary/valueset/valueset-emcareobservation-valueset.json index 94f54eef..17999157 100644 --- a/input/vocabulary/valueset/valueset-emcareobservation-valueset.json +++ b/input/vocabulary/valueset/valueset-emcareobservation-valueset.json @@ -1,7 +1,7 @@ { "resourceType": "ValueSet", "id": "emcareobservation-valueset", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ValueSet/emcareobservation-valueset", + "url": "https://smart.who.int/ccc/ValueSet/emcareobservation-valueset", "name": "valueset-emcareobservation-valueset", "status": "draft", "experimental": false, @@ -10,7 +10,7 @@ "compose": { "include": [ { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "concept": [ { "code": "EmCare.B14S2.DE07", diff --git a/input/vocabulary/valueset/valueset-emcareobservation.json b/input/vocabulary/valueset/valueset-emcareobservation.json index ee49715c..d9329355 100644 --- a/input/vocabulary/valueset/valueset-emcareobservation.json +++ b/input/vocabulary/valueset/valueset-emcareobservation.json @@ -1,7 +1,7 @@ { "resourceType": "ValueSet", "id": "emcareobservation", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ValueSet/emcareobservation", + "url": "https://smart.who.int/ccc/ValueSet/emcareobservation", "name": "valueset-emcareobservation", "status": "draft", "experimental": false, @@ -10,7 +10,7 @@ "compose": { "include": [ { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "concept": [ { "code": "EmCare.B3.DE05", diff --git a/input/vocabulary/valueset/valueset-emcareobservationvalueset.json b/input/vocabulary/valueset/valueset-emcareobservationvalueset.json index c8210f02..fc1d48cd 100644 --- a/input/vocabulary/valueset/valueset-emcareobservationvalueset.json +++ b/input/vocabulary/valueset/valueset-emcareobservationvalueset.json @@ -1,7 +1,7 @@ { "resourceType": "ValueSet", "id": "emcareobservationvalueset", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ValueSet/emcareobservationvalueset", + "url": "https://smart.who.int/ccc/ValueSet/emcareobservationvalueset", "name": "valueset-emcareobservationvalueset", "status": "draft", "experimental": false, @@ -10,7 +10,7 @@ "compose": { "include": [ { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "concept": [ { "code": "EmCare.B14S2.DE07", diff --git a/input/vocabulary/valueset/valueset-feeding-problem.json b/input/vocabulary/valueset/valueset-feeding-problem.json index 254fc103..698ea247 100644 --- a/input/vocabulary/valueset/valueset-feeding-problem.json +++ b/input/vocabulary/valueset/valueset-feeding-problem.json @@ -1,7 +1,7 @@ { "resourceType": "ValueSet", "id": "feeding-problem", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ValueSet/feeding-problem", + "url": "https://smart.who.int/ccc/ValueSet/feeding-problem", "name": "valueset-feeding-problem", "title": "EmCare.B21S2.DE27", "status": "draft", @@ -11,7 +11,7 @@ "compose": { "include": [ { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "concept": [ { "code": "EmCare.B21S2.DE28", diff --git a/input/vocabulary/valueset/valueset-hiv-prevalence.json b/input/vocabulary/valueset/valueset-hiv-prevalence.json index 44c7acff..fdd180b7 100644 --- a/input/vocabulary/valueset/valueset-hiv-prevalence.json +++ b/input/vocabulary/valueset/valueset-hiv-prevalence.json @@ -1,7 +1,7 @@ { "resourceType": "ValueSet", "id": "hiv-prevalence", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ValueSet/hiv-prevalence", + "url": "https://smart.who.int/ccc/ValueSet/hiv-prevalence", "name": "valueset-hiv-prevalence", "title": "EmCare.B17.DE22", "status": "draft", @@ -11,7 +11,7 @@ "compose": { "include": [ { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "concept": [ { "code": "EmCare.B17.DE23", diff --git a/input/vocabulary/valueset/valueset-hiv-status.json b/input/vocabulary/valueset/valueset-hiv-status.json index b460cb19..23da4c3c 100644 --- a/input/vocabulary/valueset/valueset-hiv-status.json +++ b/input/vocabulary/valueset/valueset-hiv-status.json @@ -1,7 +1,7 @@ { "resourceType": "ValueSet", "id": "hiv-status", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ValueSet/hiv-status", + "url": "https://smart.who.int/ccc/ValueSet/hiv-status", "name": "valueset-hiv-status", "title": "EmCare.B21S1.DE01", "status": "draft", @@ -11,7 +11,7 @@ "compose": { "include": [ { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "concept": [ { "code": "EmCare.B21S1.DE02", diff --git a/input/vocabulary/valueset/valueset-inhaled-bronchodilator-trial.json b/input/vocabulary/valueset/valueset-inhaled-bronchodilator-trial.json index 18e06286..4e410fbb 100644 --- a/input/vocabulary/valueset/valueset-inhaled-bronchodilator-trial.json +++ b/input/vocabulary/valueset/valueset-inhaled-bronchodilator-trial.json @@ -1,7 +1,7 @@ { "resourceType": "ValueSet", "id": "inhaled-bronchodilator-trial", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ValueSet/inhaled-bronchodilator-trial", + "url": "https://smart.who.int/ccc/ValueSet/inhaled-bronchodilator-trial", "name": "valueset-inhaled-bronchodilator-trial", "status": "draft", "experimental": false, @@ -10,7 +10,7 @@ "compose": { "include": [ { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "concept": [ { "code": "EmCare.B22.DE18", diff --git a/input/vocabulary/valueset/valueset-is-recorded.json b/input/vocabulary/valueset/valueset-is-recorded.json index 793b7056..b21c43f4 100644 --- a/input/vocabulary/valueset/valueset-is-recorded.json +++ b/input/vocabulary/valueset/valueset-is-recorded.json @@ -1,7 +1,7 @@ { "resourceType": "ValueSet", "id": "is-recorded", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ValueSet/is-recorded", + "url": "https://smart.who.int/ccc/ValueSet/is-recorded", "name": "valueset-is-recorded", "title": "EmCare.B17.DE05", "status": "draft", @@ -11,7 +11,7 @@ "compose": { "include": [ { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "concept": [ { "code": "EmCare.B17.DE06", diff --git a/input/vocabulary/valueset/valueset-malaria-microscopy-species.json b/input/vocabulary/valueset/valueset-malaria-microscopy-species.json index 7628c45a..d11e185d 100644 --- a/input/vocabulary/valueset/valueset-malaria-microscopy-species.json +++ b/input/vocabulary/valueset/valueset-malaria-microscopy-species.json @@ -1,7 +1,7 @@ { "resourceType": "ValueSet", "id": "malaria-microscopy-species", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ValueSet/malaria-microscopy-species", + "url": "https://smart.who.int/ccc/ValueSet/malaria-microscopy-species", "name": "valueset-malaria-microscopy-species", "status": "draft", "experimental": false, @@ -10,7 +10,7 @@ "compose": { "include": [ { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "concept": [ { "code": "EmCare.B22.DE75", diff --git a/input/vocabulary/valueset/valueset-malaria-rdt-species.json b/input/vocabulary/valueset/valueset-malaria-rdt-species.json index 669c7a8f..dce2b5a5 100644 --- a/input/vocabulary/valueset/valueset-malaria-rdt-species.json +++ b/input/vocabulary/valueset/valueset-malaria-rdt-species.json @@ -1,7 +1,7 @@ { "resourceType": "ValueSet", "id": "malaria-rdt-species", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ValueSet/malaria-rdt-species", + "url": "https://smart.who.int/ccc/ValueSet/malaria-rdt-species", "name": "valueset-malaria-rdt-species", "title": "EmCare.B22.DE61", "status": "draft", @@ -11,7 +11,7 @@ "compose": { "include": [ { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "concept": [ { "code": "EmCare.B22.DE62", diff --git a/input/vocabulary/valueset/valueset-malaria-risk-region-2.json b/input/vocabulary/valueset/valueset-malaria-risk-region-2.json index 39110333..0fe35264 100644 --- a/input/vocabulary/valueset/valueset-malaria-risk-region-2.json +++ b/input/vocabulary/valueset/valueset-malaria-risk-region-2.json @@ -1,7 +1,7 @@ { "resourceType": "ValueSet", "id": "malaria-risk-region-2", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ValueSet/malaria-risk-region-2", + "url": "https://smart.who.int/ccc/ValueSet/malaria-risk-region-2", "name": "valueset-malaria-risk-region-2", "title": "EmCare.B15S2.DE05", "status": "draft", @@ -11,7 +11,7 @@ "compose": { "include": [ { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "concept": [ { "code": "EmCare.B15S2.DE06", diff --git a/input/vocabulary/valueset/valueset-malaria-test-type.json b/input/vocabulary/valueset/valueset-malaria-test-type.json index f4ef8d2c..16475156 100644 --- a/input/vocabulary/valueset/valueset-malaria-test-type.json +++ b/input/vocabulary/valueset/valueset-malaria-test-type.json @@ -1,7 +1,7 @@ { "resourceType": "ValueSet", "id": "malaria-test-type", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ValueSet/malaria-test-type", + "url": "https://smart.who.int/ccc/ValueSet/malaria-test-type", "name": "valueset-malaria-test-type", "title": "EmCare.B22.DE57", "status": "draft", @@ -11,7 +11,7 @@ "compose": { "include": [ { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "concept": [ { "code": "EmCare.B22.DE58", diff --git a/input/vocabulary/valueset/valueset-malaria-test.json b/input/vocabulary/valueset/valueset-malaria-test.json index 435540e9..c9aacb7a 100644 --- a/input/vocabulary/valueset/valueset-malaria-test.json +++ b/input/vocabulary/valueset/valueset-malaria-test.json @@ -1,7 +1,7 @@ { "resourceType": "ValueSet", "id": "malaria-test", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ValueSet/malaria-test", + "url": "https://smart.who.int/ccc/ValueSet/malaria-test", "name": "valueset-malaria-test", "title": "EmCare.B22.DE53", "status": "draft", @@ -11,7 +11,7 @@ "compose": { "include": [ { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "concept": [ { "code": "EmCare.B22.DE54", diff --git a/input/vocabulary/valueset/valueset-measured-temperature.json b/input/vocabulary/valueset/valueset-measured-temperature.json index 781d9b6c..b96f17f2 100644 --- a/input/vocabulary/valueset/valueset-measured-temperature.json +++ b/input/vocabulary/valueset/valueset-measured-temperature.json @@ -1,7 +1,7 @@ { "resourceType": "ValueSet", "id": "measured-temperature", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ValueSet/measured-temperature", + "url": "https://smart.who.int/ccc/ValueSet/measured-temperature", "name": "valueset-measured-temperature", "title": "EmCare.B18S2.DE01", "status": "draft", diff --git a/input/vocabulary/valueset/valueset-milk-given.json b/input/vocabulary/valueset/valueset-milk-given.json index ef40dd46..da71eec8 100644 --- a/input/vocabulary/valueset/valueset-milk-given.json +++ b/input/vocabulary/valueset/valueset-milk-given.json @@ -1,7 +1,7 @@ { "resourceType": "ValueSet", "id": "milk-given", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ValueSet/milk-given", + "url": "https://smart.who.int/ccc/ValueSet/milk-given", "name": "valueset-milk-given", "title": "EmCare.B21S2.DE21", "status": "draft", @@ -11,7 +11,7 @@ "compose": { "include": [ { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "concept": [ { "code": "EmCare.B21S2.DE22", diff --git a/input/vocabulary/valueset/valueset-milk-preparation.json b/input/vocabulary/valueset/valueset-milk-preparation.json index 5df4be1c..b60074a7 100644 --- a/input/vocabulary/valueset/valueset-milk-preparation.json +++ b/input/vocabulary/valueset/valueset-milk-preparation.json @@ -1,7 +1,7 @@ { "resourceType": "ValueSet", "id": "milk-preparation", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ValueSet/milk-preparation", + "url": "https://smart.who.int/ccc/ValueSet/milk-preparation", "name": "valueset-milk-preparation", "title": "EmCare.B21S2.DE18", "status": "draft", @@ -11,7 +11,7 @@ "compose": { "include": [ { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "concept": [ { "code": "EmCare.B21S2.DE19", diff --git a/input/vocabulary/valueset/valueset-more-than-14d.json b/input/vocabulary/valueset/valueset-more-than-14d.json index 54d94909..9711a26d 100644 --- a/input/vocabulary/valueset/valueset-more-than-14d.json +++ b/input/vocabulary/valueset/valueset-more-than-14d.json @@ -1,7 +1,7 @@ { "resourceType": "ValueSet", "id": "more-than-14d", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ValueSet/more-than-14d", + "url": "https://smart.who.int/ccc/ValueSet/more-than-14d", "name": "valueset-more-than-14d", "status": "draft", "experimental": false, @@ -10,7 +10,7 @@ "compose": { "include": [ { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "concept": [ { "code": "EmCare.B10S1.DE08", diff --git a/input/vocabulary/valueset/valueset-more-than-7d.json b/input/vocabulary/valueset/valueset-more-than-7d.json index 2ded0205..4615cdc0 100644 --- a/input/vocabulary/valueset/valueset-more-than-7d.json +++ b/input/vocabulary/valueset/valueset-more-than-7d.json @@ -1,7 +1,7 @@ { "resourceType": "ValueSet", "id": "more-than-7d", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ValueSet/more-than-7d", + "url": "https://smart.who.int/ccc/ValueSet/more-than-7d", "name": "valueset-more-than-7d", "status": "draft", "experimental": false, @@ -10,7 +10,7 @@ "compose": { "include": [ { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "concept": [ { "code": "EmCare.B12S1.DE05", diff --git a/input/vocabulary/valueset/valueset-movements.json b/input/vocabulary/valueset/valueset-movements.json index 7b9664a4..68394e2a 100644 --- a/input/vocabulary/valueset/valueset-movements.json +++ b/input/vocabulary/valueset/valueset-movements.json @@ -1,7 +1,7 @@ { "resourceType": "ValueSet", "id": "movements", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ValueSet/movements", + "url": "https://smart.who.int/ccc/ValueSet/movements", "name": "valueset-movements", "title": "EmCare.B18S2.DE08", "status": "draft", diff --git a/input/vocabulary/valueset/valueset-mucus-membrane-pallor.json b/input/vocabulary/valueset/valueset-mucus-membrane-pallor.json index c82370ed..6fead3a6 100644 --- a/input/vocabulary/valueset/valueset-mucus-membrane-pallor.json +++ b/input/vocabulary/valueset/valueset-mucus-membrane-pallor.json @@ -1,7 +1,7 @@ { "resourceType": "ValueSet", "id": "mucus-membrane-pallor", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ValueSet/mucus-membrane-pallor", + "url": "https://smart.who.int/ccc/ValueSet/mucus-membrane-pallor", "name": "valueset-mucus-membrane-pallor", "title": "EmCare.B15S2.DE09", "status": "draft", @@ -11,7 +11,7 @@ "compose": { "include": [ { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "concept": [ { "code": "EmCare.B15S2.DE10", diff --git a/input/vocabulary/valueset/valueset-number-of-convulsions.json b/input/vocabulary/valueset/valueset-number-of-convulsions.json index dc2addc8..b6e5cfa9 100644 --- a/input/vocabulary/valueset/valueset-number-of-convulsions.json +++ b/input/vocabulary/valueset/valueset-number-of-convulsions.json @@ -1,7 +1,7 @@ { "resourceType": "ValueSet", "id": "number-of-convulsions", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ValueSet/number-of-convulsions", + "url": "https://smart.who.int/ccc/ValueSet/number-of-convulsions", "name": "valueset-number-of-convulsions", "status": "draft", "experimental": false, @@ -10,7 +10,7 @@ "compose": { "include": [ { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "concept": [ { "code": "EmCare.B7.DE06", diff --git a/input/vocabulary/valueset/valueset-observation.json b/input/vocabulary/valueset/valueset-observation.json index 2418465e..47bca0ab 100644 --- a/input/vocabulary/valueset/valueset-observation.json +++ b/input/vocabulary/valueset/valueset-observation.json @@ -1,7 +1,7 @@ { "resourceType": "ValueSet", "id": "observation", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ValueSet/observation", + "url": "https://smart.who.int/ccc/ValueSet/observation", "name": "valueset-observation", "status": "draft", "experimental": false, @@ -10,7 +10,7 @@ "compose": { "include": [ { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "concept": [ { "code": "EmCare.B3.DE05", diff --git a/input/vocabulary/valueset/valueset-oral-fluid-test.json b/input/vocabulary/valueset/valueset-oral-fluid-test.json index 54d0a4b0..08950f73 100644 --- a/input/vocabulary/valueset/valueset-oral-fluid-test.json +++ b/input/vocabulary/valueset/valueset-oral-fluid-test.json @@ -1,7 +1,7 @@ { "resourceType": "ValueSet", "id": "oral-fluid-test", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ValueSet/oral-fluid-test", + "url": "https://smart.who.int/ccc/ValueSet/oral-fluid-test", "name": "valueset-oral-fluid-test", "title": "EmCare.B22.DE08", "status": "draft", @@ -11,7 +11,7 @@ "compose": { "include": [ { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "concept": [ { "code": "EmCare.B22.DE09", diff --git a/input/vocabulary/valueset/valueset-oral-sores.json b/input/vocabulary/valueset/valueset-oral-sores.json index 6b6a9e31..8af3c466 100644 --- a/input/vocabulary/valueset/valueset-oral-sores.json +++ b/input/vocabulary/valueset/valueset-oral-sores.json @@ -1,7 +1,7 @@ { "resourceType": "ValueSet", "id": "oral-sores", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ValueSet/oral-sores", + "url": "https://smart.who.int/ccc/ValueSet/oral-sores", "name": "valueset-oral-sores", "title": "EmCare.B14S2.DE38", "status": "draft", @@ -11,7 +11,7 @@ "compose": { "include": [ { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "concept": [ { "code": "EmCare.B14S2.DE41", diff --git a/input/vocabulary/valueset/valueset-oxygen-saturation.json b/input/vocabulary/valueset/valueset-oxygen-saturation.json index 32613837..58d32d94 100644 --- a/input/vocabulary/valueset/valueset-oxygen-saturation.json +++ b/input/vocabulary/valueset/valueset-oxygen-saturation.json @@ -1,7 +1,7 @@ { "resourceType": "ValueSet", "id": "oxygen-saturation", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ValueSet/oxygen-saturation", + "url": "https://smart.who.int/ccc/ValueSet/oxygen-saturation", "name": "valueset-oxygen-saturation", "title": "EmCare.B10S2.DE08", "status": "draft", @@ -11,7 +11,7 @@ "compose": { "include": [ { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "concept": [ { "code": "EmCare.B10S2.DE09", diff --git a/input/vocabulary/valueset/valueset-palmar-pallor.json b/input/vocabulary/valueset/valueset-palmar-pallor.json index 85519f32..079f646e 100644 --- a/input/vocabulary/valueset/valueset-palmar-pallor.json +++ b/input/vocabulary/valueset/valueset-palmar-pallor.json @@ -1,7 +1,7 @@ { "resourceType": "ValueSet", "id": "palmar-pallor", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ValueSet/palmar-pallor", + "url": "https://smart.who.int/ccc/ValueSet/palmar-pallor", "name": "valueset-palmar-pallor", "title": "EmCare.B15S2.DE01", "status": "draft", @@ -11,7 +11,7 @@ "compose": { "include": [ { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "concept": [ { "code": "EmCare.B15S2.DE02", diff --git a/input/vocabulary/valueset/valueset-reason-consultation.json b/input/vocabulary/valueset/valueset-reason-consultation.json index 9c2f771f..b1728fb8 100644 --- a/input/vocabulary/valueset/valueset-reason-consultation.json +++ b/input/vocabulary/valueset/valueset-reason-consultation.json @@ -1,7 +1,7 @@ { "resourceType": "ValueSet", "id": "reason-consultation", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ValueSet/reason-consultation", + "url": "https://smart.who.int/ccc/ValueSet/reason-consultation", "name": "valueset-reason-consultation", "title": "Reason for Consultation", "status": "draft", @@ -11,7 +11,7 @@ "compose": { "include": [ { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "concept": [ { "code": "EmCare.B3.DE03", diff --git a/input/vocabulary/valueset/valueset-relatedperson.json b/input/vocabulary/valueset/valueset-relatedperson.json index f6650aa2..b719fba2 100644 --- a/input/vocabulary/valueset/valueset-relatedperson.json +++ b/input/vocabulary/valueset/valueset-relatedperson.json @@ -1,7 +1,7 @@ { "resourceType": "ValueSet", "id": "relatedperson", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ValueSet/relatedperson", + "url": "https://smart.who.int/ccc/ValueSet/relatedperson", "name": "valueset-relatedperson", "status": "draft", "experimental": false, diff --git a/input/vocabulary/valueset/valueset-relationship-to-client.json b/input/vocabulary/valueset/valueset-relationship-to-client.json index 82b3a67f..d98fef24 100644 --- a/input/vocabulary/valueset/valueset-relationship-to-client.json +++ b/input/vocabulary/valueset/valueset-relationship-to-client.json @@ -1,7 +1,7 @@ { "resourceType": "ValueSet", "id": "relationship-to-client", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ValueSet/relationship-to-client", + "url": "https://smart.who.int/ccc/ValueSet/relationship-to-client", "name": "valueset-relationship-to-client", "title": "Caregiver's Relationship to Client", "status": "draft", @@ -11,7 +11,7 @@ "compose": { "include": [ { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "concept": [ { "code": "EmCare.A.DE25", diff --git a/input/vocabulary/valueset/valueset-replacement-milk.json b/input/vocabulary/valueset/valueset-replacement-milk.json index ae14c2a4..5f884401 100644 --- a/input/vocabulary/valueset/valueset-replacement-milk.json +++ b/input/vocabulary/valueset/valueset-replacement-milk.json @@ -1,7 +1,7 @@ { "resourceType": "ValueSet", "id": "replacement-milk", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ValueSet/replacement-milk", + "url": "https://smart.who.int/ccc/ValueSet/replacement-milk", "name": "valueset-replacement-milk", "title": "EmCare.B21S2.DE09", "status": "draft", @@ -11,7 +11,7 @@ "compose": { "include": [ { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "concept": [ { "code": "EmCare.B21S2.DE11", diff --git a/input/vocabulary/valueset/valueset-sex-of-the-client.json b/input/vocabulary/valueset/valueset-sex-of-the-client.json index da1c31b4..622ff37f 100644 --- a/input/vocabulary/valueset/valueset-sex-of-the-client.json +++ b/input/vocabulary/valueset/valueset-sex-of-the-client.json @@ -1,7 +1,7 @@ { "resourceType": "ValueSet", "id": "sex-of-the-client", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ValueSet/sex-of-the-client", + "url": "https://smart.who.int/ccc/ValueSet/sex-of-the-client", "name": "valueset-sex-of-the-client", "title": "Sex", "status": "draft", @@ -11,7 +11,7 @@ "compose": { "include": [ { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "concept": [ { "code": "EmCare.A.DE17", diff --git a/input/vocabulary/valueset/valueset-skin-pb-location.json b/input/vocabulary/valueset/valueset-skin-pb-location.json index bff2bcf4..3ea800f1 100644 --- a/input/vocabulary/valueset/valueset-skin-pb-location.json +++ b/input/vocabulary/valueset/valueset-skin-pb-location.json @@ -1,7 +1,7 @@ { "resourceType": "ValueSet", "id": "skin-pb-location", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ValueSet/skin-pb-location", + "url": "https://smart.who.int/ccc/ValueSet/skin-pb-location", "name": "valueset-skin-pb-location", "title": "EmCare.B14S2.DE06", "status": "draft", @@ -11,7 +11,7 @@ "compose": { "include": [ { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "concept": [ { "code": "EmCare.B14S2.DE07", diff --git a/input/vocabulary/valueset/valueset-skin-pb.json b/input/vocabulary/valueset/valueset-skin-pb.json index 80742083..239ecb9e 100644 --- a/input/vocabulary/valueset/valueset-skin-pb.json +++ b/input/vocabulary/valueset/valueset-skin-pb.json @@ -1,7 +1,7 @@ { "resourceType": "ValueSet", "id": "skin-pb", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ValueSet/skin-pb", + "url": "https://smart.who.int/ccc/ValueSet/skin-pb", "name": "valueset-skin-pb", "title": "EmCare.B14S2.DE13", "status": "draft", @@ -11,7 +11,7 @@ "compose": { "include": [ { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "concept": [ { "code": "EmCare.B14S2.DE18", diff --git a/input/vocabulary/valueset/valueset-skin-pinch-abdomen.json b/input/vocabulary/valueset/valueset-skin-pinch-abdomen.json index 79dd05b3..c5aac02d 100644 --- a/input/vocabulary/valueset/valueset-skin-pinch-abdomen.json +++ b/input/vocabulary/valueset/valueset-skin-pinch-abdomen.json @@ -1,7 +1,7 @@ { "resourceType": "ValueSet", "id": "skin-pinch-abdomen", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ValueSet/skin-pinch-abdomen", + "url": "https://smart.who.int/ccc/ValueSet/skin-pinch-abdomen", "name": "valueset-skin-pinch-abdomen", "title": "EmCare.B20S2.DE02", "status": "draft", @@ -11,7 +11,7 @@ "compose": { "include": [ { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "concept": [ { "code": "EmCare.B20S2.DE03", diff --git a/input/vocabulary/valueset/valueset-temperature-measurement.json b/input/vocabulary/valueset/valueset-temperature-measurement.json index 2b5b8f7c..6663fd96 100644 --- a/input/vocabulary/valueset/valueset-temperature-measurement.json +++ b/input/vocabulary/valueset/valueset-temperature-measurement.json @@ -1,7 +1,7 @@ { "resourceType": "ValueSet", "id": "temperature-measurement", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ValueSet/temperature-measurement", + "url": "https://smart.who.int/ccc/ValueSet/temperature-measurement", "name": "valueset-temperature-measurement", "title": "Temperature Measurement", "status": "draft", @@ -11,7 +11,7 @@ "compose": { "include": [ { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "concept": [ { "code": "Low", diff --git a/input/vocabulary/valueset/valueset-throatproblem.json b/input/vocabulary/valueset/valueset-throatproblem.json index 0d13fd49..f8e48e18 100644 --- a/input/vocabulary/valueset/valueset-throatproblem.json +++ b/input/vocabulary/valueset/valueset-throatproblem.json @@ -1,7 +1,7 @@ { "resourceType": "ValueSet", "id": "throatproblem", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ValueSet/throatproblem", + "url": "https://smart.who.int/ccc/ValueSet/throatproblem", "name": "valueset-throatproblem", "status": "draft", "experimental": false, @@ -10,7 +10,7 @@ "compose": { "include": [ { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "concept": [ { "code": "EmCare.B17S1.DE03", diff --git a/input/vocabulary/valueset/valueset-underweight.json b/input/vocabulary/valueset/valueset-underweight.json index 4b55d339..c2141632 100644 --- a/input/vocabulary/valueset/valueset-underweight.json +++ b/input/vocabulary/valueset/valueset-underweight.json @@ -1,7 +1,7 @@ { "resourceType": "ValueSet", "id": "underweight", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ValueSet/underweight", + "url": "https://smart.who.int/ccc/ValueSet/underweight", "name": "valueset-underweight", "status": "draft", "experimental": false, @@ -10,7 +10,7 @@ "compose": { "include": [ { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "concept": [ { "code": "EmCare.B6.DE19", diff --git a/input/vocabulary/valueset/valueset-utensils-cleaned.json b/input/vocabulary/valueset/valueset-utensils-cleaned.json index 16dd88f4..afbc3797 100644 --- a/input/vocabulary/valueset/valueset-utensils-cleaned.json +++ b/input/vocabulary/valueset/valueset-utensils-cleaned.json @@ -1,7 +1,7 @@ { "resourceType": "ValueSet", "id": "utensils-cleaned", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ValueSet/utensils-cleaned", + "url": "https://smart.who.int/ccc/ValueSet/utensils-cleaned", "name": "valueset-utensils-cleaned", "title": "EmCare.B21S2.DE24", "status": "draft", @@ -11,7 +11,7 @@ "compose": { "include": [ { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "concept": [ { "code": "EmCare.B21S2.DE26", diff --git a/input/vocabulary/valueset/valueset-visit-type.json b/input/vocabulary/valueset/valueset-visit-type.json index 650af61a..723d8253 100644 --- a/input/vocabulary/valueset/valueset-visit-type.json +++ b/input/vocabulary/valueset/valueset-visit-type.json @@ -1,7 +1,7 @@ { "resourceType": "ValueSet", "id": "visit-type", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ValueSet/visit-type", + "url": "https://smart.who.int/ccc/ValueSet/visit-type", "name": "valueset-visit-type", "status": "draft", "experimental": false, @@ -10,7 +10,7 @@ "compose": { "include": [ { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "concept": [ { "code": "EmCare.B2.DE02", diff --git a/input/vocabulary/valueset/valueset-vital-status.json b/input/vocabulary/valueset/valueset-vital-status.json index e6d94e89..bb502883 100644 --- a/input/vocabulary/valueset/valueset-vital-status.json +++ b/input/vocabulary/valueset/valueset-vital-status.json @@ -1,7 +1,7 @@ { "resourceType": "ValueSet", "id": "vital-status", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ValueSet/vital-status", + "url": "https://smart.who.int/ccc/ValueSet/vital-status", "name": "valueset-vital-status", "title": "Related Person vital status", "status": "draft", @@ -11,7 +11,7 @@ "compose": { "include": [ { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "concept": [ { "code": "EmCare.A.DE46", diff --git a/input/vocabulary/valueset/valueset-weight-status.json b/input/vocabulary/valueset/valueset-weight-status.json index 1e93c8e2..eb52b5ca 100644 --- a/input/vocabulary/valueset/valueset-weight-status.json +++ b/input/vocabulary/valueset/valueset-weight-status.json @@ -1,7 +1,7 @@ { "resourceType": "ValueSet", "id": "weight-status", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ValueSet/weight-status", + "url": "https://smart.who.int/ccc/ValueSet/weight-status", "name": "valueset-weight-status", "title": "EmCare.B21S2.DE01", "status": "draft", @@ -11,7 +11,7 @@ "compose": { "include": [ { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "concept": [ { "code": "EmCare.B21S2.DE02", diff --git a/input/vocabulary/valueset/valueset-yesno.json b/input/vocabulary/valueset/valueset-yesno.json index f75ec519..fc4af7d5 100644 --- a/input/vocabulary/valueset/valueset-yesno.json +++ b/input/vocabulary/valueset/valueset-yesno.json @@ -1,7 +1,7 @@ { "resourceType": "ValueSet", "id": "yesno", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ValueSet/yesno", + "url": "https://smart.who.int/ccc/ValueSet/yesno", "name": "valueset-yesno", "status": "draft", "experimental": false, @@ -10,7 +10,7 @@ "compose": { "include": [ { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "concept": [ { "code": "yes", diff --git a/input/vocabulary/valueset/valueset-yesnox.json b/input/vocabulary/valueset/valueset-yesnox.json index 34e53895..ed4ce51a 100644 --- a/input/vocabulary/valueset/valueset-yesnox.json +++ b/input/vocabulary/valueset/valueset-yesnox.json @@ -1,7 +1,7 @@ { "resourceType": "ValueSet", "id": "yesnox", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/ValueSet/yesnox", + "url": "https://smart.who.int/ccc/ValueSet/yesnox", "name": "valueset-yesnox", "status": "draft", "experimental": false, @@ -10,7 +10,7 @@ "compose": { "include": [ { - "system": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes", + "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", "concept": [ { "code": "yes", diff --git a/manual/cql/emcarebase.cql b/manual/cql/emcarebase.cql index cf26291f..d3840efc 100644 --- a/manual/cql/emcarebase.cql +++ b/manual/cql/emcarebase.cql @@ -11,7 +11,7 @@ include FHIRHelpers version '4.0.1' parameter "encounterid" String //parameter "Encounter" Encounter$ -codesystem "RoleCodeSystem" : 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/emcare-custom-codes' +codesystem "RoleCodeSystem" : 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' code "Mother": 'MTH' from "RoleCodeSystem" context Patient diff --git a/manual/resources/library/library-ArmCircumferenceForAge.json b/manual/resources/library/library-ArmCircumferenceForAge.json index b132fb1b..c06a5db8 100644 --- a/manual/resources/library/library-ArmCircumferenceForAge.json +++ b/manual/resources/library/library-ArmCircumferenceForAge.json @@ -1,7 +1,7 @@ { "resourceType": "Library", "id": "ArmCircumferenceForAge", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/ArmCircumferenceForAge", + "url": "https://smart.who.int/ccc/Library/ArmCircumferenceForAge", "version": "1.0.4", "name": "ArmCircumferenceForAge", "status": "active", @@ -16,7 +16,7 @@ "relatedArtifact": [ { "type": "depends-on", - "resource": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/anthrobase" + "resource": "https://smart.who.int/ccc/Library/anthrobase" } ], "parameter": [ diff --git a/manual/resources/library/library-BMIForAge.json b/manual/resources/library/library-BMIForAge.json index 8ec6a5f8..82756406 100644 --- a/manual/resources/library/library-BMIForAge.json +++ b/manual/resources/library/library-BMIForAge.json @@ -1,7 +1,7 @@ { "resourceType": "Library", "id": "BMIForAge", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/BMIForAge", + "url": "https://smart.who.int/ccc/Library/BMIForAge", "version": "1.0.4", "name": "BMIForAge", "status": "active", @@ -16,7 +16,7 @@ "relatedArtifact": [ { "type": "depends-on", - "resource": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/anthrobase" + "resource": "https://smart.who.int/ccc/Library/anthrobase" } ], "parameter": [ diff --git a/manual/resources/library/library-HeadCircumferenceForAge.json b/manual/resources/library/library-HeadCircumferenceForAge.json index 622e0622..6d63d864 100644 --- a/manual/resources/library/library-HeadCircumferenceForAge.json +++ b/manual/resources/library/library-HeadCircumferenceForAge.json @@ -1,7 +1,7 @@ { "resourceType": "Library", "id": "HeadCircumferenceForAge", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/HeadCircumferenceForAge", + "url": "https://smart.who.int/ccc/Library/HeadCircumferenceForAge", "version": "1.0.4", "name": "HeadCircumferenceForAge", "status": "active", @@ -16,7 +16,7 @@ "relatedArtifact": [ { "type": "depends-on", - "resource": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/anthrobase" + "resource": "https://smart.who.int/ccc/Library/anthrobase" } ], "parameter": [ diff --git a/manual/resources/library/library-LengthForAge.json b/manual/resources/library/library-LengthForAge.json index ccf97c34..c3d80c25 100644 --- a/manual/resources/library/library-LengthForAge.json +++ b/manual/resources/library/library-LengthForAge.json @@ -1,7 +1,7 @@ { "resourceType": "Library", "id": "LengthForAge", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/LengthForAge", + "url": "https://smart.who.int/ccc/Library/LengthForAge", "version": "1.0.4", "name": "LengthForAge", "status": "active", @@ -16,7 +16,7 @@ "relatedArtifact": [ { "type": "depends-on", - "resource": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/anthrobase" + "resource": "https://smart.who.int/ccc/Library/anthrobase" } ], "parameter": [ diff --git a/manual/resources/library/library-WeightForAge.json b/manual/resources/library/library-WeightForAge.json index 2b00506c..c2d638d2 100644 --- a/manual/resources/library/library-WeightForAge.json +++ b/manual/resources/library/library-WeightForAge.json @@ -1,7 +1,7 @@ { "resourceType": "Library", "id": "WeightForAge", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/WeightForAge", + "url": "https://smart.who.int/ccc/Library/WeightForAge", "version": "1.0.4", "name": "WeightForAge", "status": "active", @@ -16,7 +16,7 @@ "relatedArtifact": [ { "type": "depends-on", - "resource": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/anthrobase" + "resource": "https://smart.who.int/ccc/Library/anthrobase" } ], "parameter": [ diff --git a/manual/resources/library/library-WeightForHeight.json b/manual/resources/library/library-WeightForHeight.json index 989ecfa0..e4589213 100644 --- a/manual/resources/library/library-WeightForHeight.json +++ b/manual/resources/library/library-WeightForHeight.json @@ -1,7 +1,7 @@ { "resourceType": "Library", "id": "WeightForHeight", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/WeightForHeight", + "url": "https://smart.who.int/ccc/Library/WeightForHeight", "version": "1.0.4", "name": "WeightForHeight", "status": "active", @@ -16,7 +16,7 @@ "relatedArtifact": [ { "type": "depends-on", - "resource": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/anthrobase" + "resource": "https://smart.who.int/ccc/Library/anthrobase" } ], "parameter": [ diff --git a/manual/resources/library/library-WeightForLength.json b/manual/resources/library/library-WeightForLength.json index 3e844428..2a5ccc62 100644 --- a/manual/resources/library/library-WeightForLength.json +++ b/manual/resources/library/library-WeightForLength.json @@ -1,7 +1,7 @@ { "resourceType": "Library", "id": "WeightForLength", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/WeightForLength", + "url": "https://smart.who.int/ccc/Library/WeightForLength", "version": "1.0.4", "name": "WeightForLength", "status": "active", @@ -16,7 +16,7 @@ "relatedArtifact": [ { "type": "depends-on", - "resource": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/anthrobase" + "resource": "https://smart.who.int/ccc/Library/anthrobase" } ], "parameter": [ diff --git a/manual/resources/library/library-anthrobase.json b/manual/resources/library/library-anthrobase.json index 6a31e1f4..12934adc 100644 --- a/manual/resources/library/library-anthrobase.json +++ b/manual/resources/library/library-anthrobase.json @@ -1,7 +1,7 @@ { "resourceType": "Library", "id": "anthrobase", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/anthrobase", + "url": "https://smart.who.int/ccc/Library/anthrobase", "version": "1.0.4", "name": "anthrobase", "title": "anthrobase", diff --git a/manual/resources/library/library-anthrotest.json b/manual/resources/library/library-anthrotest.json index 4c4c9ed4..358e06a3 100644 --- a/manual/resources/library/library-anthrotest.json +++ b/manual/resources/library/library-anthrotest.json @@ -1,7 +1,7 @@ { "resourceType": "Library", "id": "anthrotest", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/anthrotest", + "url": "https://smart.who.int/ccc/Library/anthrotest", "version": "1.0.4", "name": "anthrotest", "title": "anthrotest", diff --git a/manual/resources/library/library-subscapularSkinfoldForAge.json b/manual/resources/library/library-subscapularSkinfoldForAge.json index fa41b061..435b030c 100644 --- a/manual/resources/library/library-subscapularSkinfoldForAge.json +++ b/manual/resources/library/library-subscapularSkinfoldForAge.json @@ -1,7 +1,7 @@ { "resourceType": "Library", "id": "subscapularSkinfoldForAge", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/subscapularSkinfoldForAge", + "url": "https://smart.who.int/ccc/Library/subscapularSkinfoldForAge", "version": "1.0.4", "name": "subscapularSkinfoldForAge", "status": "active", @@ -16,7 +16,7 @@ "relatedArtifact": [ { "type": "depends-on", - "resource": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/anthrobase" + "resource": "https://smart.who.int/ccc/Library/anthrobase" } ], "parameter": [ diff --git a/manual/resources/library/library-tricepsSkinfoldForAge.json b/manual/resources/library/library-tricepsSkinfoldForAge.json index b6eb2e72..398d6993 100644 --- a/manual/resources/library/library-tricepsSkinfoldForAge.json +++ b/manual/resources/library/library-tricepsSkinfoldForAge.json @@ -1,7 +1,7 @@ { "resourceType": "Library", "id": "tricepsSkinfoldForAge", - "url": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/tricepsSkinfoldForAge", + "url": "https://smart.who.int/ccc/Library/tricepsSkinfoldForAge", "version": "1.0.4", "name": "tricepsSkinfoldForAge", "status": "active", @@ -16,7 +16,7 @@ "relatedArtifact": [ { "type": "depends-on", - "resource": "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Library/anthrobase" + "resource": "https://smart.who.int/ccc/Library/anthrobase" } ], "parameter": [ From e3296189f10126ec6f0314fd60d6fdd1f2aaabd0 Mon Sep 17 00:00:00 2001 From: Patrick Delcroix <patrick.delcroix@swisstph.ch> Date: Wed, 1 Apr 2026 09:01:45 +0200 Subject: [PATCH 02/24] update publisher action branch --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index be708fab..8bf6b439 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -40,7 +40,7 @@ jobs: args: curl -L https://github.com/HL7/fhir-ig-publisher/releases/latest/download/publisher.jar -o ./input-cache/publisher.jar --create-dirs - name: Run the IG publisher - uses: WorldHealthOrganization/smart-emcare/ig-publisher-base@develop + uses: WorldHealthOrganization/smart-emcare/ig-publisher-base@feature/update-canonical with: # Run the publisher - don't run the batch script but run the line directly args: java -Xms1g -Xmx8g -jar ./input-cache/publisher.jar publisher -ig . From a759b59c6a33f4505998c5bd173bbd42dcb0578e Mon Sep 17 00:00:00 2001 From: Patrick Delcroix <patrick.delcroix@swisstph.ch> Date: Wed, 1 Apr 2026 09:02:21 +0200 Subject: [PATCH 03/24] Update IG publisher action to use main branch --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8bf6b439..f0b4cd34 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -40,7 +40,7 @@ jobs: args: curl -L https://github.com/HL7/fhir-ig-publisher/releases/latest/download/publisher.jar -o ./input-cache/publisher.jar --create-dirs - name: Run the IG publisher - uses: WorldHealthOrganization/smart-emcare/ig-publisher-base@feature/update-canonical + uses: WorldHealthOrganization/smart-emcare/ig-publisher-base@main with: # Run the publisher - don't run the batch script but run the line directly args: java -Xms1g -Xmx8g -jar ./input-cache/publisher.jar publisher -ig . From 540a18b1b5dbb9ac998b25279355108eb02a2cb0 Mon Sep 17 00:00:00 2001 From: Patrick Delcroix <patrick.delcroix@swisstph.ch> Date: Wed, 1 Apr 2026 09:10:35 +0200 Subject: [PATCH 04/24] Update ig-publisher-base action to use main branch --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f0b4cd34..71b9feb5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -34,7 +34,7 @@ jobs: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2 - name: Update the image to the latest publisher - uses: WorldHealthOrganization/smart-emcare/ig-publisher-base@develop + uses: WorldHealthOrganization/smart-emcare/ig-publisher-base@main with: # Get the latest publisher - don't run the batch script but run the line directly args: curl -L https://github.com/HL7/fhir-ig-publisher/releases/latest/download/publisher.jar -o ./input-cache/publisher.jar --create-dirs From 86eea0c0ec294704077856095f2fc5e6a6fcd671 Mon Sep 17 00:00:00 2001 From: Patrick Delcroix <patrick.delcroix@swisstph.ch> Date: Wed, 1 Apr 2026 09:50:03 +0200 Subject: [PATCH 05/24] Modify template path and add comment in ig.ini Updated template path and added comment for clarity. --- ig.ini | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ig.ini b/ig.ini index f34509f7..76cad156 100644 --- a/ig.ini +++ b/ig.ini @@ -1,5 +1,7 @@ [IG] ig = input/smart.who.int.ccc.xml -template = who.template.root#current +# who.template.root#current dowload from smart-base +template = template = /home/publisher/local-template + usage-stats-opt-out = false fhir-version = 4.0.1 From 5a2f0506c6d173aefb2fb68d99999b07fb8a1662 Mon Sep 17 00:00:00 2001 From: Patrick Delcroix <delcroip@gmail.com> Date: Wed, 1 Apr 2026 10:00:50 +0200 Subject: [PATCH 06/24] use yml --- ig.ini | 2 +- input/smart.who.int.ccc.xml | 299 ------------------------------------ sushi-config.yaml | 150 ++++++++++++++++++ 3 files changed, 151 insertions(+), 300 deletions(-) delete mode 100644 input/smart.who.int.ccc.xml create mode 100644 sushi-config.yaml diff --git a/ig.ini b/ig.ini index 76cad156..89a29bf9 100644 --- a/ig.ini +++ b/ig.ini @@ -1,5 +1,5 @@ [IG] -ig = input/smart.who.int.ccc.xml +ig = sushi-config.yaml # who.template.root#current dowload from smart-base template = template = /home/publisher/local-template diff --git a/input/smart.who.int.ccc.xml b/input/smart.who.int.ccc.xml deleted file mode 100644 index 09880b83..00000000 --- a/input/smart.who.int.ccc.xml +++ /dev/null @@ -1,299 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<ImplementationGuide xmlns="http://hl7.org/fhir"> - <canonical value="https://smart.who.int/ccc"/> - <id value="smart.who.int.ccc"/> - <url value="https://smart.who.int/ccc/ImplementationGuide/smart.who.int.ccc"/> - <version value="0.1.0"/> - <name value="Ccc"/> - <title value="WHO FHIR Implementation Guide (IG): Integrated Management of Childhood Illness (IMCI) in emergencies"/> - <status value="draft"/> - <experimental value="false"/> - <date value="2022-01-06"/> - <publisher value="World Health Organization (WHO)"/> - <contact> - <telecom> - <system value="url"/> - <value value="https://www.who.int"/> - </telecom> - </contact> - <description value="This implementation guide provides implementation resources and guidance in support of applying the WHO recommendations on emergency care.</br>This implementation guide is part of the WHO Smart Guidelines approach to support countries to integrate WHO global data and health recommendations into digital systems accurately and consistently."/> - <jurisdiction> - <coding> - <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/> - <code value="001"/> - </coding> - </jurisdiction> - <packageId value="smart.who.int.ccc"/> - <license value="CC0-1.0"/> - <fhirVersion value="4.0.1"/> - <dependsOn id="cpg"> - <uri value="http://hl7.org/fhir/uv/cpg/ImplementationGuide/hl7.fhir.uv.cpg"/> - <version value="1.0.0"/> - </dependsOn> - <dependsOn id="cqfm"> - <uri value="http://hl7.org/fhir/us/cqfmeasures/ImplementationGuide/hl7.fhir.us.cqfmeasures"/> - <packageId value="hl7.fhir.us.cqfmeasures"/> - <version value="current"/> - </dependsOn> - <definition> - <page> - <nameUrl value="toc.html" /> - <title value="Table of Contents" /> - <generation value="html" /> - <page> - <nameUrl value="index.html" /> - <title value="Home" /> - <generation value="markdown" /> - </page> - <page> - <nameUrl value="documentation.html" /> - <title value="Documentation" /> - <generation value="markdown" /> - </page> - <page> - <nameUrl value="guidance.html" /> - <title value="Guidance" /> - <generation value="markdown" /> - </page> - <page> - <nameUrl value="downloads.html" /> - <title value="Downloads" /> - <generation value="html" /> - </page> - <page> - <nameUrl value="license.html"/> - <title value="License" /> - <generation value="markdown"/> - </page> - <page> - <nameUrl value="changes.html"/> - <title value="Changes" /> - <generation value="html" /> - </page> - <page> - <nameUrl value="quick-start.html"/> - <title value="Quick Start"/> - <generation value="html"/> - </page> - <!-- <page> - <nameUrl value="examples-first-contact.html"/> - <title value="Examples First Contact"/> - <generation value="markdown"/> - </page> --> - </page> - <!-- copyright year is a mandatory parameter --> - <parameter> - <code value="copyrightyear" /> - <value value="2022+" /> - </parameter> - <!-- releaselabel should be the ballot status for HL7-published IGs. --> - <parameter> - <code value="releaselabel" /> - <value value="CI Build" /> - </parameter> - <parameter> - <code value="find-other-resources" /> - <value value="true" /> - </parameter> - <parameter> - <code value="path-pages" /> - <value value="ext-ig/cpg"/> - </parameter> - <parameter> - <code value="path-pages" /> - <value value="ext-ig/who"/> - </parameter> - <parameter> - <code value="path-pages" /> - <value value="input/pagecontent"/> - </parameter> - <parameter> - <code value="path-resource" /> - <value value="input/resources/activitydefinition"/> - </parameter> - <parameter> - <code value="path-resource" /> - <value value="input/resources/library"/> - </parameter> - <parameter> - <code value="path-resource" /> - <value value="input/resources/plandefinition"/> - </parameter> - <parameter> - <code value="path-resource" /> - <value value="input/profiles/"/> - </parameter> - <parameter> - <code value="path-resource" /> - <value value="input/extensions/"/> - </parameter> - <parameter> - <code value="path-resource" /> - <value value="input/resources/questionnaire"/> - </parameter> - <parameter> - <code value="path-resource" /> - <value value="input/resources/structuremap"/> - </parameter> - <parameter> - <code value="path-resource" /> - <value value="input/vocabulary/codesystem"/> - </parameter> - <parameter> - <code value="path-resource" /> - <value value="input/vocabulary/valueset"/> - </parameter> - <parameter> - <code value="path-liquid"/> - <value value="templates/liquid"/> - </parameter> - <parameter> - <code value="path-suppressed-warnings" /> - <value value="input/ignoreWarnings.txt" /> - </parameter> - <!-- - <parameter> - <code value="path-binary"/> - <value value="input/cql"/> - </parameter> - --> - <!-- Uncomment one or more of these if you want to limit which syntaxes are supported or want to disable the display of mappings - <parameter> - <code value="excludexml"/> - <value value="true"/> - </parameter> - <parameter> - <code value="excludejson"/> - <value value="true"/> - </parameter>--> - <parameter> - <code value="excludettl"/> - <value value="true"/> - </parameter> - <!--<parameter> - <code value="excludemap"/> - <value value="true"/> - </parameter>--> - - <parameter> - <code value="special-url"/> - <value value="http://fhir.org/guides/who/core/StructureDefinition/who-doNotPerformReason"/> - </parameter> - <parameter> - <code value="special-url"/> - <value value="http://fhir.org/guides/who/core/StructureDefinition/who-notDone"/> - </parameter> - <parameter> - <code value="special-url"/> - <value value="http://fhir.org/guides/who/core/StructureDefinition/who-notDoneReason"/> - </parameter> - <parameter> - <code value="special-url"/> - <value value="http://fhir.org/guides/who/core/StructureDefinition/who-reportedLocation"/> - </parameter> - <parameter> - <code value="special-url"/> - <value value="http://fhir.org/guides/who/core/StructureDefinition/who-allergyintolerance"/> - </parameter> - <parameter> - <code value="special-url"/> - <value value="http://fhir.org/guides/who/core/StructureDefinition/who-appointment"/> - </parameter> - <parameter> - <code value="special-url"/> - <value value="http://fhir.org/guides/who/core/StructureDefinition/who-careplan"/> - </parameter> - <parameter> - <code value="special-url"/> - <value value="http://fhir.org/guides/who/core/StructureDefinition/who-careteam"/> - </parameter> - <parameter> - <code value="special-url"/> - <value value="http://fhir.org/guides/who/core/StructureDefinition/who-condition"/> - </parameter> - <parameter> - <code value="special-url"/> - <value value="http://fhir.org/guides/who/core/StructureDefinition/who-encounter"/> - </parameter> - <parameter> - <code value="special-url"/> - <value value="http://fhir.org/guides/who/core/StructureDefinition/who-episodeofcare"/> - </parameter> - <parameter> - <code value="special-url"/> - <value value="http://fhir.org/guides/who/core/StructureDefinition/who-group"/> - </parameter> - <parameter> - <code value="special-url"/> - <value value="http://fhir.org/guides/who/core/StructureDefinition/who-groupdefinition"/> - </parameter> - <parameter> - <code value="special-url"/> - <value value="http://fhir.org/guides/who/core/StructureDefinition/who-immunization"/> - </parameter> - <parameter> - <code value="special-url"/> - <value value="http://fhir.org/guides/who/core/StructureDefinition/who-immunizationnotdone"/> - </parameter> - <parameter> - <code value="special-url"/> - <value value="http://fhir.org/guides/who/core/StructureDefinition/who-location"/> - </parameter> - <parameter> - <code value="special-url"/> - <value value="http://fhir.org/guides/who/core/StructureDefinition/who-measurereport"/> - </parameter> - <parameter> - <code value="special-url"/> - <value value="http://fhir.org/guides/who/core/StructureDefinition/who-medicationnotrequested"/> - </parameter> - <parameter> - <code value="special-url"/> - <value value="http://fhir.org/guides/who/core/StructureDefinition/who-medicationrequest"/> - </parameter> - <parameter> - <code value="special-url"/> - <value value="http://fhir.org/guides/who/core/StructureDefinition/who-observation"/> - </parameter> - <parameter> - <code value="special-url"/> - <value value="http://fhir.org/guides/who/core/StructureDefinition/who-observationnotdone"/> - </parameter> - <parameter> - <code value="special-url"/> - <value value="http://fhir.org/guides/who/core/StructureDefinition/who-organization"/> - </parameter> - <parameter> - <code value="special-url"/> - <value value="http://fhir.org/guides/who/core/StructureDefinition/who-patient"/> - </parameter> - <parameter> - <code value="special-url"/> - <value value="http://fhir.org/guides/who/core/StructureDefinition/who-practitioner"/> - </parameter> - <parameter> - <code value="special-url"/> - <value value="http://fhir.org/guides/who/core/StructureDefinition/who-practitionerrole"/> - </parameter> - <parameter> - <code value="special-url"/> - <value value="http://fhir.org/guides/who/core/StructureDefinition/who-procedure"/> - </parameter> - <parameter> - <code value="special-url"/> - <value value="http://fhir.org/guides/who/core/StructureDefinition/who-procedurenotdone"/> - </parameter> - <parameter> - <code value="special-url"/> - <value value="http://fhir.org/guides/who/core/StructureDefinition/who-relatedperson"/> - </parameter> - <parameter> - <code value="special-url"/> - <value value="http://fhir.org/guides/who/core/StructureDefinition/who-servicenotrequested"/> - </parameter> - <parameter> - <code value="special-url"/> - <value value="http://fhir.org/guides/who/core/StructureDefinition/who-servicerequest"/> - </parameter> - </definition> -</ImplementationGuide> diff --git a/sushi-config.yaml b/sushi-config.yaml new file mode 100644 index 00000000..87250cac --- /dev/null +++ b/sushi-config.yaml @@ -0,0 +1,150 @@ +# sushi-config.yaml +id: smart.who.int.ccc +canonical: https://smart.who.int/ccc +name: Ccc +title: "WHO FHIR Implementation Guide (IG): Integrated Management of Childhood Illness (IMCI) in emergencies" +description: This implementation guide provides implementation resources and guidance in support of applying the WHO recommendations on emergency care.<br/>This implementation guide is part of the WHO Smart Guidelines approach to support countries to integrate WHO global data and health recommendations into digital systems accurately and consistently. +version: 0.1.0 +status: draft +experimental: false +date: 2022-01-06 +publisher: + name: World Health Organization (WHO) + url: https://www.who.int +contact: + - telecom: + - system: url + value: https://www.who.int +jurisdiction: + - coding: + - system: http://unstats.un.org/unsd/methods/m49/m49.htm + code: "001" +packageId: smart.who.int.ccc +license: CC0-1.0 +fhirVersion: 4.0.1 + +dependencies: + hl7.fhir.uv.cpg: 1.0.0 + hl7.fhir.us.cqfmeasures: current + +pages: + toc.html: + title: Table of Contents + generation: html + index.md: + title: Home + generation: markdown + documentation.md: + title: Documentation + generation: markdown + guidance.md: + title: Guidance + generation: markdown + downloads.html: + title: Downloads + generation: html + license.md: + title: License + generation: markdown + changes.html: + title: Changes + generation: html + quick-start.html: + title: Quick Start + generation: html + +parameters: + copyrightyear: 2022+ + releaselabel: CI Build + find-other-resources: true + + path-pages: + - ext-ig/cpg + - ext-ig/who + - input/pagecontent + + path-resource: + - input/resources/activitydefinition + - input/resources/library + - input/resources/plandefinition + - input/profiles/ + - input/extensions/ + - input/resources/questionnaire + - input/resources/structuremap + - input/vocabulary/codesystem + - input/vocabulary/valueset + + path-liquid: templates/liquid + path-suppressed-warnings: input/ignoreWarnings.txt + + excludettl: true + + special-url: + - http://fhir.org/guides/who/core/StructureDefinition/who-doNotPerformReason + - http://fhir.org/guides/who/core/StructureDefinition/who-notDone + - http://fhir.org/guides/who/core/StructureDefinition/who-notDoneReason + - http://fhir.org/guides/who/core/StructureDefinition/who-reportedLocation + - http://fhir.org/guides/who/core/StructureDefinition/who-allergyintolerance + - http://fhir.org/guides/who/core/StructureDefinition/who-appointment + - http://fhir.org/guides/who/core/StructureDefinition/who-careplan + - http://fhir.org/guides/who/core/StructureDefinition/who-careteam + - http://fhir.org/guides/who/core/StructureDefinition/who-condition + - http://fhir.org/guides/who/core/StructureDefinition/who-encounter + - http://fhir.org/guides/who/core/StructureDefinition/who-episodeofcare + - http://fhir.org/guides/who/core/StructureDefinition/who-group + - http://fhir.org/guides/who/core/StructureDefinition/who-groupdefinition + - http://fhir.org/guides/who/core/StructureDefinition/who-immunization + - http://fhir.org/guides/who/core/StructureDefinition/who-immunizationnotdone + - http://fhir.org/guides/who/core/StructureDefinition/who-location + - http://fhir.org/guides/who/core/StructureDefinition/who-measurereport + - http://fhir.org/guides/who/core/StructureDefinition/who-medicationnotrequested + - http://fhir.org/guides/who/core/StructureDefinition/who-medicationrequest + - http://fhir.org/guides/who/core/StructureDefinition/who-observation + - http://fhir.org/guides/who/core/StructureDefinition/who-observationnotdone + - http://fhir.org/guides/who/core/StructureDefinition/who-organization + - http://fhir.org/guides/who/core/StructureDefinition/who-patient + - http://fhir.org/guides/who/core/StructureDefinition/who-practitioner + - http://fhir.org/guides/who/core/StructureDefinition/who-practitionerrole + - http://fhir.org/guides/who/core/StructureDefinition/who-procedure + - http://fhir.org/guides/who/core/StructureDefinition/who-procedurenotdone + - http://fhir.org/guides/who/core/StructureDefinition/who-relatedperson + - http://fhir.org/guides/who/core/StructureDefinition/who-servicenotrequested + - http://fhir.org/guides/who/core/StructureDefinition/who-servicerequest + +# ====================== MENU ====================== +# This generates the top navigation bar in the published IG +menu: + Home: + Summary: index.html + Changes: changes.html + Quick Start: quick-start.html + Documentation: documentation.html + Guidance: guidance.html + Downloads: downloads.html + License: license.html + + Business Requirements: + Concepts: concepts.html + Generic Personas: personas.html + User Scenarios: scenarios.html + Business Processes: business-processes.html + Data Dictionary: dictionary.html + Decision-support Logic: decision-logic.html + Indicators: indicators.html + Functional Requirements: functional-requirements.html + Non-functional Requirements: non-functional-requirements.html + + Data Models and Exchange: + System Actors: system-actors.html + Sequence Diagrams: sequence-diagrams.html + Transactions: transactions.html + Indicators and Measures: indicators-measures.html + Codings: codings.html + + Deployment: + Security and Privacy Considerations: security-privacy.html + Testing: testing.html + Test Data: test-data.html + Reference Implementations: reference-implementations.html + Trust Domains: trust_domain.html + Downloads: downloads.html \ No newline at end of file From 79ca32acf6251651bbf45422b70deebaf46d1385 Mon Sep 17 00:00:00 2001 From: Patrick Delcroix <delcroip@gmail.com> Date: Wed, 1 Apr 2026 10:04:14 +0200 Subject: [PATCH 07/24] removing leading # --- sushi-config.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/sushi-config.yaml b/sushi-config.yaml index 87250cac..7aaefd73 100644 --- a/sushi-config.yaml +++ b/sushi-config.yaml @@ -1,4 +1,3 @@ -# sushi-config.yaml id: smart.who.int.ccc canonical: https://smart.who.int/ccc name: Ccc From fdd6461c349734b3c66206a66bccf5ad56efda5d Mon Sep 17 00:00:00 2001 From: Patrick Delcroix <delcroip@gmail.com> Date: Wed, 1 Apr 2026 10:17:04 +0200 Subject: [PATCH 08/24] correct IG path for publisher --- ig.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ig.ini b/ig.ini index 89a29bf9..46d1be19 100644 --- a/ig.ini +++ b/ig.ini @@ -1,5 +1,5 @@ [IG] -ig = sushi-config.yaml +ig = fsh-generated/resources/ImplementationGuide-smart.who.int.ccc.json # who.template.root#current dowload from smart-base template = template = /home/publisher/local-template From 3da88147974e1be6119f71ea7f95bddbb7c54590 Mon Sep 17 00:00:00 2001 From: Patrick Delcroix <delcroip@gmail.com> Date: Wed, 1 Apr 2026 10:23:24 +0200 Subject: [PATCH 09/24] camel case fhir version --- ig.ini | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ig.ini b/ig.ini index 46d1be19..264a1148 100644 --- a/ig.ini +++ b/ig.ini @@ -4,4 +4,5 @@ ig = fsh-generated/resources/ImplementationGuide-smart.who.int.ccc.json template = template = /home/publisher/local-template usage-stats-opt-out = false -fhir-version = 4.0.1 +fhirVersion = 4.0.1 +extension = .json \ No newline at end of file From b1ffdbc98b1441af616f885132fe5e0b5712107c Mon Sep 17 00:00:00 2001 From: Patrick Delcroix <delcroip@gmail.com> Date: Wed, 1 Apr 2026 10:32:28 +0200 Subject: [PATCH 10/24] tweaks --- ig.ini | 6 ++---- sushi-config.yaml | 5 +++-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/ig.ini b/ig.ini index 264a1148..744ed886 100644 --- a/ig.ini +++ b/ig.ini @@ -1,8 +1,6 @@ [IG] ig = fsh-generated/resources/ImplementationGuide-smart.who.int.ccc.json -# who.template.root#current dowload from smart-base -template = template = /home/publisher/local-template +# Correct way to use the local WHO template you downloaded +template = /home/publisher/local-template usage-stats-opt-out = false -fhirVersion = 4.0.1 -extension = .json \ No newline at end of file diff --git a/sushi-config.yaml b/sushi-config.yaml index 7aaefd73..5f6be1f7 100644 --- a/sushi-config.yaml +++ b/sushi-config.yaml @@ -22,10 +22,12 @@ packageId: smart.who.int.ccc license: CC0-1.0 fhirVersion: 4.0.1 +# ====================== Dependencies ====================== dependencies: hl7.fhir.uv.cpg: 1.0.0 hl7.fhir.us.cqfmeasures: current +# ====================== Pages ====================== pages: toc.html: title: Table of Contents @@ -52,6 +54,7 @@ pages: title: Quick Start generation: html +# ====================== Parameters ====================== parameters: copyrightyear: 2022+ releaselabel: CI Build @@ -75,7 +78,6 @@ parameters: path-liquid: templates/liquid path-suppressed-warnings: input/ignoreWarnings.txt - excludettl: true special-url: @@ -111,7 +113,6 @@ parameters: - http://fhir.org/guides/who/core/StructureDefinition/who-servicerequest # ====================== MENU ====================== -# This generates the top navigation bar in the published IG menu: Home: Summary: index.html From 0da67deaaa1a6bde85d3a75e6e45b5cc68b27087 Mon Sep 17 00:00:00 2001 From: Patrick Delcroix <delcroip@gmail.com> Date: Wed, 1 Apr 2026 10:37:21 +0200 Subject: [PATCH 11/24] align with WHO std publish --- .github/feedback.yml | 31 +++++++++++++++++ .github/workflows/fhirbuild.yml | 23 +++++++++++++ .github/workflows/ghbuild.yml | 23 +++++++++++++ .github/workflows/main.yml | 61 --------------------------------- .github/workflows/release.yml | 35 +++++++++++++++++++ 5 files changed, 112 insertions(+), 61 deletions(-) create mode 100644 .github/feedback.yml create mode 100644 .github/workflows/fhirbuild.yml create mode 100644 .github/workflows/ghbuild.yml delete mode 100644 .github/workflows/main.yml create mode 100644 .github/workflows/release.yml diff --git a/.github/feedback.yml b/.github/feedback.yml new file mode 100644 index 00000000..125cd17c --- /dev/null +++ b/.github/feedback.yml @@ -0,0 +1,31 @@ +name: "📢 Feedback" +description: Provide feedback about specific sections of the implementation guide. +title: "[Feedback]: " +labels: ["feedback"] +body: + - type: input + id: page + attributes: + label: Page URL + description: "Link to the page you're giving feedback on (auto-filled)." + placeholder: "e.g., https://your-ig.org/medication/page.html#section" + validations: + required: true + + - type: input + id: section + attributes: + label: Section + description: "Name of the section your feedback relates to." + placeholder: "e.g., Medication Dispensing" + validations: + required: true + + - type: textarea + id: feedback + attributes: + label: Feedback Description + description: "Please describe your feedback in detail." + placeholder: "Describe the issue, suggestion, or improvement clearly..." + validations: + required: true diff --git a/.github/workflows/fhirbuild.yml b/.github/workflows/fhirbuild.yml new file mode 100644 index 00000000..aaf727e2 --- /dev/null +++ b/.github/workflows/fhirbuild.yml @@ -0,0 +1,23 @@ +# This workflow reuses the openHIE GitHub action for building IGs +# Initial idea by Carl Leitner, developed by Elliot Silver, available from: https://www.argentixinfo.com/archives/156 +# Change log: +# v0.1.0 +# 2021-06-18: publish default branches to / , other branches branches/<branch> +# 2021-11-26: reusable workflow + +name: FHIR CI Build + +# Controls when the action will run. +on: + # Triggers the workflow on push or pull request events for any main branch + push: + branches-ignore: + - 'gh-pages' + pull_request: + + workflow_dispatch: + +jobs: + # This workflow contains a single job called "build" + call_build: + uses: WorldHealthOrganization/smart-base/.github/workflows/fhirbuild.yml@main \ No newline at end of file diff --git a/.github/workflows/ghbuild.yml b/.github/workflows/ghbuild.yml new file mode 100644 index 00000000..7e4d9545 --- /dev/null +++ b/.github/workflows/ghbuild.yml @@ -0,0 +1,23 @@ +# This workflow reuses the openHIE GitHub action for building IGs +# Initial idea by Carl Leitner, developed by Elliot Silver, available from: https://www.argentixinfo.com/archives/156 +# Change log: +# v0.1.0 +# 2021-06-18: publish default branches to / , other branches branches/<branch> +# 2021-11-26: reusable workflow + +name: GitHub Pages build + +# Controls when the action will run. +on: + # Triggers the workflow on push or pull request events for any main branch + push: + branches-ignore: + - 'gh-pages' + pull_request: + + workflow_dispatch: + +jobs: + # This workflow contains a single job called "build" + call_build: + uses: WorldHealthOrganization/smart-base/.github/workflows/ghbuild.yml@main \ No newline at end of file diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 71b9feb5..00000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,61 +0,0 @@ -# This is a simple workflow that runs the publisher and copies the output to https://<owner>.github.io/<repo>/index.html -# Based on the instructions from Elliot Silver, available from: https://www.argentixinfo.com/archives/156 -# Make sure your repo has a branch called gh-pages - - -# Update 15-Jan-2021: This now adds a FTP upload feature. This uses a repository secret. -# Action documentation -# https://github.com/marketplace/actions/ftp-deploy - -name: CI - -# Controls when the action will run. -on: - # Triggers the workflow on push or pull request events but only for the main or master branch - push: - branches: - - '*' - pull_request: - branches: - - '*' - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: - -# A workflow run is made up of one or more jobs that can run sequentially or in parallel -jobs: - # This workflow contains a single job called "build" - build: - # The type of runner that the job will run on - runs-on: ubuntu-latest - - # Steps represent a sequence of tasks that will be executed as part of the job - steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v2 - - name: Update the image to the latest publisher - uses: WorldHealthOrganization/smart-emcare/ig-publisher-base@main - with: - # Get the latest publisher - don't run the batch script but run the line directly - args: curl -L https://github.com/HL7/fhir-ig-publisher/releases/latest/download/publisher.jar -o ./input-cache/publisher.jar --create-dirs - - - name: Run the IG publisher - uses: WorldHealthOrganization/smart-emcare/ig-publisher-base@main - with: - # Run the publisher - don't run the batch script but run the line directly - args: java -Xms1g -Xmx8g -jar ./input-cache/publisher.jar publisher -ig . - - - name: Deploy - uses: peaceiris/actions-gh-pages@v3 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./output - -# - name: Sync files -# uses: SamKirkland/FTP-Deploy-Action@4.0.0 -# with: -# server: ftp.dlptest.com -# username: dlpuser -# password: ${{ secrets.ftp_password }} -# local-dir: output/ -# server-dir: fhir/ig_name/ diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..b1fed18b --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,35 @@ +# This workflow calls a remote workflow for setting up a release publication, +# This workflow is triggered by the creation of a GitHub release and requires a file called publication-request.json in the branch. + +name: Release build + +on: + release: + types: [created] + workflow_dispatch: + +jobs: + check: + runs-on: ubuntu-latest + outputs: + file_exists: ${{ steps.checkfile.outputs.exists }} + steps: + - name: Checkout code + uses: actions/checkout@v3 + with: + ref: ${{ github.event.release.tag_name }} + + - name: Check for publication-request.json + id: checkfile + run: | + if [[ -f "publication-request.json" ]]; then + echo "::set-output name=exists::true" + else + echo "::set-output name=exists::false" + fi + + trigger: + needs: check + if: needs.check.outputs.file_exists == 'true' + uses: WorldHealthOrganization/smart-html/.github/workflows/release.yml@main + \ No newline at end of file From a2f61b675b561000d4fee66fdbb92ca6106f1a77 Mon Sep 17 00:00:00 2001 From: Patrick Delcroix <delcroip@gmail.com> Date: Wed, 1 Apr 2026 10:46:22 +0200 Subject: [PATCH 12/24] update sushi deps --- sushi-config.yaml | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/sushi-config.yaml b/sushi-config.yaml index 5f6be1f7..0df43ba0 100644 --- a/sushi-config.yaml +++ b/sushi-config.yaml @@ -24,8 +24,27 @@ fhirVersion: 4.0.1 # ====================== Dependencies ====================== dependencies: - hl7.fhir.uv.cpg: 1.0.0 - hl7.fhir.us.cqfmeasures: current + hl7.terminology: 5.5.0 + hl7.fhir.uv.extensions.r4: 5.1.0 + hl7.fhir.uv.extensions.r5: 5.2.0 + hl7.fhir.uv.cql: + id: cql + version: 1.0.0 + reason: This IG uses CQL profiles and capabilities provided by the Using CQL With FHIR IG + hl7.fhir.uv.cpg: + id: cpg + version: 2.0.0 + reason: For Decision Tables + hl7.fhir.uv.crmi: + id: crmi + version: 1.0.0 + reason: This IG uses content management profiles and capabilities provided by the Canonical Resource Management Infrastructure (CRMI) IG + hl7.fhir.uv.sdc: + id: sdc + version: 3.0.0 + reason: This IG uses questionnaire profiles and capabilities provided by the Structure Data Capture (SDC) IG +# ihe.madx? I cannot find this dependency in the FHIR registry or the IHE github + smart.who.int.base: current # ====================== Pages ====================== pages: From a7430fa942f2c8053784d5553d4ce2ec025b4151 Mon Sep 17 00:00:00 2001 From: Patrick Delcroix <delcroip@gmail.com> Date: Wed, 1 Apr 2026 10:58:48 +0200 Subject: [PATCH 13/24] clean and add dak.json --- dak.json | 19 ++++++++++ ig-publisher-base/Dockerfile | 50 -------------------------- ig-publisher-base/action.yml | 6 ---- ig-publisher-base/docker-entrypoint.sh | 23 ------------ 4 files changed, 19 insertions(+), 79 deletions(-) create mode 100644 dak.json delete mode 100644 ig-publisher-base/Dockerfile delete mode 100644 ig-publisher-base/action.yml delete mode 100644 ig-publisher-base/docker-entrypoint.sh diff --git a/dak.json b/dak.json new file mode 100644 index 00000000..5a834df2 --- /dev/null +++ b/dak.json @@ -0,0 +1,19 @@ +{ + "resourceType": "DAK", + "resourceDefinition": "http://smart.who.int/base/StructureDefinition/DAK", + "id": "smart.who.int.ccc", + "name": "Clinical care in crisis", + "title": "WHO FHIR Implementation Guide (IG): Integrated Management of Childhood Illness (IMCI) in emergencies", + "description": "This implementation guide provides implementation resources and guidance in support of applying the WHO recommendations on emergency care.<br/>This implementation guide is part of the WHO Smart Guidelines approach to support countries to integrate WHO global data and health recommendations into digital systems accurately and consistently.", + "version": "0.1.0", + "status": "draft", + "publicationUrl": "https://smart.who.int/ccc", + "previewUrl": "https://worldhealthorganization.github.io/smart-ccc", + "canonicalUrl": "http://smart.who.int/ccc", + "license": "CC0-1.0", + "copyrightYear": "2023+", + "publisher": { + "name": "WHO", + "url": "http://who.int" + } +} \ No newline at end of file diff --git a/ig-publisher-base/Dockerfile b/ig-publisher-base/Dockerfile deleted file mode 100644 index b5567514..00000000 --- a/ig-publisher-base/Dockerfile +++ /dev/null @@ -1,50 +0,0 @@ -FROM jekyll/jekyll - -# instalöl python https://stackoverflow.com/a/62555259 -ENV PYTHONUNBUFFERED=1 -#https://github.com/tianon/gosu/blob/master/INSTALL.md - -RUN apk update &&\ - apk add --update --no-cache gosu --repository="http://dl-cdn.alpinelinux.org/alpine/edge/testing" &&\ - apk add --update --no-cache openssl wget graphviz python3 openjdk11 curl &&\ - ln -sf python3 /usr/bin/python - -RUN python3 -m ensurepip -RUN pip3 install --no-cache --upgrade pip setuptools - - - - -ENV PATH="/usr/local/rvm/bin:/usr/local/rvm/rubies/ruby-2.5.1/bin:${PATH}" - -#RUN cd /tmp && \ -# wget --quiet https://nodejs.org/dist/v12.22.12/node-v12.22.12-linux-x64.tar.xz && \ -# cd /usr/local && \ -# tar --strip-components 1 -xf /tmp/node-v12.22.12-linux-x64.tar.xz - -RUN useradd -d /home/publisher -m publisher - -USER publisher -RUN mkdir /home/publisher/ig -ENV PATH="/home/publisher/bin:/home/publisher/.node/bin:/home/publisher/.node/lib/node_modules/fsh-sushi/dist/ig/files:${PATH}" -ENV NODE_PATH="/home/publisher/.node/lib/node_modules:${PATH}" - -RUN mkdir /home/publisher/.node && \ - echo "prefix = /home/publisher/.node" > /home/publisher/.npmrc - -#RUN mkdir /home/publisher/bin && \ -# printf "#!/bin/sh\n\ -# npm install -g fsh-sushi" >> /home/publisher/bin/with-latest-sushi.sh && \ -# chmod +x /home/publisher/bin/with-latest-sushi.sh && \ -# /home/publisher/bin/with-latest-sushi.sh - -# Following technique from https://gist.github.com/yogeek/bc8dc6dadbb72cb39efadf83920077d3 -WORKDIR /home/publisher/ig -VOLUME /home/publisher/ig - -USER root -COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh -RUN ["chmod", "+x", "/usr/local/bin/docker-entrypoint.sh"] - -ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"] -CMD ["bash"] diff --git a/ig-publisher-base/action.yml b/ig-publisher-base/action.yml deleted file mode 100644 index 5ad0a636..00000000 --- a/ig-publisher-base/action.yml +++ /dev/null @@ -1,6 +0,0 @@ -# action.yml -name: 'IG-publisher' -description: 'Setup everything required to create an IG' -runs: - using: 'docker' - image: 'Dockerfile' \ No newline at end of file diff --git a/ig-publisher-base/docker-entrypoint.sh b/ig-publisher-base/docker-entrypoint.sh deleted file mode 100644 index 369bfc05..00000000 --- a/ig-publisher-base/docker-entrypoint.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash -set -e - -# Change uid and gid of node user so it matches ownership of current dir -if [ "$MAP_NODE_UID" != "no" ]; then - if [ ! -d "$MAP_NODE_UID" ]; then - MAP_NODE_UID=$PWD - fi - - uid=$(stat -c '%u' "$MAP_NODE_UID") - gid=$(stat -c '%g' "$MAP_NODE_UID") - echo "publisher ---> UID = $uid / GID = $gid" - - export USER=publisher - - usermod -u $uid publisher 2> /dev/null && { - groupmod -g $gid publisher 2> /dev/null || usermod -a -G $gid publisher - } -fi - - -# gosu publisher "/home/publisher/bin/with-latest-sushi.sh" -exec gosu publisher "$@" From 3f368278f7ce856fb798f1bb2bc68ea83a32d0e4 Mon Sep 17 00:00:00 2001 From: Patrick Delcroix <delcroip@gmail.com> Date: Wed, 1 Apr 2026 11:07:19 +0200 Subject: [PATCH 14/24] import other files --- package.json | 6 ++++++ publication-request.json | 14 ++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 package.json create mode 100644 publication-request.json diff --git a/package.json b/package.json new file mode 100644 index 00000000..1a0f0b1a --- /dev/null +++ b/package.json @@ -0,0 +1,6 @@ +{ + "dependencies": { + "fsh-sushi": "^3.16.5", + "npm": "^11.5.2" + } +} \ No newline at end of file diff --git a/publication-request.json b/publication-request.json new file mode 100644 index 00000000..a070427f --- /dev/null +++ b/publication-request.json @@ -0,0 +1,14 @@ +{ + "package-id" : "smart.who.int.ccc", + "title" : "Clinical care in crisis", + "category" : "base", + "introduction" : "SMART CCC Implementation Guide", + "version" : "1.0.0", + "desc" : "1.0.0 release", + "mode" : "milestone", + "path" : "http://smart.who.int/cc/v0.1.0", + "ci-build": "http://worldhealthorganization.github.io/smart-ccc", + "first": true, + "status" : "release", + "sequence" : "Releases" + } \ No newline at end of file From 25d067f88f1a79e93448bb3fc0327aad7e0214db Mon Sep 17 00:00:00 2001 From: Patrick Delcroix <delcroip@gmail.com> Date: Wed, 1 Apr 2026 11:21:17 +0200 Subject: [PATCH 15/24] try to force sushi gen --- input/fsh/rulesets/LogicLibrary.fsh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 input/fsh/rulesets/LogicLibrary.fsh diff --git a/input/fsh/rulesets/LogicLibrary.fsh b/input/fsh/rulesets/LogicLibrary.fsh new file mode 100644 index 00000000..9f697fad --- /dev/null +++ b/input/fsh/rulesets/LogicLibrary.fsh @@ -0,0 +1,15 @@ +RuleSet: LogicLibrary( library ) +* meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-shareablelibrary" +* meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" +* meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" +* meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" +* extension[+] + * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" + * valueCode = #computable +* name = "{library}" +* status = #draft +* experimental = false +* publisher = "World Health Organization (WHO)" +* type = $library-type#logic-library +* content + * id = "ig-loader-{library}.cql" From 9e2c109f497fa56ac654dd2e31e28b3a17857093 Mon Sep 17 00:00:00 2001 From: Patrick Delcroix <delcroip@gmail.com> Date: Wed, 1 Apr 2026 11:24:40 +0200 Subject: [PATCH 16/24] updating sushi config --- sushi-config.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sushi-config.yaml b/sushi-config.yaml index 0df43ba0..d2dc48dd 100644 --- a/sushi-config.yaml +++ b/sushi-config.yaml @@ -21,7 +21,8 @@ jurisdiction: packageId: smart.who.int.ccc license: CC0-1.0 fhirVersion: 4.0.1 - +copyrightYear: 2022+ +releaseLabel: release # ====================== Dependencies ====================== dependencies: hl7.terminology: 5.5.0 From 7a57ffebe9fd40512905532ffefc5aaaa7c158a1 Mon Sep 17 00:00:00 2001 From: Patrick Delcroix <delcroip@gmail.com> Date: Wed, 1 Apr 2026 11:35:07 +0200 Subject: [PATCH 17/24] use who template --- ig.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ig.ini b/ig.ini index 744ed886..3afb67b2 100644 --- a/ig.ini +++ b/ig.ini @@ -2,5 +2,5 @@ ig = fsh-generated/resources/ImplementationGuide-smart.who.int.ccc.json # Correct way to use the local WHO template you downloaded -template = /home/publisher/local-template +template = who.template.root#current usage-stats-opt-out = false From 5bdbc69f32b11ed35aca5a702742c2e3f9a1ace0 Mon Sep 17 00:00:00 2001 From: Patrick Delcroix <delcroip@gmail.com> Date: Wed, 1 Apr 2026 13:20:53 +0200 Subject: [PATCH 18/24] all handwritted resources in input/resources --- input/{vocabulary => resources}/codesystem/codesystem-emcare.json | 0 .../profiles/profiles-emcare-communicationrequest.json | 0 input/{ => resources}/profiles/profiles-emcare-condition.json | 0 input/{ => resources}/profiles/profiles-emcare-encounter.json | 0 input/{ => resources}/profiles/profiles-emcare-patient.json | 0 input/{ => resources}/profiles/profiles-emcare-relatedperson.json | 0 .../valueset/valueset-abilitytoswallow.json | 0 input/{vocabulary => resources}/valueset/valueset-add-pb.json | 0 .../valueset/valueset-agreedisagree.json | 0 .../valueset/valueset-appetite-test.json | 0 .../valueset/valueset-bioparent-status.json | 0 .../valueset/valueset-breastfeed-assessment.json | 0 .../valueset/valueset-child-last-hiv-status.json | 0 .../valueset/valueset-child-vaccination-status.json | 0 .../valueset/valueset-child-vaccines.json | 0 .../valueset/valueset-consultation-status.json | 0 .../valueset/valueset-consultation-type.json | 0 .../valueset/valueset-difficulty-feeding.json | 0 .../valueset/valueset-dob-estimator.json | 0 .../valueset/valueset-emcarecondition.json | 0 .../valueset/valueset-emcareobservation-valueset.json | 0 .../valueset/valueset-emcareobservation.json | 0 .../valueset/valueset-emcareobservationvalueset.json | 0 .../valueset/valueset-feeding-problem.json | 0 .../valueset/valueset-hiv-prevalence.json | 0 input/{vocabulary => resources}/valueset/valueset-hiv-status.json | 0 .../valueset/valueset-inhaled-bronchodilator-trial.json | 0 .../{vocabulary => resources}/valueset/valueset-is-recorded.json | 0 .../valueset/valueset-malaria-microscopy-species.json | 0 .../valueset/valueset-malaria-rdt-species.json | 0 .../valueset/valueset-malaria-risk-region-2.json | 0 .../valueset/valueset-malaria-test-type.json | 0 .../{vocabulary => resources}/valueset/valueset-malaria-test.json | 0 .../valueset/valueset-measured-temperature.json | 0 input/{vocabulary => resources}/valueset/valueset-milk-given.json | 0 .../valueset/valueset-milk-preparation.json | 0 .../valueset/valueset-more-than-14d.json | 0 .../{vocabulary => resources}/valueset/valueset-more-than-7d.json | 0 input/{vocabulary => resources}/valueset/valueset-movements.json | 0 .../valueset/valueset-mucus-membrane-pallor.json | 0 .../valueset/valueset-number-of-convulsions.json | 0 .../{vocabulary => resources}/valueset/valueset-observation.json | 0 .../valueset/valueset-oral-fluid-test.json | 0 input/{vocabulary => resources}/valueset/valueset-oral-sores.json | 0 .../valueset/valueset-oxygen-saturation.json | 0 .../valueset/valueset-palmar-pallor.json | 0 .../valueset/valueset-reason-consultation.json | 0 .../valueset/valueset-relatedperson.json | 0 .../valueset/valueset-relationship-to-client.json | 0 .../valueset/valueset-replacement-milk.json | 0 .../valueset/valueset-sex-of-the-client.json | 0 .../valueset/valueset-skin-pb-location.json | 0 input/{vocabulary => resources}/valueset/valueset-skin-pb.json | 0 .../valueset/valueset-skin-pinch-abdomen.json | 0 .../valueset/valueset-temperature-measurement.json | 0 .../valueset/valueset-throatproblem.json | 0 .../{vocabulary => resources}/valueset/valueset-underweight.json | 0 .../valueset/valueset-utensils-cleaned.json | 0 input/{vocabulary => resources}/valueset/valueset-visit-type.json | 0 .../{vocabulary => resources}/valueset/valueset-vital-status.json | 0 .../valueset/valueset-weight-status.json | 0 input/{vocabulary => resources}/valueset/valueset-yesno.json | 0 input/{vocabulary => resources}/valueset/valueset-yesnox.json | 0 63 files changed, 0 insertions(+), 0 deletions(-) rename input/{vocabulary => resources}/codesystem/codesystem-emcare.json (100%) rename input/{ => resources}/profiles/profiles-emcare-communicationrequest.json (100%) rename input/{ => resources}/profiles/profiles-emcare-condition.json (100%) rename input/{ => resources}/profiles/profiles-emcare-encounter.json (100%) rename input/{ => resources}/profiles/profiles-emcare-patient.json (100%) rename input/{ => resources}/profiles/profiles-emcare-relatedperson.json (100%) rename input/{vocabulary => resources}/valueset/valueset-abilitytoswallow.json (100%) rename input/{vocabulary => resources}/valueset/valueset-add-pb.json (100%) rename input/{vocabulary => resources}/valueset/valueset-agreedisagree.json (100%) rename input/{vocabulary => resources}/valueset/valueset-appetite-test.json (100%) rename input/{vocabulary => resources}/valueset/valueset-bioparent-status.json (100%) rename input/{vocabulary => resources}/valueset/valueset-breastfeed-assessment.json (100%) rename input/{vocabulary => resources}/valueset/valueset-child-last-hiv-status.json (100%) rename input/{vocabulary => resources}/valueset/valueset-child-vaccination-status.json (100%) rename input/{vocabulary => resources}/valueset/valueset-child-vaccines.json (100%) rename input/{vocabulary => resources}/valueset/valueset-consultation-status.json (100%) rename input/{vocabulary => resources}/valueset/valueset-consultation-type.json (100%) rename input/{vocabulary => resources}/valueset/valueset-difficulty-feeding.json (100%) rename input/{vocabulary => resources}/valueset/valueset-dob-estimator.json (100%) rename input/{vocabulary => resources}/valueset/valueset-emcarecondition.json (100%) rename input/{vocabulary => resources}/valueset/valueset-emcareobservation-valueset.json (100%) rename input/{vocabulary => resources}/valueset/valueset-emcareobservation.json (100%) rename input/{vocabulary => resources}/valueset/valueset-emcareobservationvalueset.json (100%) rename input/{vocabulary => resources}/valueset/valueset-feeding-problem.json (100%) rename input/{vocabulary => resources}/valueset/valueset-hiv-prevalence.json (100%) rename input/{vocabulary => resources}/valueset/valueset-hiv-status.json (100%) rename input/{vocabulary => resources}/valueset/valueset-inhaled-bronchodilator-trial.json (100%) rename input/{vocabulary => resources}/valueset/valueset-is-recorded.json (100%) rename input/{vocabulary => resources}/valueset/valueset-malaria-microscopy-species.json (100%) rename input/{vocabulary => resources}/valueset/valueset-malaria-rdt-species.json (100%) rename input/{vocabulary => resources}/valueset/valueset-malaria-risk-region-2.json (100%) rename input/{vocabulary => resources}/valueset/valueset-malaria-test-type.json (100%) rename input/{vocabulary => resources}/valueset/valueset-malaria-test.json (100%) rename input/{vocabulary => resources}/valueset/valueset-measured-temperature.json (100%) rename input/{vocabulary => resources}/valueset/valueset-milk-given.json (100%) rename input/{vocabulary => resources}/valueset/valueset-milk-preparation.json (100%) rename input/{vocabulary => resources}/valueset/valueset-more-than-14d.json (100%) rename input/{vocabulary => resources}/valueset/valueset-more-than-7d.json (100%) rename input/{vocabulary => resources}/valueset/valueset-movements.json (100%) rename input/{vocabulary => resources}/valueset/valueset-mucus-membrane-pallor.json (100%) rename input/{vocabulary => resources}/valueset/valueset-number-of-convulsions.json (100%) rename input/{vocabulary => resources}/valueset/valueset-observation.json (100%) rename input/{vocabulary => resources}/valueset/valueset-oral-fluid-test.json (100%) rename input/{vocabulary => resources}/valueset/valueset-oral-sores.json (100%) rename input/{vocabulary => resources}/valueset/valueset-oxygen-saturation.json (100%) rename input/{vocabulary => resources}/valueset/valueset-palmar-pallor.json (100%) rename input/{vocabulary => resources}/valueset/valueset-reason-consultation.json (100%) rename input/{vocabulary => resources}/valueset/valueset-relatedperson.json (100%) rename input/{vocabulary => resources}/valueset/valueset-relationship-to-client.json (100%) rename input/{vocabulary => resources}/valueset/valueset-replacement-milk.json (100%) rename input/{vocabulary => resources}/valueset/valueset-sex-of-the-client.json (100%) rename input/{vocabulary => resources}/valueset/valueset-skin-pb-location.json (100%) rename input/{vocabulary => resources}/valueset/valueset-skin-pb.json (100%) rename input/{vocabulary => resources}/valueset/valueset-skin-pinch-abdomen.json (100%) rename input/{vocabulary => resources}/valueset/valueset-temperature-measurement.json (100%) rename input/{vocabulary => resources}/valueset/valueset-throatproblem.json (100%) rename input/{vocabulary => resources}/valueset/valueset-underweight.json (100%) rename input/{vocabulary => resources}/valueset/valueset-utensils-cleaned.json (100%) rename input/{vocabulary => resources}/valueset/valueset-visit-type.json (100%) rename input/{vocabulary => resources}/valueset/valueset-vital-status.json (100%) rename input/{vocabulary => resources}/valueset/valueset-weight-status.json (100%) rename input/{vocabulary => resources}/valueset/valueset-yesno.json (100%) rename input/{vocabulary => resources}/valueset/valueset-yesnox.json (100%) diff --git a/input/vocabulary/codesystem/codesystem-emcare.json b/input/resources/codesystem/codesystem-emcare.json similarity index 100% rename from input/vocabulary/codesystem/codesystem-emcare.json rename to input/resources/codesystem/codesystem-emcare.json diff --git a/input/profiles/profiles-emcare-communicationrequest.json b/input/resources/profiles/profiles-emcare-communicationrequest.json similarity index 100% rename from input/profiles/profiles-emcare-communicationrequest.json rename to input/resources/profiles/profiles-emcare-communicationrequest.json diff --git a/input/profiles/profiles-emcare-condition.json b/input/resources/profiles/profiles-emcare-condition.json similarity index 100% rename from input/profiles/profiles-emcare-condition.json rename to input/resources/profiles/profiles-emcare-condition.json diff --git a/input/profiles/profiles-emcare-encounter.json b/input/resources/profiles/profiles-emcare-encounter.json similarity index 100% rename from input/profiles/profiles-emcare-encounter.json rename to input/resources/profiles/profiles-emcare-encounter.json diff --git a/input/profiles/profiles-emcare-patient.json b/input/resources/profiles/profiles-emcare-patient.json similarity index 100% rename from input/profiles/profiles-emcare-patient.json rename to input/resources/profiles/profiles-emcare-patient.json diff --git a/input/profiles/profiles-emcare-relatedperson.json b/input/resources/profiles/profiles-emcare-relatedperson.json similarity index 100% rename from input/profiles/profiles-emcare-relatedperson.json rename to input/resources/profiles/profiles-emcare-relatedperson.json diff --git a/input/vocabulary/valueset/valueset-abilitytoswallow.json b/input/resources/valueset/valueset-abilitytoswallow.json similarity index 100% rename from input/vocabulary/valueset/valueset-abilitytoswallow.json rename to input/resources/valueset/valueset-abilitytoswallow.json diff --git a/input/vocabulary/valueset/valueset-add-pb.json b/input/resources/valueset/valueset-add-pb.json similarity index 100% rename from input/vocabulary/valueset/valueset-add-pb.json rename to input/resources/valueset/valueset-add-pb.json diff --git a/input/vocabulary/valueset/valueset-agreedisagree.json b/input/resources/valueset/valueset-agreedisagree.json similarity index 100% rename from input/vocabulary/valueset/valueset-agreedisagree.json rename to input/resources/valueset/valueset-agreedisagree.json diff --git a/input/vocabulary/valueset/valueset-appetite-test.json b/input/resources/valueset/valueset-appetite-test.json similarity index 100% rename from input/vocabulary/valueset/valueset-appetite-test.json rename to input/resources/valueset/valueset-appetite-test.json diff --git a/input/vocabulary/valueset/valueset-bioparent-status.json b/input/resources/valueset/valueset-bioparent-status.json similarity index 100% rename from input/vocabulary/valueset/valueset-bioparent-status.json rename to input/resources/valueset/valueset-bioparent-status.json diff --git a/input/vocabulary/valueset/valueset-breastfeed-assessment.json b/input/resources/valueset/valueset-breastfeed-assessment.json similarity index 100% rename from input/vocabulary/valueset/valueset-breastfeed-assessment.json rename to input/resources/valueset/valueset-breastfeed-assessment.json diff --git a/input/vocabulary/valueset/valueset-child-last-hiv-status.json b/input/resources/valueset/valueset-child-last-hiv-status.json similarity index 100% rename from input/vocabulary/valueset/valueset-child-last-hiv-status.json rename to input/resources/valueset/valueset-child-last-hiv-status.json diff --git a/input/vocabulary/valueset/valueset-child-vaccination-status.json b/input/resources/valueset/valueset-child-vaccination-status.json similarity index 100% rename from input/vocabulary/valueset/valueset-child-vaccination-status.json rename to input/resources/valueset/valueset-child-vaccination-status.json diff --git a/input/vocabulary/valueset/valueset-child-vaccines.json b/input/resources/valueset/valueset-child-vaccines.json similarity index 100% rename from input/vocabulary/valueset/valueset-child-vaccines.json rename to input/resources/valueset/valueset-child-vaccines.json diff --git a/input/vocabulary/valueset/valueset-consultation-status.json b/input/resources/valueset/valueset-consultation-status.json similarity index 100% rename from input/vocabulary/valueset/valueset-consultation-status.json rename to input/resources/valueset/valueset-consultation-status.json diff --git a/input/vocabulary/valueset/valueset-consultation-type.json b/input/resources/valueset/valueset-consultation-type.json similarity index 100% rename from input/vocabulary/valueset/valueset-consultation-type.json rename to input/resources/valueset/valueset-consultation-type.json diff --git a/input/vocabulary/valueset/valueset-difficulty-feeding.json b/input/resources/valueset/valueset-difficulty-feeding.json similarity index 100% rename from input/vocabulary/valueset/valueset-difficulty-feeding.json rename to input/resources/valueset/valueset-difficulty-feeding.json diff --git a/input/vocabulary/valueset/valueset-dob-estimator.json b/input/resources/valueset/valueset-dob-estimator.json similarity index 100% rename from input/vocabulary/valueset/valueset-dob-estimator.json rename to input/resources/valueset/valueset-dob-estimator.json diff --git a/input/vocabulary/valueset/valueset-emcarecondition.json b/input/resources/valueset/valueset-emcarecondition.json similarity index 100% rename from input/vocabulary/valueset/valueset-emcarecondition.json rename to input/resources/valueset/valueset-emcarecondition.json diff --git a/input/vocabulary/valueset/valueset-emcareobservation-valueset.json b/input/resources/valueset/valueset-emcareobservation-valueset.json similarity index 100% rename from input/vocabulary/valueset/valueset-emcareobservation-valueset.json rename to input/resources/valueset/valueset-emcareobservation-valueset.json diff --git a/input/vocabulary/valueset/valueset-emcareobservation.json b/input/resources/valueset/valueset-emcareobservation.json similarity index 100% rename from input/vocabulary/valueset/valueset-emcareobservation.json rename to input/resources/valueset/valueset-emcareobservation.json diff --git a/input/vocabulary/valueset/valueset-emcareobservationvalueset.json b/input/resources/valueset/valueset-emcareobservationvalueset.json similarity index 100% rename from input/vocabulary/valueset/valueset-emcareobservationvalueset.json rename to input/resources/valueset/valueset-emcareobservationvalueset.json diff --git a/input/vocabulary/valueset/valueset-feeding-problem.json b/input/resources/valueset/valueset-feeding-problem.json similarity index 100% rename from input/vocabulary/valueset/valueset-feeding-problem.json rename to input/resources/valueset/valueset-feeding-problem.json diff --git a/input/vocabulary/valueset/valueset-hiv-prevalence.json b/input/resources/valueset/valueset-hiv-prevalence.json similarity index 100% rename from input/vocabulary/valueset/valueset-hiv-prevalence.json rename to input/resources/valueset/valueset-hiv-prevalence.json diff --git a/input/vocabulary/valueset/valueset-hiv-status.json b/input/resources/valueset/valueset-hiv-status.json similarity index 100% rename from input/vocabulary/valueset/valueset-hiv-status.json rename to input/resources/valueset/valueset-hiv-status.json diff --git a/input/vocabulary/valueset/valueset-inhaled-bronchodilator-trial.json b/input/resources/valueset/valueset-inhaled-bronchodilator-trial.json similarity index 100% rename from input/vocabulary/valueset/valueset-inhaled-bronchodilator-trial.json rename to input/resources/valueset/valueset-inhaled-bronchodilator-trial.json diff --git a/input/vocabulary/valueset/valueset-is-recorded.json b/input/resources/valueset/valueset-is-recorded.json similarity index 100% rename from input/vocabulary/valueset/valueset-is-recorded.json rename to input/resources/valueset/valueset-is-recorded.json diff --git a/input/vocabulary/valueset/valueset-malaria-microscopy-species.json b/input/resources/valueset/valueset-malaria-microscopy-species.json similarity index 100% rename from input/vocabulary/valueset/valueset-malaria-microscopy-species.json rename to input/resources/valueset/valueset-malaria-microscopy-species.json diff --git a/input/vocabulary/valueset/valueset-malaria-rdt-species.json b/input/resources/valueset/valueset-malaria-rdt-species.json similarity index 100% rename from input/vocabulary/valueset/valueset-malaria-rdt-species.json rename to input/resources/valueset/valueset-malaria-rdt-species.json diff --git a/input/vocabulary/valueset/valueset-malaria-risk-region-2.json b/input/resources/valueset/valueset-malaria-risk-region-2.json similarity index 100% rename from input/vocabulary/valueset/valueset-malaria-risk-region-2.json rename to input/resources/valueset/valueset-malaria-risk-region-2.json diff --git a/input/vocabulary/valueset/valueset-malaria-test-type.json b/input/resources/valueset/valueset-malaria-test-type.json similarity index 100% rename from input/vocabulary/valueset/valueset-malaria-test-type.json rename to input/resources/valueset/valueset-malaria-test-type.json diff --git a/input/vocabulary/valueset/valueset-malaria-test.json b/input/resources/valueset/valueset-malaria-test.json similarity index 100% rename from input/vocabulary/valueset/valueset-malaria-test.json rename to input/resources/valueset/valueset-malaria-test.json diff --git a/input/vocabulary/valueset/valueset-measured-temperature.json b/input/resources/valueset/valueset-measured-temperature.json similarity index 100% rename from input/vocabulary/valueset/valueset-measured-temperature.json rename to input/resources/valueset/valueset-measured-temperature.json diff --git a/input/vocabulary/valueset/valueset-milk-given.json b/input/resources/valueset/valueset-milk-given.json similarity index 100% rename from input/vocabulary/valueset/valueset-milk-given.json rename to input/resources/valueset/valueset-milk-given.json diff --git a/input/vocabulary/valueset/valueset-milk-preparation.json b/input/resources/valueset/valueset-milk-preparation.json similarity index 100% rename from input/vocabulary/valueset/valueset-milk-preparation.json rename to input/resources/valueset/valueset-milk-preparation.json diff --git a/input/vocabulary/valueset/valueset-more-than-14d.json b/input/resources/valueset/valueset-more-than-14d.json similarity index 100% rename from input/vocabulary/valueset/valueset-more-than-14d.json rename to input/resources/valueset/valueset-more-than-14d.json diff --git a/input/vocabulary/valueset/valueset-more-than-7d.json b/input/resources/valueset/valueset-more-than-7d.json similarity index 100% rename from input/vocabulary/valueset/valueset-more-than-7d.json rename to input/resources/valueset/valueset-more-than-7d.json diff --git a/input/vocabulary/valueset/valueset-movements.json b/input/resources/valueset/valueset-movements.json similarity index 100% rename from input/vocabulary/valueset/valueset-movements.json rename to input/resources/valueset/valueset-movements.json diff --git a/input/vocabulary/valueset/valueset-mucus-membrane-pallor.json b/input/resources/valueset/valueset-mucus-membrane-pallor.json similarity index 100% rename from input/vocabulary/valueset/valueset-mucus-membrane-pallor.json rename to input/resources/valueset/valueset-mucus-membrane-pallor.json diff --git a/input/vocabulary/valueset/valueset-number-of-convulsions.json b/input/resources/valueset/valueset-number-of-convulsions.json similarity index 100% rename from input/vocabulary/valueset/valueset-number-of-convulsions.json rename to input/resources/valueset/valueset-number-of-convulsions.json diff --git a/input/vocabulary/valueset/valueset-observation.json b/input/resources/valueset/valueset-observation.json similarity index 100% rename from input/vocabulary/valueset/valueset-observation.json rename to input/resources/valueset/valueset-observation.json diff --git a/input/vocabulary/valueset/valueset-oral-fluid-test.json b/input/resources/valueset/valueset-oral-fluid-test.json similarity index 100% rename from input/vocabulary/valueset/valueset-oral-fluid-test.json rename to input/resources/valueset/valueset-oral-fluid-test.json diff --git a/input/vocabulary/valueset/valueset-oral-sores.json b/input/resources/valueset/valueset-oral-sores.json similarity index 100% rename from input/vocabulary/valueset/valueset-oral-sores.json rename to input/resources/valueset/valueset-oral-sores.json diff --git a/input/vocabulary/valueset/valueset-oxygen-saturation.json b/input/resources/valueset/valueset-oxygen-saturation.json similarity index 100% rename from input/vocabulary/valueset/valueset-oxygen-saturation.json rename to input/resources/valueset/valueset-oxygen-saturation.json diff --git a/input/vocabulary/valueset/valueset-palmar-pallor.json b/input/resources/valueset/valueset-palmar-pallor.json similarity index 100% rename from input/vocabulary/valueset/valueset-palmar-pallor.json rename to input/resources/valueset/valueset-palmar-pallor.json diff --git a/input/vocabulary/valueset/valueset-reason-consultation.json b/input/resources/valueset/valueset-reason-consultation.json similarity index 100% rename from input/vocabulary/valueset/valueset-reason-consultation.json rename to input/resources/valueset/valueset-reason-consultation.json diff --git a/input/vocabulary/valueset/valueset-relatedperson.json b/input/resources/valueset/valueset-relatedperson.json similarity index 100% rename from input/vocabulary/valueset/valueset-relatedperson.json rename to input/resources/valueset/valueset-relatedperson.json diff --git a/input/vocabulary/valueset/valueset-relationship-to-client.json b/input/resources/valueset/valueset-relationship-to-client.json similarity index 100% rename from input/vocabulary/valueset/valueset-relationship-to-client.json rename to input/resources/valueset/valueset-relationship-to-client.json diff --git a/input/vocabulary/valueset/valueset-replacement-milk.json b/input/resources/valueset/valueset-replacement-milk.json similarity index 100% rename from input/vocabulary/valueset/valueset-replacement-milk.json rename to input/resources/valueset/valueset-replacement-milk.json diff --git a/input/vocabulary/valueset/valueset-sex-of-the-client.json b/input/resources/valueset/valueset-sex-of-the-client.json similarity index 100% rename from input/vocabulary/valueset/valueset-sex-of-the-client.json rename to input/resources/valueset/valueset-sex-of-the-client.json diff --git a/input/vocabulary/valueset/valueset-skin-pb-location.json b/input/resources/valueset/valueset-skin-pb-location.json similarity index 100% rename from input/vocabulary/valueset/valueset-skin-pb-location.json rename to input/resources/valueset/valueset-skin-pb-location.json diff --git a/input/vocabulary/valueset/valueset-skin-pb.json b/input/resources/valueset/valueset-skin-pb.json similarity index 100% rename from input/vocabulary/valueset/valueset-skin-pb.json rename to input/resources/valueset/valueset-skin-pb.json diff --git a/input/vocabulary/valueset/valueset-skin-pinch-abdomen.json b/input/resources/valueset/valueset-skin-pinch-abdomen.json similarity index 100% rename from input/vocabulary/valueset/valueset-skin-pinch-abdomen.json rename to input/resources/valueset/valueset-skin-pinch-abdomen.json diff --git a/input/vocabulary/valueset/valueset-temperature-measurement.json b/input/resources/valueset/valueset-temperature-measurement.json similarity index 100% rename from input/vocabulary/valueset/valueset-temperature-measurement.json rename to input/resources/valueset/valueset-temperature-measurement.json diff --git a/input/vocabulary/valueset/valueset-throatproblem.json b/input/resources/valueset/valueset-throatproblem.json similarity index 100% rename from input/vocabulary/valueset/valueset-throatproblem.json rename to input/resources/valueset/valueset-throatproblem.json diff --git a/input/vocabulary/valueset/valueset-underweight.json b/input/resources/valueset/valueset-underweight.json similarity index 100% rename from input/vocabulary/valueset/valueset-underweight.json rename to input/resources/valueset/valueset-underweight.json diff --git a/input/vocabulary/valueset/valueset-utensils-cleaned.json b/input/resources/valueset/valueset-utensils-cleaned.json similarity index 100% rename from input/vocabulary/valueset/valueset-utensils-cleaned.json rename to input/resources/valueset/valueset-utensils-cleaned.json diff --git a/input/vocabulary/valueset/valueset-visit-type.json b/input/resources/valueset/valueset-visit-type.json similarity index 100% rename from input/vocabulary/valueset/valueset-visit-type.json rename to input/resources/valueset/valueset-visit-type.json diff --git a/input/vocabulary/valueset/valueset-vital-status.json b/input/resources/valueset/valueset-vital-status.json similarity index 100% rename from input/vocabulary/valueset/valueset-vital-status.json rename to input/resources/valueset/valueset-vital-status.json diff --git a/input/vocabulary/valueset/valueset-weight-status.json b/input/resources/valueset/valueset-weight-status.json similarity index 100% rename from input/vocabulary/valueset/valueset-weight-status.json rename to input/resources/valueset/valueset-weight-status.json diff --git a/input/vocabulary/valueset/valueset-yesno.json b/input/resources/valueset/valueset-yesno.json similarity index 100% rename from input/vocabulary/valueset/valueset-yesno.json rename to input/resources/valueset/valueset-yesno.json diff --git a/input/vocabulary/valueset/valueset-yesnox.json b/input/resources/valueset/valueset-yesnox.json similarity index 100% rename from input/vocabulary/valueset/valueset-yesnox.json rename to input/resources/valueset/valueset-yesnox.json From cd9cf42b746303b976013ad9090aab8ac32e7032 Mon Sep 17 00:00:00 2001 From: Patrick Delcroix <delcroip@gmail.com> Date: Wed, 1 Apr 2026 13:27:13 +0200 Subject: [PATCH 19/24] remove duplicate --- .../library-emcareobservationvalueset.json | 20 ------------------- 1 file changed, 20 deletions(-) delete mode 100644 input/resources/library/library-emcareobservationvalueset.json diff --git a/input/resources/library/library-emcareobservationvalueset.json b/input/resources/library/library-emcareobservationvalueset.json deleted file mode 100644 index 54269804..00000000 --- a/input/resources/library/library-emcareobservationvalueset.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "resourceType": "Library", - "id": "emcareobservationvalueset", - "url": "https://smart.who.int/ccc/Library/emcareobservationvalueset", - "name": "emcareobservationValueset", - "status": "active", - "type": { - "coding": [ - { - "system": "http://hl7.org/fhir/ValueSet/library-type", - "code": "logic-library" - } - ] - }, - "content": [ - { - "id": "ig-loader-emcareobservationValueset.cql" - } - ] -} \ No newline at end of file From c54b23cbf176c8decbed875cae28848e603ca969 Mon Sep 17 00:00:00 2001 From: Patrick Delcroix <delcroip@gmail.com> Date: Wed, 1 Apr 2026 13:49:01 +0200 Subject: [PATCH 20/24] update index.md --- input/pagecontent/index-ig.md | 47 +++++++++++++++++++++++++++++++++++ input/pagecontent/index.md | 25 ++----------------- sushi-config.yaml | 4 +-- 3 files changed, 51 insertions(+), 25 deletions(-) create mode 100644 input/pagecontent/index-ig.md diff --git a/input/pagecontent/index-ig.md b/input/pagecontent/index-ig.md new file mode 100644 index 00000000..db318c25 --- /dev/null +++ b/input/pagecontent/index-ig.md @@ -0,0 +1,47 @@ +This WHO Implementation Guide for Immunizations details how to use Health Level 7 (HL7) Fast Healthcare Interoperability Resources (FHIR) for consistent digital representation of Immunization services. + +<div> +<p> This implementation guide and set of artifacts are still undergoing development. </p> +<p> Content is for demonstration purposes only. </p> +</div>{:.stu-note} + + +### Summary +This implementation guide includes a machine-readable representation of WHO guidelines for Immunizations, as documented in the WHO Digital Adaptation Kit for Immunizations (link forthcoming) and explicitly encodes computer-interoperable logic, including data models, terminologies, and logic expressions, in a computable language to support implementation of Immunization use cases by WHO Member States. + +The guide is part of the [WHO SMART Guidelines approach](https://www.who.int/teams/digital-health-and-innovation/smart-guidelines) to support countries to integrate WHO global health and data recommendations into digital systems accurately and consistently. It defines a series of FHIR Resources, Profiles, Extensions, and Terminology based on the [WHO Digital Adaptation Kit for Immunizations](https://www.who.int/publications/i/item/9789240099456). + +Supporting guidance, recommendations, resources, and standards are included in the <a href="references.html">References</a> and <a href="dependencies.html">Dependencies</a>. + +### About this implementation guide + +This implementation guide is broken into the following levels of [knowledge representation](https://hl7.org/fhir/uv/cpg/documentation-approach-06-01-levels-of-knowledge-representation.html): +- <a href="index.html">Home</a> - contains references to the guidance, guidelines, policies and recommendations underpinning this implementation guide. +- <a href="business-requirements.html">Business Requirements</a> - contains the requirements for this implementation guide including the definition of key concepts, use cases, and a data dictionary. +- <a href="data-models-and-exchange.html">Data Models and Exchange</a> - contains the data models and data exchange protocols with actors and transactions defined. +- <a href="deployment.html">Deployment Guidance </a> - contains relevant technical specifications and guidance, testing resources, reference implementation materials, and supporting guidance for adaptation to local contexts. + +This guide is prepared to facilitate digital implementation of WHO Immunization guidelines by providing FHIR-based computable representations of and implementation guidance for using the key components of the WHO Digital adaptation kit (DAK) for immunizations: + +* Health Interventions & Recommendations +* Generic Personas +* User Scenarios +* Business Processes & Workflows +* Core Data Elements +* Decision Support Logic +* Indicators & Monitoring +* Functional & Non-functional Requirements + +This guide is a companion to the Digital Adaptation Kit (DAK) and should be used side-by-side with it. Implementers are strongly encouraged to make use of the Digital Adaptation Kit. The focus of this guide is on the explanation and use of the computable artifacts. + +This guide assumes use of the following resources: +* [IPS Patient](http://hl7.org/fhir/uv/ips/StructureDefinition/Patient-uv-ips) +* [CPG ActivityDefinitions](https://hl7.org/fhir/uv/cpg/artifacts.html#activitydefinition-index) + +- For a complete listing of the artifacts defined in this implementation guide, refer to the [Artifact Index](artifacts.html). +- A complete offline copy of this implementation guide can be found on the [Downloads](downloads.html) page. + +- This Implementation Guide makes use of [Clinical Quality Language](https://cql.hl7.org/) for the decision support artifacts including the PlanDefinitions and Measures. They are used to express how a calculation should occur and can be used with a CQL engine in order to process the decision or indicator directly from the applicable FHIR resources. Links to this specification, the FHIR Clinical Practice Guidelines Speciciation, and other helpful resources can be found in the Support dropdown. + +### Disclaimer +The specification herewith documented is a demo working specification and may not be used for any implementation purposes. This draft is provided without warranty of completeness or consistency and the official publication supersedes this draft. No liability can be inferred from the use or misuse of this specification or its consequences. \ No newline at end of file diff --git a/input/pagecontent/index.md b/input/pagecontent/index.md index 1d7e4a7b..9cdeca16 100644 --- a/input/pagecontent/index.md +++ b/input/pagecontent/index.md @@ -1,26 +1,5 @@ -This implementation guide provides implementation resources and guidance in support of applying the WHO recommendations on antenatal care for a positive pregnancy experience: -[WHO recommendations on antenatal care for a positive pregnancy experience](https://www.who.int/reproductivehealth/publications/maternal_perinatal_health/anc-positive-pregnancy-experience/en/) +{% include index-ig.md %} -This implementation guide is part of the WHO Smart Guidelines approach to support countries to integrate WHO global data and health recommendations into digital systems accurately and consistently. This new approach to global health in the digital age beings with maternal health and the launch of the [WHO Smart Antenatal Care Guidelines](https://www.srhr.org/antenatalcare/) +{% include ip-statements.xhtml %} -This guide is prepared to facilitate digital implementation of WHO ANC guidelines by providing FHIR-based computable representations of and implementation guidance for using the key components of the WHO ANC digital adaptation kit (DAK): - -* Health Interventions & Recommendations -* Generic Personas -* User Scenarios -* Business Processes & Workflows -* Core Data Elements -* Decision Support Logic -* Indicators & Monitoring -* Functional & Non-functional Requirements - -This guide is a companion to the Digital Adaptation Kit (DAK) and should be used side-by-side with it. Implementers are strongly encouraged to make use of the Digital Adaptation Kit as it contains a wealth of context and guidance that is intentionally not duplicated here. The focus of this guide is on the explanation and use of the computable artifacts. - -Note that the content of this implementation guide is draft material that has not yet been tested or validated for use in production environments. - -Note that this is a working draft currently in progress, and subject to change without notice. The current focus is on representation of generic personas, data elements, decision support logic, and indicators. - -For a complete index of the contents of this implementation guide, refer to the [Documentation](documentation.html) page. - -<!--For a quick start to get up and running and see how the artifacts work, refer to the [Quick Start](quick-start.html)--> diff --git a/sushi-config.yaml b/sushi-config.yaml index d2dc48dd..6b26dfd4 100644 --- a/sushi-config.yaml +++ b/sushi-config.yaml @@ -49,9 +49,9 @@ dependencies: # ====================== Pages ====================== pages: - toc.html: + index.md: title: Table of Contents - generation: html + generation: markdown index.md: title: Home generation: markdown From 795b7818c4f5a43af53dfc0bc1f624f7d71fd782 Mon Sep 17 00:00:00 2001 From: Patrick Delcroix <delcroip@gmail.com> Date: Wed, 1 Apr 2026 13:57:31 +0200 Subject: [PATCH 21/24] remove duplicate index --- sushi-config.yaml | 41 +++++++++++++++++++---------------------- 1 file changed, 19 insertions(+), 22 deletions(-) diff --git a/sushi-config.yaml b/sushi-config.yaml index 6b26dfd4..77ce2514 100644 --- a/sushi-config.yaml +++ b/sushi-config.yaml @@ -50,29 +50,26 @@ dependencies: # ====================== Pages ====================== pages: index.md: - title: Table of Contents + title: Home generation: markdown - index.md: - title: Home - generation: markdown - documentation.md: - title: Documentation - generation: markdown - guidance.md: - title: Guidance - generation: markdown - downloads.html: - title: Downloads - generation: html - license.md: - title: License - generation: markdown - changes.html: - title: Changes - generation: html - quick-start.html: - title: Quick Start - generation: html + documentation.md: + title: Documentation + generation: markdown + guidance.md: + title: Guidance + generation: markdown + downloads.html: + title: Downloads + generation: html + license.md: + title: License + generation: markdown + changes.html: + title: Changes + generation: html + quick-start.html: + title: Quick Start + generation: html # ====================== Parameters ====================== parameters: From f1b9ed955938a86a4a83f4bd44fefea5bfd2d463 Mon Sep 17 00:00:00 2001 From: Patrick Delcroix <delcroip@gmail.com> Date: Tue, 7 Apr 2026 10:52:17 +0200 Subject: [PATCH 22/24] fix: wrong import name --- input/pagecontent/ActivityEmcare.b10-14.symptoms.2m.p.md | 4 +++- input/pagecontent/ActivityEmcare.b10-16.signs.2m.p.md | 4 +++- input/pagecontent/ActivityEmcare.b18-21.signs.2m.m.md | 4 +++- input/pagecontent/ActivityEmcare.b18-21.symptoms.2m.m.md | 4 +++- input/pagecontent/ActivityEmcare.b22.assessmentstests.md | 2 +- input/pagecontent/ActivityEmcare.b22.breastfeeding.md | 4 +++- input/pagecontent/ActivityEmcare.b22.bronchodilatortest.md | 4 +++- input/pagecontent/ActivityEmcare.b22.fluidtest.md | 4 +++- input/pagecontent/ActivityEmcare.b22.hemoglobin.md | 4 +++- input/pagecontent/ActivityEmcare.b22.respiratoryrate.md | 4 +++- input/pagecontent/ActivityEmcare.b22.secondtemperature.md | 4 +++- input/pagecontent/ActivityEmcare.b23.classification.m.md | 4 +++- input/pagecontent/ActivityEmcare.b23.classification.md | 4 +++- input/pagecontent/ActivityEmcare.b6.measurements.md | 4 +++- input/pagecontent/ActivityEmcare.b7.lti-dangersigns.md | 4 +++- input/pagecontent/ActivityEmcare.treatment.md | 2 +- input/pagecontent/ActivityEmcarea.registration.p.md | 4 +++- input/pagecontent/ActivityEmcareb.registration.e.md | 4 +++- 18 files changed, 50 insertions(+), 18 deletions(-) diff --git a/input/pagecontent/ActivityEmcare.b10-14.symptoms.2m.p.md b/input/pagecontent/ActivityEmcare.b10-14.symptoms.2m.p.md index 2a260cd2..8b0aa3cc 100644 --- a/input/pagecontent/ActivityEmcare.b10-14.symptoms.2m.p.md +++ b/input/pagecontent/ActivityEmcare.b10-14.symptoms.2m.p.md @@ -1,6 +1,8 @@ ### ActivityEmCare.B10-14.Symptoms.2m.p -{% include LibraryEmcare.b10-14.symptoms.2m.p.md %}#### Ouputs +{% include library-emcare.b10-14.symptoms.2m.p.md %} + +#### Ouputs ouputs generated by the structureMaps | type | code / path | valueType | Description | diff --git a/input/pagecontent/ActivityEmcare.b10-16.signs.2m.p.md b/input/pagecontent/ActivityEmcare.b10-16.signs.2m.p.md index 637f9b87..1af88b2b 100644 --- a/input/pagecontent/ActivityEmcare.b10-16.signs.2m.p.md +++ b/input/pagecontent/ActivityEmcare.b10-16.signs.2m.p.md @@ -1,6 +1,8 @@ ### ActivityEmCare.B10-16.Signs.2m.p -{% include LibraryEmcare.b10-16.signs.2m.p.md %}#### Ouputs +{% include library-emcare.b10-16.signs.2m.p.md %} + +#### Ouputs ouputs generated by the structureMaps | type | code / path | valueType | Description | diff --git a/input/pagecontent/ActivityEmcare.b18-21.signs.2m.m.md b/input/pagecontent/ActivityEmcare.b18-21.signs.2m.m.md index 53027b6c..7240bed2 100644 --- a/input/pagecontent/ActivityEmcare.b18-21.signs.2m.m.md +++ b/input/pagecontent/ActivityEmcare.b18-21.signs.2m.m.md @@ -1,6 +1,8 @@ ### ActivityEmCare.B18-21.Signs.2m.m -{% include LibraryEmcare.b18-21.signs.2m.m.md %}#### Ouputs +{% include library-emcare.b18-21.signs.2m.m.md %} + +#### Ouputs ouputs generated by the structureMaps | type | code / path | valueType | Description | diff --git a/input/pagecontent/ActivityEmcare.b18-21.symptoms.2m.m.md b/input/pagecontent/ActivityEmcare.b18-21.symptoms.2m.m.md index 40a340f6..284c009d 100644 --- a/input/pagecontent/ActivityEmcare.b18-21.symptoms.2m.m.md +++ b/input/pagecontent/ActivityEmcare.b18-21.symptoms.2m.m.md @@ -1,6 +1,8 @@ ### ActivityEmCare.B18-21.Symptoms.2m.m -{% include LibraryEmcare.b18-21.symptoms.2m.m.md %}#### Ouputs +{% include library-emcare.b18-21.symptoms.2m.m.md %} + +#### Ouputs ouputs generated by the structureMaps | type | code / path | valueType | Description | diff --git a/input/pagecontent/ActivityEmcare.b22.assessmentstests.md b/input/pagecontent/ActivityEmcare.b22.assessmentstests.md index c2603a4b..3dfb182c 100644 --- a/input/pagecontent/ActivityEmcare.b22.assessmentstests.md +++ b/input/pagecontent/ActivityEmcare.b22.assessmentstests.md @@ -1,3 +1,3 @@ ### ActivityEmCare.B22.AssessmentsTests -{% include LibraryEmcare.b22.assessmentstests.md %} \ No newline at end of file +{% include library-emcare.b22.assessmentstests.md %} \ No newline at end of file diff --git a/input/pagecontent/ActivityEmcare.b22.breastfeeding.md b/input/pagecontent/ActivityEmcare.b22.breastfeeding.md index 9d8a200f..3f6d51d7 100644 --- a/input/pagecontent/ActivityEmcare.b22.breastfeeding.md +++ b/input/pagecontent/ActivityEmcare.b22.breastfeeding.md @@ -1,6 +1,8 @@ ### ActivityEmCare.B22.BreastFeeding -{% include LibraryEmcare.b22.breastfeeding.md %}#### Ouputs +{% include library-emcare.b22.breastfeeding.md %} + +#### Ouputs ouputs generated by the structureMaps | type | code / path | valueType | Description | diff --git a/input/pagecontent/ActivityEmcare.b22.bronchodilatortest.md b/input/pagecontent/ActivityEmcare.b22.bronchodilatortest.md index 473b3caa..ba504f8e 100644 --- a/input/pagecontent/ActivityEmcare.b22.bronchodilatortest.md +++ b/input/pagecontent/ActivityEmcare.b22.bronchodilatortest.md @@ -1,6 +1,8 @@ ### ActivityEmCare.B22.BronchodilatorTest -{% include LibraryEmcare.b22.bronchodilatortest.md %}#### Ouputs +{% include library-emcare.b22.bronchodilatortest.md %} + +#### Ouputs ouputs generated by the structureMaps | type | code / path | valueType | Description | diff --git a/input/pagecontent/ActivityEmcare.b22.fluidtest.md b/input/pagecontent/ActivityEmcare.b22.fluidtest.md index 6c1656dc..d29a4876 100644 --- a/input/pagecontent/ActivityEmcare.b22.fluidtest.md +++ b/input/pagecontent/ActivityEmcare.b22.fluidtest.md @@ -1,6 +1,8 @@ ### ActivityEmCare.B22.FluidTest -{% include LibraryEmcare.b22.fluidtest.md %}#### Ouputs +{% include library-emcare.b22.fluidtest.md %} + +#### Ouputs ouputs generated by the structureMaps | type | code / path | valueType | Description | diff --git a/input/pagecontent/ActivityEmcare.b22.hemoglobin.md b/input/pagecontent/ActivityEmcare.b22.hemoglobin.md index 990fddae..d1b38299 100644 --- a/input/pagecontent/ActivityEmcare.b22.hemoglobin.md +++ b/input/pagecontent/ActivityEmcare.b22.hemoglobin.md @@ -1,6 +1,8 @@ ### ActivityEmCare.B22.Hemoglobin -{% include LibraryEmcare.b22.hemoglobin.md %}#### Ouputs +{% include library-emcare.b22.hemoglobin.md %} + +#### Ouputs ouputs generated by the structureMaps | type | code / path | valueType | Description | diff --git a/input/pagecontent/ActivityEmcare.b22.respiratoryrate.md b/input/pagecontent/ActivityEmcare.b22.respiratoryrate.md index d1660031..894b6ed0 100644 --- a/input/pagecontent/ActivityEmcare.b22.respiratoryrate.md +++ b/input/pagecontent/ActivityEmcare.b22.respiratoryrate.md @@ -1,6 +1,8 @@ ### ActivityEmCare.B22.RespiratoryRate -{% include LibraryEmcare.b22.respiratoryrate.md %}#### Ouputs +{% include library-emcare.b22.respiratoryrate.md %} + +#### Ouputs ouputs generated by the structureMaps | type | code / path | valueType | Description | diff --git a/input/pagecontent/ActivityEmcare.b22.secondtemperature.md b/input/pagecontent/ActivityEmcare.b22.secondtemperature.md index caf59afd..e1e62455 100644 --- a/input/pagecontent/ActivityEmcare.b22.secondtemperature.md +++ b/input/pagecontent/ActivityEmcare.b22.secondtemperature.md @@ -1,6 +1,8 @@ ### ActivityEmCare.B22.SecondTemperature -{% include LibraryEmcare.b22.secondtemperature.md %}#### Ouputs +{% include library-emcare.b22.secondtemperature.md %} + +#### Ouputs ouputs generated by the structureMaps | type | code / path | valueType | Description | diff --git a/input/pagecontent/ActivityEmcare.b23.classification.m.md b/input/pagecontent/ActivityEmcare.b23.classification.m.md index 1922afc0..d0793f43 100644 --- a/input/pagecontent/ActivityEmcare.b23.classification.m.md +++ b/input/pagecontent/ActivityEmcare.b23.classification.m.md @@ -1,6 +1,8 @@ ### ActivityEmCare.B23.Classification.m -{% include LibraryEmcare.b23.classification.m.md %}#### Ouputs +{% include library-emcare.b23.classification.m.md %} + +#### Ouputs ouputs generated by the structureMaps | type | code / path | valueType | Description | diff --git a/input/pagecontent/ActivityEmcare.b23.classification.md b/input/pagecontent/ActivityEmcare.b23.classification.md index ac26aba4..e8582e78 100644 --- a/input/pagecontent/ActivityEmcare.b23.classification.md +++ b/input/pagecontent/ActivityEmcare.b23.classification.md @@ -1,6 +1,8 @@ ### ActivityEmCare.B23.Classification -{% include LibraryEmcare.b23.classification.md %}#### Ouputs +{% include library-emcare.b23.classification.md %} + +#### Ouputs ouputs generated by the structureMaps | type | code / path | valueType | Description | diff --git a/input/pagecontent/ActivityEmcare.b6.measurements.md b/input/pagecontent/ActivityEmcare.b6.measurements.md index 6855bcdd..d81d9868 100644 --- a/input/pagecontent/ActivityEmcare.b6.measurements.md +++ b/input/pagecontent/ActivityEmcare.b6.measurements.md @@ -1,6 +1,8 @@ ### ActivityEmCare.B6.Measurements -{% include LibraryEmcare.b6.measurements.md %}#### Ouputs +{% include library-emcare.b6.measurements.md %} + +#### Ouputs ouputs generated by the structureMaps | type | code / path | valueType | Description | diff --git a/input/pagecontent/ActivityEmcare.b7.lti-dangersigns.md b/input/pagecontent/ActivityEmcare.b7.lti-dangersigns.md index d3ecd347..ce198ae7 100644 --- a/input/pagecontent/ActivityEmcare.b7.lti-dangersigns.md +++ b/input/pagecontent/ActivityEmcare.b7.lti-dangersigns.md @@ -1,6 +1,8 @@ ### ActivityEmCare.B7.LTI-DangerSigns -{% include LibraryEmcare.b7.lti-dangersigns.md %}#### Ouputs +{% include library-emcare.b7.lti-dangersigns.md %} + +#### Ouputs ouputs generated by the structureMaps | type | code / path | valueType | Description | diff --git a/input/pagecontent/ActivityEmcare.treatment.md b/input/pagecontent/ActivityEmcare.treatment.md index c92f615e..73d65515 100644 --- a/input/pagecontent/ActivityEmcare.treatment.md +++ b/input/pagecontent/ActivityEmcare.treatment.md @@ -1,3 +1,3 @@ ### ActivityEmCare.Treatment -{% include LibraryEmcare.treatment.md %} \ No newline at end of file +{% include library-emcare.treatment.md %} \ No newline at end of file diff --git a/input/pagecontent/ActivityEmcarea.registration.p.md b/input/pagecontent/ActivityEmcarea.registration.p.md index 27a85f62..a7c40e3f 100644 --- a/input/pagecontent/ActivityEmcarea.registration.p.md +++ b/input/pagecontent/ActivityEmcarea.registration.p.md @@ -1,6 +1,8 @@ ### ActivityEmCareA.Registration.P -{% include LibraryEmcarea.registration.p.md %}#### Ouputs +{% include library-emcarea.registration.p.md %} + +#### Ouputs ouputs generated by the structureMaps | type | code / path | valueType | Description | diff --git a/input/pagecontent/ActivityEmcareb.registration.e.md b/input/pagecontent/ActivityEmcareb.registration.e.md index ae9ec62f..8e6ae3aa 100644 --- a/input/pagecontent/ActivityEmcareb.registration.e.md +++ b/input/pagecontent/ActivityEmcareb.registration.e.md @@ -1,6 +1,8 @@ ### ActivityEmCareB.Registration.E -{% include LibraryEmcareb.registration.e.md %}#### Ouputs +{% include library-emcareb.registration.e.md %} + +#### Ouputs ouputs generated by the structureMaps | type | code / path | valueType | Description | From a0d226275acb49382c94804c097613a8f1a5d846 Mon Sep 17 00:00:00 2001 From: Patrick Delcroix <delcroip@gmail.com> Date: Tue, 7 Apr 2026 14:31:36 +0200 Subject: [PATCH 23/24] removing: not existing file includes --- input/pagecontent/ActivityEmcare.b22.assessmentstests.md | 1 - input/pagecontent/ActivityEmcare.b22.breastfeeding.md | 2 +- input/pagecontent/ActivityEmcare.b22.bronchodilatortest.md | 2 +- input/pagecontent/ActivityEmcare.b22.fluidtest.md | 2 +- input/pagecontent/ActivityEmcare.b22.hemoglobin.md | 2 +- input/pagecontent/ActivityEmcare.b22.respiratoryrate.md | 2 +- input/pagecontent/ActivityEmcare.b22.secondtemperature.md | 2 +- input/pagecontent/ActivityEmcare.b23.classification.m.md | 2 +- input/pagecontent/ActivityEmcare.b23.classification.md | 2 +- input/pagecontent/ActivityEmcare.b6.measurements.md | 2 +- input/pagecontent/ActivityEmcare.treatment.md | 1 - input/pagecontent/ActivityEmcarea.registration.p.md | 2 +- input/pagecontent/ActivityEmcareb.registration.e.md | 2 +- 13 files changed, 11 insertions(+), 13 deletions(-) diff --git a/input/pagecontent/ActivityEmcare.b22.assessmentstests.md b/input/pagecontent/ActivityEmcare.b22.assessmentstests.md index 3dfb182c..8fdc9cd0 100644 --- a/input/pagecontent/ActivityEmcare.b22.assessmentstests.md +++ b/input/pagecontent/ActivityEmcare.b22.assessmentstests.md @@ -1,3 +1,2 @@ ### ActivityEmCare.B22.AssessmentsTests -{% include library-emcare.b22.assessmentstests.md %} \ No newline at end of file diff --git a/input/pagecontent/ActivityEmcare.b22.breastfeeding.md b/input/pagecontent/ActivityEmcare.b22.breastfeeding.md index 3f6d51d7..a01dea23 100644 --- a/input/pagecontent/ActivityEmcare.b22.breastfeeding.md +++ b/input/pagecontent/ActivityEmcare.b22.breastfeeding.md @@ -1,6 +1,6 @@ ### ActivityEmCare.B22.BreastFeeding -{% include library-emcare.b22.breastfeeding.md %} + #### Ouputs diff --git a/input/pagecontent/ActivityEmcare.b22.bronchodilatortest.md b/input/pagecontent/ActivityEmcare.b22.bronchodilatortest.md index ba504f8e..2eed6f4d 100644 --- a/input/pagecontent/ActivityEmcare.b22.bronchodilatortest.md +++ b/input/pagecontent/ActivityEmcare.b22.bronchodilatortest.md @@ -1,6 +1,6 @@ ### ActivityEmCare.B22.BronchodilatorTest -{% include library-emcare.b22.bronchodilatortest.md %} + #### Ouputs diff --git a/input/pagecontent/ActivityEmcare.b22.fluidtest.md b/input/pagecontent/ActivityEmcare.b22.fluidtest.md index d29a4876..6ec02e6d 100644 --- a/input/pagecontent/ActivityEmcare.b22.fluidtest.md +++ b/input/pagecontent/ActivityEmcare.b22.fluidtest.md @@ -1,6 +1,6 @@ ### ActivityEmCare.B22.FluidTest -{% include library-emcare.b22.fluidtest.md %} + #### Ouputs diff --git a/input/pagecontent/ActivityEmcare.b22.hemoglobin.md b/input/pagecontent/ActivityEmcare.b22.hemoglobin.md index d1b38299..a00a554c 100644 --- a/input/pagecontent/ActivityEmcare.b22.hemoglobin.md +++ b/input/pagecontent/ActivityEmcare.b22.hemoglobin.md @@ -1,6 +1,6 @@ ### ActivityEmCare.B22.Hemoglobin -{% include library-emcare.b22.hemoglobin.md %} + #### Ouputs diff --git a/input/pagecontent/ActivityEmcare.b22.respiratoryrate.md b/input/pagecontent/ActivityEmcare.b22.respiratoryrate.md index 894b6ed0..b9357de8 100644 --- a/input/pagecontent/ActivityEmcare.b22.respiratoryrate.md +++ b/input/pagecontent/ActivityEmcare.b22.respiratoryrate.md @@ -1,6 +1,6 @@ ### ActivityEmCare.B22.RespiratoryRate -{% include library-emcare.b22.respiratoryrate.md %} + #### Ouputs diff --git a/input/pagecontent/ActivityEmcare.b22.secondtemperature.md b/input/pagecontent/ActivityEmcare.b22.secondtemperature.md index e1e62455..f3f4f6aa 100644 --- a/input/pagecontent/ActivityEmcare.b22.secondtemperature.md +++ b/input/pagecontent/ActivityEmcare.b22.secondtemperature.md @@ -1,6 +1,6 @@ ### ActivityEmCare.B22.SecondTemperature -{% include library-emcare.b22.secondtemperature.md %} + #### Ouputs diff --git a/input/pagecontent/ActivityEmcare.b23.classification.m.md b/input/pagecontent/ActivityEmcare.b23.classification.m.md index d0793f43..bae9e046 100644 --- a/input/pagecontent/ActivityEmcare.b23.classification.m.md +++ b/input/pagecontent/ActivityEmcare.b23.classification.m.md @@ -1,6 +1,6 @@ ### ActivityEmCare.B23.Classification.m -{% include library-emcare.b23.classification.m.md %} + #### Ouputs diff --git a/input/pagecontent/ActivityEmcare.b23.classification.md b/input/pagecontent/ActivityEmcare.b23.classification.md index e8582e78..b6ad72de 100644 --- a/input/pagecontent/ActivityEmcare.b23.classification.md +++ b/input/pagecontent/ActivityEmcare.b23.classification.md @@ -1,6 +1,6 @@ ### ActivityEmCare.B23.Classification -{% include library-emcare.b23.classification.md %} + #### Ouputs diff --git a/input/pagecontent/ActivityEmcare.b6.measurements.md b/input/pagecontent/ActivityEmcare.b6.measurements.md index d81d9868..5e6c926f 100644 --- a/input/pagecontent/ActivityEmcare.b6.measurements.md +++ b/input/pagecontent/ActivityEmcare.b6.measurements.md @@ -1,6 +1,6 @@ ### ActivityEmCare.B6.Measurements -{% include library-emcare.b6.measurements.md %} + #### Ouputs diff --git a/input/pagecontent/ActivityEmcare.treatment.md b/input/pagecontent/ActivityEmcare.treatment.md index 73d65515..c9ac0286 100644 --- a/input/pagecontent/ActivityEmcare.treatment.md +++ b/input/pagecontent/ActivityEmcare.treatment.md @@ -1,3 +1,2 @@ ### ActivityEmCare.Treatment -{% include library-emcare.treatment.md %} \ No newline at end of file diff --git a/input/pagecontent/ActivityEmcarea.registration.p.md b/input/pagecontent/ActivityEmcarea.registration.p.md index a7c40e3f..63b3e9e5 100644 --- a/input/pagecontent/ActivityEmcarea.registration.p.md +++ b/input/pagecontent/ActivityEmcarea.registration.p.md @@ -1,6 +1,6 @@ ### ActivityEmCareA.Registration.P -{% include library-emcarea.registration.p.md %} + #### Ouputs diff --git a/input/pagecontent/ActivityEmcareb.registration.e.md b/input/pagecontent/ActivityEmcareb.registration.e.md index 8e6ae3aa..91b531f2 100644 --- a/input/pagecontent/ActivityEmcareb.registration.e.md +++ b/input/pagecontent/ActivityEmcareb.registration.e.md @@ -1,6 +1,6 @@ ### ActivityEmCareB.Registration.E -{% include library-emcareb.registration.e.md %} + #### Ouputs From 344838405ce729ed42e582b184fe0ec0bb405cc5 Mon Sep 17 00:00:00 2001 From: Patrick Delcroix <delcroip@gmail.com> Date: Tue, 7 Apr 2026 14:54:44 +0200 Subject: [PATCH 24/24] removing: not existing file includes --- input/pagecontent/ActivityEmcare.b10-14.symptoms.2m.p.md | 2 -- input/pagecontent/ActivityEmcare.b10-16.signs.2m.p.md | 2 +- input/pagecontent/ActivityEmcare.b18-21.signs.2m.m.md | 2 +- input/pagecontent/ActivityEmcare.b18-21.symptoms.2m.m.md | 2 +- input/pagecontent/ActivityEmcare.b7.lti-dangersigns.md | 2 +- 5 files changed, 4 insertions(+), 6 deletions(-) diff --git a/input/pagecontent/ActivityEmcare.b10-14.symptoms.2m.p.md b/input/pagecontent/ActivityEmcare.b10-14.symptoms.2m.p.md index 8b0aa3cc..86eef657 100644 --- a/input/pagecontent/ActivityEmcare.b10-14.symptoms.2m.p.md +++ b/input/pagecontent/ActivityEmcare.b10-14.symptoms.2m.p.md @@ -1,7 +1,5 @@ ### ActivityEmCare.B10-14.Symptoms.2m.p -{% include library-emcare.b10-14.symptoms.2m.p.md %} - #### Ouputs ouputs generated by the structureMaps diff --git a/input/pagecontent/ActivityEmcare.b10-16.signs.2m.p.md b/input/pagecontent/ActivityEmcare.b10-16.signs.2m.p.md index 1af88b2b..ed1ebc98 100644 --- a/input/pagecontent/ActivityEmcare.b10-16.signs.2m.p.md +++ b/input/pagecontent/ActivityEmcare.b10-16.signs.2m.p.md @@ -1,6 +1,6 @@ ### ActivityEmCare.B10-16.Signs.2m.p -{% include library-emcare.b10-16.signs.2m.p.md %} + #### Ouputs diff --git a/input/pagecontent/ActivityEmcare.b18-21.signs.2m.m.md b/input/pagecontent/ActivityEmcare.b18-21.signs.2m.m.md index 7240bed2..a91c467e 100644 --- a/input/pagecontent/ActivityEmcare.b18-21.signs.2m.m.md +++ b/input/pagecontent/ActivityEmcare.b18-21.signs.2m.m.md @@ -1,6 +1,6 @@ ### ActivityEmCare.B18-21.Signs.2m.m -{% include library-emcare.b18-21.signs.2m.m.md %} + #### Ouputs diff --git a/input/pagecontent/ActivityEmcare.b18-21.symptoms.2m.m.md b/input/pagecontent/ActivityEmcare.b18-21.symptoms.2m.m.md index 284c009d..21864f3f 100644 --- a/input/pagecontent/ActivityEmcare.b18-21.symptoms.2m.m.md +++ b/input/pagecontent/ActivityEmcare.b18-21.symptoms.2m.m.md @@ -1,6 +1,6 @@ ### ActivityEmCare.B18-21.Symptoms.2m.m -{% include library-emcare.b18-21.symptoms.2m.m.md %} + #### Ouputs diff --git a/input/pagecontent/ActivityEmcare.b7.lti-dangersigns.md b/input/pagecontent/ActivityEmcare.b7.lti-dangersigns.md index ce198ae7..98f93ee5 100644 --- a/input/pagecontent/ActivityEmcare.b7.lti-dangersigns.md +++ b/input/pagecontent/ActivityEmcare.b7.lti-dangersigns.md @@ -1,6 +1,6 @@ ### ActivityEmCare.B7.LTI-DangerSigns -{% include library-emcare.b7.lti-dangersigns.md %} + #### Ouputs