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.b6.measurements - XML Representation

Active as of 2026-04-07

Raw xml | Download

    <StructureMap xmlns="http://hl7.org/fhir">
      <id value="Ccc.b6.measurements"/>
      <text>
        <status value="generated"/>
        <div xmlns="http://www.w3.org/1999/xhtml"><pre>map &quot;https://smart.who.int/ccc/StructureMap/Ccc.b6.measurements&quot; = &quot;Ccc.b6.measurements&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.B6.DE01') 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 CccobservationCccb6de01(src, tgt) &quot;7b9e1570&quot;;
          } &quot;9adbf767&quot;;
        } &quot;a36f7a7c&quot;;
      } &quot;5af679c2&quot;;
      src.item first as item where (linkId = 'Ccc.B6.DE04') 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 CccobservationCccb6de04(src, tgt) &quot;67f4a10a&quot;;
          } &quot;0e7daada&quot;;
        } &quot;536a3c54&quot;;
      } &quot;1e7dc3b3&quot;;
      src.item first as item where (linkId = 'Ccc.B6.DE05') 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 CccobservationCccb6de05(src, tgt) &quot;1b781b40&quot;;
          } &quot;b078a223&quot;;
        } &quot;8261a595&quot;;
      } &quot;f69a4aa0&quot;;
      src.item first as item where (linkId = 'Ccc.B6.DE01A') 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 CccobservationCccb6de01a(src, tgt) &quot;12e03591&quot;;
          } &quot;ce53c93f&quot;;
        } &quot;b254b7a3&quot;;
      } &quot;75778e5d&quot;;
      src.item first as item where (linkId = 'Ccc.B6.DE06') 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 CccobservationCccb6de06(src, tgt) &quot;12cee51c&quot;;
          } &quot;2efb0b06&quot;;
        } &quot;b561f2d8&quot;;
      } &quot;a4bb9383&quot;;
      src.item first as item where (linkId = 'Ccc.B6.DE08') 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 CccobservationCccb6de08(src, tgt) &quot;6bb35e76&quot;;
          } &quot;eb449882&quot;;
        } &quot;e71738d1&quot;;
      } &quot;b739680e&quot;;
      src.item first as itm1 where linkId = 'HeightOrLength' then {
        itm1.item first as item where (linkId = 'Ccc.B6.DE09') 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 CccobservationCccb6de09(src, tgt) &quot;266493b1&quot;;
            } &quot;2f726482&quot;;
          } &quot;6e52b729&quot;;
        } &quot;8eeae5c7&quot;;
      } &quot;b0d72fdc&quot;;
      src.item first as itm1 where linkId = 'HeightOrLength' then {
        itm1.item first as item where (linkId = 'Ccc.B6.DE11') 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 CccobservationCccb6de11(src, tgt) &quot;561b6a20&quot;;
            } &quot;e820b17c&quot;;
          } &quot;083c0960&quot;;
        } &quot;89d9cbf4&quot;;
      } &quot;407446d8&quot;;
      src.item first as itm1 where linkId = 'HeightOrLength' then {
        itm1.item first as item where (linkId = 'Ccc.B6.DE12') 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 CccobservationCccb6de12(src, tgt) &quot;68ca10f0&quot;;
            } &quot;c5484336&quot;;
          } &quot;36f4bed7&quot;;
        } &quot;af843ed1&quot;;
      } &quot;3eece966&quot;;
      src.item first as itm1 where linkId = 'HeightOrLength' then {
        itm1.item first as item where (linkId = 'Ccc.B6.DE16') 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 CccobservationCccb6de16(src, tgt) &quot;e096bb18&quot;;
            } &quot;bd26fdf7&quot;;
          } &quot;6699c1df&quot;;
        } &quot;22423885&quot;;
      } &quot;f65b099d&quot;;
      src.item first as itm1 where linkId = 'HeightOrLength' then {
        itm1.item first as item where (linkId = 'Ccc.B6.DE17') 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 CccobservationCccb6de17(src, tgt) &quot;ba2a3c82&quot;;
            } &quot;e7d4b396&quot;;
          } &quot;5b9abbd1&quot;;
        } &quot;69c61b5c&quot;;
      } &quot;ec872a8f&quot;;
      src.item first as itm1 where linkId = 'HeightOrLength' then {
        itm1.item first as item where (linkId = 'Ccc.B6.DE17a') 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 CccobservationCccb6de17a(src, tgt) &quot;7bc3b5ea&quot;;
            } &quot;5622cb01&quot;;
          } &quot;d4830ac3&quot;;
        } &quot;75bc4091&quot;;
      } &quot;40e94db6&quot;;
      src.item first as itm1 where linkId = 'HeightOrLength' then {
        itm1.item first as item where (linkId = 'Ccc.B6.DE18') 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 CccobservationCccb6de18(src, tgt) &quot;307489c1&quot;;
            } &quot;e8491d3e&quot;;
          } &quot;9e7c1f1c&quot;;
        } &quot;4570d962&quot;;
      } &quot;f83a9a0e&quot;;
    }

    group CccobservationCccb6de01(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-Cccb6de01&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.B6.DE01' &quot;code-Cccb6de01&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.B6.DE01') and answer.exists() then {
        item.answer first as a then {
          a.value as val -&gt;  tgt.value = val,  tgt.status = 'final' &quot;afa0ccc0&quot;;
        } &quot;d40466ff&quot;;
      } &quot;74f627a9&quot;;
    }

    group CccobservationCccb6de04(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-Cccb6de04&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.B6.DE04' &quot;code-Cccb6de04&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.B6.DE04') 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;a27d71d0&quot;;
    }

    group CccobservationCccb6de05(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-Cccb6de05&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.B6.DE05' &quot;code-Cccb6de05&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.B6.DE05') and answer.exists() then {
        item.answer first as a then {
          a where a.value = true -&gt;  tgt.status = 'final',  tgt.value = true &quot;final-Cccb6de05&quot;;
          a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;notfound-Cccb6de05&quot;;
        } &quot;bdab9370&quot;;
      } &quot;fe4a3fce&quot;;
    }

    group CccobservationCccb6de01a(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-Cccb6de01a&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.B6.DE01A' &quot;code-Cccb6de01a&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.B6.DE01A') and answer.exists() then {
        item.answer first as a then {
          a.value as val then {
            val -&gt;  tgt.value = create('CodeableConcept') as cc,  cc.coding = create('Coding') as c,  c.code = val,  c.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes',  tgt.status = 'final' &quot;759a9a54&quot;;
          } &quot;1b820ab0&quot;;
        } &quot;d39f9088&quot;;
      } &quot;a471ce48&quot;;
    }

    group CccobservationCccb6de06(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-Cccb6de06&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.B6.DE06' &quot;code-Cccb6de06&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.B6.DE06') and answer.exists() then {
        item.answer first as a then {
          a.value as val -&gt;  tgt.value = val,  tgt.status = 'final' &quot;afa0ccc0&quot;;
        } &quot;d40466ff&quot;;
      } &quot;39925fe2&quot;;
    }

    group CccobservationCccb6de08(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-Cccb6de08&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.B6.DE08' &quot;code-Cccb6de08&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.B6.DE08') and answer.exists() then {
        item.answer first as a then {
          a.value as val -&gt;  tgt.value = val,  tgt.status = 'final' &quot;afa0ccc0&quot;;
        } &quot;d40466ff&quot;;
      } &quot;dc896557&quot;;
    }

    group CccobservationCccb6de09(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-Cccb6de09&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.B6.DE09' &quot;code-Cccb6de09&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 itm1 where linkId = 'HeightOrLength' then {
        itm1.item first as item where (linkId = 'Ccc.B6.DE09') and answer.exists() then {
          item.answer first as a then {
            a.value as val -&gt;  tgt.value = val,  tgt.status = 'final' &quot;afa0ccc0&quot;;
          } &quot;d40466ff&quot;;
        } &quot;589bbaf1&quot;;
      } &quot;a045bbd4&quot;;
    }

    group CccobservationCccb6de11(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-Cccb6de11&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.B6.DE11' &quot;code-Cccb6de11&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 itm1 where linkId = 'HeightOrLength' then {
        itm1.item first as item where (linkId = 'Ccc.B6.DE11') 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;d64ae780&quot;;
      } &quot;9a6a0b00&quot;;
    }

    group CccobservationCccb6de12(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-Cccb6de12&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.B6.DE12' &quot;code-Cccb6de12&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 itm1 where linkId = 'HeightOrLength' then {
        itm1.item first as item where (linkId = 'Ccc.B6.DE12') and answer.exists() then {
          item.answer first as a then {
            a.value as val -&gt;  tgt.value = val,  tgt.status = 'final' &quot;afa0ccc0&quot;;
          } &quot;d40466ff&quot;;
        } &quot;c68f5944&quot;;
      } &quot;145f1ff6&quot;;
    }

    group CccobservationCccb6de16(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-Cccb6de16&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.B6.DE16' &quot;code-Cccb6de16&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 itm1 where linkId = 'HeightOrLength' then {
        itm1.item first as item where (linkId = 'Ccc.B6.DE16') and answer.exists() then {
          item.answer first as a then {
            a where a.value = true -&gt;  tgt.status = 'final',  tgt.value = true &quot;final-Cccb6de16&quot;;
            a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;notfound-Cccb6de16&quot;;
          } &quot;bdab9370&quot;;
        } &quot;c4642432&quot;;
      } &quot;8e8f1cd4&quot;;
    }

    group CccobservationCccb6de17(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-Cccb6de17&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.B6.DE17' &quot;code-Cccb6de17&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 itm1 where linkId = 'HeightOrLength' then {
        itm1.item first as item where (linkId = 'Ccc.B6.DE17') and answer.exists() then {
          item.answer first as a then {
            a.value as val -&gt;  tgt.value = val,  tgt.status = 'final' &quot;afa0ccc0&quot;;
          } &quot;d40466ff&quot;;
        } &quot;66a9743a&quot;;
      } &quot;b27154a0&quot;;
    }

    group CccobservationCccb6de17a(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-Cccb6de17a&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.B6.DE17a' &quot;code-Cccb6de17a&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 itm1 where linkId = 'HeightOrLength' then {
        itm1.item first as item where (linkId = 'Ccc.B6.DE17a') 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;a25ca60a&quot;;
      } &quot;04002c97&quot;;
    }

    group CccobservationCccb6de18(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-Cccb6de18&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.B6.DE18' &quot;code-Cccb6de18&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 itm1 where linkId = 'HeightOrLength' then {
        itm1.item first as item where (linkId = 'Ccc.B6.DE18') and answer.exists() then {
          item.answer first as a then {
            a.value as val then {
              val where val.code = 'none' -&gt; tgt.swrapin_entry_createtatus = 'cancelled' &quot;d0a13fda&quot;;
              val where val.code != 'none' -&gt;  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' &quot;a1050460&quot;;
            } &quot;310f4b1f&quot;;
          } &quot;6af9bfcc&quot;;
        } &quot;a14ebcf7&quot;;
      } &quot;72053a9a&quot;;
    }

    </pre></div>
      </text>
      <url value="https://smart.who.int/ccc/StructureMap/Ccc.b6.measurements"/>
      <version value="0.1.0"/>
      <name value="Ccc.b6.measurements"/>
      <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="5af679c2"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B6.DE01') and answer.exists()"/>
          </source>
          <rule>
            <name value="a36f7a7c"/>
            <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="9adbf767"/>
              <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="7b9e1570"/>
                <source>
                  <context value="src"/>
                </source>
                <target>
                  <contextType value="variable"/>
                  <transform value="copy"/>
                  <parameter>
                    <valueId value="tgt"/>
                  </parameter>
                </target>
                <dependent>
                  <name value="CccobservationCccb6de01"/>
                  <variable value="src"/>
                  <variable value="tgt"/>
                </dependent>
              </rule>
            </rule>
          </rule>
        </rule>
        <rule>
          <name value="1e7dc3b3"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B6.DE04') and answer.exists()"/>
          </source>
          <rule>
            <name value="536a3c54"/>
            <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="0e7daada"/>
              <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="67f4a10a"/>
                <source>
                  <context value="src"/>
                </source>
                <target>
                  <contextType value="variable"/>
                  <transform value="copy"/>
                  <parameter>
                    <valueId value="tgt"/>
                  </parameter>
                </target>
                <dependent>
                  <name value="CccobservationCccb6de04"/>
                  <variable value="src"/>
                  <variable value="tgt"/>
                </dependent>
              </rule>
            </rule>
          </rule>
        </rule>
        <rule>
          <name value="f69a4aa0"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B6.DE05') and answer.exists()"/>
          </source>
          <rule>
            <name value="8261a595"/>
            <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="b078a223"/>
              <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="1b781b40"/>
                <source>
                  <context value="src"/>
                </source>
                <target>
                  <contextType value="variable"/>
                  <transform value="copy"/>
                  <parameter>
                    <valueId value="tgt"/>
                  </parameter>
                </target>
                <dependent>
                  <name value="CccobservationCccb6de05"/>
                  <variable value="src"/>
                  <variable value="tgt"/>
                </dependent>
              </rule>
            </rule>
          </rule>
        </rule>
        <rule>
          <name value="75778e5d"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B6.DE01A') and answer.exists()"/>
          </source>
          <rule>
            <name value="b254b7a3"/>
            <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="ce53c93f"/>
              <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="12e03591"/>
                <source>
                  <context value="src"/>
                </source>
                <target>
                  <contextType value="variable"/>
                  <transform value="copy"/>
                  <parameter>
                    <valueId value="tgt"/>
                  </parameter>
                </target>
                <dependent>
                  <name value="CccobservationCccb6de01a"/>
                  <variable value="src"/>
                  <variable value="tgt"/>
                </dependent>
              </rule>
            </rule>
          </rule>
        </rule>
        <rule>
          <name value="a4bb9383"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B6.DE06') and answer.exists()"/>
          </source>
          <rule>
            <name value="b561f2d8"/>
            <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="2efb0b06"/>
              <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="12cee51c"/>
                <source>
                  <context value="src"/>
                </source>
                <target>
                  <contextType value="variable"/>
                  <transform value="copy"/>
                  <parameter>
                    <valueId value="tgt"/>
                  </parameter>
                </target>
                <dependent>
                  <name value="CccobservationCccb6de06"/>
                  <variable value="src"/>
                  <variable value="tgt"/>
                </dependent>
              </rule>
            </rule>
          </rule>
        </rule>
        <rule>
          <name value="b739680e"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B6.DE08') and answer.exists()"/>
          </source>
          <rule>
            <name value="e71738d1"/>
            <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="eb449882"/>
              <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="6bb35e76"/>
                <source>
                  <context value="src"/>
                </source>
                <target>
                  <contextType value="variable"/>
                  <transform value="copy"/>
                  <parameter>
                    <valueId value="tgt"/>
                  </parameter>
                </target>
                <dependent>
                  <name value="CccobservationCccb6de08"/>
                  <variable value="src"/>
                  <variable value="tgt"/>
                </dependent>
              </rule>
            </rule>
          </rule>
        </rule>
        <rule>
          <name value="b0d72fdc"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="itm1"/>
            <condition value="linkId = 'HeightOrLength'"/>
          </source>
          <rule>
            <name value="8eeae5c7"/>
            <source>
              <context value="itm1"/>
              <element value="item"/>
              <listMode value="first"/>
              <variable value="item"/>
              <condition value="(linkId = 'Ccc.B6.DE09') and answer.exists()"/>
            </source>
            <rule>
              <name value="6e52b729"/>
              <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="2f726482"/>
                <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="266493b1"/>
                  <source>
                    <context value="src"/>
                  </source>
                  <target>
                    <contextType value="variable"/>
                    <transform value="copy"/>
                    <parameter>
                      <valueId value="tgt"/>
                    </parameter>
                  </target>
                  <dependent>
                    <name value="CccobservationCccb6de09"/>
                    <variable value="src"/>
                    <variable value="tgt"/>
                  </dependent>
                </rule>
              </rule>
            </rule>
          </rule>
        </rule>
        <rule>
          <name value="407446d8"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="itm1"/>
            <condition value="linkId = 'HeightOrLength'"/>
          </source>
          <rule>
            <name value="89d9cbf4"/>
            <source>
              <context value="itm1"/>
              <element value="item"/>
              <listMode value="first"/>
              <variable value="item"/>
              <condition value="(linkId = 'Ccc.B6.DE11') and answer.exists()"/>
            </source>
            <rule>
              <name value="083c0960"/>
              <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="e820b17c"/>
                <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="561b6a20"/>
                  <source>
                    <context value="src"/>
                  </source>
                  <target>
                    <contextType value="variable"/>
                    <transform value="copy"/>
                    <parameter>
                      <valueId value="tgt"/>
                    </parameter>
                  </target>
                  <dependent>
                    <name value="CccobservationCccb6de11"/>
                    <variable value="src"/>
                    <variable value="tgt"/>
                  </dependent>
                </rule>
              </rule>
            </rule>
          </rule>
        </rule>
        <rule>
          <name value="3eece966"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="itm1"/>
            <condition value="linkId = 'HeightOrLength'"/>
          </source>
          <rule>
            <name value="af843ed1"/>
            <source>
              <context value="itm1"/>
              <element value="item"/>
              <listMode value="first"/>
              <variable value="item"/>
              <condition value="(linkId = 'Ccc.B6.DE12') and answer.exists()"/>
            </source>
            <rule>
              <name value="36f4bed7"/>
              <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="c5484336"/>
                <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="68ca10f0"/>
                  <source>
                    <context value="src"/>
                  </source>
                  <target>
                    <contextType value="variable"/>
                    <transform value="copy"/>
                    <parameter>
                      <valueId value="tgt"/>
                    </parameter>
                  </target>
                  <dependent>
                    <name value="CccobservationCccb6de12"/>
                    <variable value="src"/>
                    <variable value="tgt"/>
                  </dependent>
                </rule>
              </rule>
            </rule>
          </rule>
        </rule>
        <rule>
          <name value="f65b099d"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="itm1"/>
            <condition value="linkId = 'HeightOrLength'"/>
          </source>
          <rule>
            <name value="22423885"/>
            <source>
              <context value="itm1"/>
              <element value="item"/>
              <listMode value="first"/>
              <variable value="item"/>
              <condition value="(linkId = 'Ccc.B6.DE16') and answer.exists()"/>
            </source>
            <rule>
              <name value="6699c1df"/>
              <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="bd26fdf7"/>
                <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="e096bb18"/>
                  <source>
                    <context value="src"/>
                  </source>
                  <target>
                    <contextType value="variable"/>
                    <transform value="copy"/>
                    <parameter>
                      <valueId value="tgt"/>
                    </parameter>
                  </target>
                  <dependent>
                    <name value="CccobservationCccb6de16"/>
                    <variable value="src"/>
                    <variable value="tgt"/>
                  </dependent>
                </rule>
              </rule>
            </rule>
          </rule>
        </rule>
        <rule>
          <name value="ec872a8f"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="itm1"/>
            <condition value="linkId = 'HeightOrLength'"/>
          </source>
          <rule>
            <name value="69c61b5c"/>
            <source>
              <context value="itm1"/>
              <element value="item"/>
              <listMode value="first"/>
              <variable value="item"/>
              <condition value="(linkId = 'Ccc.B6.DE17') and answer.exists()"/>
            </source>
            <rule>
              <name value="5b9abbd1"/>
              <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="e7d4b396"/>
                <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="ba2a3c82"/>
                  <source>
                    <context value="src"/>
                  </source>
                  <target>
                    <contextType value="variable"/>
                    <transform value="copy"/>
                    <parameter>
                      <valueId value="tgt"/>
                    </parameter>
                  </target>
                  <dependent>
                    <name value="CccobservationCccb6de17"/>
                    <variable value="src"/>
                    <variable value="tgt"/>
                  </dependent>
                </rule>
              </rule>
            </rule>
          </rule>
        </rule>
        <rule>
          <name value="40e94db6"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="itm1"/>
            <condition value="linkId = 'HeightOrLength'"/>
          </source>
          <rule>
            <name value="75bc4091"/>
            <source>
              <context value="itm1"/>
              <element value="item"/>
              <listMode value="first"/>
              <variable value="item"/>
              <condition value="(linkId = 'Ccc.B6.DE17a') and answer.exists()"/>
            </source>
            <rule>
              <name value="d4830ac3"/>
              <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="5622cb01"/>
                <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="7bc3b5ea"/>
                  <source>
                    <context value="src"/>
                  </source>
                  <target>
                    <contextType value="variable"/>
                    <transform value="copy"/>
                    <parameter>
                      <valueId value="tgt"/>
                    </parameter>
                  </target>
                  <dependent>
                    <name value="CccobservationCccb6de17a"/>
                    <variable value="src"/>
                    <variable value="tgt"/>
                  </dependent>
                </rule>
              </rule>
            </rule>
          </rule>
        </rule>
        <rule>
          <name value="f83a9a0e"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="itm1"/>
            <condition value="linkId = 'HeightOrLength'"/>
          </source>
          <rule>
            <name value="4570d962"/>
            <source>
              <context value="itm1"/>
              <element value="item"/>
              <listMode value="first"/>
              <variable value="item"/>
              <condition value="(linkId = 'Ccc.B6.DE18') and answer.exists()"/>
            </source>
            <rule>
              <name value="9e7c1f1c"/>
              <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="e8491d3e"/>
                <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="307489c1"/>
                  <source>
                    <context value="src"/>
                  </source>
                  <target>
                    <contextType value="variable"/>
                    <transform value="copy"/>
                    <parameter>
                      <valueId value="tgt"/>
                    </parameter>
                  </target>
                  <dependent>
                    <name value="CccobservationCccb6de18"/>
                    <variable value="src"/>
                    <variable value="tgt"/>
                  </dependent>
                </rule>
              </rule>
            </rule>
          </rule>
        </rule>
      </group>
      <group>
        <name value="CccobservationCccb6de01"/>
        <typeMode value="none"/>
        <input>
          <name value="src"/>
          <mode value="source"/>
        </input>
        <input>
          <name value="tgt"/>
          <mode value="target"/>
        </input>
        <rule>
          <name value="id-Cccb6de01"/>
          <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-Cccb6de01"/>
          <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.B6.DE01"/>
            </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="74f627a9"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B6.DE01') and answer.exists()"/>
          </source>
          <rule>
            <name value="d40466ff"/>
            <source>
              <context value="item"/>
              <element value="answer"/>
              <listMode value="first"/>
              <variable value="a"/>
            </source>
            <rule>
              <name value="afa0ccc0"/>
              <source>
                <context value="a"/>
                <element value="value"/>
                <variable value="val"/>
              </source>
              <target>
                <context value="tgt"/>
                <contextType value="variable"/>
                <element value="value"/>
                <transform value="copy"/>
                <parameter>
                  <valueId value="val"/>
                </parameter>
              </target>
              <target>
                <context value="tgt"/>
                <contextType value="variable"/>
                <element value="status"/>
                <transform value="copy"/>
                <parameter>
                  <valueString value="final"/>
                </parameter>
              </target>
            </rule>
          </rule>
        </rule>
      </group>
      <group>
        <name value="CccobservationCccb6de04"/>
        <typeMode value="none"/>
        <input>
          <name value="src"/>
          <mode value="source"/>
        </input>
        <input>
          <name value="tgt"/>
          <mode value="target"/>
        </input>
        <rule>
          <name value="id-Cccb6de04"/>
          <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-Cccb6de04"/>
          <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.B6.DE04"/>
            </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="a27d71d0"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B6.DE04') 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="CccobservationCccb6de05"/>
        <typeMode value="none"/>
        <input>
          <name value="src"/>
          <mode value="source"/>
        </input>
        <input>
          <name value="tgt"/>
          <mode value="target"/>
        </input>
        <rule>
          <name value="id-Cccb6de05"/>
          <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-Cccb6de05"/>
          <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.B6.DE05"/>
            </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="fe4a3fce"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B6.DE05') 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-Cccb6de05"/>
              <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-Cccb6de05"/>
              <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="CccobservationCccb6de01a"/>
        <typeMode value="none"/>
        <input>
          <name value="src"/>
          <mode value="source"/>
        </input>
        <input>
          <name value="tgt"/>
          <mode value="target"/>
        </input>
        <rule>
          <name value="id-Cccb6de01a"/>
          <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-Cccb6de01a"/>
          <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.B6.DE01A"/>
            </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="a471ce48"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B6.DE01A') and answer.exists()"/>
          </source>
          <rule>
            <name value="d39f9088"/>
            <source>
              <context value="item"/>
              <element value="answer"/>
              <listMode value="first"/>
              <variable value="a"/>
            </source>
            <rule>
              <name value="1b820ab0"/>
              <source>
                <context value="a"/>
                <element value="value"/>
                <variable value="val"/>
              </source>
              <rule>
                <name value="759a9a54"/>
                <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="val"/>
                  </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="CccobservationCccb6de06"/>
        <typeMode value="none"/>
        <input>
          <name value="src"/>
          <mode value="source"/>
        </input>
        <input>
          <name value="tgt"/>
          <mode value="target"/>
        </input>
        <rule>
          <name value="id-Cccb6de06"/>
          <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-Cccb6de06"/>
          <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.B6.DE06"/>
            </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="39925fe2"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B6.DE06') and answer.exists()"/>
          </source>
          <rule>
            <name value="d40466ff"/>
            <source>
              <context value="item"/>
              <element value="answer"/>
              <listMode value="first"/>
              <variable value="a"/>
            </source>
            <rule>
              <name value="afa0ccc0"/>
              <source>
                <context value="a"/>
                <element value="value"/>
                <variable value="val"/>
              </source>
              <target>
                <context value="tgt"/>
                <contextType value="variable"/>
                <element value="value"/>
                <transform value="copy"/>
                <parameter>
                  <valueId value="val"/>
                </parameter>
              </target>
              <target>
                <context value="tgt"/>
                <contextType value="variable"/>
                <element value="status"/>
                <transform value="copy"/>
                <parameter>
                  <valueString value="final"/>
                </parameter>
              </target>
            </rule>
          </rule>
        </rule>
      </group>
      <group>
        <name value="CccobservationCccb6de08"/>
        <typeMode value="none"/>
        <input>
          <name value="src"/>
          <mode value="source"/>
        </input>
        <input>
          <name value="tgt"/>
          <mode value="target"/>
        </input>
        <rule>
          <name value="id-Cccb6de08"/>
          <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-Cccb6de08"/>
          <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.B6.DE08"/>
            </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="dc896557"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B6.DE08') and answer.exists()"/>
          </source>
          <rule>
            <name value="d40466ff"/>
            <source>
              <context value="item"/>
              <element value="answer"/>
              <listMode value="first"/>
              <variable value="a"/>
            </source>
            <rule>
              <name value="afa0ccc0"/>
              <source>
                <context value="a"/>
                <element value="value"/>
                <variable value="val"/>
              </source>
              <target>
                <context value="tgt"/>
                <contextType value="variable"/>
                <element value="value"/>
                <transform value="copy"/>
                <parameter>
                  <valueId value="val"/>
                </parameter>
              </target>
              <target>
                <context value="tgt"/>
                <contextType value="variable"/>
                <element value="status"/>
                <transform value="copy"/>
                <parameter>
                  <valueString value="final"/>
                </parameter>
              </target>
            </rule>
          </rule>
        </rule>
      </group>
      <group>
        <name value="CccobservationCccb6de09"/>
        <typeMode value="none"/>
        <input>
          <name value="src"/>
          <mode value="source"/>
        </input>
        <input>
          <name value="tgt"/>
          <mode value="target"/>
        </input>
        <rule>
          <name value="id-Cccb6de09"/>
          <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-Cccb6de09"/>
          <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.B6.DE09"/>
            </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="a045bbd4"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="itm1"/>
            <condition value="linkId = 'HeightOrLength'"/>
          </source>
          <rule>
            <name value="589bbaf1"/>
            <source>
              <context value="itm1"/>
              <element value="item"/>
              <listMode value="first"/>
              <variable value="item"/>
              <condition value="(linkId = 'Ccc.B6.DE09') and answer.exists()"/>
            </source>
            <rule>
              <name value="d40466ff"/>
              <source>
                <context value="item"/>
                <element value="answer"/>
                <listMode value="first"/>
                <variable value="a"/>
              </source>
              <rule>
                <name value="afa0ccc0"/>
                <source>
                  <context value="a"/>
                  <element value="value"/>
                  <variable value="val"/>
                </source>
                <target>
                  <context value="tgt"/>
                  <contextType value="variable"/>
                  <element value="value"/>
                  <transform value="copy"/>
                  <parameter>
                    <valueId value="val"/>
                  </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="CccobservationCccb6de11"/>
        <typeMode value="none"/>
        <input>
          <name value="src"/>
          <mode value="source"/>
        </input>
        <input>
          <name value="tgt"/>
          <mode value="target"/>
        </input>
        <rule>
          <name value="id-Cccb6de11"/>
          <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-Cccb6de11"/>
          <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.B6.DE11"/>
            </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="9a6a0b00"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="itm1"/>
            <condition value="linkId = 'HeightOrLength'"/>
          </source>
          <rule>
            <name value="d64ae780"/>
            <source>
              <context value="itm1"/>
              <element value="item"/>
              <listMode value="first"/>
              <variable value="item"/>
              <condition value="(linkId = 'Ccc.B6.DE11') 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>
        </rule>
      </group>
      <group>
        <name value="CccobservationCccb6de12"/>
        <typeMode value="none"/>
        <input>
          <name value="src"/>
          <mode value="source"/>
        </input>
        <input>
          <name value="tgt"/>
          <mode value="target"/>
        </input>
        <rule>
          <name value="id-Cccb6de12"/>
          <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-Cccb6de12"/>
          <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.B6.DE12"/>
            </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="145f1ff6"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="itm1"/>
            <condition value="linkId = 'HeightOrLength'"/>
          </source>
          <rule>
            <name value="c68f5944"/>
            <source>
              <context value="itm1"/>
              <element value="item"/>
              <listMode value="first"/>
              <variable value="item"/>
              <condition value="(linkId = 'Ccc.B6.DE12') and answer.exists()"/>
            </source>
            <rule>
              <name value="d40466ff"/>
              <source>
                <context value="item"/>
                <element value="answer"/>
                <listMode value="first"/>
                <variable value="a"/>
              </source>
              <rule>
                <name value="afa0ccc0"/>
                <source>
                  <context value="a"/>
                  <element value="value"/>
                  <variable value="val"/>
                </source>
                <target>
                  <context value="tgt"/>
                  <contextType value="variable"/>
                  <element value="value"/>
                  <transform value="copy"/>
                  <parameter>
                    <valueId value="val"/>
                  </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="CccobservationCccb6de16"/>
        <typeMode value="none"/>
        <input>
          <name value="src"/>
          <mode value="source"/>
        </input>
        <input>
          <name value="tgt"/>
          <mode value="target"/>
        </input>
        <rule>
          <name value="id-Cccb6de16"/>
          <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-Cccb6de16"/>
          <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.B6.DE16"/>
            </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="8e8f1cd4"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="itm1"/>
            <condition value="linkId = 'HeightOrLength'"/>
          </source>
          <rule>
            <name value="c4642432"/>
            <source>
              <context value="itm1"/>
              <element value="item"/>
              <listMode value="first"/>
              <variable value="item"/>
              <condition value="(linkId = 'Ccc.B6.DE16') 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-Cccb6de16"/>
                <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-Cccb6de16"/>
                <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>
        </rule>
      </group>
      <group>
        <name value="CccobservationCccb6de17"/>
        <typeMode value="none"/>
        <input>
          <name value="src"/>
          <mode value="source"/>
        </input>
        <input>
          <name value="tgt"/>
          <mode value="target"/>
        </input>
        <rule>
          <name value="id-Cccb6de17"/>
          <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-Cccb6de17"/>
          <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.B6.DE17"/>
            </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="b27154a0"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="itm1"/>
            <condition value="linkId = 'HeightOrLength'"/>
          </source>
          <rule>
            <name value="66a9743a"/>
            <source>
              <context value="itm1"/>
              <element value="item"/>
              <listMode value="first"/>
              <variable value="item"/>
              <condition value="(linkId = 'Ccc.B6.DE17') and answer.exists()"/>
            </source>
            <rule>
              <name value="d40466ff"/>
              <source>
                <context value="item"/>
                <element value="answer"/>
                <listMode value="first"/>
                <variable value="a"/>
              </source>
              <rule>
                <name value="afa0ccc0"/>
                <source>
                  <context value="a"/>
                  <element value="value"/>
                  <variable value="val"/>
                </source>
                <target>
                  <context value="tgt"/>
                  <contextType value="variable"/>
                  <element value="value"/>
                  <transform value="copy"/>
                  <parameter>
                    <valueId value="val"/>
                  </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="CccobservationCccb6de17a"/>
        <typeMode value="none"/>
        <input>
          <name value="src"/>
          <mode value="source"/>
        </input>
        <input>
          <name value="tgt"/>
          <mode value="target"/>
        </input>
        <rule>
          <name value="id-Cccb6de17a"/>
          <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-Cccb6de17a"/>
          <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.B6.DE17a"/>
            </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="04002c97"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="itm1"/>
            <condition value="linkId = 'HeightOrLength'"/>
          </source>
          <rule>
            <name value="a25ca60a"/>
            <source>
              <context value="itm1"/>
              <element value="item"/>
              <listMode value="first"/>
              <variable value="item"/>
              <condition value="(linkId = 'Ccc.B6.DE17a') 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>
        </rule>
      </group>
      <group>
        <name value="CccobservationCccb6de18"/>
        <typeMode value="none"/>
        <input>
          <name value="src"/>
          <mode value="source"/>
        </input>
        <input>
          <name value="tgt"/>
          <mode value="target"/>
        </input>
        <rule>
          <name value="id-Cccb6de18"/>
          <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-Cccb6de18"/>
          <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.B6.DE18"/>
            </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="72053a9a"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="itm1"/>
            <condition value="linkId = 'HeightOrLength'"/>
          </source>
          <rule>
            <name value="a14ebcf7"/>
            <source>
              <context value="itm1"/>
              <element value="item"/>
              <listMode value="first"/>
              <variable value="item"/>
              <condition value="(linkId = 'Ccc.B6.DE18') and answer.exists()"/>
            </source>
            <rule>
              <name value="6af9bfcc"/>
              <source>
                <context value="item"/>
                <element value="answer"/>
                <listMode value="first"/>
                <variable value="a"/>
              </source>
              <rule>
                <name value="310f4b1f"/>
                <source>
                  <context value="a"/>
                  <element value="value"/>
                  <variable value="val"/>
                </source>
                <rule>
                  <name value="d0a13fda"/>
                  <source>
                    <context value="val"/>
                    <condition value="val.code = 'none'"/>
                  </source>
                  <target>
                    <context value="tgt"/>
                    <contextType value="variable"/>
                    <element value="swrapin_entry_createtatus"/>
                    <transform value="copy"/>
                    <parameter>
                      <valueString value="cancelled"/>
                    </parameter>
                  </target>
                </rule>
                <rule>
                  <name value="a1050460"/>
                  <source>
                    <context value="val"/>
                    <condition value="val.code != 'none'"/>
                  </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"/>
                    <transform value="copy"/>
                    <parameter>
                      <valueId value="val"/>
                    </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>
        </rule>
      </group>
    </StructureMap>