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

## : Ccc.b22.breastfeeding - XML Representation

Active as of 2026-04-07

Raw xml | Download

    <StructureMap xmlns="http://hl7.org/fhir">
      <id value="Ccc.b22.breastfeeding"/>
      <text>
        <status value="generated"/>
        <div xmlns="http://www.w3.org/1999/xhtml"><pre>map &quot;https://smart.who.int/ccc/StructureMap/Ccc.b22.breastfeeding&quot; = &quot;Ccc.b22.breastfeeding&quot;

    uses &quot;http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse&quot; alias 'questionnaireResponse' as source
    uses &quot;http://hl7.org/fhir/StructureDefinition/Bundle&quot; alias 'Bundle' as target
    uses &quot;https://smart.who.int/ccc/StructureDefinition/observation&quot; alias 'Observation' as target
    uses &quot;https://smart.who.int/ccc/StructureDefinition/Cccobservation&quot; alias 'Ccc Observation' as produced

    group bundletrans(source src : questionnaireResponse, target bundle : Bundle) {
      src -&gt; bundle.id = uuid() &quot;id&quot;;
      src -&gt; bundle.type = 'batch' &quot;type&quot;;
      src.item first as item where (linkId = 'Ccc.B22.DE41') and answer.exists() then {
        src -&gt; bundle.entry as entry then {
          src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;
          src -&gt; entry.resource = create('Observation') as tgt then {
            src -&gt; tgt then CccobservationCccb22de41(src, tgt) &quot;35802f20&quot;;
          } &quot;765c240d&quot;;
        } &quot;9de4a229&quot;;
      } &quot;75985b2b&quot;;
      src.item first as item where (linkId = 'Ccc.B22.DE28') and answer.exists() then {
        src -&gt; bundle.entry as entry then {
          src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;
          src -&gt; entry.resource = create('Observation') as tgt then {
            src -&gt; tgt then CccobservationCccb22de28(src, tgt) &quot;dd9106b0&quot;;
          } &quot;72695e81&quot;;
        } &quot;5cc117e5&quot;;
      } &quot;9bad69d4&quot;;
      src.item first as item where (linkId = 'Ccc.B22.DE29') and answer.exists() then {
        src -&gt; bundle.entry as entry then {
          src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;
          src -&gt; entry.resource = create('Observation') as tgt then {
            src -&gt; tgt then CccobservationCccb22de29(src, tgt) &quot;0bd03bad&quot;;
          } &quot;64565ab8&quot;;
        } &quot;a568a312&quot;;
      } &quot;76a8dde8&quot;;
      src.item first as item where (linkId = 'Ccc.B22.DE30') and answer.exists() then {
        src -&gt; bundle.entry as entry then {
          src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;
          src -&gt; entry.resource = create('Observation') as tgt then {
            src -&gt; tgt then CccobservationCccb22de30(src, tgt) &quot;a8dbbfa4&quot;;
          } &quot;470a9773&quot;;
        } &quot;6aff1bf2&quot;;
      } &quot;2229067c&quot;;
      src.item first as item where (linkId = 'Ccc.B22.DE31') and answer.exists() then {
        src -&gt; bundle.entry as entry then {
          src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;
          src -&gt; entry.resource = create('Observation') as tgt then {
            src -&gt; tgt then CccobservationCccb22de31(src, tgt) &quot;3a858f1f&quot;;
          } &quot;bab0e868&quot;;
        } &quot;47ecf4e4&quot;;
      } &quot;c5443b3c&quot;;
      src.item first as item where (linkId = 'Ccc.B22.DE32') and answer.exists() then {
        src -&gt; bundle.entry as entry then {
          src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;
          src -&gt; entry.resource = create('Observation') as tgt then {
            src -&gt; tgt then CccobservationCccb22de32(src, tgt) &quot;5537f1d1&quot;;
          } &quot;38fb811c&quot;;
        } &quot;77934152&quot;;
      } &quot;42b13a25&quot;;
      src.item first as item where (linkId = 'Ccc.B22.DE33') and answer.exists() then {
        src -&gt; bundle.entry as entry then {
          src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;
          src -&gt; entry.resource = create('Observation') as tgt then {
            src -&gt; tgt then CccobservationCccb22de33(src, tgt) &quot;b9ca07b3&quot;;
          } &quot;e7981b54&quot;;
        } &quot;b81929fc&quot;;
      } &quot;09721163&quot;;
      src.item first as item where (linkId = 'Ccc.B22.DE34') and answer.exists() then {
        src -&gt; bundle.entry as entry then {
          src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;
          src -&gt; entry.resource = create('Observation') as tgt then {
            src -&gt; tgt then CccobservationCccb22de34(src, tgt) &quot;81a7b6a0&quot;;
          } &quot;a60a44da&quot;;
        } &quot;9f5867b0&quot;;
      } &quot;22a4c1bd&quot;;
      src.item first as item where (linkId = 'Ccc.B22.DE35') and answer.exists() then {
        src -&gt; bundle.entry as entry then {
          src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;
          src -&gt; entry.resource = create('Observation') as tgt then {
            src -&gt; tgt then CccobservationCccb22de35(src, tgt) &quot;99cdb2a9&quot;;
          } &quot;7976f991&quot;;
        } &quot;6b8eb7c7&quot;;
      } &quot;2d0973e6&quot;;
      src.item first as item where (linkId = 'Ccc.B22.DE36') and answer.exists() then {
        src -&gt; bundle.entry as entry then {
          src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;
          src -&gt; entry.resource = create('Observation') as tgt then {
            src -&gt; tgt then CccobservationCccb22de36(src, tgt) &quot;5d275331&quot;;
          } &quot;cec8e27b&quot;;
        } &quot;e67b8382&quot;;
      } &quot;407c94f0&quot;;
      src.item first as item where (linkId = 'Ccc.B22.DE42') and answer.exists() then {
        src -&gt; bundle.entry as entry then {
          src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;
          src -&gt; entry.resource = create('Observation') as tgt then {
            src -&gt; tgt then CccobservationCccb22de42(src, tgt) &quot;273b1a16&quot;;
          } &quot;213a0dca&quot;;
        } &quot;56a5bbd9&quot;;
      } &quot;36bdb5b8&quot;;
      src.item first as item where (linkId = 'Ccc.B22.DE44') and answer.exists() then {
        src -&gt; bundle.entry as entry then {
          src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;
          src -&gt; entry.resource = create('Observation') as tgt then {
            src -&gt; tgt then CccobservationCccb22de44(src, tgt) &quot;843d7b1e&quot;;
          } &quot;70061b03&quot;;
        } &quot;0e593cb2&quot;;
      } &quot;4199346d&quot;;
    }

    group CccobservationCccb22de41(source src, target tgt) {
      src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-Cccb22de41&quot;;
      src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;
      src.subject as subject -&gt;  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' &quot;code-Cccb22de41&quot;;
      src.item as itemtimestamp where linkId = 'timestamp' then {
        itemtimestamp.answer first as atimestamp then {
          atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;
        } &quot;7f22f29f&quot;;
      } &quot;aae7a11d&quot;;
      src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;
      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' -&gt;  tgt.status = 'final',  tgt.value = true &quot;8a65aaa5&quot;;
          } &quot;26c2c8c7&quot;;
        } &quot;721205d5&quot;;
      } &quot;24def288&quot;;
    }

    group CccobservationCccb22de28(source src, target tgt) {
      src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-Cccb22de28&quot;;
      src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;
      src.subject as subject -&gt;  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' &quot;code-Cccb22de28&quot;;
      src.item as itemtimestamp where linkId = 'timestamp' then {
        itemtimestamp.answer first as atimestamp then {
          atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;
        } &quot;7f22f29f&quot;;
      } &quot;aae7a11d&quot;;
      src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;
      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 -&gt;  tgt.status = 'final',  tgt.value = true &quot;final-Cccb22de28&quot;;
          a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;notfound-Cccb22de28&quot;;
        } &quot;bdab9370&quot;;
      } &quot;f2e6f4c7&quot;;
    }

    group CccobservationCccb22de29(source src, target tgt) {
      src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-Cccb22de29&quot;;
      src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;
      src.subject as subject -&gt;  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' &quot;code-Cccb22de29&quot;;
      src.item as itemtimestamp where linkId = 'timestamp' then {
        itemtimestamp.answer first as atimestamp then {
          atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;
        } &quot;7f22f29f&quot;;
      } &quot;aae7a11d&quot;;
      src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;
      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 -&gt;  tgt.status = 'final',  tgt.value = true &quot;final-Cccb22de29&quot;;
          a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;notfound-Cccb22de29&quot;;
        } &quot;bdab9370&quot;;
      } &quot;9c93669f&quot;;
    }

    group CccobservationCccb22de30(source src, target tgt) {
      src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-Cccb22de30&quot;;
      src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;
      src.subject as subject -&gt;  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' &quot;code-Cccb22de30&quot;;
      src.item as itemtimestamp where linkId = 'timestamp' then {
        itemtimestamp.answer first as atimestamp then {
          atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;
        } &quot;7f22f29f&quot;;
      } &quot;aae7a11d&quot;;
      src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;
      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 -&gt;  tgt.status = 'final',  tgt.value = true &quot;final-Cccb22de30&quot;;
          a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;notfound-Cccb22de30&quot;;
        } &quot;bdab9370&quot;;
      } &quot;46ca8d36&quot;;
    }

    group CccobservationCccb22de31(source src, target tgt) {
      src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-Cccb22de31&quot;;
      src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;
      src.subject as subject -&gt;  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' &quot;code-Cccb22de31&quot;;
      src.item as itemtimestamp where linkId = 'timestamp' then {
        itemtimestamp.answer first as atimestamp then {
          atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;
        } &quot;7f22f29f&quot;;
      } &quot;aae7a11d&quot;;
      src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;
      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 -&gt;  tgt.status = 'final',  tgt.value = true &quot;final-Cccb22de31&quot;;
          a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;notfound-Cccb22de31&quot;;
        } &quot;bdab9370&quot;;
      } &quot;27a8c087&quot;;
    }

    group CccobservationCccb22de32(source src, target tgt) {
      src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-Cccb22de32&quot;;
      src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;
      src.subject as subject -&gt;  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' &quot;code-Cccb22de32&quot;;
      src.item as itemtimestamp where linkId = 'timestamp' then {
        itemtimestamp.answer first as atimestamp then {
          atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;
        } &quot;7f22f29f&quot;;
      } &quot;aae7a11d&quot;;
      src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;
      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 -&gt;  tgt.status = 'final',  tgt.value = true &quot;final-Cccb22de32&quot;;
          a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;notfound-Cccb22de32&quot;;
        } &quot;bdab9370&quot;;
      } &quot;24ee0901&quot;;
    }

    group CccobservationCccb22de33(source src, target tgt) {
      src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-Cccb22de33&quot;;
      src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;
      src.subject as subject -&gt;  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' &quot;code-Cccb22de33&quot;;
      src.item as itemtimestamp where linkId = 'timestamp' then {
        itemtimestamp.answer first as atimestamp then {
          atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;
        } &quot;7f22f29f&quot;;
      } &quot;aae7a11d&quot;;
      src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;
      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 -&gt;  tgt.status = 'final',  tgt.value = true &quot;final-Cccb22de33&quot;;
          a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;notfound-Cccb22de33&quot;;
        } &quot;bdab9370&quot;;
      } &quot;17cd42bb&quot;;
    }

    group CccobservationCccb22de34(source src, target tgt) {
      src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-Cccb22de34&quot;;
      src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;
      src.subject as subject -&gt;  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' &quot;code-Cccb22de34&quot;;
      src.item as itemtimestamp where linkId = 'timestamp' then {
        itemtimestamp.answer first as atimestamp then {
          atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;
        } &quot;7f22f29f&quot;;
      } &quot;aae7a11d&quot;;
      src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;
      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 -&gt;  tgt.status = 'final',  tgt.value = true &quot;final-Cccb22de34&quot;;
          a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;notfound-Cccb22de34&quot;;
        } &quot;bdab9370&quot;;
      } &quot;aa1487ce&quot;;
    }

    group CccobservationCccb22de35(source src, target tgt) {
      src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-Cccb22de35&quot;;
      src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;
      src.subject as subject -&gt;  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' &quot;code-Cccb22de35&quot;;
      src.item as itemtimestamp where linkId = 'timestamp' then {
        itemtimestamp.answer first as atimestamp then {
          atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;
        } &quot;7f22f29f&quot;;
      } &quot;aae7a11d&quot;;
      src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;
      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 -&gt;  tgt.status = 'final',  tgt.value = true &quot;final-Cccb22de35&quot;;
          a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;notfound-Cccb22de35&quot;;
        } &quot;bdab9370&quot;;
      } &quot;4be5f694&quot;;
    }

    group CccobservationCccb22de36(source src, target tgt) {
      src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-CccobservationCccb22de36&quot;;
      src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;
      src.subject as subject -&gt;  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' &quot;code-CccobservationCccb22de36&quot;;
      src.item as itemtimestamp where linkId = 'timestamp' then {
        itemtimestamp.answer first as atimestamp then {
          atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;
        } &quot;7f22f29f&quot;;
      } &quot;aae7a11d&quot;;
      src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;
      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 -&gt;  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' &quot;71afb672&quot;;
          } &quot;a53091ee&quot;;
          a where value = 'Good Attachment', a.value as val then {
            val -&gt;  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' &quot;3053aa3e&quot;;
          } &quot;239a32e6&quot;;
          a where value = 'Not Sucking Effectively', a.value as val then {
            val -&gt;  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' &quot;0e60e5cc&quot;;
          } &quot;ae925fc5&quot;;
          a where value = 'Sucking Effectively', a.value as val then {
            val -&gt;  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' &quot;5eeaf122&quot;;
          } &quot;714e8fb5&quot;;
        } &quot;bd419d51&quot;;
      } &quot;1b30376c&quot;;
    }

    group CccobservationCccb22de42(source src, target tgt) {
      src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-Cccb22de42&quot;;
      src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;
      src.subject as subject -&gt;  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' &quot;code-Cccb22de42&quot;;
      src.item as itemtimestamp where linkId = 'timestamp' then {
        itemtimestamp.answer first as atimestamp then {
          atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;
        } &quot;7f22f29f&quot;;
      } &quot;aae7a11d&quot;;
      src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;
      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 -&gt;  tgt.status = 'final',  tgt.value = true &quot;final-Cccb22de42&quot;;
          a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;notfound-Cccb22de42&quot;;
        } &quot;bdab9370&quot;;
      } &quot;da98ddbd&quot;;
    }

    group CccobservationCccb22de44(source src, target tgt) {
      src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-Cccb22de44&quot;;
      src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;
      src.subject as subject -&gt;  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' &quot;code-Cccb22de44&quot;;
      src.item as itemtimestamp where linkId = 'timestamp' then {
        itemtimestamp.answer first as atimestamp then {
          atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;
        } &quot;7f22f29f&quot;;
      } &quot;aae7a11d&quot;;
      src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;
      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 -&gt;  tgt.status = 'final',  tgt.value = true &quot;final-Cccb22de44&quot;;
          a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;notfound-Cccb22de44&quot;;
        } &quot;bdab9370&quot;;
      } &quot;53869acc&quot;;
    }

    </pre></div>
      </text>
      <url value="https://smart.who.int/ccc/StructureMap/Ccc.b22.breastfeeding"/>
      <version value="0.1.0"/>
      <name value="Ccc.b22.breastfeeding"/>
      <status value="active"/>
      <date value="2026-04-07T13:42:05+00:00"/>
      <publisher value="World Health Organization (WHO)"/>
      <contact>
        <name value="World Health Organization (WHO)"/>
        <telecom>
          <system value="url"/>
          <value value="https://www.who.int"/>
        </telecom>
      </contact>
      <contact>
        <telecom>
          <system value="url"/>
          <value value="https://www.who.int"/>
        </telecom>
      </contact>
      <jurisdiction>
        <coding>
          <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/>
          <code value="001"/>
        </coding>
      </jurisdiction>
      <structure>
        <url
             value="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse"/>
        <mode value="source"/>
        <alias value="'questionnaireResponse'"/>
      </structure>
      <structure>
        <url value="http://hl7.org/fhir/StructureDefinition/Bundle"/>
        <mode value="target"/>
        <alias value="'Bundle'"/>
      </structure>
      <structure>
        <url value="https://smart.who.int/ccc/StructureDefinition/observation"/>
        <mode value="target"/>
        <alias value="'Observation'"/>
      </structure>
      <structure>
        <url
             value="https://smart.who.int/ccc/StructureDefinition/Cccobservation"/>
        <mode value="produced"/>
        <alias value="'Ccc Observation'"/>
      </structure>
      <group>
        <name value="bundletrans"/>
        <typeMode value="none"/>
        <input>
          <name value="src"/>
          <type value="questionnaireResponse"/>
          <mode value="source"/>
        </input>
        <input>
          <name value="bundle"/>
          <type value="Bundle"/>
          <mode value="target"/>
        </input>
        <rule>
          <name value="id"/>
          <source>
            <context value="src"/>
          </source>
          <target>
            <context value="bundle"/>
            <contextType value="variable"/>
            <element value="id"/>
            <transform value="uuid"/>
          </target>
        </rule>
        <rule>
          <name value="type"/>
          <source>
            <context value="src"/>
          </source>
          <target>
            <context value="bundle"/>
            <contextType value="variable"/>
            <element value="type"/>
            <transform value="copy"/>
            <parameter>
              <valueString value="batch"/>
            </parameter>
          </target>
        </rule>
        <rule>
          <name value="75985b2b"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B22.DE41') and answer.exists()"/>
          </source>
          <rule>
            <name value="9de4a229"/>
            <source>
              <context value="src"/>
            </source>
            <target>
              <context value="bundle"/>
              <contextType value="variable"/>
              <element value="entry"/>
              <variable value="entry"/>
            </target>
            <rule>
              <name value="b50ac4c5"/>
              <source>
                <context value="src"/>
              </source>
              <target>
                <context value="entry"/>
                <contextType value="variable"/>
                <element value="request"/>
                <variable value="request"/>
              </target>
              <target>
                <context value="request"/>
                <contextType value="variable"/>
                <element value="method"/>
                <transform value="copy"/>
                <parameter>
                  <valueString value="POST"/>
                </parameter>
              </target>
              <target>
                <contextType value="variable"/>
                <variable value="uuid"/>
                <transform value="uuid"/>
              </target>
              <target>
                <context value="request"/>
                <contextType value="variable"/>
                <element value="url"/>
                <transform value="append"/>
                <parameter>
                  <valueString value="/Observation/"/>
                </parameter>
                <parameter>
                  <valueId value="uuid"/>
                </parameter>
              </target>
            </rule>
            <rule>
              <name value="765c240d"/>
              <source>
                <context value="src"/>
              </source>
              <target>
                <context value="entry"/>
                <contextType value="variable"/>
                <element value="resource"/>
                <variable value="tgt"/>
                <transform value="create"/>
                <parameter>
                  <valueString value="Observation"/>
                </parameter>
              </target>
              <rule>
                <name value="35802f20"/>
                <source>
                  <context value="src"/>
                </source>
                <target>
                  <contextType value="variable"/>
                  <transform value="copy"/>
                  <parameter>
                    <valueId value="tgt"/>
                  </parameter>
                </target>
                <dependent>
                  <name value="CccobservationCccb22de41"/>
                  <variable value="src"/>
                  <variable value="tgt"/>
                </dependent>
              </rule>
            </rule>
          </rule>
        </rule>
        <rule>
          <name value="9bad69d4"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B22.DE28') and answer.exists()"/>
          </source>
          <rule>
            <name value="5cc117e5"/>
            <source>
              <context value="src"/>
            </source>
            <target>
              <context value="bundle"/>
              <contextType value="variable"/>
              <element value="entry"/>
              <variable value="entry"/>
            </target>
            <rule>
              <name value="b50ac4c5"/>
              <source>
                <context value="src"/>
              </source>
              <target>
                <context value="entry"/>
                <contextType value="variable"/>
                <element value="request"/>
                <variable value="request"/>
              </target>
              <target>
                <context value="request"/>
                <contextType value="variable"/>
                <element value="method"/>
                <transform value="copy"/>
                <parameter>
                  <valueString value="POST"/>
                </parameter>
              </target>
              <target>
                <contextType value="variable"/>
                <variable value="uuid"/>
                <transform value="uuid"/>
              </target>
              <target>
                <context value="request"/>
                <contextType value="variable"/>
                <element value="url"/>
                <transform value="append"/>
                <parameter>
                  <valueString value="/Observation/"/>
                </parameter>
                <parameter>
                  <valueId value="uuid"/>
                </parameter>
              </target>
            </rule>
            <rule>
              <name value="72695e81"/>
              <source>
                <context value="src"/>
              </source>
              <target>
                <context value="entry"/>
                <contextType value="variable"/>
                <element value="resource"/>
                <variable value="tgt"/>
                <transform value="create"/>
                <parameter>
                  <valueString value="Observation"/>
                </parameter>
              </target>
              <rule>
                <name value="dd9106b0"/>
                <source>
                  <context value="src"/>
                </source>
                <target>
                  <contextType value="variable"/>
                  <transform value="copy"/>
                  <parameter>
                    <valueId value="tgt"/>
                  </parameter>
                </target>
                <dependent>
                  <name value="CccobservationCccb22de28"/>
                  <variable value="src"/>
                  <variable value="tgt"/>
                </dependent>
              </rule>
            </rule>
          </rule>
        </rule>
        <rule>
          <name value="76a8dde8"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B22.DE29') and answer.exists()"/>
          </source>
          <rule>
            <name value="a568a312"/>
            <source>
              <context value="src"/>
            </source>
            <target>
              <context value="bundle"/>
              <contextType value="variable"/>
              <element value="entry"/>
              <variable value="entry"/>
            </target>
            <rule>
              <name value="b50ac4c5"/>
              <source>
                <context value="src"/>
              </source>
              <target>
                <context value="entry"/>
                <contextType value="variable"/>
                <element value="request"/>
                <variable value="request"/>
              </target>
              <target>
                <context value="request"/>
                <contextType value="variable"/>
                <element value="method"/>
                <transform value="copy"/>
                <parameter>
                  <valueString value="POST"/>
                </parameter>
              </target>
              <target>
                <contextType value="variable"/>
                <variable value="uuid"/>
                <transform value="uuid"/>
              </target>
              <target>
                <context value="request"/>
                <contextType value="variable"/>
                <element value="url"/>
                <transform value="append"/>
                <parameter>
                  <valueString value="/Observation/"/>
                </parameter>
                <parameter>
                  <valueId value="uuid"/>
                </parameter>
              </target>
            </rule>
            <rule>
              <name value="64565ab8"/>
              <source>
                <context value="src"/>
              </source>
              <target>
                <context value="entry"/>
                <contextType value="variable"/>
                <element value="resource"/>
                <variable value="tgt"/>
                <transform value="create"/>
                <parameter>
                  <valueString value="Observation"/>
                </parameter>
              </target>
              <rule>
                <name value="0bd03bad"/>
                <source>
                  <context value="src"/>
                </source>
                <target>
                  <contextType value="variable"/>
                  <transform value="copy"/>
                  <parameter>
                    <valueId value="tgt"/>
                  </parameter>
                </target>
                <dependent>
                  <name value="CccobservationCccb22de29"/>
                  <variable value="src"/>
                  <variable value="tgt"/>
                </dependent>
              </rule>
            </rule>
          </rule>
        </rule>
        <rule>
          <name value="2229067c"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B22.DE30') and answer.exists()"/>
          </source>
          <rule>
            <name value="6aff1bf2"/>
            <source>
              <context value="src"/>
            </source>
            <target>
              <context value="bundle"/>
              <contextType value="variable"/>
              <element value="entry"/>
              <variable value="entry"/>
            </target>
            <rule>
              <name value="b50ac4c5"/>
              <source>
                <context value="src"/>
              </source>
              <target>
                <context value="entry"/>
                <contextType value="variable"/>
                <element value="request"/>
                <variable value="request"/>
              </target>
              <target>
                <context value="request"/>
                <contextType value="variable"/>
                <element value="method"/>
                <transform value="copy"/>
                <parameter>
                  <valueString value="POST"/>
                </parameter>
              </target>
              <target>
                <contextType value="variable"/>
                <variable value="uuid"/>
                <transform value="uuid"/>
              </target>
              <target>
                <context value="request"/>
                <contextType value="variable"/>
                <element value="url"/>
                <transform value="append"/>
                <parameter>
                  <valueString value="/Observation/"/>
                </parameter>
                <parameter>
                  <valueId value="uuid"/>
                </parameter>
              </target>
            </rule>
            <rule>
              <name value="470a9773"/>
              <source>
                <context value="src"/>
              </source>
              <target>
                <context value="entry"/>
                <contextType value="variable"/>
                <element value="resource"/>
                <variable value="tgt"/>
                <transform value="create"/>
                <parameter>
                  <valueString value="Observation"/>
                </parameter>
              </target>
              <rule>
                <name value="a8dbbfa4"/>
                <source>
                  <context value="src"/>
                </source>
                <target>
                  <contextType value="variable"/>
                  <transform value="copy"/>
                  <parameter>
                    <valueId value="tgt"/>
                  </parameter>
                </target>
                <dependent>
                  <name value="CccobservationCccb22de30"/>
                  <variable value="src"/>
                  <variable value="tgt"/>
                </dependent>
              </rule>
            </rule>
          </rule>
        </rule>
        <rule>
          <name value="c5443b3c"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B22.DE31') and answer.exists()"/>
          </source>
          <rule>
            <name value="47ecf4e4"/>
            <source>
              <context value="src"/>
            </source>
            <target>
              <context value="bundle"/>
              <contextType value="variable"/>
              <element value="entry"/>
              <variable value="entry"/>
            </target>
            <rule>
              <name value="b50ac4c5"/>
              <source>
                <context value="src"/>
              </source>
              <target>
                <context value="entry"/>
                <contextType value="variable"/>
                <element value="request"/>
                <variable value="request"/>
              </target>
              <target>
                <context value="request"/>
                <contextType value="variable"/>
                <element value="method"/>
                <transform value="copy"/>
                <parameter>
                  <valueString value="POST"/>
                </parameter>
              </target>
              <target>
                <contextType value="variable"/>
                <variable value="uuid"/>
                <transform value="uuid"/>
              </target>
              <target>
                <context value="request"/>
                <contextType value="variable"/>
                <element value="url"/>
                <transform value="append"/>
                <parameter>
                  <valueString value="/Observation/"/>
                </parameter>
                <parameter>
                  <valueId value="uuid"/>
                </parameter>
              </target>
            </rule>
            <rule>
              <name value="bab0e868"/>
              <source>
                <context value="src"/>
              </source>
              <target>
                <context value="entry"/>
                <contextType value="variable"/>
                <element value="resource"/>
                <variable value="tgt"/>
                <transform value="create"/>
                <parameter>
                  <valueString value="Observation"/>
                </parameter>
              </target>
              <rule>
                <name value="3a858f1f"/>
                <source>
                  <context value="src"/>
                </source>
                <target>
                  <contextType value="variable"/>
                  <transform value="copy"/>
                  <parameter>
                    <valueId value="tgt"/>
                  </parameter>
                </target>
                <dependent>
                  <name value="CccobservationCccb22de31"/>
                  <variable value="src"/>
                  <variable value="tgt"/>
                </dependent>
              </rule>
            </rule>
          </rule>
        </rule>
        <rule>
          <name value="42b13a25"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B22.DE32') and answer.exists()"/>
          </source>
          <rule>
            <name value="77934152"/>
            <source>
              <context value="src"/>
            </source>
            <target>
              <context value="bundle"/>
              <contextType value="variable"/>
              <element value="entry"/>
              <variable value="entry"/>
            </target>
            <rule>
              <name value="b50ac4c5"/>
              <source>
                <context value="src"/>
              </source>
              <target>
                <context value="entry"/>
                <contextType value="variable"/>
                <element value="request"/>
                <variable value="request"/>
              </target>
              <target>
                <context value="request"/>
                <contextType value="variable"/>
                <element value="method"/>
                <transform value="copy"/>
                <parameter>
                  <valueString value="POST"/>
                </parameter>
              </target>
              <target>
                <contextType value="variable"/>
                <variable value="uuid"/>
                <transform value="uuid"/>
              </target>
              <target>
                <context value="request"/>
                <contextType value="variable"/>
                <element value="url"/>
                <transform value="append"/>
                <parameter>
                  <valueString value="/Observation/"/>
                </parameter>
                <parameter>
                  <valueId value="uuid"/>
                </parameter>
              </target>
            </rule>
            <rule>
              <name value="38fb811c"/>
              <source>
                <context value="src"/>
              </source>
              <target>
                <context value="entry"/>
                <contextType value="variable"/>
                <element value="resource"/>
                <variable value="tgt"/>
                <transform value="create"/>
                <parameter>
                  <valueString value="Observation"/>
                </parameter>
              </target>
              <rule>
                <name value="5537f1d1"/>
                <source>
                  <context value="src"/>
                </source>
                <target>
                  <contextType value="variable"/>
                  <transform value="copy"/>
                  <parameter>
                    <valueId value="tgt"/>
                  </parameter>
                </target>
                <dependent>
                  <name value="CccobservationCccb22de32"/>
                  <variable value="src"/>
                  <variable value="tgt"/>
                </dependent>
              </rule>
            </rule>
          </rule>
        </rule>
        <rule>
          <name value="09721163"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B22.DE33') and answer.exists()"/>
          </source>
          <rule>
            <name value="b81929fc"/>
            <source>
              <context value="src"/>
            </source>
            <target>
              <context value="bundle"/>
              <contextType value="variable"/>
              <element value="entry"/>
              <variable value="entry"/>
            </target>
            <rule>
              <name value="b50ac4c5"/>
              <source>
                <context value="src"/>
              </source>
              <target>
                <context value="entry"/>
                <contextType value="variable"/>
                <element value="request"/>
                <variable value="request"/>
              </target>
              <target>
                <context value="request"/>
                <contextType value="variable"/>
                <element value="method"/>
                <transform value="copy"/>
                <parameter>
                  <valueString value="POST"/>
                </parameter>
              </target>
              <target>
                <contextType value="variable"/>
                <variable value="uuid"/>
                <transform value="uuid"/>
              </target>
              <target>
                <context value="request"/>
                <contextType value="variable"/>
                <element value="url"/>
                <transform value="append"/>
                <parameter>
                  <valueString value="/Observation/"/>
                </parameter>
                <parameter>
                  <valueId value="uuid"/>
                </parameter>
              </target>
            </rule>
            <rule>
              <name value="e7981b54"/>
              <source>
                <context value="src"/>
              </source>
              <target>
                <context value="entry"/>
                <contextType value="variable"/>
                <element value="resource"/>
                <variable value="tgt"/>
                <transform value="create"/>
                <parameter>
                  <valueString value="Observation"/>
                </parameter>
              </target>
              <rule>
                <name value="b9ca07b3"/>
                <source>
                  <context value="src"/>
                </source>
                <target>
                  <contextType value="variable"/>
                  <transform value="copy"/>
                  <parameter>
                    <valueId value="tgt"/>
                  </parameter>
                </target>
                <dependent>
                  <name value="CccobservationCccb22de33"/>
                  <variable value="src"/>
                  <variable value="tgt"/>
                </dependent>
              </rule>
            </rule>
          </rule>
        </rule>
        <rule>
          <name value="22a4c1bd"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B22.DE34') and answer.exists()"/>
          </source>
          <rule>
            <name value="9f5867b0"/>
            <source>
              <context value="src"/>
            </source>
            <target>
              <context value="bundle"/>
              <contextType value="variable"/>
              <element value="entry"/>
              <variable value="entry"/>
            </target>
            <rule>
              <name value="b50ac4c5"/>
              <source>
                <context value="src"/>
              </source>
              <target>
                <context value="entry"/>
                <contextType value="variable"/>
                <element value="request"/>
                <variable value="request"/>
              </target>
              <target>
                <context value="request"/>
                <contextType value="variable"/>
                <element value="method"/>
                <transform value="copy"/>
                <parameter>
                  <valueString value="POST"/>
                </parameter>
              </target>
              <target>
                <contextType value="variable"/>
                <variable value="uuid"/>
                <transform value="uuid"/>
              </target>
              <target>
                <context value="request"/>
                <contextType value="variable"/>
                <element value="url"/>
                <transform value="append"/>
                <parameter>
                  <valueString value="/Observation/"/>
                </parameter>
                <parameter>
                  <valueId value="uuid"/>
                </parameter>
              </target>
            </rule>
            <rule>
              <name value="a60a44da"/>
              <source>
                <context value="src"/>
              </source>
              <target>
                <context value="entry"/>
                <contextType value="variable"/>
                <element value="resource"/>
                <variable value="tgt"/>
                <transform value="create"/>
                <parameter>
                  <valueString value="Observation"/>
                </parameter>
              </target>
              <rule>
                <name value="81a7b6a0"/>
                <source>
                  <context value="src"/>
                </source>
                <target>
                  <contextType value="variable"/>
                  <transform value="copy"/>
                  <parameter>
                    <valueId value="tgt"/>
                  </parameter>
                </target>
                <dependent>
                  <name value="CccobservationCccb22de34"/>
                  <variable value="src"/>
                  <variable value="tgt"/>
                </dependent>
              </rule>
            </rule>
          </rule>
        </rule>
        <rule>
          <name value="2d0973e6"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B22.DE35') and answer.exists()"/>
          </source>
          <rule>
            <name value="6b8eb7c7"/>
            <source>
              <context value="src"/>
            </source>
            <target>
              <context value="bundle"/>
              <contextType value="variable"/>
              <element value="entry"/>
              <variable value="entry"/>
            </target>
            <rule>
              <name value="b50ac4c5"/>
              <source>
                <context value="src"/>
              </source>
              <target>
                <context value="entry"/>
                <contextType value="variable"/>
                <element value="request"/>
                <variable value="request"/>
              </target>
              <target>
                <context value="request"/>
                <contextType value="variable"/>
                <element value="method"/>
                <transform value="copy"/>
                <parameter>
                  <valueString value="POST"/>
                </parameter>
              </target>
              <target>
                <contextType value="variable"/>
                <variable value="uuid"/>
                <transform value="uuid"/>
              </target>
              <target>
                <context value="request"/>
                <contextType value="variable"/>
                <element value="url"/>
                <transform value="append"/>
                <parameter>
                  <valueString value="/Observation/"/>
                </parameter>
                <parameter>
                  <valueId value="uuid"/>
                </parameter>
              </target>
            </rule>
            <rule>
              <name value="7976f991"/>
              <source>
                <context value="src"/>
              </source>
              <target>
                <context value="entry"/>
                <contextType value="variable"/>
                <element value="resource"/>
                <variable value="tgt"/>
                <transform value="create"/>
                <parameter>
                  <valueString value="Observation"/>
                </parameter>
              </target>
              <rule>
                <name value="99cdb2a9"/>
                <source>
                  <context value="src"/>
                </source>
                <target>
                  <contextType value="variable"/>
                  <transform value="copy"/>
                  <parameter>
                    <valueId value="tgt"/>
                  </parameter>
                </target>
                <dependent>
                  <name value="CccobservationCccb22de35"/>
                  <variable value="src"/>
                  <variable value="tgt"/>
                </dependent>
              </rule>
            </rule>
          </rule>
        </rule>
        <rule>
          <name value="407c94f0"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B22.DE36') and answer.exists()"/>
          </source>
          <rule>
            <name value="e67b8382"/>
            <source>
              <context value="src"/>
            </source>
            <target>
              <context value="bundle"/>
              <contextType value="variable"/>
              <element value="entry"/>
              <variable value="entry"/>
            </target>
            <rule>
              <name value="b50ac4c5"/>
              <source>
                <context value="src"/>
              </source>
              <target>
                <context value="entry"/>
                <contextType value="variable"/>
                <element value="request"/>
                <variable value="request"/>
              </target>
              <target>
                <context value="request"/>
                <contextType value="variable"/>
                <element value="method"/>
                <transform value="copy"/>
                <parameter>
                  <valueString value="POST"/>
                </parameter>
              </target>
              <target>
                <contextType value="variable"/>
                <variable value="uuid"/>
                <transform value="uuid"/>
              </target>
              <target>
                <context value="request"/>
                <contextType value="variable"/>
                <element value="url"/>
                <transform value="append"/>
                <parameter>
                  <valueString value="/Observation/"/>
                </parameter>
                <parameter>
                  <valueId value="uuid"/>
                </parameter>
              </target>
            </rule>
            <rule>
              <name value="cec8e27b"/>
              <source>
                <context value="src"/>
              </source>
              <target>
                <context value="entry"/>
                <contextType value="variable"/>
                <element value="resource"/>
                <variable value="tgt"/>
                <transform value="create"/>
                <parameter>
                  <valueString value="Observation"/>
                </parameter>
              </target>
              <rule>
                <name value="5d275331"/>
                <source>
                  <context value="src"/>
                </source>
                <target>
                  <contextType value="variable"/>
                  <transform value="copy"/>
                  <parameter>
                    <valueId value="tgt"/>
                  </parameter>
                </target>
                <dependent>
                  <name value="CccobservationCccb22de36"/>
                  <variable value="src"/>
                  <variable value="tgt"/>
                </dependent>
              </rule>
            </rule>
          </rule>
        </rule>
        <rule>
          <name value="36bdb5b8"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B22.DE42') and answer.exists()"/>
          </source>
          <rule>
            <name value="56a5bbd9"/>
            <source>
              <context value="src"/>
            </source>
            <target>
              <context value="bundle"/>
              <contextType value="variable"/>
              <element value="entry"/>
              <variable value="entry"/>
            </target>
            <rule>
              <name value="b50ac4c5"/>
              <source>
                <context value="src"/>
              </source>
              <target>
                <context value="entry"/>
                <contextType value="variable"/>
                <element value="request"/>
                <variable value="request"/>
              </target>
              <target>
                <context value="request"/>
                <contextType value="variable"/>
                <element value="method"/>
                <transform value="copy"/>
                <parameter>
                  <valueString value="POST"/>
                </parameter>
              </target>
              <target>
                <contextType value="variable"/>
                <variable value="uuid"/>
                <transform value="uuid"/>
              </target>
              <target>
                <context value="request"/>
                <contextType value="variable"/>
                <element value="url"/>
                <transform value="append"/>
                <parameter>
                  <valueString value="/Observation/"/>
                </parameter>
                <parameter>
                  <valueId value="uuid"/>
                </parameter>
              </target>
            </rule>
            <rule>
              <name value="213a0dca"/>
              <source>
                <context value="src"/>
              </source>
              <target>
                <context value="entry"/>
                <contextType value="variable"/>
                <element value="resource"/>
                <variable value="tgt"/>
                <transform value="create"/>
                <parameter>
                  <valueString value="Observation"/>
                </parameter>
              </target>
              <rule>
                <name value="273b1a16"/>
                <source>
                  <context value="src"/>
                </source>
                <target>
                  <contextType value="variable"/>
                  <transform value="copy"/>
                  <parameter>
                    <valueId value="tgt"/>
                  </parameter>
                </target>
                <dependent>
                  <name value="CccobservationCccb22de42"/>
                  <variable value="src"/>
                  <variable value="tgt"/>
                </dependent>
              </rule>
            </rule>
          </rule>
        </rule>
        <rule>
          <name value="4199346d"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B22.DE44') and answer.exists()"/>
          </source>
          <rule>
            <name value="0e593cb2"/>
            <source>
              <context value="src"/>
            </source>
            <target>
              <context value="bundle"/>
              <contextType value="variable"/>
              <element value="entry"/>
              <variable value="entry"/>
            </target>
            <rule>
              <name value="b50ac4c5"/>
              <source>
                <context value="src"/>
              </source>
              <target>
                <context value="entry"/>
                <contextType value="variable"/>
                <element value="request"/>
                <variable value="request"/>
              </target>
              <target>
                <context value="request"/>
                <contextType value="variable"/>
                <element value="method"/>
                <transform value="copy"/>
                <parameter>
                  <valueString value="POST"/>
                </parameter>
              </target>
              <target>
                <contextType value="variable"/>
                <variable value="uuid"/>
                <transform value="uuid"/>
              </target>
              <target>
                <context value="request"/>
                <contextType value="variable"/>
                <element value="url"/>
                <transform value="append"/>
                <parameter>
                  <valueString value="/Observation/"/>
                </parameter>
                <parameter>
                  <valueId value="uuid"/>
                </parameter>
              </target>
            </rule>
            <rule>
              <name value="70061b03"/>
              <source>
                <context value="src"/>
              </source>
              <target>
                <context value="entry"/>
                <contextType value="variable"/>
                <element value="resource"/>
                <variable value="tgt"/>
                <transform value="create"/>
                <parameter>
                  <valueString value="Observation"/>
                </parameter>
              </target>
              <rule>
                <name value="843d7b1e"/>
                <source>
                  <context value="src"/>
                </source>
                <target>
                  <contextType value="variable"/>
                  <transform value="copy"/>
                  <parameter>
                    <valueId value="tgt"/>
                  </parameter>
                </target>
                <dependent>
                  <name value="CccobservationCccb22de44"/>
                  <variable value="src"/>
                  <variable value="tgt"/>
                </dependent>
              </rule>
            </rule>
          </rule>
        </rule>
      </group>
      <group>
        <name value="CccobservationCccb22de41"/>
        <typeMode value="none"/>
        <input>
          <name value="src"/>
          <mode value="source"/>
        </input>
        <input>
          <name value="tgt"/>
          <mode value="target"/>
        </input>
        <rule>
          <name value="id-Cccb22de41"/>
          <source>
            <context value="src"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="identifier"/>
            <variable value="CodeID"/>
            <transform value="create"/>
            <parameter>
              <valueString value="Identifier"/>
            </parameter>
          </target>
          <target>
            <context value="CodeID"/>
            <contextType value="variable"/>
            <element value="system"/>
            <transform value="copy"/>
            <parameter>
              <valueString
                           value="http://hl7.org/fhir/namingsystem-identifier-type"/>
            </parameter>
          </target>
          <target>
            <context value="CodeID"/>
            <contextType value="variable"/>
            <element value="use"/>
            <transform value="copy"/>
            <parameter>
              <valueString value="official"/>
            </parameter>
          </target>
          <target>
            <context value="CodeID"/>
            <contextType value="variable"/>
            <element value="value"/>
            <transform value="copy"/>
            <parameter>
              <valueString value="uuid"/>
            </parameter>
          </target>
          <target>
            <context value="CodeID"/>
            <contextType value="variable"/>
            <element value="id"/>
            <transform value="uuid"/>
          </target>
        </rule>
        <rule>
          <name value="35bc6b82"/>
          <source>
            <context value="src"/>
            <element value="encounter"/>
            <variable value="encounter"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="encounter"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="encounter"/>
            </parameter>
          </target>
        </rule>
        <rule>
          <name value="code-Cccb22de41"/>
          <source>
            <context value="src"/>
            <element value="subject"/>
            <variable value="subject"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="subject"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="subject"/>
            </parameter>
          </target>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="meta"/>
            <variable value="newMeta"/>
            <transform value="create"/>
            <parameter>
              <valueString value="Meta"/>
            </parameter>
          </target>
          <target>
            <context value="newMeta"/>
            <contextType value="variable"/>
            <element value="profile"/>
            <transform value="copy"/>
            <parameter>
              <valueString
                           value="https://smart.who.int/ccc/StructureDefinition/Cccobservation"/>
            </parameter>
          </target>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="code"/>
            <variable value="concept"/>
            <transform value="create"/>
            <parameter>
              <valueString value="CodeableConcept"/>
            </parameter>
          </target>
          <target>
            <context value="concept"/>
            <contextType value="variable"/>
            <element value="coding"/>
            <variable value="coding"/>
            <transform value="create"/>
            <parameter>
              <valueString value="Coding"/>
            </parameter>
          </target>
          <target>
            <context value="coding"/>
            <contextType value="variable"/>
            <element value="system"/>
            <transform value="copy"/>
            <parameter>
              <valueString
                           value="https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes"/>
            </parameter>
          </target>
          <target>
            <context value="coding"/>
            <contextType value="variable"/>
            <element value="code"/>
            <transform value="copy"/>
            <parameter>
              <valueString value="Ccc.B22.DE41"/>
            </parameter>
          </target>
        </rule>
        <rule>
          <name value="aae7a11d"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <variable value="itemtimestamp"/>
            <condition value="linkId = 'timestamp'"/>
          </source>
          <rule>
            <name value="7f22f29f"/>
            <source>
              <context value="itemtimestamp"/>
              <element value="answer"/>
              <listMode value="first"/>
              <variable value="atimestamp"/>
            </source>
            <rule>
              <name value="5af77f2c"/>
              <source>
                <context value="atimestamp"/>
                <element value="value"/>
                <variable value="val"/>
              </source>
              <target>
                <context value="tgt"/>
                <contextType value="variable"/>
                <element value="issued"/>
                <transform value="copy"/>
                <parameter>
                  <valueId value="val"/>
                </parameter>
              </target>
            </rule>
          </rule>
        </rule>
        <rule>
          <name value="patient"/>
          <source>
            <context value="src"/>
            <element value="subject"/>
            <variable value="subject"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="subject"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="subject"/>
            </parameter>
          </target>
        </rule>
        <rule>
          <name value="24def288"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B22.DE41') and answer.exists()"/>
          </source>
          <rule>
            <name value="721205d5"/>
            <source>
              <context value="item"/>
              <element value="answer"/>
              <listMode value="first"/>
              <variable value="a"/>
            </source>
            <rule>
              <name value="26c2c8c7"/>
              <source>
                <context value="a"/>
                <element value="value"/>
                <variable value="val"/>
              </source>
              <rule>
                <name value="8a65aaa5"/>
                <source>
                  <context value="val"/>
                  <condition value="val.code = 'true'"/>
                </source>
                <target>
                  <context value="tgt"/>
                  <contextType value="variable"/>
                  <element value="status"/>
                  <transform value="copy"/>
                  <parameter>
                    <valueString value="final"/>
                  </parameter>
                </target>
                <target>
                  <context value="tgt"/>
                  <contextType value="variable"/>
                  <element value="value"/>
                  <transform value="copy"/>
                  <parameter>
                    <valueBoolean value="true"/>
                  </parameter>
                </target>
              </rule>
            </rule>
          </rule>
        </rule>
      </group>
      <group>
        <name value="CccobservationCccb22de28"/>
        <typeMode value="none"/>
        <input>
          <name value="src"/>
          <mode value="source"/>
        </input>
        <input>
          <name value="tgt"/>
          <mode value="target"/>
        </input>
        <rule>
          <name value="id-Cccb22de28"/>
          <source>
            <context value="src"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="identifier"/>
            <variable value="CodeID"/>
            <transform value="create"/>
            <parameter>
              <valueString value="Identifier"/>
            </parameter>
          </target>
          <target>
            <context value="CodeID"/>
            <contextType value="variable"/>
            <element value="system"/>
            <transform value="copy"/>
            <parameter>
              <valueString
                           value="http://hl7.org/fhir/namingsystem-identifier-type"/>
            </parameter>
          </target>
          <target>
            <context value="CodeID"/>
            <contextType value="variable"/>
            <element value="use"/>
            <transform value="copy"/>
            <parameter>
              <valueString value="official"/>
            </parameter>
          </target>
          <target>
            <context value="CodeID"/>
            <contextType value="variable"/>
            <element value="value"/>
            <transform value="copy"/>
            <parameter>
              <valueString value="uuid"/>
            </parameter>
          </target>
          <target>
            <context value="CodeID"/>
            <contextType value="variable"/>
            <element value="id"/>
            <transform value="uuid"/>
          </target>
        </rule>
        <rule>
          <name value="35bc6b82"/>
          <source>
            <context value="src"/>
            <element value="encounter"/>
            <variable value="encounter"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="encounter"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="encounter"/>
            </parameter>
          </target>
        </rule>
        <rule>
          <name value="code-Cccb22de28"/>
          <source>
            <context value="src"/>
            <element value="subject"/>
            <variable value="subject"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="subject"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="subject"/>
            </parameter>
          </target>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="meta"/>
            <variable value="newMeta"/>
            <transform value="create"/>
            <parameter>
              <valueString value="Meta"/>
            </parameter>
          </target>
          <target>
            <context value="newMeta"/>
            <contextType value="variable"/>
            <element value="profile"/>
            <transform value="copy"/>
            <parameter>
              <valueString
                           value="https://smart.who.int/ccc/StructureDefinition/Cccobservation"/>
            </parameter>
          </target>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="code"/>
            <variable value="concept"/>
            <transform value="create"/>
            <parameter>
              <valueString value="CodeableConcept"/>
            </parameter>
          </target>
          <target>
            <context value="concept"/>
            <contextType value="variable"/>
            <element value="coding"/>
            <variable value="coding"/>
            <transform value="create"/>
            <parameter>
              <valueString value="Coding"/>
            </parameter>
          </target>
          <target>
            <context value="coding"/>
            <contextType value="variable"/>
            <element value="system"/>
            <transform value="copy"/>
            <parameter>
              <valueString
                           value="https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes"/>
            </parameter>
          </target>
          <target>
            <context value="coding"/>
            <contextType value="variable"/>
            <element value="code"/>
            <transform value="copy"/>
            <parameter>
              <valueString value="Ccc.B22.DE28"/>
            </parameter>
          </target>
        </rule>
        <rule>
          <name value="aae7a11d"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <variable value="itemtimestamp"/>
            <condition value="linkId = 'timestamp'"/>
          </source>
          <rule>
            <name value="7f22f29f"/>
            <source>
              <context value="itemtimestamp"/>
              <element value="answer"/>
              <listMode value="first"/>
              <variable value="atimestamp"/>
            </source>
            <rule>
              <name value="5af77f2c"/>
              <source>
                <context value="atimestamp"/>
                <element value="value"/>
                <variable value="val"/>
              </source>
              <target>
                <context value="tgt"/>
                <contextType value="variable"/>
                <element value="issued"/>
                <transform value="copy"/>
                <parameter>
                  <valueId value="val"/>
                </parameter>
              </target>
            </rule>
          </rule>
        </rule>
        <rule>
          <name value="patient"/>
          <source>
            <context value="src"/>
            <element value="subject"/>
            <variable value="subject"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="subject"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="subject"/>
            </parameter>
          </target>
        </rule>
        <rule>
          <name value="f2e6f4c7"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B22.DE28') and answer.exists()"/>
          </source>
          <rule>
            <name value="bdab9370"/>
            <source>
              <context value="item"/>
              <element value="answer"/>
              <listMode value="first"/>
              <variable value="a"/>
            </source>
            <rule>
              <name value="final-Cccb22de28"/>
              <source>
                <context value="a"/>
                <condition value="a.value = true"/>
              </source>
              <target>
                <context value="tgt"/>
                <contextType value="variable"/>
                <element value="status"/>
                <transform value="copy"/>
                <parameter>
                  <valueString value="final"/>
                </parameter>
              </target>
              <target>
                <context value="tgt"/>
                <contextType value="variable"/>
                <element value="value"/>
                <transform value="copy"/>
                <parameter>
                  <valueBoolean value="true"/>
                </parameter>
              </target>
            </rule>
            <rule>
              <name value="notfound-Cccb22de28"/>
              <source>
                <context value="a"/>
                <condition value="a.value = false"/>
              </source>
              <target>
                <context value="tgt"/>
                <contextType value="variable"/>
                <element value="status"/>
                <transform value="copy"/>
                <parameter>
                  <valueString value="cancelled"/>
                </parameter>
              </target>
              <target>
                <context value="tgt"/>
                <contextType value="variable"/>
                <element value="value"/>
                <transform value="copy"/>
                <parameter>
                  <valueBoolean value="false"/>
                </parameter>
              </target>
            </rule>
          </rule>
        </rule>
      </group>
      <group>
        <name value="CccobservationCccb22de29"/>
        <typeMode value="none"/>
        <input>
          <name value="src"/>
          <mode value="source"/>
        </input>
        <input>
          <name value="tgt"/>
          <mode value="target"/>
        </input>
        <rule>
          <name value="id-Cccb22de29"/>
          <source>
            <context value="src"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="identifier"/>
            <variable value="CodeID"/>
            <transform value="create"/>
            <parameter>
              <valueString value="Identifier"/>
            </parameter>
          </target>
          <target>
            <context value="CodeID"/>
            <contextType value="variable"/>
            <element value="system"/>
            <transform value="copy"/>
            <parameter>
              <valueString
                           value="http://hl7.org/fhir/namingsystem-identifier-type"/>
            </parameter>
          </target>
          <target>
            <context value="CodeID"/>
            <contextType value="variable"/>
            <element value="use"/>
            <transform value="copy"/>
            <parameter>
              <valueString value="official"/>
            </parameter>
          </target>
          <target>
            <context value="CodeID"/>
            <contextType value="variable"/>
            <element value="value"/>
            <transform value="copy"/>
            <parameter>
              <valueString value="uuid"/>
            </parameter>
          </target>
          <target>
            <context value="CodeID"/>
            <contextType value="variable"/>
            <element value="id"/>
            <transform value="uuid"/>
          </target>
        </rule>
        <rule>
          <name value="35bc6b82"/>
          <source>
            <context value="src"/>
            <element value="encounter"/>
            <variable value="encounter"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="encounter"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="encounter"/>
            </parameter>
          </target>
        </rule>
        <rule>
          <name value="code-Cccb22de29"/>
          <source>
            <context value="src"/>
            <element value="subject"/>
            <variable value="subject"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="subject"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="subject"/>
            </parameter>
          </target>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="meta"/>
            <variable value="newMeta"/>
            <transform value="create"/>
            <parameter>
              <valueString value="Meta"/>
            </parameter>
          </target>
          <target>
            <context value="newMeta"/>
            <contextType value="variable"/>
            <element value="profile"/>
            <transform value="copy"/>
            <parameter>
              <valueString
                           value="https://smart.who.int/ccc/StructureDefinition/Cccobservation"/>
            </parameter>
          </target>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="code"/>
            <variable value="concept"/>
            <transform value="create"/>
            <parameter>
              <valueString value="CodeableConcept"/>
            </parameter>
          </target>
          <target>
            <context value="concept"/>
            <contextType value="variable"/>
            <element value="coding"/>
            <variable value="coding"/>
            <transform value="create"/>
            <parameter>
              <valueString value="Coding"/>
            </parameter>
          </target>
          <target>
            <context value="coding"/>
            <contextType value="variable"/>
            <element value="system"/>
            <transform value="copy"/>
            <parameter>
              <valueString
                           value="https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes"/>
            </parameter>
          </target>
          <target>
            <context value="coding"/>
            <contextType value="variable"/>
            <element value="code"/>
            <transform value="copy"/>
            <parameter>
              <valueString value="Ccc.B22.DE29"/>
            </parameter>
          </target>
        </rule>
        <rule>
          <name value="aae7a11d"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <variable value="itemtimestamp"/>
            <condition value="linkId = 'timestamp'"/>
          </source>
          <rule>
            <name value="7f22f29f"/>
            <source>
              <context value="itemtimestamp"/>
              <element value="answer"/>
              <listMode value="first"/>
              <variable value="atimestamp"/>
            </source>
            <rule>
              <name value="5af77f2c"/>
              <source>
                <context value="atimestamp"/>
                <element value="value"/>
                <variable value="val"/>
              </source>
              <target>
                <context value="tgt"/>
                <contextType value="variable"/>
                <element value="issued"/>
                <transform value="copy"/>
                <parameter>
                  <valueId value="val"/>
                </parameter>
              </target>
            </rule>
          </rule>
        </rule>
        <rule>
          <name value="patient"/>
          <source>
            <context value="src"/>
            <element value="subject"/>
            <variable value="subject"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="subject"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="subject"/>
            </parameter>
          </target>
        </rule>
        <rule>
          <name value="9c93669f"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B22.DE29') and answer.exists()"/>
          </source>
          <rule>
            <name value="bdab9370"/>
            <source>
              <context value="item"/>
              <element value="answer"/>
              <listMode value="first"/>
              <variable value="a"/>
            </source>
            <rule>
              <name value="final-Cccb22de29"/>
              <source>
                <context value="a"/>
                <condition value="a.value = true"/>
              </source>
              <target>
                <context value="tgt"/>
                <contextType value="variable"/>
                <element value="status"/>
                <transform value="copy"/>
                <parameter>
                  <valueString value="final"/>
                </parameter>
              </target>
              <target>
                <context value="tgt"/>
                <contextType value="variable"/>
                <element value="value"/>
                <transform value="copy"/>
                <parameter>
                  <valueBoolean value="true"/>
                </parameter>
              </target>
            </rule>
            <rule>
              <name value="notfound-Cccb22de29"/>
              <source>
                <context value="a"/>
                <condition value="a.value = false"/>
              </source>
              <target>
                <context value="tgt"/>
                <contextType value="variable"/>
                <element value="status"/>
                <transform value="copy"/>
                <parameter>
                  <valueString value="cancelled"/>
                </parameter>
              </target>
              <target>
                <context value="tgt"/>
                <contextType value="variable"/>
                <element value="value"/>
                <transform value="copy"/>
                <parameter>
                  <valueBoolean value="false"/>
                </parameter>
              </target>
            </rule>
          </rule>
        </rule>
      </group>
      <group>
        <name value="CccobservationCccb22de30"/>
        <typeMode value="none"/>
        <input>
          <name value="src"/>
          <mode value="source"/>
        </input>
        <input>
          <name value="tgt"/>
          <mode value="target"/>
        </input>
        <rule>
          <name value="id-Cccb22de30"/>
          <source>
            <context value="src"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="identifier"/>
            <variable value="CodeID"/>
            <transform value="create"/>
            <parameter>
              <valueString value="Identifier"/>
            </parameter>
          </target>
          <target>
            <context value="CodeID"/>
            <contextType value="variable"/>
            <element value="system"/>
            <transform value="copy"/>
            <parameter>
              <valueString
                           value="http://hl7.org/fhir/namingsystem-identifier-type"/>
            </parameter>
          </target>
          <target>
            <context value="CodeID"/>
            <contextType value="variable"/>
            <element value="use"/>
            <transform value="copy"/>
            <parameter>
              <valueString value="official"/>
            </parameter>
          </target>
          <target>
            <context value="CodeID"/>
            <contextType value="variable"/>
            <element value="value"/>
            <transform value="copy"/>
            <parameter>
              <valueString value="uuid"/>
            </parameter>
          </target>
          <target>
            <context value="CodeID"/>
            <contextType value="variable"/>
            <element value="id"/>
            <transform value="uuid"/>
          </target>
        </rule>
        <rule>
          <name value="35bc6b82"/>
          <source>
            <context value="src"/>
            <element value="encounter"/>
            <variable value="encounter"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="encounter"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="encounter"/>
            </parameter>
          </target>
        </rule>
        <rule>
          <name value="code-Cccb22de30"/>
          <source>
            <context value="src"/>
            <element value="subject"/>
            <variable value="subject"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="subject"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="subject"/>
            </parameter>
          </target>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="meta"/>
            <variable value="newMeta"/>
            <transform value="create"/>
            <parameter>
              <valueString value="Meta"/>
            </parameter>
          </target>
          <target>
            <context value="newMeta"/>
            <contextType value="variable"/>
            <element value="profile"/>
            <transform value="copy"/>
            <parameter>
              <valueString
                           value="https://smart.who.int/ccc/StructureDefinition/Cccobservation"/>
            </parameter>
          </target>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="code"/>
            <variable value="concept"/>
            <transform value="create"/>
            <parameter>
              <valueString value="CodeableConcept"/>
            </parameter>
          </target>
          <target>
            <context value="concept"/>
            <contextType value="variable"/>
            <element value="coding"/>
            <variable value="coding"/>
            <transform value="create"/>
            <parameter>
              <valueString value="Coding"/>
            </parameter>
          </target>
          <target>
            <context value="coding"/>
            <contextType value="variable"/>
            <element value="system"/>
            <transform value="copy"/>
            <parameter>
              <valueString
                           value="https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes"/>
            </parameter>
          </target>
          <target>
            <context value="coding"/>
            <contextType value="variable"/>
            <element value="code"/>
            <transform value="copy"/>
            <parameter>
              <valueString value="Ccc.B22.DE30"/>
            </parameter>
          </target>
        </rule>
        <rule>
          <name value="aae7a11d"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <variable value="itemtimestamp"/>
            <condition value="linkId = 'timestamp'"/>
          </source>
          <rule>
            <name value="7f22f29f"/>
            <source>
              <context value="itemtimestamp"/>
              <element value="answer"/>
              <listMode value="first"/>
              <variable value="atimestamp"/>
            </source>
            <rule>
              <name value="5af77f2c"/>
              <source>
                <context value="atimestamp"/>
                <element value="value"/>
                <variable value="val"/>
              </source>
              <target>
                <context value="tgt"/>
                <contextType value="variable"/>
                <element value="issued"/>
                <transform value="copy"/>
                <parameter>
                  <valueId value="val"/>
                </parameter>
              </target>
            </rule>
          </rule>
        </rule>
        <rule>
          <name value="patient"/>
          <source>
            <context value="src"/>
            <element value="subject"/>
            <variable value="subject"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="subject"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="subject"/>
            </parameter>
          </target>
        </rule>
        <rule>
          <name value="46ca8d36"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B22.DE30') and answer.exists()"/>
          </source>
          <rule>
            <name value="bdab9370"/>
            <source>
              <context value="item"/>
              <element value="answer"/>
              <listMode value="first"/>
              <variable value="a"/>
            </source>
            <rule>
              <name value="final-Cccb22de30"/>
              <source>
                <context value="a"/>
                <condition value="a.value = true"/>
              </source>
              <target>
                <context value="tgt"/>
                <contextType value="variable"/>
                <element value="status"/>
                <transform value="copy"/>
                <parameter>
                  <valueString value="final"/>
                </parameter>
              </target>
              <target>
                <context value="tgt"/>
                <contextType value="variable"/>
                <element value="value"/>
                <transform value="copy"/>
                <parameter>
                  <valueBoolean value="true"/>
                </parameter>
              </target>
            </rule>
            <rule>
              <name value="notfound-Cccb22de30"/>
              <source>
                <context value="a"/>
                <condition value="a.value = false"/>
              </source>
              <target>
                <context value="tgt"/>
                <contextType value="variable"/>
                <element value="status"/>
                <transform value="copy"/>
                <parameter>
                  <valueString value="cancelled"/>
                </parameter>
              </target>
              <target>
                <context value="tgt"/>
                <contextType value="variable"/>
                <element value="value"/>
                <transform value="copy"/>
                <parameter>
                  <valueBoolean value="false"/>
                </parameter>
              </target>
            </rule>
          </rule>
        </rule>
      </group>
      <group>
        <name value="CccobservationCccb22de31"/>
        <typeMode value="none"/>
        <input>
          <name value="src"/>
          <mode value="source"/>
        </input>
        <input>
          <name value="tgt"/>
          <mode value="target"/>
        </input>
        <rule>
          <name value="id-Cccb22de31"/>
          <source>
            <context value="src"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="identifier"/>
            <variable value="CodeID"/>
            <transform value="create"/>
            <parameter>
              <valueString value="Identifier"/>
            </parameter>
          </target>
          <target>
            <context value="CodeID"/>
            <contextType value="variable"/>
            <element value="system"/>
            <transform value="copy"/>
            <parameter>
              <valueString
                           value="http://hl7.org/fhir/namingsystem-identifier-type"/>
            </parameter>
          </target>
          <target>
            <context value="CodeID"/>
            <contextType value="variable"/>
            <element value="use"/>
            <transform value="copy"/>
            <parameter>
              <valueString value="official"/>
            </parameter>
          </target>
          <target>
            <context value="CodeID"/>
            <contextType value="variable"/>
            <element value="value"/>
            <transform value="copy"/>
            <parameter>
              <valueString value="uuid"/>
            </parameter>
          </target>
          <target>
            <context value="CodeID"/>
            <contextType value="variable"/>
            <element value="id"/>
            <transform value="uuid"/>
          </target>
        </rule>
        <rule>
          <name value="35bc6b82"/>
          <source>
            <context value="src"/>
            <element value="encounter"/>
            <variable value="encounter"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="encounter"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="encounter"/>
            </parameter>
          </target>
        </rule>
        <rule>
          <name value="code-Cccb22de31"/>
          <source>
            <context value="src"/>
            <element value="subject"/>
            <variable value="subject"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="subject"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="subject"/>
            </parameter>
          </target>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="meta"/>
            <variable value="newMeta"/>
            <transform value="create"/>
            <parameter>
              <valueString value="Meta"/>
            </parameter>
          </target>
          <target>
            <context value="newMeta"/>
            <contextType value="variable"/>
            <element value="profile"/>
            <transform value="copy"/>
            <parameter>
              <valueString
                           value="https://smart.who.int/ccc/StructureDefinition/Cccobservation"/>
            </parameter>
          </target>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="code"/>
            <variable value="concept"/>
            <transform value="create"/>
            <parameter>
              <valueString value="CodeableConcept"/>
            </parameter>
          </target>
          <target>
            <context value="concept"/>
            <contextType value="variable"/>
            <element value="coding"/>
            <variable value="coding"/>
            <transform value="create"/>
            <parameter>
              <valueString value="Coding"/>
            </parameter>
          </target>
          <target>
            <context value="coding"/>
            <contextType value="variable"/>
            <element value="system"/>
            <transform value="copy"/>
            <parameter>
              <valueString
                           value="https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes"/>
            </parameter>
          </target>
          <target>
            <context value="coding"/>
            <contextType value="variable"/>
            <element value="code"/>
            <transform value="copy"/>
            <parameter>
              <valueString value="Ccc.B22.DE31"/>
            </parameter>
          </target>
        </rule>
        <rule>
          <name value="aae7a11d"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <variable value="itemtimestamp"/>
            <condition value="linkId = 'timestamp'"/>
          </source>
          <rule>
            <name value="7f22f29f"/>
            <source>
              <context value="itemtimestamp"/>
              <element value="answer"/>
              <listMode value="first"/>
              <variable value="atimestamp"/>
            </source>
            <rule>
              <name value="5af77f2c"/>
              <source>
                <context value="atimestamp"/>
                <element value="value"/>
                <variable value="val"/>
              </source>
              <target>
                <context value="tgt"/>
                <contextType value="variable"/>
                <element value="issued"/>
                <transform value="copy"/>
                <parameter>
                  <valueId value="val"/>
                </parameter>
              </target>
            </rule>
          </rule>
        </rule>
        <rule>
          <name value="patient"/>
          <source>
            <context value="src"/>
            <element value="subject"/>
            <variable value="subject"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="subject"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="subject"/>
            </parameter>
          </target>
        </rule>
        <rule>
          <name value="27a8c087"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B22.DE31') and answer.exists()"/>
          </source>
          <rule>
            <name value="bdab9370"/>
            <source>
              <context value="item"/>
              <element value="answer"/>
              <listMode value="first"/>
              <variable value="a"/>
            </source>
            <rule>
              <name value="final-Cccb22de31"/>
              <source>
                <context value="a"/>
                <condition value="a.value = true"/>
              </source>
              <target>
                <context value="tgt"/>
                <contextType value="variable"/>
                <element value="status"/>
                <transform value="copy"/>
                <parameter>
                  <valueString value="final"/>
                </parameter>
              </target>
              <target>
                <context value="tgt"/>
                <contextType value="variable"/>
                <element value="value"/>
                <transform value="copy"/>
                <parameter>
                  <valueBoolean value="true"/>
                </parameter>
              </target>
            </rule>
            <rule>
              <name value="notfound-Cccb22de31"/>
              <source>
                <context value="a"/>
                <condition value="a.value = false"/>
              </source>
              <target>
                <context value="tgt"/>
                <contextType value="variable"/>
                <element value="status"/>
                <transform value="copy"/>
                <parameter>
                  <valueString value="cancelled"/>
                </parameter>
              </target>
              <target>
                <context value="tgt"/>
                <contextType value="variable"/>
                <element value="value"/>
                <transform value="copy"/>
                <parameter>
                  <valueBoolean value="false"/>
                </parameter>
              </target>
            </rule>
          </rule>
        </rule>
      </group>
      <group>
        <name value="CccobservationCccb22de32"/>
        <typeMode value="none"/>
        <input>
          <name value="src"/>
          <mode value="source"/>
        </input>
        <input>
          <name value="tgt"/>
          <mode value="target"/>
        </input>
        <rule>
          <name value="id-Cccb22de32"/>
          <source>
            <context value="src"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="identifier"/>
            <variable value="CodeID"/>
            <transform value="create"/>
            <parameter>
              <valueString value="Identifier"/>
            </parameter>
          </target>
          <target>
            <context value="CodeID"/>
            <contextType value="variable"/>
            <element value="system"/>
            <transform value="copy"/>
            <parameter>
              <valueString
                           value="http://hl7.org/fhir/namingsystem-identifier-type"/>
            </parameter>
          </target>
          <target>
            <context value="CodeID"/>
            <contextType value="variable"/>
            <element value="use"/>
            <transform value="copy"/>
            <parameter>
              <valueString value="official"/>
            </parameter>
          </target>
          <target>
            <context value="CodeID"/>
            <contextType value="variable"/>
            <element value="value"/>
            <transform value="copy"/>
            <parameter>
              <valueString value="uuid"/>
            </parameter>
          </target>
          <target>
            <context value="CodeID"/>
            <contextType value="variable"/>
            <element value="id"/>
            <transform value="uuid"/>
          </target>
        </rule>
        <rule>
          <name value="35bc6b82"/>
          <source>
            <context value="src"/>
            <element value="encounter"/>
            <variable value="encounter"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="encounter"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="encounter"/>
            </parameter>
          </target>
        </rule>
        <rule>
          <name value="code-Cccb22de32"/>
          <source>
            <context value="src"/>
            <element value="subject"/>
            <variable value="subject"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="subject"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="subject"/>
            </parameter>
          </target>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="meta"/>
            <variable value="newMeta"/>
            <transform value="create"/>
            <parameter>
              <valueString value="Meta"/>
            </parameter>
          </target>
          <target>
            <context value="newMeta"/>
            <contextType value="variable"/>
            <element value="profile"/>
            <transform value="copy"/>
            <parameter>
              <valueString
                           value="https://smart.who.int/ccc/StructureDefinition/Cccobservation"/>
            </parameter>
          </target>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="code"/>
            <variable value="concept"/>
            <transform value="create"/>
            <parameter>
              <valueString value="CodeableConcept"/>
            </parameter>
          </target>
          <target>
            <context value="concept"/>
            <contextType value="variable"/>
            <element value="coding"/>
            <variable value="coding"/>
            <transform value="create"/>
            <parameter>
              <valueString value="Coding"/>
            </parameter>
          </target>
          <target>
            <context value="coding"/>
            <contextType value="variable"/>
            <element value="system"/>
            <transform value="copy"/>
            <parameter>
              <valueString
                           value="https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes"/>
            </parameter>
          </target>
          <target>
            <context value="coding"/>
            <contextType value="variable"/>
            <element value="code"/>
            <transform value="copy"/>
            <parameter>
              <valueString value="Ccc.B22.DE32"/>
            </parameter>
          </target>
        </rule>
        <rule>
          <name value="aae7a11d"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <variable value="itemtimestamp"/>
            <condition value="linkId = 'timestamp'"/>
          </source>
          <rule>
            <name value="7f22f29f"/>
            <source>
              <context value="itemtimestamp"/>
              <element value="answer"/>
              <listMode value="first"/>
              <variable value="atimestamp"/>
            </source>
            <rule>
              <name value="5af77f2c"/>
              <source>
                <context value="atimestamp"/>
                <element value="value"/>
                <variable value="val"/>
              </source>
              <target>
                <context value="tgt"/>
                <contextType value="variable"/>
                <element value="issued"/>
                <transform value="copy"/>
                <parameter>
                  <valueId value="val"/>
                </parameter>
              </target>
            </rule>
          </rule>
        </rule>
        <rule>
          <name value="patient"/>
          <source>
            <context value="src"/>
            <element value="subject"/>
            <variable value="subject"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="subject"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="subject"/>
            </parameter>
          </target>
        </rule>
        <rule>
          <name value="24ee0901"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B22.DE32') and answer.exists()"/>
          </source>
          <rule>
            <name value="bdab9370"/>
            <source>
              <context value="item"/>
              <element value="answer"/>
              <listMode value="first"/>
              <variable value="a"/>
            </source>
            <rule>
              <name value="final-Cccb22de32"/>
              <source>
                <context value="a"/>
                <condition value="a.value = true"/>
              </source>
              <target>
                <context value="tgt"/>
                <contextType value="variable"/>
                <element value="status"/>
                <transform value="copy"/>
                <parameter>
                  <valueString value="final"/>
                </parameter>
              </target>
              <target>
                <context value="tgt"/>
                <contextType value="variable"/>
                <element value="value"/>
                <transform value="copy"/>
                <parameter>
                  <valueBoolean value="true"/>
                </parameter>
              </target>
            </rule>
            <rule>
              <name value="notfound-Cccb22de32"/>
              <source>
                <context value="a"/>
                <condition value="a.value = false"/>
              </source>
              <target>
                <context value="tgt"/>
                <contextType value="variable"/>
                <element value="status"/>
                <transform value="copy"/>
                <parameter>
                  <valueString value="cancelled"/>
                </parameter>
              </target>
              <target>
                <context value="tgt"/>
                <contextType value="variable"/>
                <element value="value"/>
                <transform value="copy"/>
                <parameter>
                  <valueBoolean value="false"/>
                </parameter>
              </target>
            </rule>
          </rule>
        </rule>
      </group>
      <group>
        <name value="CccobservationCccb22de33"/>
        <typeMode value="none"/>
        <input>
          <name value="src"/>
          <mode value="source"/>
        </input>
        <input>
          <name value="tgt"/>
          <mode value="target"/>
        </input>
        <rule>
          <name value="id-Cccb22de33"/>
          <source>
            <context value="src"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="identifier"/>
            <variable value="CodeID"/>
            <transform value="create"/>
            <parameter>
              <valueString value="Identifier"/>
            </parameter>
          </target>
          <target>
            <context value="CodeID"/>
            <contextType value="variable"/>
            <element value="system"/>
            <transform value="copy"/>
            <parameter>
              <valueString
                           value="http://hl7.org/fhir/namingsystem-identifier-type"/>
            </parameter>
          </target>
          <target>
            <context value="CodeID"/>
            <contextType value="variable"/>
            <element value="use"/>
            <transform value="copy"/>
            <parameter>
              <valueString value="official"/>
            </parameter>
          </target>
          <target>
            <context value="CodeID"/>
            <contextType value="variable"/>
            <element value="value"/>
            <transform value="copy"/>
            <parameter>
              <valueString value="uuid"/>
            </parameter>
          </target>
          <target>
            <context value="CodeID"/>
            <contextType value="variable"/>
            <element value="id"/>
            <transform value="uuid"/>
          </target>
        </rule>
        <rule>
          <name value="35bc6b82"/>
          <source>
            <context value="src"/>
            <element value="encounter"/>
            <variable value="encounter"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="encounter"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="encounter"/>
            </parameter>
          </target>
        </rule>
        <rule>
          <name value="code-Cccb22de33"/>
          <source>
            <context value="src"/>
            <element value="subject"/>
            <variable value="subject"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="subject"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="subject"/>
            </parameter>
          </target>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="meta"/>
            <variable value="newMeta"/>
            <transform value="create"/>
            <parameter>
              <valueString value="Meta"/>
            </parameter>
          </target>
          <target>
            <context value="newMeta"/>
            <contextType value="variable"/>
            <element value="profile"/>
            <transform value="copy"/>
            <parameter>
              <valueString
                           value="https://smart.who.int/ccc/StructureDefinition/Cccobservation"/>
            </parameter>
          </target>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="code"/>
            <variable value="concept"/>
            <transform value="create"/>
            <parameter>
              <valueString value="CodeableConcept"/>
            </parameter>
          </target>
          <target>
            <context value="concept"/>
            <contextType value="variable"/>
            <element value="coding"/>
            <variable value="coding"/>
            <transform value="create"/>
            <parameter>
              <valueString value="Coding"/>
            </parameter>
          </target>
          <target>
            <context value="coding"/>
            <contextType value="variable"/>
            <element value="system"/>
            <transform value="copy"/>
            <parameter>
              <valueString
                           value="https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes"/>
            </parameter>
          </target>
          <target>
            <context value="coding"/>
            <contextType value="variable"/>
            <element value="code"/>
            <transform value="copy"/>
            <parameter>
              <valueString value="Ccc.B22.DE33"/>
            </parameter>
          </target>
        </rule>
        <rule>
          <name value="aae7a11d"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <variable value="itemtimestamp"/>
            <condition value="linkId = 'timestamp'"/>
          </source>
          <rule>
            <name value="7f22f29f"/>
            <source>
              <context value="itemtimestamp"/>
              <element value="answer"/>
              <listMode value="first"/>
              <variable value="atimestamp"/>
            </source>
            <rule>
              <name value="5af77f2c"/>
              <source>
                <context value="atimestamp"/>
                <element value="value"/>
                <variable value="val"/>
              </source>
              <target>
                <context value="tgt"/>
                <contextType value="variable"/>
                <element value="issued"/>
                <transform value="copy"/>
                <parameter>
                  <valueId value="val"/>
                </parameter>
              </target>
            </rule>
          </rule>
        </rule>
        <rule>
          <name value="patient"/>
          <source>
            <context value="src"/>
            <element value="subject"/>
            <variable value="subject"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="subject"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="subject"/>
            </parameter>
          </target>
        </rule>
        <rule>
          <name value="17cd42bb"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B22.DE33') and answer.exists()"/>
          </source>
          <rule>
            <name value="bdab9370"/>
            <source>
              <context value="item"/>
              <element value="answer"/>
              <listMode value="first"/>
              <variable value="a"/>
            </source>
            <rule>
              <name value="final-Cccb22de33"/>
              <source>
                <context value="a"/>
                <condition value="a.value = true"/>
              </source>
              <target>
                <context value="tgt"/>
                <contextType value="variable"/>
                <element value="status"/>
                <transform value="copy"/>
                <parameter>
                  <valueString value="final"/>
                </parameter>
              </target>
              <target>
                <context value="tgt"/>
                <contextType value="variable"/>
                <element value="value"/>
                <transform value="copy"/>
                <parameter>
                  <valueBoolean value="true"/>
                </parameter>
              </target>
            </rule>
            <rule>
              <name value="notfound-Cccb22de33"/>
              <source>
                <context value="a"/>
                <condition value="a.value = false"/>
              </source>
              <target>
                <context value="tgt"/>
                <contextType value="variable"/>
                <element value="status"/>
                <transform value="copy"/>
                <parameter>
                  <valueString value="cancelled"/>
                </parameter>
              </target>
              <target>
                <context value="tgt"/>
                <contextType value="variable"/>
                <element value="value"/>
                <transform value="copy"/>
                <parameter>
                  <valueBoolean value="false"/>
                </parameter>
              </target>
            </rule>
          </rule>
        </rule>
      </group>
      <group>
        <name value="CccobservationCccb22de34"/>
        <typeMode value="none"/>
        <input>
          <name value="src"/>
          <mode value="source"/>
        </input>
        <input>
          <name value="tgt"/>
          <mode value="target"/>
        </input>
        <rule>
          <name value="id-Cccb22de34"/>
          <source>
            <context value="src"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="identifier"/>
            <variable value="CodeID"/>
            <transform value="create"/>
            <parameter>
              <valueString value="Identifier"/>
            </parameter>
          </target>
          <target>
            <context value="CodeID"/>
            <contextType value="variable"/>
            <element value="system"/>
            <transform value="copy"/>
            <parameter>
              <valueString
                           value="http://hl7.org/fhir/namingsystem-identifier-type"/>
            </parameter>
          </target>
          <target>
            <context value="CodeID"/>
            <contextType value="variable"/>
            <element value="use"/>
            <transform value="copy"/>
            <parameter>
              <valueString value="official"/>
            </parameter>
          </target>
          <target>
            <context value="CodeID"/>
            <contextType value="variable"/>
            <element value="value"/>
            <transform value="copy"/>
            <parameter>
              <valueString value="uuid"/>
            </parameter>
          </target>
          <target>
            <context value="CodeID"/>
            <contextType value="variable"/>
            <element value="id"/>
            <transform value="uuid"/>
          </target>
        </rule>
        <rule>
          <name value="35bc6b82"/>
          <source>
            <context value="src"/>
            <element value="encounter"/>
            <variable value="encounter"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="encounter"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="encounter"/>
            </parameter>
          </target>
        </rule>
        <rule>
          <name value="code-Cccb22de34"/>
          <source>
            <context value="src"/>
            <element value="subject"/>
            <variable value="subject"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="subject"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="subject"/>
            </parameter>
          </target>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="meta"/>
            <variable value="newMeta"/>
            <transform value="create"/>
            <parameter>
              <valueString value="Meta"/>
            </parameter>
          </target>
          <target>
            <context value="newMeta"/>
            <contextType value="variable"/>
            <element value="profile"/>
            <transform value="copy"/>
            <parameter>
              <valueString
                           value="https://smart.who.int/ccc/StructureDefinition/Cccobservation"/>
            </parameter>
          </target>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="code"/>
            <variable value="concept"/>
            <transform value="create"/>
            <parameter>
              <valueString value="CodeableConcept"/>
            </parameter>
          </target>
          <target>
            <context value="concept"/>
            <contextType value="variable"/>
            <element value="coding"/>
            <variable value="coding"/>
            <transform value="create"/>
            <parameter>
              <valueString value="Coding"/>
            </parameter>
          </target>
          <target>
            <context value="coding"/>
            <contextType value="variable"/>
            <element value="system"/>
            <transform value="copy"/>
            <parameter>
              <valueString
                           value="https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes"/>
            </parameter>
          </target>
          <target>
            <context value="coding"/>
            <contextType value="variable"/>
            <element value="code"/>
            <transform value="copy"/>
            <parameter>
              <valueString value="Ccc.B22.DE34"/>
            </parameter>
          </target>
        </rule>
        <rule>
          <name value="aae7a11d"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <variable value="itemtimestamp"/>
            <condition value="linkId = 'timestamp'"/>
          </source>
          <rule>
            <name value="7f22f29f"/>
            <source>
              <context value="itemtimestamp"/>
              <element value="answer"/>
              <listMode value="first"/>
              <variable value="atimestamp"/>
            </source>
            <rule>
              <name value="5af77f2c"/>
              <source>
                <context value="atimestamp"/>
                <element value="value"/>
                <variable value="val"/>
              </source>
              <target>
                <context value="tgt"/>
                <contextType value="variable"/>
                <element value="issued"/>
                <transform value="copy"/>
                <parameter>
                  <valueId value="val"/>
                </parameter>
              </target>
            </rule>
          </rule>
        </rule>
        <rule>
          <name value="patient"/>
          <source>
            <context value="src"/>
            <element value="subject"/>
            <variable value="subject"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="subject"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="subject"/>
            </parameter>
          </target>
        </rule>
        <rule>
          <name value="aa1487ce"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B22.DE34') and answer.exists()"/>
          </source>
          <rule>
            <name value="bdab9370"/>
            <source>
              <context value="item"/>
              <element value="answer"/>
              <listMode value="first"/>
              <variable value="a"/>
            </source>
            <rule>
              <name value="final-Cccb22de34"/>
              <source>
                <context value="a"/>
                <condition value="a.value = true"/>
              </source>
              <target>
                <context value="tgt"/>
                <contextType value="variable"/>
                <element value="status"/>
                <transform value="copy"/>
                <parameter>
                  <valueString value="final"/>
                </parameter>
              </target>
              <target>
                <context value="tgt"/>
                <contextType value="variable"/>
                <element value="value"/>
                <transform value="copy"/>
                <parameter>
                  <valueBoolean value="true"/>
                </parameter>
              </target>
            </rule>
            <rule>
              <name value="notfound-Cccb22de34"/>
              <source>
                <context value="a"/>
                <condition value="a.value = false"/>
              </source>
              <target>
                <context value="tgt"/>
                <contextType value="variable"/>
                <element value="status"/>
                <transform value="copy"/>
                <parameter>
                  <valueString value="cancelled"/>
                </parameter>
              </target>
              <target>
                <context value="tgt"/>
                <contextType value="variable"/>
                <element value="value"/>
                <transform value="copy"/>
                <parameter>
                  <valueBoolean value="false"/>
                </parameter>
              </target>
            </rule>
          </rule>
        </rule>
      </group>
      <group>
        <name value="CccobservationCccb22de35"/>
        <typeMode value="none"/>
        <input>
          <name value="src"/>
          <mode value="source"/>
        </input>
        <input>
          <name value="tgt"/>
          <mode value="target"/>
        </input>
        <rule>
          <name value="id-Cccb22de35"/>
          <source>
            <context value="src"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="identifier"/>
            <variable value="CodeID"/>
            <transform value="create"/>
            <parameter>
              <valueString value="Identifier"/>
            </parameter>
          </target>
          <target>
            <context value="CodeID"/>
            <contextType value="variable"/>
            <element value="system"/>
            <transform value="copy"/>
            <parameter>
              <valueString
                           value="http://hl7.org/fhir/namingsystem-identifier-type"/>
            </parameter>
          </target>
          <target>
            <context value="CodeID"/>
            <contextType value="variable"/>
            <element value="use"/>
            <transform value="copy"/>
            <parameter>
              <valueString value="official"/>
            </parameter>
          </target>
          <target>
            <context value="CodeID"/>
            <contextType value="variable"/>
            <element value="value"/>
            <transform value="copy"/>
            <parameter>
              <valueString value="uuid"/>
            </parameter>
          </target>
          <target>
            <context value="CodeID"/>
            <contextType value="variable"/>
            <element value="id"/>
            <transform value="uuid"/>
          </target>
        </rule>
        <rule>
          <name value="35bc6b82"/>
          <source>
            <context value="src"/>
            <element value="encounter"/>
            <variable value="encounter"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="encounter"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="encounter"/>
            </parameter>
          </target>
        </rule>
        <rule>
          <name value="code-Cccb22de35"/>
          <source>
            <context value="src"/>
            <element value="subject"/>
            <variable value="subject"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="subject"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="subject"/>
            </parameter>
          </target>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="meta"/>
            <variable value="newMeta"/>
            <transform value="create"/>
            <parameter>
              <valueString value="Meta"/>
            </parameter>
          </target>
          <target>
            <context value="newMeta"/>
            <contextType value="variable"/>
            <element value="profile"/>
            <transform value="copy"/>
            <parameter>
              <valueString
                           value="https://smart.who.int/ccc/StructureDefinition/Cccobservation"/>
            </parameter>
          </target>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="code"/>
            <variable value="concept"/>
            <transform value="create"/>
            <parameter>
              <valueString value="CodeableConcept"/>
            </parameter>
          </target>
          <target>
            <context value="concept"/>
            <contextType value="variable"/>
            <element value="coding"/>
            <variable value="coding"/>
            <transform value="create"/>
            <parameter>
              <valueString value="Coding"/>
            </parameter>
          </target>
          <target>
            <context value="coding"/>
            <contextType value="variable"/>
            <element value="system"/>
            <transform value="copy"/>
            <parameter>
              <valueString
                           value="https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes"/>
            </parameter>
          </target>
          <target>
            <context value="coding"/>
            <contextType value="variable"/>
            <element value="code"/>
            <transform value="copy"/>
            <parameter>
              <valueString value="Ccc.B22.DE35"/>
            </parameter>
          </target>
        </rule>
        <rule>
          <name value="aae7a11d"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <variable value="itemtimestamp"/>
            <condition value="linkId = 'timestamp'"/>
          </source>
          <rule>
            <name value="7f22f29f"/>
            <source>
              <context value="itemtimestamp"/>
              <element value="answer"/>
              <listMode value="first"/>
              <variable value="atimestamp"/>
            </source>
            <rule>
              <name value="5af77f2c"/>
              <source>
                <context value="atimestamp"/>
                <element value="value"/>
                <variable value="val"/>
              </source>
              <target>
                <context value="tgt"/>
                <contextType value="variable"/>
                <element value="issued"/>
                <transform value="copy"/>
                <parameter>
                  <valueId value="val"/>
                </parameter>
              </target>
            </rule>
          </rule>
        </rule>
        <rule>
          <name value="patient"/>
          <source>
            <context value="src"/>
            <element value="subject"/>
            <variable value="subject"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="subject"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="subject"/>
            </parameter>
          </target>
        </rule>
        <rule>
          <name value="4be5f694"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B22.DE35') and answer.exists()"/>
          </source>
          <rule>
            <name value="bdab9370"/>
            <source>
              <context value="item"/>
              <element value="answer"/>
              <listMode value="first"/>
              <variable value="a"/>
            </source>
            <rule>
              <name value="final-Cccb22de35"/>
              <source>
                <context value="a"/>
                <condition value="a.value = true"/>
              </source>
              <target>
                <context value="tgt"/>
                <contextType value="variable"/>
                <element value="status"/>
                <transform value="copy"/>
                <parameter>
                  <valueString value="final"/>
                </parameter>
              </target>
              <target>
                <context value="tgt"/>
                <contextType value="variable"/>
                <element value="value"/>
                <transform value="copy"/>
                <parameter>
                  <valueBoolean value="true"/>
                </parameter>
              </target>
            </rule>
            <rule>
              <name value="notfound-Cccb22de35"/>
              <source>
                <context value="a"/>
                <condition value="a.value = false"/>
              </source>
              <target>
                <context value="tgt"/>
                <contextType value="variable"/>
                <element value="status"/>
                <transform value="copy"/>
                <parameter>
                  <valueString value="cancelled"/>
                </parameter>
              </target>
              <target>
                <context value="tgt"/>
                <contextType value="variable"/>
                <element value="value"/>
                <transform value="copy"/>
                <parameter>
                  <valueBoolean value="false"/>
                </parameter>
              </target>
            </rule>
          </rule>
        </rule>
      </group>
      <group>
        <name value="CccobservationCccb22de36"/>
        <typeMode value="none"/>
        <input>
          <name value="src"/>
          <mode value="source"/>
        </input>
        <input>
          <name value="tgt"/>
          <mode value="target"/>
        </input>
        <rule>
          <name value="id-CccobservationCccb22de36"/>
          <source>
            <context value="src"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="identifier"/>
            <variable value="CodeID"/>
            <transform value="create"/>
            <parameter>
              <valueString value="Identifier"/>
            </parameter>
          </target>
          <target>
            <context value="CodeID"/>
            <contextType value="variable"/>
            <element value="system"/>
            <transform value="copy"/>
            <parameter>
              <valueString
                           value="http://hl7.org/fhir/namingsystem-identifier-type"/>
            </parameter>
          </target>
          <target>
            <context value="CodeID"/>
            <contextType value="variable"/>
            <element value="use"/>
            <transform value="copy"/>
            <parameter>
              <valueString value="official"/>
            </parameter>
          </target>
          <target>
            <context value="CodeID"/>
            <contextType value="variable"/>
            <element value="value"/>
            <transform value="copy"/>
            <parameter>
              <valueString value="uuid"/>
            </parameter>
          </target>
          <target>
            <context value="CodeID"/>
            <contextType value="variable"/>
            <element value="id"/>
            <transform value="uuid"/>
          </target>
        </rule>
        <rule>
          <name value="35bc6b82"/>
          <source>
            <context value="src"/>
            <element value="encounter"/>
            <variable value="encounter"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="encounter"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="encounter"/>
            </parameter>
          </target>
        </rule>
        <rule>
          <name value="code-CccobservationCccb22de36"/>
          <source>
            <context value="src"/>
            <element value="subject"/>
            <variable value="subject"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="subject"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="subject"/>
            </parameter>
          </target>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="meta"/>
            <variable value="newMeta"/>
            <transform value="create"/>
            <parameter>
              <valueString value="Meta"/>
            </parameter>
          </target>
          <target>
            <context value="newMeta"/>
            <contextType value="variable"/>
            <element value="profile"/>
            <transform value="copy"/>
            <parameter>
              <valueString
                           value="https://smart.who.int/ccc/StructureDefinition/Cccobservation"/>
            </parameter>
          </target>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="code"/>
            <variable value="concept"/>
            <transform value="create"/>
            <parameter>
              <valueString value="CodeableConcept"/>
            </parameter>
          </target>
          <target>
            <context value="concept"/>
            <contextType value="variable"/>
            <element value="coding"/>
            <variable value="coding"/>
            <transform value="create"/>
            <parameter>
              <valueString value="Coding"/>
            </parameter>
          </target>
          <target>
            <context value="coding"/>
            <contextType value="variable"/>
            <element value="system"/>
            <transform value="copy"/>
            <parameter>
              <valueString
                           value="https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes"/>
            </parameter>
          </target>
          <target>
            <context value="coding"/>
            <contextType value="variable"/>
            <element value="code"/>
            <transform value="copy"/>
            <parameter>
              <valueString value="Ccc.B22.DE36"/>
            </parameter>
          </target>
        </rule>
        <rule>
          <name value="aae7a11d"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <variable value="itemtimestamp"/>
            <condition value="linkId = 'timestamp'"/>
          </source>
          <rule>
            <name value="7f22f29f"/>
            <source>
              <context value="itemtimestamp"/>
              <element value="answer"/>
              <listMode value="first"/>
              <variable value="atimestamp"/>
            </source>
            <rule>
              <name value="5af77f2c"/>
              <source>
                <context value="atimestamp"/>
                <element value="value"/>
                <variable value="val"/>
              </source>
              <target>
                <context value="tgt"/>
                <contextType value="variable"/>
                <element value="issued"/>
                <transform value="copy"/>
                <parameter>
                  <valueId value="val"/>
                </parameter>
              </target>
            </rule>
          </rule>
        </rule>
        <rule>
          <name value="patient"/>
          <source>
            <context value="src"/>
            <element value="subject"/>
            <variable value="subject"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="subject"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="subject"/>
            </parameter>
          </target>
        </rule>
        <rule>
          <name value="1b30376c"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B22.DE36') and answer.exists()"/>
          </source>
          <rule>
            <name value="bd419d51"/>
            <source>
              <context value="item"/>
              <element value="answer"/>
              <listMode value="first"/>
              <variable value="a"/>
            </source>
            <rule>
              <name value="a53091ee"/>
              <source>
                <context value="a"/>
                <condition value="value = 'Not well Attached to Breast'"/>
              </source>
              <source>
                <context value="a"/>
                <element value="value"/>
                <variable value="val"/>
              </source>
              <rule>
                <name value="71afb672"/>
                <source>
                  <context value="val"/>
                </source>
                <target>
                  <context value="tgt"/>
                  <contextType value="variable"/>
                  <element value="value"/>
                  <variable value="cc"/>
                  <transform value="create"/>
                  <parameter>
                    <valueString value="CodeableConcept"/>
                  </parameter>
                </target>
                <target>
                  <context value="cc"/>
                  <contextType value="variable"/>
                  <element value="coding"/>
                  <variable value="c"/>
                  <transform value="create"/>
                  <parameter>
                    <valueString value="Coding"/>
                  </parameter>
                </target>
                <target>
                  <context value="c"/>
                  <contextType value="variable"/>
                  <element value="code"/>
                  <transform value="copy"/>
                  <parameter>
                    <valueId value="Ccc.B22.DE37"/>
                  </parameter>
                </target>
                <target>
                  <context value="c"/>
                  <contextType value="variable"/>
                  <element value="system"/>
                  <transform value="copy"/>
                  <parameter>
                    <valueString
                                 value="https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes"/>
                  </parameter>
                </target>
                <target>
                  <context value="tgt"/>
                  <contextType value="variable"/>
                  <element value="status"/>
                  <transform value="copy"/>
                  <parameter>
                    <valueString value="final"/>
                  </parameter>
                </target>
              </rule>
            </rule>
            <rule>
              <name value="239a32e6"/>
              <source>
                <context value="a"/>
                <condition value="value = 'Good Attachment'"/>
              </source>
              <source>
                <context value="a"/>
                <element value="value"/>
                <variable value="val"/>
              </source>
              <rule>
                <name value="3053aa3e"/>
                <source>
                  <context value="val"/>
                </source>
                <target>
                  <context value="tgt"/>
                  <contextType value="variable"/>
                  <element value="value"/>
                  <variable value="cc"/>
                  <transform value="create"/>
                  <parameter>
                    <valueString value="CodeableConcept"/>
                  </parameter>
                </target>
                <target>
                  <context value="cc"/>
                  <contextType value="variable"/>
                  <element value="coding"/>
                  <variable value="c"/>
                  <transform value="create"/>
                  <parameter>
                    <valueString value="Coding"/>
                  </parameter>
                </target>
                <target>
                  <context value="c"/>
                  <contextType value="variable"/>
                  <element value="code"/>
                  <transform value="copy"/>
                  <parameter>
                    <valueId value="Ccc.B22.DE38"/>
                  </parameter>
                </target>
                <target>
                  <context value="c"/>
                  <contextType value="variable"/>
                  <element value="system"/>
                  <transform value="copy"/>
                  <parameter>
                    <valueString
                                 value="https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes"/>
                  </parameter>
                </target>
                <target>
                  <context value="tgt"/>
                  <contextType value="variable"/>
                  <element value="status"/>
                  <transform value="copy"/>
                  <parameter>
                    <valueString value="final"/>
                  </parameter>
                </target>
              </rule>
            </rule>
            <rule>
              <name value="ae925fc5"/>
              <source>
                <context value="a"/>
                <condition value="value = 'Not Sucking Effectively'"/>
              </source>
              <source>
                <context value="a"/>
                <element value="value"/>
                <variable value="val"/>
              </source>
              <rule>
                <name value="0e60e5cc"/>
                <source>
                  <context value="val"/>
                </source>
                <target>
                  <context value="tgt"/>
                  <contextType value="variable"/>
                  <element value="value"/>
                  <variable value="cc"/>
                  <transform value="create"/>
                  <parameter>
                    <valueString value="CodeableConcept"/>
                  </parameter>
                </target>
                <target>
                  <context value="cc"/>
                  <contextType value="variable"/>
                  <element value="coding"/>
                  <variable value="c"/>
                  <transform value="create"/>
                  <parameter>
                    <valueString value="Coding"/>
                  </parameter>
                </target>
                <target>
                  <context value="c"/>
                  <contextType value="variable"/>
                  <element value="code"/>
                  <transform value="copy"/>
                  <parameter>
                    <valueId value="Ccc.B22.DE39"/>
                  </parameter>
                </target>
                <target>
                  <context value="c"/>
                  <contextType value="variable"/>
                  <element value="system"/>
                  <transform value="copy"/>
                  <parameter>
                    <valueString
                                 value="https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes"/>
                  </parameter>
                </target>
                <target>
                  <context value="tgt"/>
                  <contextType value="variable"/>
                  <element value="status"/>
                  <transform value="copy"/>
                  <parameter>
                    <valueString value="final"/>
                  </parameter>
                </target>
              </rule>
            </rule>
            <rule>
              <name value="714e8fb5"/>
              <source>
                <context value="a"/>
                <condition value="value = 'Sucking Effectively'"/>
              </source>
              <source>
                <context value="a"/>
                <element value="value"/>
                <variable value="val"/>
              </source>
              <rule>
                <name value="5eeaf122"/>
                <source>
                  <context value="val"/>
                </source>
                <target>
                  <context value="tgt"/>
                  <contextType value="variable"/>
                  <element value="value"/>
                  <variable value="cc"/>
                  <transform value="create"/>
                  <parameter>
                    <valueString value="CodeableConcept"/>
                  </parameter>
                </target>
                <target>
                  <context value="cc"/>
                  <contextType value="variable"/>
                  <element value="coding"/>
                  <variable value="c"/>
                  <transform value="create"/>
                  <parameter>
                    <valueString value="Coding"/>
                  </parameter>
                </target>
                <target>
                  <context value="c"/>
                  <contextType value="variable"/>
                  <element value="code"/>
                  <transform value="copy"/>
                  <parameter>
                    <valueId value="Ccc.B22.DE40"/>
                  </parameter>
                </target>
                <target>
                  <context value="c"/>
                  <contextType value="variable"/>
                  <element value="system"/>
                  <transform value="copy"/>
                  <parameter>
                    <valueString
                                 value="https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes"/>
                  </parameter>
                </target>
                <target>
                  <context value="tgt"/>
                  <contextType value="variable"/>
                  <element value="status"/>
                  <transform value="copy"/>
                  <parameter>
                    <valueString value="final"/>
                  </parameter>
                </target>
              </rule>
            </rule>
          </rule>
        </rule>
      </group>
      <group>
        <name value="CccobservationCccb22de42"/>
        <typeMode value="none"/>
        <input>
          <name value="src"/>
          <mode value="source"/>
        </input>
        <input>
          <name value="tgt"/>
          <mode value="target"/>
        </input>
        <rule>
          <name value="id-Cccb22de42"/>
          <source>
            <context value="src"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="identifier"/>
            <variable value="CodeID"/>
            <transform value="create"/>
            <parameter>
              <valueString value="Identifier"/>
            </parameter>
          </target>
          <target>
            <context value="CodeID"/>
            <contextType value="variable"/>
            <element value="system"/>
            <transform value="copy"/>
            <parameter>
              <valueString
                           value="http://hl7.org/fhir/namingsystem-identifier-type"/>
            </parameter>
          </target>
          <target>
            <context value="CodeID"/>
            <contextType value="variable"/>
            <element value="use"/>
            <transform value="copy"/>
            <parameter>
              <valueString value="official"/>
            </parameter>
          </target>
          <target>
            <context value="CodeID"/>
            <contextType value="variable"/>
            <element value="value"/>
            <transform value="copy"/>
            <parameter>
              <valueString value="uuid"/>
            </parameter>
          </target>
          <target>
            <context value="CodeID"/>
            <contextType value="variable"/>
            <element value="id"/>
            <transform value="uuid"/>
          </target>
        </rule>
        <rule>
          <name value="35bc6b82"/>
          <source>
            <context value="src"/>
            <element value="encounter"/>
            <variable value="encounter"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="encounter"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="encounter"/>
            </parameter>
          </target>
        </rule>
        <rule>
          <name value="code-Cccb22de42"/>
          <source>
            <context value="src"/>
            <element value="subject"/>
            <variable value="subject"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="subject"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="subject"/>
            </parameter>
          </target>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="meta"/>
            <variable value="newMeta"/>
            <transform value="create"/>
            <parameter>
              <valueString value="Meta"/>
            </parameter>
          </target>
          <target>
            <context value="newMeta"/>
            <contextType value="variable"/>
            <element value="profile"/>
            <transform value="copy"/>
            <parameter>
              <valueString
                           value="https://smart.who.int/ccc/StructureDefinition/Cccobservation"/>
            </parameter>
          </target>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="code"/>
            <variable value="concept"/>
            <transform value="create"/>
            <parameter>
              <valueString value="CodeableConcept"/>
            </parameter>
          </target>
          <target>
            <context value="concept"/>
            <contextType value="variable"/>
            <element value="coding"/>
            <variable value="coding"/>
            <transform value="create"/>
            <parameter>
              <valueString value="Coding"/>
            </parameter>
          </target>
          <target>
            <context value="coding"/>
            <contextType value="variable"/>
            <element value="system"/>
            <transform value="copy"/>
            <parameter>
              <valueString
                           value="https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes"/>
            </parameter>
          </target>
          <target>
            <context value="coding"/>
            <contextType value="variable"/>
            <element value="code"/>
            <transform value="copy"/>
            <parameter>
              <valueString value="Ccc.B22.DE42"/>
            </parameter>
          </target>
        </rule>
        <rule>
          <name value="aae7a11d"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <variable value="itemtimestamp"/>
            <condition value="linkId = 'timestamp'"/>
          </source>
          <rule>
            <name value="7f22f29f"/>
            <source>
              <context value="itemtimestamp"/>
              <element value="answer"/>
              <listMode value="first"/>
              <variable value="atimestamp"/>
            </source>
            <rule>
              <name value="5af77f2c"/>
              <source>
                <context value="atimestamp"/>
                <element value="value"/>
                <variable value="val"/>
              </source>
              <target>
                <context value="tgt"/>
                <contextType value="variable"/>
                <element value="issued"/>
                <transform value="copy"/>
                <parameter>
                  <valueId value="val"/>
                </parameter>
              </target>
            </rule>
          </rule>
        </rule>
        <rule>
          <name value="patient"/>
          <source>
            <context value="src"/>
            <element value="subject"/>
            <variable value="subject"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="subject"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="subject"/>
            </parameter>
          </target>
        </rule>
        <rule>
          <name value="da98ddbd"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B22.DE42') and answer.exists()"/>
          </source>
          <rule>
            <name value="bdab9370"/>
            <source>
              <context value="item"/>
              <element value="answer"/>
              <listMode value="first"/>
              <variable value="a"/>
            </source>
            <rule>
              <name value="final-Cccb22de42"/>
              <source>
                <context value="a"/>
                <condition value="a.value = true"/>
              </source>
              <target>
                <context value="tgt"/>
                <contextType value="variable"/>
                <element value="status"/>
                <transform value="copy"/>
                <parameter>
                  <valueString value="final"/>
                </parameter>
              </target>
              <target>
                <context value="tgt"/>
                <contextType value="variable"/>
                <element value="value"/>
                <transform value="copy"/>
                <parameter>
                  <valueBoolean value="true"/>
                </parameter>
              </target>
            </rule>
            <rule>
              <name value="notfound-Cccb22de42"/>
              <source>
                <context value="a"/>
                <condition value="a.value = false"/>
              </source>
              <target>
                <context value="tgt"/>
                <contextType value="variable"/>
                <element value="status"/>
                <transform value="copy"/>
                <parameter>
                  <valueString value="cancelled"/>
                </parameter>
              </target>
              <target>
                <context value="tgt"/>
                <contextType value="variable"/>
                <element value="value"/>
                <transform value="copy"/>
                <parameter>
                  <valueBoolean value="false"/>
                </parameter>
              </target>
            </rule>
          </rule>
        </rule>
      </group>
      <group>
        <name value="CccobservationCccb22de44"/>
        <typeMode value="none"/>
        <input>
          <name value="src"/>
          <mode value="source"/>
        </input>
        <input>
          <name value="tgt"/>
          <mode value="target"/>
        </input>
        <rule>
          <name value="id-Cccb22de44"/>
          <source>
            <context value="src"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="identifier"/>
            <variable value="CodeID"/>
            <transform value="create"/>
            <parameter>
              <valueString value="Identifier"/>
            </parameter>
          </target>
          <target>
            <context value="CodeID"/>
            <contextType value="variable"/>
            <element value="system"/>
            <transform value="copy"/>
            <parameter>
              <valueString
                           value="http://hl7.org/fhir/namingsystem-identifier-type"/>
            </parameter>
          </target>
          <target>
            <context value="CodeID"/>
            <contextType value="variable"/>
            <element value="use"/>
            <transform value="copy"/>
            <parameter>
              <valueString value="official"/>
            </parameter>
          </target>
          <target>
            <context value="CodeID"/>
            <contextType value="variable"/>
            <element value="value"/>
            <transform value="copy"/>
            <parameter>
              <valueString value="uuid"/>
            </parameter>
          </target>
          <target>
            <context value="CodeID"/>
            <contextType value="variable"/>
            <element value="id"/>
            <transform value="uuid"/>
          </target>
        </rule>
        <rule>
          <name value="35bc6b82"/>
          <source>
            <context value="src"/>
            <element value="encounter"/>
            <variable value="encounter"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="encounter"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="encounter"/>
            </parameter>
          </target>
        </rule>
        <rule>
          <name value="code-Cccb22de44"/>
          <source>
            <context value="src"/>
            <element value="subject"/>
            <variable value="subject"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="subject"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="subject"/>
            </parameter>
          </target>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="meta"/>
            <variable value="newMeta"/>
            <transform value="create"/>
            <parameter>
              <valueString value="Meta"/>
            </parameter>
          </target>
          <target>
            <context value="newMeta"/>
            <contextType value="variable"/>
            <element value="profile"/>
            <transform value="copy"/>
            <parameter>
              <valueString
                           value="https://smart.who.int/ccc/StructureDefinition/Cccobservation"/>
            </parameter>
          </target>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="code"/>
            <variable value="concept"/>
            <transform value="create"/>
            <parameter>
              <valueString value="CodeableConcept"/>
            </parameter>
          </target>
          <target>
            <context value="concept"/>
            <contextType value="variable"/>
            <element value="coding"/>
            <variable value="coding"/>
            <transform value="create"/>
            <parameter>
              <valueString value="Coding"/>
            </parameter>
          </target>
          <target>
            <context value="coding"/>
            <contextType value="variable"/>
            <element value="system"/>
            <transform value="copy"/>
            <parameter>
              <valueString
                           value="https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes"/>
            </parameter>
          </target>
          <target>
            <context value="coding"/>
            <contextType value="variable"/>
            <element value="code"/>
            <transform value="copy"/>
            <parameter>
              <valueString value="Ccc.B22.DE44"/>
            </parameter>
          </target>
        </rule>
        <rule>
          <name value="aae7a11d"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <variable value="itemtimestamp"/>
            <condition value="linkId = 'timestamp'"/>
          </source>
          <rule>
            <name value="7f22f29f"/>
            <source>
              <context value="itemtimestamp"/>
              <element value="answer"/>
              <listMode value="first"/>
              <variable value="atimestamp"/>
            </source>
            <rule>
              <name value="5af77f2c"/>
              <source>
                <context value="atimestamp"/>
                <element value="value"/>
                <variable value="val"/>
              </source>
              <target>
                <context value="tgt"/>
                <contextType value="variable"/>
                <element value="issued"/>
                <transform value="copy"/>
                <parameter>
                  <valueId value="val"/>
                </parameter>
              </target>
            </rule>
          </rule>
        </rule>
        <rule>
          <name value="patient"/>
          <source>
            <context value="src"/>
            <element value="subject"/>
            <variable value="subject"/>
          </source>
          <target>
            <context value="tgt"/>
            <contextType value="variable"/>
            <element value="subject"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="subject"/>
            </parameter>
          </target>
        </rule>
        <rule>
          <name value="53869acc"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B22.DE44') and answer.exists()"/>
          </source>
          <rule>
            <name value="bdab9370"/>
            <source>
              <context value="item"/>
              <element value="answer"/>
              <listMode value="first"/>
              <variable value="a"/>
            </source>
            <rule>
              <name value="final-Cccb22de44"/>
              <source>
                <context value="a"/>
                <condition value="a.value = true"/>
              </source>
              <target>
                <context value="tgt"/>
                <contextType value="variable"/>
                <element value="status"/>
                <transform value="copy"/>
                <parameter>
                  <valueString value="final"/>
                </parameter>
              </target>
              <target>
                <context value="tgt"/>
                <contextType value="variable"/>
                <element value="value"/>
                <transform value="copy"/>
                <parameter>
                  <valueBoolean value="true"/>
                </parameter>
              </target>
            </rule>
            <rule>
              <name value="notfound-Cccb22de44"/>
              <source>
                <context value="a"/>
                <condition value="a.value = false"/>
              </source>
              <target>
                <context value="tgt"/>
                <contextType value="variable"/>
                <element value="status"/>
                <transform value="copy"/>
                <parameter>
                  <valueString value="cancelled"/>
                </parameter>
              </target>
              <target>
                <context value="tgt"/>
                <contextType value="variable"/>
                <element value="value"/>
                <transform value="copy"/>
                <parameter>
                  <valueBoolean value="false"/>
                </parameter>
              </target>
            </rule>
          </rule>
        </rule>
      </group>
    </StructureMap>