WHO FHIR Implementation Guide (IG): Integrated Management of Childhood Illness (IMCI) in emergencies
0.1.0 - release
WHO FHIR Implementation Guide (IG): Integrated Management of Childhood Illness (IMCI) in emergencies, published by World Health Organization (WHO). This guide is not an authorized publication; it is the continuous build for version 0.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/WorldHealthOrganization/smart-emcare/tree/main and changes regularly. See the Directory of published versions
Built from commit 750268bd.
| Official URL: https://smart.who.int/ccc/StructureMap/Ccc.b10-14.symptoms.2m.p | Version: 0.1.0 | |||
| Active as of 2026-04-07 | Computable Name: Ccc.b10-14.symptoms.2m.p | |||
map "https://smart.who.int/ccc/StructureMap/Ccc.b10-14.symptoms.2m.p" = "Ccc.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://smart.who.int/ccc/StructureDefinition/observation" alias 'Observation' as target
uses "https://smart.who.int/ccc/StructureDefinition/Cccobservation" alias 'Ccc Observation' as produced
group bundletrans(source src : questionnaireResponse, target bundle : Bundle) {
src -> bundle.id = uuid() "id";
src -> bundle.type = 'batch' "type";
src.item first as item where (linkId = 'Ccc.B10S1.DE05') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then CccobservationCccb10s1de05(src, tgt) "d130047c";
} "56a76d73";
} "79141fc8";
} "08fbbbd7";
src.item first as item where (linkId = 'Ccc.B10S1.DE06') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then CccobservationCccb10s1de06(src, tgt) "008a3623";
} "d784044d";
} "805abc9e";
} "446767cc";
src.item first as item where (linkId = 'Ccc.B10S1.DE01') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then CccobservationCccb10s1de01(src, tgt) "04d8e898";
} "b2d824f5";
} "0d7d74bd";
} "dd9bd984";
src.item first as item where (linkId = 'Ccc.B10S1.DE02') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then CccobservationCccb10s1de02(src, tgt) "d90e5fb1";
} "5cae2191";
} "ab1692fb";
} "119f6765";
src.item first as item where (linkId = 'Ccc.B11S1.DE01') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then CccobservationCccb11s1de01(src, tgt) "43d4af59";
} "bfd970ae";
} "b8eb69b0";
} "e1f73648";
src.item first as item where (linkId = 'Ccc.B11S1.DE02') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then CccobservationCccb11s1de02(src, tgt) "39c1737c";
} "891a881e";
} "6e6d1885";
} "a9e046d7";
src.item first as item where (linkId = 'Ccc.B11S1.DE05') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then CccobservationCccb11s1de05(src, tgt) "1721269a";
} "c1e233d8";
} "c6a3d5c5";
} "e17a9583";
src.item first as item where (linkId = 'Ccc.B12S1.DE02') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then CccobservationCccb12s1de02(src, tgt) "df55b281";
} "0a52cb1c";
} "1593137e";
} "744c4bf9";
src.item first as item where (linkId = 'Ccc.B12S1.DE03') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then CccobservationCccb12s1de03(src, tgt) "fc6edbe7";
} "5330779a";
} "c692777e";
} "8d04eb57";
src.item first as item where (linkId = 'Ccc.B.G.DE06') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then CccobservationCccbgde06(src, tgt) "ca782de1";
} "1b87f3fc";
} "9ac4a378";
} "f72a0439";
src.item first as item where (linkId = 'Ccc.B12S1.DE06') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then CccobservationCccb12s1de06(src, tgt) "ce301cb0";
} "c80f2620";
} "27eb1328";
} "e6da0780";
src.item first as item where (linkId = 'Ccc.B13S1.DE01') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then CccobservationCccb13s1de01(src, tgt) "0a3c13d2";
} "0ca270e1";
} "6e77deb0";
} "b8334cd6";
src.item first as item where (linkId = 'Ccc.B13S1.DE02') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then CccobservationCccb13s1de02(src, tgt) "cd788051";
} "2c880586";
} "50966861";
} "78170861";
src.item first as item where (linkId = 'Ccc.B13S1.DE03') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then CccobservationCccb13s1de03(src, tgt) "323bf4ac";
} "681ae227";
} "b8f4f3f5";
} "e5a07dfd";
src.item first as item where (linkId = 'Ccc.B13S1.DE04') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then CccobservationCccb13s1de04(src, tgt) "28267d58";
} "4ea18833";
} "82346f75";
} "b63e24e4";
src.item first as item where (linkId = 'Ccc.B14S1.DE03') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then CccobservationCccb14s1de03(src, tgt) "ab7fc76a";
} "22d8b79e";
} "991ff5c6";
} "102c5ae9";
src.item first as item where (linkId = 'Ccc.B14S1.DE01') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then CccobservationCccb14s1de01(src, tgt) "6baaff63";
} "f7186bc6";
} "19883e88";
} "90d2b417";
src.item first as item where (linkId = 'Ccc.B14S1.DE02') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then CccobservationCccb14s1de02(src, tgt) "49187687";
} "0063faef";
} "7df08969";
} "6f9d4b85";
}
group CccobservationCccb10s1de05(source src, target tgt) {
src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb10s1de05";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/Cccobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes', coding.code = 'Ccc.B10S1.DE05' "code-Cccb10s1de05";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as item where (linkId = 'Ccc.B10S1.DE05') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb10s1de05";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb10s1de05";
} "bdab9370";
} "f75f2b05";
}
group CccobservationCccb10s1de06(source src, target tgt) {
src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb10s1de06";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/Cccobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes', coding.code = 'Ccc.B10S1.DE06' "code-Cccb10s1de06";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as item where (linkId = 'Ccc.B10S1.DE06') and answer.exists() then {
item.answer first as a then {
a.value as val then {
val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";
val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";
} "310f4b1f";
} "6af9bfcc";
} "156b25ae";
}
group CccobservationCccb10s1de01(source src, target tgt) {
src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb10s1de01";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/Cccobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes', coding.code = 'Ccc.B10S1.DE01' "code-Cccb10s1de01";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as item where (linkId = 'Ccc.B10S1.DE01') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb10s1de01";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb10s1de01";
} "bdab9370";
} "1b302dc5";
}
group CccobservationCccb10s1de02(source src, target tgt) {
src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb10s1de02";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/Cccobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes', coding.code = 'Ccc.B10S1.DE02' "code-Cccb10s1de02";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as item where (linkId = 'Ccc.B10S1.DE02') and answer.exists() then {
item.answer first as a then {
a.value as val then {
val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";
val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";
} "310f4b1f";
} "6af9bfcc";
} "84c804e5";
}
group CccobservationCccb11s1de01(source src, target tgt) {
src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb11s1de01";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/Cccobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes', coding.code = 'Ccc.B11S1.DE01' "code-Cccb11s1de01";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as item where (linkId = 'Ccc.B11S1.DE01') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb11s1de01";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb11s1de01";
} "bdab9370";
} "7b8564b3";
}
group CccobservationCccb11s1de02(source src, target tgt) {
src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb11s1de02";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/Cccobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes', coding.code = 'Ccc.B11S1.DE02' "code-Cccb11s1de02";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as item where (linkId = 'Ccc.B11S1.DE02') and answer.exists() then {
item.answer first as a then {
a.value as val then {
val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";
val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";
} "310f4b1f";
} "6af9bfcc";
} "78040096";
}
group CccobservationCccb11s1de05(source src, target tgt) {
src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb11s1de05";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/Cccobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes', coding.code = 'Ccc.B11S1.DE05' "code-Cccb11s1de05";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as item where (linkId = 'Ccc.B11S1.DE05') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb11s1de05";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb11s1de05";
} "bdab9370";
} "999566e5";
}
group CccobservationCccb12s1de02(source src, target tgt) {
src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb12s1de02";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/Cccobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes', coding.code = 'Ccc.B12S1.DE02' "code-Cccb12s1de02";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as item where (linkId = 'Ccc.B12S1.DE02') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb12s1de02";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb12s1de02";
} "bdab9370";
} "2980a862";
}
group CccobservationCccb12s1de03(source src, target tgt) {
src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb12s1de03";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/Cccobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes', coding.code = 'Ccc.B12S1.DE03' "code-Cccb12s1de03";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as item where (linkId = 'Ccc.B12S1.DE03') and answer.exists() then {
item.answer first as a then {
a.value as val then {
val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";
val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";
} "310f4b1f";
} "6af9bfcc";
} "0684c220";
}
group CccobservationCccbgde06(source src, target tgt) {
src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccbgde06";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/Cccobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes', coding.code = 'Ccc.B.G.DE06' "code-Cccbgde06";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as item where (linkId = 'Ccc.B.G.DE06') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccbgde06";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccbgde06";
} "bdab9370";
} "d670d189";
}
group CccobservationCccb12s1de06(source src, target tgt) {
src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb12s1de06";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/Cccobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes', coding.code = 'Ccc.B12S1.DE06' "code-Cccb12s1de06";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as item where (linkId = 'Ccc.B12S1.DE06') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb12s1de06";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb12s1de06";
} "bdab9370";
} "fcb16134";
}
group CccobservationCccb13s1de01(source src, target tgt) {
src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb13s1de01";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/Cccobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes', coding.code = 'Ccc.B13S1.DE01' "code-Cccb13s1de01";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as item where (linkId = 'Ccc.B13S1.DE01') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb13s1de01";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb13s1de01";
} "bdab9370";
} "61c82b53";
}
group CccobservationCccb13s1de02(source src, target tgt) {
src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb13s1de02";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/Cccobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes', coding.code = 'Ccc.B13S1.DE02' "code-Cccb13s1de02";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as item where (linkId = 'Ccc.B13S1.DE02') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb13s1de02";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb13s1de02";
} "bdab9370";
} "f246fc63";
}
group CccobservationCccb13s1de03(source src, target tgt) {
src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb13s1de03";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/Cccobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes', coding.code = 'Ccc.B13S1.DE03' "code-Cccb13s1de03";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as item where (linkId = 'Ccc.B13S1.DE03') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb13s1de03";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb13s1de03";
} "bdab9370";
} "1e1d8c32";
}
group CccobservationCccb13s1de04(source src, target tgt) {
src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb13s1de04";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/Cccobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes', coding.code = 'Ccc.B13S1.DE04' "code-Cccb13s1de04";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as item where (linkId = 'Ccc.B13S1.DE04') and answer.exists() then {
item.answer first as a then {
a.value as val then {
val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";
val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";
} "310f4b1f";
} "6af9bfcc";
} "9fc99c98";
}
group CccobservationCccb14s1de03(source src, target tgt) {
src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb14s1de03";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/Cccobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes', coding.code = 'Ccc.B14S1.DE03' "code-Cccb14s1de03";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as item where (linkId = 'Ccc.B14S1.DE03') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb14s1de03";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb14s1de03";
} "bdab9370";
} "bc3a888b";
}
group CccobservationCccb14s1de01(source src, target tgt) {
src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb14s1de01";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/Cccobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes', coding.code = 'Ccc.B14S1.DE01' "code-Cccb14s1de01";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as item where (linkId = 'Ccc.B14S1.DE01') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb14s1de01";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb14s1de01";
} "bdab9370";
} "fb67ce2c";
}
group CccobservationCccb14s1de02(source src, target tgt) {
src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb14s1de02";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/Cccobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes', coding.code = 'Ccc.B14S1.DE02' "code-Cccb14s1de02";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as item where (linkId = 'Ccc.B14S1.DE02') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb14s1de02";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb14s1de02";
} "bdab9370";
} "9802d7f8";
}