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.b10-14.symptoms.2m.p - XML Representation

Active as of 2026-04-07

Raw xml | Download

    <StructureMap xmlns="http://hl7.org/fhir">
      <id value="Ccc.b10-14.symptoms.2m.p"/>
      <text>
        <status value="generated"/>
        <div xmlns="http://www.w3.org/1999/xhtml"><pre>map &quot;https://smart.who.int/ccc/StructureMap/Ccc.b10-14.symptoms.2m.p&quot; = &quot;Ccc.b10-14.symptoms.2m.p&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.B10S1.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 CccobservationCccb10s1de05(src, tgt) &quot;d130047c&quot;;
          } &quot;56a76d73&quot;;
        } &quot;79141fc8&quot;;
      } &quot;08fbbbd7&quot;;
      src.item first as item where (linkId = 'Ccc.B10S1.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 CccobservationCccb10s1de06(src, tgt) &quot;008a3623&quot;;
          } &quot;d784044d&quot;;
        } &quot;805abc9e&quot;;
      } &quot;446767cc&quot;;
      src.item first as item where (linkId = 'Ccc.B10S1.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 CccobservationCccb10s1de01(src, tgt) &quot;04d8e898&quot;;
          } &quot;b2d824f5&quot;;
        } &quot;0d7d74bd&quot;;
      } &quot;dd9bd984&quot;;
      src.item first as item where (linkId = 'Ccc.B10S1.DE02') 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 CccobservationCccb10s1de02(src, tgt) &quot;d90e5fb1&quot;;
          } &quot;5cae2191&quot;;
        } &quot;ab1692fb&quot;;
      } &quot;119f6765&quot;;
      src.item first as item where (linkId = 'Ccc.B11S1.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 CccobservationCccb11s1de01(src, tgt) &quot;43d4af59&quot;;
          } &quot;bfd970ae&quot;;
        } &quot;b8eb69b0&quot;;
      } &quot;e1f73648&quot;;
      src.item first as item where (linkId = 'Ccc.B11S1.DE02') 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 CccobservationCccb11s1de02(src, tgt) &quot;39c1737c&quot;;
          } &quot;891a881e&quot;;
        } &quot;6e6d1885&quot;;
      } &quot;a9e046d7&quot;;
      src.item first as item where (linkId = 'Ccc.B11S1.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 CccobservationCccb11s1de05(src, tgt) &quot;1721269a&quot;;
          } &quot;c1e233d8&quot;;
        } &quot;c6a3d5c5&quot;;
      } &quot;e17a9583&quot;;
      src.item first as item where (linkId = 'Ccc.B12S1.DE02') 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 CccobservationCccb12s1de02(src, tgt) &quot;df55b281&quot;;
          } &quot;0a52cb1c&quot;;
        } &quot;1593137e&quot;;
      } &quot;744c4bf9&quot;;
      src.item first as item where (linkId = 'Ccc.B12S1.DE03') 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 CccobservationCccb12s1de03(src, tgt) &quot;fc6edbe7&quot;;
          } &quot;5330779a&quot;;
        } &quot;c692777e&quot;;
      } &quot;8d04eb57&quot;;
      src.item first as item where (linkId = 'Ccc.B.G.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 CccobservationCccbgde06(src, tgt) &quot;ca782de1&quot;;
          } &quot;1b87f3fc&quot;;
        } &quot;9ac4a378&quot;;
      } &quot;f72a0439&quot;;
      src.item first as item where (linkId = 'Ccc.B12S1.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 CccobservationCccb12s1de06(src, tgt) &quot;ce301cb0&quot;;
          } &quot;c80f2620&quot;;
        } &quot;27eb1328&quot;;
      } &quot;e6da0780&quot;;
      src.item first as item where (linkId = 'Ccc.B13S1.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 CccobservationCccb13s1de01(src, tgt) &quot;0a3c13d2&quot;;
          } &quot;0ca270e1&quot;;
        } &quot;6e77deb0&quot;;
      } &quot;b8334cd6&quot;;
      src.item first as item where (linkId = 'Ccc.B13S1.DE02') 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 CccobservationCccb13s1de02(src, tgt) &quot;cd788051&quot;;
          } &quot;2c880586&quot;;
        } &quot;50966861&quot;;
      } &quot;78170861&quot;;
      src.item first as item where (linkId = 'Ccc.B13S1.DE03') 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 CccobservationCccb13s1de03(src, tgt) &quot;323bf4ac&quot;;
          } &quot;681ae227&quot;;
        } &quot;b8f4f3f5&quot;;
      } &quot;e5a07dfd&quot;;
      src.item first as item where (linkId = 'Ccc.B13S1.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 CccobservationCccb13s1de04(src, tgt) &quot;28267d58&quot;;
          } &quot;4ea18833&quot;;
        } &quot;82346f75&quot;;
      } &quot;b63e24e4&quot;;
      src.item first as item where (linkId = 'Ccc.B14S1.DE03') 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 CccobservationCccb14s1de03(src, tgt) &quot;ab7fc76a&quot;;
          } &quot;22d8b79e&quot;;
        } &quot;991ff5c6&quot;;
      } &quot;102c5ae9&quot;;
      src.item first as item where (linkId = 'Ccc.B14S1.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 CccobservationCccb14s1de01(src, tgt) &quot;6baaff63&quot;;
          } &quot;f7186bc6&quot;;
        } &quot;19883e88&quot;;
      } &quot;90d2b417&quot;;
      src.item first as item where (linkId = 'Ccc.B14S1.DE02') 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 CccobservationCccb14s1de02(src, tgt) &quot;49187687&quot;;
          } &quot;0063faef&quot;;
        } &quot;7df08969&quot;;
      } &quot;6f9d4b85&quot;;
    }

    group CccobservationCccb10s1de05(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-Cccb10s1de05&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.B10S1.DE05' &quot;code-Cccb10s1de05&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.B10S1.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-Cccb10s1de05&quot;;
          a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;notfound-Cccb10s1de05&quot;;
        } &quot;bdab9370&quot;;
      } &quot;f75f2b05&quot;;
    }

    group CccobservationCccb10s1de06(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-Cccb10s1de06&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.B10S1.DE06' &quot;code-Cccb10s1de06&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.B10S1.DE06') 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;156b25ae&quot;;
    }

    group CccobservationCccb10s1de01(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-Cccb10s1de01&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.B10S1.DE01' &quot;code-Cccb10s1de01&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.B10S1.DE01') and answer.exists() then {
        item.answer first as a then {
          a where a.value = true -&gt;  tgt.status = 'final',  tgt.value = true &quot;final-Cccb10s1de01&quot;;
          a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;notfound-Cccb10s1de01&quot;;
        } &quot;bdab9370&quot;;
      } &quot;1b302dc5&quot;;
    }

    group CccobservationCccb10s1de02(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-Cccb10s1de02&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.B10S1.DE02' &quot;code-Cccb10s1de02&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.B10S1.DE02') 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;84c804e5&quot;;
    }

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

    group CccobservationCccb11s1de02(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-Cccb11s1de02&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.B11S1.DE02' &quot;code-Cccb11s1de02&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.B11S1.DE02') 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;78040096&quot;;
    }

    group CccobservationCccb11s1de05(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-Cccb11s1de05&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.B11S1.DE05' &quot;code-Cccb11s1de05&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.B11S1.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-Cccb11s1de05&quot;;
          a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;notfound-Cccb11s1de05&quot;;
        } &quot;bdab9370&quot;;
      } &quot;999566e5&quot;;
    }

    group CccobservationCccb12s1de02(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-Cccb12s1de02&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.B12S1.DE02' &quot;code-Cccb12s1de02&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.B12S1.DE02') and answer.exists() then {
        item.answer first as a then {
          a where a.value = true -&gt;  tgt.status = 'final',  tgt.value = true &quot;final-Cccb12s1de02&quot;;
          a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;notfound-Cccb12s1de02&quot;;
        } &quot;bdab9370&quot;;
      } &quot;2980a862&quot;;
    }

    group CccobservationCccb12s1de03(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-Cccb12s1de03&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.B12S1.DE03' &quot;code-Cccb12s1de03&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.B12S1.DE03') 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;0684c220&quot;;
    }

    group CccobservationCccbgde06(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-Cccbgde06&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.B.G.DE06' &quot;code-Cccbgde06&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.B.G.DE06') and answer.exists() then {
        item.answer first as a then {
          a where a.value = true -&gt;  tgt.status = 'final',  tgt.value = true &quot;final-Cccbgde06&quot;;
          a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;notfound-Cccbgde06&quot;;
        } &quot;bdab9370&quot;;
      } &quot;d670d189&quot;;
    }

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

    group CccobservationCccb13s1de01(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-Cccb13s1de01&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.B13S1.DE01' &quot;code-Cccb13s1de01&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.B13S1.DE01') and answer.exists() then {
        item.answer first as a then {
          a where a.value = true -&gt;  tgt.status = 'final',  tgt.value = true &quot;final-Cccb13s1de01&quot;;
          a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;notfound-Cccb13s1de01&quot;;
        } &quot;bdab9370&quot;;
      } &quot;61c82b53&quot;;
    }

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

    group CccobservationCccb13s1de03(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-Cccb13s1de03&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.B13S1.DE03' &quot;code-Cccb13s1de03&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.B13S1.DE03') and answer.exists() then {
        item.answer first as a then {
          a where a.value = true -&gt;  tgt.status = 'final',  tgt.value = true &quot;final-Cccb13s1de03&quot;;
          a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;notfound-Cccb13s1de03&quot;;
        } &quot;bdab9370&quot;;
      } &quot;1e1d8c32&quot;;
    }

    group CccobservationCccb13s1de04(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-Cccb13s1de04&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.B13S1.DE04' &quot;code-Cccb13s1de04&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.B13S1.DE04') 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;9fc99c98&quot;;
    }

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

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

    group CccobservationCccb14s1de02(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-Cccb14s1de02&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.B14S1.DE02' &quot;code-Cccb14s1de02&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.B14S1.DE02') and answer.exists() then {
        item.answer first as a then {
          a where a.value = true -&gt;  tgt.status = 'final',  tgt.value = true &quot;final-Cccb14s1de02&quot;;
          a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;notfound-Cccb14s1de02&quot;;
        } &quot;bdab9370&quot;;
      } &quot;9802d7f8&quot;;
    }

    </pre></div>
      </text>
      <url
           value="https://smart.who.int/ccc/StructureMap/Ccc.b10-14.symptoms.2m.p"/>
      <version value="0.1.0"/>
      <name value="Ccc.b10-14.symptoms.2m.p"/>
      <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="08fbbbd7"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B10S1.DE05') and answer.exists()"/>
          </source>
          <rule>
            <name value="79141fc8"/>
            <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="56a76d73"/>
              <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="d130047c"/>
                <source>
                  <context value="src"/>
                </source>
                <target>
                  <contextType value="variable"/>
                  <transform value="copy"/>
                  <parameter>
                    <valueId value="tgt"/>
                  </parameter>
                </target>
                <dependent>
                  <name value="CccobservationCccb10s1de05"/>
                  <variable value="src"/>
                  <variable value="tgt"/>
                </dependent>
              </rule>
            </rule>
          </rule>
        </rule>
        <rule>
          <name value="446767cc"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B10S1.DE06') and answer.exists()"/>
          </source>
          <rule>
            <name value="805abc9e"/>
            <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="d784044d"/>
              <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="008a3623"/>
                <source>
                  <context value="src"/>
                </source>
                <target>
                  <contextType value="variable"/>
                  <transform value="copy"/>
                  <parameter>
                    <valueId value="tgt"/>
                  </parameter>
                </target>
                <dependent>
                  <name value="CccobservationCccb10s1de06"/>
                  <variable value="src"/>
                  <variable value="tgt"/>
                </dependent>
              </rule>
            </rule>
          </rule>
        </rule>
        <rule>
          <name value="dd9bd984"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B10S1.DE01') and answer.exists()"/>
          </source>
          <rule>
            <name value="0d7d74bd"/>
            <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="b2d824f5"/>
              <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="04d8e898"/>
                <source>
                  <context value="src"/>
                </source>
                <target>
                  <contextType value="variable"/>
                  <transform value="copy"/>
                  <parameter>
                    <valueId value="tgt"/>
                  </parameter>
                </target>
                <dependent>
                  <name value="CccobservationCccb10s1de01"/>
                  <variable value="src"/>
                  <variable value="tgt"/>
                </dependent>
              </rule>
            </rule>
          </rule>
        </rule>
        <rule>
          <name value="119f6765"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B10S1.DE02') and answer.exists()"/>
          </source>
          <rule>
            <name value="ab1692fb"/>
            <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="5cae2191"/>
              <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="d90e5fb1"/>
                <source>
                  <context value="src"/>
                </source>
                <target>
                  <contextType value="variable"/>
                  <transform value="copy"/>
                  <parameter>
                    <valueId value="tgt"/>
                  </parameter>
                </target>
                <dependent>
                  <name value="CccobservationCccb10s1de02"/>
                  <variable value="src"/>
                  <variable value="tgt"/>
                </dependent>
              </rule>
            </rule>
          </rule>
        </rule>
        <rule>
          <name value="e1f73648"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B11S1.DE01') and answer.exists()"/>
          </source>
          <rule>
            <name value="b8eb69b0"/>
            <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="bfd970ae"/>
              <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="43d4af59"/>
                <source>
                  <context value="src"/>
                </source>
                <target>
                  <contextType value="variable"/>
                  <transform value="copy"/>
                  <parameter>
                    <valueId value="tgt"/>
                  </parameter>
                </target>
                <dependent>
                  <name value="CccobservationCccb11s1de01"/>
                  <variable value="src"/>
                  <variable value="tgt"/>
                </dependent>
              </rule>
            </rule>
          </rule>
        </rule>
        <rule>
          <name value="a9e046d7"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B11S1.DE02') and answer.exists()"/>
          </source>
          <rule>
            <name value="6e6d1885"/>
            <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="891a881e"/>
              <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="39c1737c"/>
                <source>
                  <context value="src"/>
                </source>
                <target>
                  <contextType value="variable"/>
                  <transform value="copy"/>
                  <parameter>
                    <valueId value="tgt"/>
                  </parameter>
                </target>
                <dependent>
                  <name value="CccobservationCccb11s1de02"/>
                  <variable value="src"/>
                  <variable value="tgt"/>
                </dependent>
              </rule>
            </rule>
          </rule>
        </rule>
        <rule>
          <name value="e17a9583"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B11S1.DE05') and answer.exists()"/>
          </source>
          <rule>
            <name value="c6a3d5c5"/>
            <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="c1e233d8"/>
              <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="1721269a"/>
                <source>
                  <context value="src"/>
                </source>
                <target>
                  <contextType value="variable"/>
                  <transform value="copy"/>
                  <parameter>
                    <valueId value="tgt"/>
                  </parameter>
                </target>
                <dependent>
                  <name value="CccobservationCccb11s1de05"/>
                  <variable value="src"/>
                  <variable value="tgt"/>
                </dependent>
              </rule>
            </rule>
          </rule>
        </rule>
        <rule>
          <name value="744c4bf9"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B12S1.DE02') and answer.exists()"/>
          </source>
          <rule>
            <name value="1593137e"/>
            <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="0a52cb1c"/>
              <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="df55b281"/>
                <source>
                  <context value="src"/>
                </source>
                <target>
                  <contextType value="variable"/>
                  <transform value="copy"/>
                  <parameter>
                    <valueId value="tgt"/>
                  </parameter>
                </target>
                <dependent>
                  <name value="CccobservationCccb12s1de02"/>
                  <variable value="src"/>
                  <variable value="tgt"/>
                </dependent>
              </rule>
            </rule>
          </rule>
        </rule>
        <rule>
          <name value="8d04eb57"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B12S1.DE03') and answer.exists()"/>
          </source>
          <rule>
            <name value="c692777e"/>
            <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="5330779a"/>
              <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="fc6edbe7"/>
                <source>
                  <context value="src"/>
                </source>
                <target>
                  <contextType value="variable"/>
                  <transform value="copy"/>
                  <parameter>
                    <valueId value="tgt"/>
                  </parameter>
                </target>
                <dependent>
                  <name value="CccobservationCccb12s1de03"/>
                  <variable value="src"/>
                  <variable value="tgt"/>
                </dependent>
              </rule>
            </rule>
          </rule>
        </rule>
        <rule>
          <name value="f72a0439"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B.G.DE06') and answer.exists()"/>
          </source>
          <rule>
            <name value="9ac4a378"/>
            <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="1b87f3fc"/>
              <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="ca782de1"/>
                <source>
                  <context value="src"/>
                </source>
                <target>
                  <contextType value="variable"/>
                  <transform value="copy"/>
                  <parameter>
                    <valueId value="tgt"/>
                  </parameter>
                </target>
                <dependent>
                  <name value="CccobservationCccbgde06"/>
                  <variable value="src"/>
                  <variable value="tgt"/>
                </dependent>
              </rule>
            </rule>
          </rule>
        </rule>
        <rule>
          <name value="e6da0780"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B12S1.DE06') and answer.exists()"/>
          </source>
          <rule>
            <name value="27eb1328"/>
            <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="c80f2620"/>
              <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="ce301cb0"/>
                <source>
                  <context value="src"/>
                </source>
                <target>
                  <contextType value="variable"/>
                  <transform value="copy"/>
                  <parameter>
                    <valueId value="tgt"/>
                  </parameter>
                </target>
                <dependent>
                  <name value="CccobservationCccb12s1de06"/>
                  <variable value="src"/>
                  <variable value="tgt"/>
                </dependent>
              </rule>
            </rule>
          </rule>
        </rule>
        <rule>
          <name value="b8334cd6"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B13S1.DE01') and answer.exists()"/>
          </source>
          <rule>
            <name value="6e77deb0"/>
            <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="0ca270e1"/>
              <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="0a3c13d2"/>
                <source>
                  <context value="src"/>
                </source>
                <target>
                  <contextType value="variable"/>
                  <transform value="copy"/>
                  <parameter>
                    <valueId value="tgt"/>
                  </parameter>
                </target>
                <dependent>
                  <name value="CccobservationCccb13s1de01"/>
                  <variable value="src"/>
                  <variable value="tgt"/>
                </dependent>
              </rule>
            </rule>
          </rule>
        </rule>
        <rule>
          <name value="78170861"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B13S1.DE02') and answer.exists()"/>
          </source>
          <rule>
            <name value="50966861"/>
            <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="2c880586"/>
              <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="cd788051"/>
                <source>
                  <context value="src"/>
                </source>
                <target>
                  <contextType value="variable"/>
                  <transform value="copy"/>
                  <parameter>
                    <valueId value="tgt"/>
                  </parameter>
                </target>
                <dependent>
                  <name value="CccobservationCccb13s1de02"/>
                  <variable value="src"/>
                  <variable value="tgt"/>
                </dependent>
              </rule>
            </rule>
          </rule>
        </rule>
        <rule>
          <name value="e5a07dfd"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B13S1.DE03') and answer.exists()"/>
          </source>
          <rule>
            <name value="b8f4f3f5"/>
            <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="681ae227"/>
              <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="323bf4ac"/>
                <source>
                  <context value="src"/>
                </source>
                <target>
                  <contextType value="variable"/>
                  <transform value="copy"/>
                  <parameter>
                    <valueId value="tgt"/>
                  </parameter>
                </target>
                <dependent>
                  <name value="CccobservationCccb13s1de03"/>
                  <variable value="src"/>
                  <variable value="tgt"/>
                </dependent>
              </rule>
            </rule>
          </rule>
        </rule>
        <rule>
          <name value="b63e24e4"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B13S1.DE04') and answer.exists()"/>
          </source>
          <rule>
            <name value="82346f75"/>
            <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="4ea18833"/>
              <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="28267d58"/>
                <source>
                  <context value="src"/>
                </source>
                <target>
                  <contextType value="variable"/>
                  <transform value="copy"/>
                  <parameter>
                    <valueId value="tgt"/>
                  </parameter>
                </target>
                <dependent>
                  <name value="CccobservationCccb13s1de04"/>
                  <variable value="src"/>
                  <variable value="tgt"/>
                </dependent>
              </rule>
            </rule>
          </rule>
        </rule>
        <rule>
          <name value="102c5ae9"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B14S1.DE03') and answer.exists()"/>
          </source>
          <rule>
            <name value="991ff5c6"/>
            <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="22d8b79e"/>
              <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="ab7fc76a"/>
                <source>
                  <context value="src"/>
                </source>
                <target>
                  <contextType value="variable"/>
                  <transform value="copy"/>
                  <parameter>
                    <valueId value="tgt"/>
                  </parameter>
                </target>
                <dependent>
                  <name value="CccobservationCccb14s1de03"/>
                  <variable value="src"/>
                  <variable value="tgt"/>
                </dependent>
              </rule>
            </rule>
          </rule>
        </rule>
        <rule>
          <name value="90d2b417"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B14S1.DE01') and answer.exists()"/>
          </source>
          <rule>
            <name value="19883e88"/>
            <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="f7186bc6"/>
              <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="6baaff63"/>
                <source>
                  <context value="src"/>
                </source>
                <target>
                  <contextType value="variable"/>
                  <transform value="copy"/>
                  <parameter>
                    <valueId value="tgt"/>
                  </parameter>
                </target>
                <dependent>
                  <name value="CccobservationCccb14s1de01"/>
                  <variable value="src"/>
                  <variable value="tgt"/>
                </dependent>
              </rule>
            </rule>
          </rule>
        </rule>
        <rule>
          <name value="6f9d4b85"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B14S1.DE02') and answer.exists()"/>
          </source>
          <rule>
            <name value="7df08969"/>
            <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="0063faef"/>
              <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="49187687"/>
                <source>
                  <context value="src"/>
                </source>
                <target>
                  <contextType value="variable"/>
                  <transform value="copy"/>
                  <parameter>
                    <valueId value="tgt"/>
                  </parameter>
                </target>
                <dependent>
                  <name value="CccobservationCccb14s1de02"/>
                  <variable value="src"/>
                  <variable value="tgt"/>
                </dependent>
              </rule>
            </rule>
          </rule>
        </rule>
      </group>
      <group>
        <name value="CccobservationCccb10s1de05"/>
        <typeMode value="none"/>
        <input>
          <name value="src"/>
          <mode value="source"/>
        </input>
        <input>
          <name value="tgt"/>
          <mode value="target"/>
        </input>
        <rule>
          <name value="id-Cccb10s1de05"/>
          <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-Cccb10s1de05"/>
          <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.B10S1.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="f75f2b05"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B10S1.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-Cccb10s1de05"/>
              <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-Cccb10s1de05"/>
              <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="CccobservationCccb10s1de06"/>
        <typeMode value="none"/>
        <input>
          <name value="src"/>
          <mode value="source"/>
        </input>
        <input>
          <name value="tgt"/>
          <mode value="target"/>
        </input>
        <rule>
          <name value="id-Cccb10s1de06"/>
          <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-Cccb10s1de06"/>
          <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.B10S1.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="156b25ae"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B10S1.DE06') 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>
      </group>
      <group>
        <name value="CccobservationCccb10s1de01"/>
        <typeMode value="none"/>
        <input>
          <name value="src"/>
          <mode value="source"/>
        </input>
        <input>
          <name value="tgt"/>
          <mode value="target"/>
        </input>
        <rule>
          <name value="id-Cccb10s1de01"/>
          <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-Cccb10s1de01"/>
          <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.B10S1.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="1b302dc5"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B10S1.DE01') 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-Cccb10s1de01"/>
              <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-Cccb10s1de01"/>
              <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="CccobservationCccb10s1de02"/>
        <typeMode value="none"/>
        <input>
          <name value="src"/>
          <mode value="source"/>
        </input>
        <input>
          <name value="tgt"/>
          <mode value="target"/>
        </input>
        <rule>
          <name value="id-Cccb10s1de02"/>
          <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-Cccb10s1de02"/>
          <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.B10S1.DE02"/>
            </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="84c804e5"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B10S1.DE02') 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>
      </group>
      <group>
        <name value="CccobservationCccb11s1de01"/>
        <typeMode value="none"/>
        <input>
          <name value="src"/>
          <mode value="source"/>
        </input>
        <input>
          <name value="tgt"/>
          <mode value="target"/>
        </input>
        <rule>
          <name value="id-Cccb11s1de01"/>
          <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-Cccb11s1de01"/>
          <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.B11S1.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="7b8564b3"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B11S1.DE01') 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-Cccb11s1de01"/>
              <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-Cccb11s1de01"/>
              <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="CccobservationCccb11s1de02"/>
        <typeMode value="none"/>
        <input>
          <name value="src"/>
          <mode value="source"/>
        </input>
        <input>
          <name value="tgt"/>
          <mode value="target"/>
        </input>
        <rule>
          <name value="id-Cccb11s1de02"/>
          <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-Cccb11s1de02"/>
          <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.B11S1.DE02"/>
            </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="78040096"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B11S1.DE02') 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>
      </group>
      <group>
        <name value="CccobservationCccb11s1de05"/>
        <typeMode value="none"/>
        <input>
          <name value="src"/>
          <mode value="source"/>
        </input>
        <input>
          <name value="tgt"/>
          <mode value="target"/>
        </input>
        <rule>
          <name value="id-Cccb11s1de05"/>
          <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-Cccb11s1de05"/>
          <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.B11S1.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="999566e5"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B11S1.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-Cccb11s1de05"/>
              <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-Cccb11s1de05"/>
              <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="CccobservationCccb12s1de02"/>
        <typeMode value="none"/>
        <input>
          <name value="src"/>
          <mode value="source"/>
        </input>
        <input>
          <name value="tgt"/>
          <mode value="target"/>
        </input>
        <rule>
          <name value="id-Cccb12s1de02"/>
          <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-Cccb12s1de02"/>
          <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.B12S1.DE02"/>
            </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="2980a862"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B12S1.DE02') 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-Cccb12s1de02"/>
              <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-Cccb12s1de02"/>
              <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="CccobservationCccb12s1de03"/>
        <typeMode value="none"/>
        <input>
          <name value="src"/>
          <mode value="source"/>
        </input>
        <input>
          <name value="tgt"/>
          <mode value="target"/>
        </input>
        <rule>
          <name value="id-Cccb12s1de03"/>
          <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-Cccb12s1de03"/>
          <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.B12S1.DE03"/>
            </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="0684c220"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B12S1.DE03') 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>
      </group>
      <group>
        <name value="CccobservationCccbgde06"/>
        <typeMode value="none"/>
        <input>
          <name value="src"/>
          <mode value="source"/>
        </input>
        <input>
          <name value="tgt"/>
          <mode value="target"/>
        </input>
        <rule>
          <name value="id-Cccbgde06"/>
          <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-Cccbgde06"/>
          <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.B.G.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="d670d189"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B.G.DE06') 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-Cccbgde06"/>
              <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-Cccbgde06"/>
              <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="CccobservationCccb12s1de06"/>
        <typeMode value="none"/>
        <input>
          <name value="src"/>
          <mode value="source"/>
        </input>
        <input>
          <name value="tgt"/>
          <mode value="target"/>
        </input>
        <rule>
          <name value="id-Cccb12s1de06"/>
          <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-Cccb12s1de06"/>
          <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.B12S1.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="fcb16134"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B12S1.DE06') 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-Cccb12s1de06"/>
              <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-Cccb12s1de06"/>
              <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="CccobservationCccb13s1de01"/>
        <typeMode value="none"/>
        <input>
          <name value="src"/>
          <mode value="source"/>
        </input>
        <input>
          <name value="tgt"/>
          <mode value="target"/>
        </input>
        <rule>
          <name value="id-Cccb13s1de01"/>
          <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-Cccb13s1de01"/>
          <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.B13S1.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="61c82b53"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B13S1.DE01') 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-Cccb13s1de01"/>
              <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-Cccb13s1de01"/>
              <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="CccobservationCccb13s1de02"/>
        <typeMode value="none"/>
        <input>
          <name value="src"/>
          <mode value="source"/>
        </input>
        <input>
          <name value="tgt"/>
          <mode value="target"/>
        </input>
        <rule>
          <name value="id-Cccb13s1de02"/>
          <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-Cccb13s1de02"/>
          <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.B13S1.DE02"/>
            </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="f246fc63"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B13S1.DE02') 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-Cccb13s1de02"/>
              <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-Cccb13s1de02"/>
              <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="CccobservationCccb13s1de03"/>
        <typeMode value="none"/>
        <input>
          <name value="src"/>
          <mode value="source"/>
        </input>
        <input>
          <name value="tgt"/>
          <mode value="target"/>
        </input>
        <rule>
          <name value="id-Cccb13s1de03"/>
          <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-Cccb13s1de03"/>
          <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.B13S1.DE03"/>
            </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="1e1d8c32"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B13S1.DE03') 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-Cccb13s1de03"/>
              <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-Cccb13s1de03"/>
              <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="CccobservationCccb13s1de04"/>
        <typeMode value="none"/>
        <input>
          <name value="src"/>
          <mode value="source"/>
        </input>
        <input>
          <name value="tgt"/>
          <mode value="target"/>
        </input>
        <rule>
          <name value="id-Cccb13s1de04"/>
          <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-Cccb13s1de04"/>
          <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.B13S1.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="9fc99c98"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B13S1.DE04') 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>
      </group>
      <group>
        <name value="CccobservationCccb14s1de03"/>
        <typeMode value="none"/>
        <input>
          <name value="src"/>
          <mode value="source"/>
        </input>
        <input>
          <name value="tgt"/>
          <mode value="target"/>
        </input>
        <rule>
          <name value="id-Cccb14s1de03"/>
          <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-Cccb14s1de03"/>
          <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.B14S1.DE03"/>
            </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="bc3a888b"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B14S1.DE03') 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-Cccb14s1de03"/>
              <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-Cccb14s1de03"/>
              <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="CccobservationCccb14s1de01"/>
        <typeMode value="none"/>
        <input>
          <name value="src"/>
          <mode value="source"/>
        </input>
        <input>
          <name value="tgt"/>
          <mode value="target"/>
        </input>
        <rule>
          <name value="id-Cccb14s1de01"/>
          <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-Cccb14s1de01"/>
          <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.B14S1.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="fb67ce2c"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B14S1.DE01') 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-Cccb14s1de01"/>
              <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-Cccb14s1de01"/>
              <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="CccobservationCccb14s1de02"/>
        <typeMode value="none"/>
        <input>
          <name value="src"/>
          <mode value="source"/>
        </input>
        <input>
          <name value="tgt"/>
          <mode value="target"/>
        </input>
        <rule>
          <name value="id-Cccb14s1de02"/>
          <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-Cccb14s1de02"/>
          <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.B14S1.DE02"/>
            </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="9802d7f8"/>
          <source>
            <context value="src"/>
            <element value="item"/>
            <listMode value="first"/>
            <variable value="item"/>
            <condition value="(linkId = 'Ccc.B14S1.DE02') 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-Cccb14s1de02"/>
              <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-Cccb14s1de02"/>
              <source>
                <context value="a"/>
                <condition value="a.value = false"/>
              </source>
              <target>
                <context value="tgt"/>
                <contextType value="variable"/>
                <element value="status"/>
                <transform value="copy"/>
                <parameter>
                  <valueString value="cancelled"/>
                </parameter>
              </target>
              <target>
                <context value="tgt"/>
                <contextType value="variable"/>
                <element value="value"/>
                <transform value="copy"/>
                <parameter>
                  <valueBoolean value="false"/>
                </parameter>
              </target>
            </rule>
          </rule>
        </rule>
      </group>
    </StructureMap>