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/feature/update-canonical and changes regularly. See the Directory of published versions

## StructureMap: Ccc.b22.breastfeeding

Official URL: https://smart.who.int/ccc/StructureMap/Ccc.b22.breastfeeding | Version: 0.1.0
Active as of 2026-04-07 | Computable Name: Ccc.b22.breastfeeding

    map "https://smart.who.int/ccc/StructureMap/Ccc.b22.breastfeeding" = "Ccc.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://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.B22.DE41') 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 CccobservationCccb22de41(src, tgt) "35802f20";
          } "765c240d";
        } "9de4a229";
      } "75985b2b";
      src.item first as item where (linkId = 'Ccc.B22.DE28') 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 CccobservationCccb22de28(src, tgt) "dd9106b0";
          } "72695e81";
        } "5cc117e5";
      } "9bad69d4";
      src.item first as item where (linkId = 'Ccc.B22.DE29') 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 CccobservationCccb22de29(src, tgt) "0bd03bad";
          } "64565ab8";
        } "a568a312";
      } "76a8dde8";
      src.item first as item where (linkId = 'Ccc.B22.DE30') 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 CccobservationCccb22de30(src, tgt) "a8dbbfa4";
          } "470a9773";
        } "6aff1bf2";
      } "2229067c";
      src.item first as item where (linkId = 'Ccc.B22.DE31') 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 CccobservationCccb22de31(src, tgt) "3a858f1f";
          } "bab0e868";
        } "47ecf4e4";
      } "c5443b3c";
      src.item first as item where (linkId = 'Ccc.B22.DE32') 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 CccobservationCccb22de32(src, tgt) "5537f1d1";
          } "38fb811c";
        } "77934152";
      } "42b13a25";
      src.item first as item where (linkId = 'Ccc.B22.DE33') 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 CccobservationCccb22de33(src, tgt) "b9ca07b3";
          } "e7981b54";
        } "b81929fc";
      } "09721163";
      src.item first as item where (linkId = 'Ccc.B22.DE34') 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 CccobservationCccb22de34(src, tgt) "81a7b6a0";
          } "a60a44da";
        } "9f5867b0";
      } "22a4c1bd";
      src.item first as item where (linkId = 'Ccc.B22.DE35') 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 CccobservationCccb22de35(src, tgt) "99cdb2a9";
          } "7976f991";
        } "6b8eb7c7";
      } "2d0973e6";
      src.item first as item where (linkId = 'Ccc.B22.DE36') 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 CccobservationCccb22de36(src, tgt) "5d275331";
          } "cec8e27b";
        } "e67b8382";
      } "407c94f0";
      src.item first as item where (linkId = 'Ccc.B22.DE42') 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 CccobservationCccb22de42(src, tgt) "273b1a16";
          } "213a0dca";
        } "56a5bbd9";
      } "36bdb5b8";
      src.item first as item where (linkId = 'Ccc.B22.DE44') 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 CccobservationCccb22de44(src, tgt) "843d7b1e";
          } "70061b03";
        } "0e593cb2";
      } "4199346d";
    }

    group CccobservationCccb22de41(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-Cccb22de41";
      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.B22.DE41' "code-Cccb22de41";
      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.B22.DE41') and answer.exists() then {
        item.answer first as a then {
          a.value as val then {
            val where val.code = 'true' ->  tgt.status = 'final',  tgt.value = true "8a65aaa5";
          } "26c2c8c7";
        } "721205d5";
      } "24def288";
    }

    group CccobservationCccb22de28(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-Cccb22de28";
      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.B22.DE28' "code-Cccb22de28";
      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.B22.DE28') and answer.exists() then {
        item.answer first as a then {
          a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-Cccb22de28";
          a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-Cccb22de28";
        } "bdab9370";
      } "f2e6f4c7";
    }

    group CccobservationCccb22de29(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-Cccb22de29";
      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.B22.DE29' "code-Cccb22de29";
      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.B22.DE29') and answer.exists() then {
        item.answer first as a then {
          a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-Cccb22de29";
          a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-Cccb22de29";
        } "bdab9370";
      } "9c93669f";
    }

    group CccobservationCccb22de30(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-Cccb22de30";
      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.B22.DE30' "code-Cccb22de30";
      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.B22.DE30') and answer.exists() then {
        item.answer first as a then {
          a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-Cccb22de30";
          a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-Cccb22de30";
        } "bdab9370";
      } "46ca8d36";
    }

    group CccobservationCccb22de31(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-Cccb22de31";
      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.B22.DE31' "code-Cccb22de31";
      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.B22.DE31') and answer.exists() then {
        item.answer first as a then {
          a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-Cccb22de31";
          a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-Cccb22de31";
        } "bdab9370";
      } "27a8c087";
    }

    group CccobservationCccb22de32(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-Cccb22de32";
      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.B22.DE32' "code-Cccb22de32";
      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.B22.DE32') and answer.exists() then {
        item.answer first as a then {
          a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-Cccb22de32";
          a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-Cccb22de32";
        } "bdab9370";
      } "24ee0901";
    }

    group CccobservationCccb22de33(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-Cccb22de33";
      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.B22.DE33' "code-Cccb22de33";
      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.B22.DE33') and answer.exists() then {
        item.answer first as a then {
          a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-Cccb22de33";
          a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-Cccb22de33";
        } "bdab9370";
      } "17cd42bb";
    }

    group CccobservationCccb22de34(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-Cccb22de34";
      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.B22.DE34' "code-Cccb22de34";
      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.B22.DE34') and answer.exists() then {
        item.answer first as a then {
          a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-Cccb22de34";
          a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-Cccb22de34";
        } "bdab9370";
      } "aa1487ce";
    }

    group CccobservationCccb22de35(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-Cccb22de35";
      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.B22.DE35' "code-Cccb22de35";
      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.B22.DE35') and answer.exists() then {
        item.answer first as a then {
          a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-Cccb22de35";
          a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-Cccb22de35";
        } "bdab9370";
      } "4be5f694";
    }

    group CccobservationCccb22de36(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-CccobservationCccb22de36";
      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.B22.DE36' "code-CccobservationCccb22de36";
      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.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 = Ccc.B22.DE37,  c.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-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 = Ccc.B22.DE38,  c.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-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 = Ccc.B22.DE39,  c.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-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 = Ccc.B22.DE40,  c.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes',  tgt.status = 'final' "5eeaf122";
          } "714e8fb5";
        } "bd419d51";
      } "1b30376c";
    }

    group CccobservationCccb22de42(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-Cccb22de42";
      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.B22.DE42' "code-Cccb22de42";
      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.B22.DE42') and answer.exists() then {
        item.answer first as a then {
          a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-Cccb22de42";
          a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-Cccb22de42";
        } "bdab9370";
      } "da98ddbd";
    }

    group CccobservationCccb22de44(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-Cccb22de44";
      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.B22.DE44' "code-Cccb22de44";
      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.B22.DE44') and answer.exists() then {
        item.answer first as a then {
          a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-Cccb22de44";
          a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-Cccb22de44";
        } "bdab9370";
      } "53869acc";
    }