WHO FHIR Implementation Guide (IG): Integrated Management of Childhood Illness (IMCI) in emergencies
0.1.0 - release

WHO FHIR Implementation Guide (IG): Integrated Management of Childhood Illness (IMCI) in emergencies, published by World Health Organization (WHO). This guide is not an authorized publication; it is the continuous build for version 0.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/WorldHealthOrganization/smart-emcare/tree/feature/update-canonical and changes regularly. See the Directory of published versions

## : Ccc.b22.bronchodilatortest - TTL Representation

Active as of 2026-04-07

Raw ttl | Download

    @prefix fhir: <http://hl7.org/fhir/> .
    @prefix owl: <http://www.w3.org/2002/07/owl#> .
    @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
    @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
    @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

    # - resource -------------------------------------------------------------------

     a fhir:StructureMap ;
      fhir:nodeRole fhir:treeRoot ;
      fhir:id [ fhir:v "Ccc.b22.bronchodilatortest"] ; #
      fhir:text [
    fhir:status [ fhir:v "generated" ] ;
    fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><pre>map \"https://smart.who.int/ccc/StructureMap/Ccc.b22.bronchodilatortest\" = \"Ccc.b22.bronchodilatortest\"#xD;\n#xD;\n#xD;\nuses \"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse\" alias 'questionnaireResponse' as source#xD;\nuses \"http://hl7.org/fhir/StructureDefinition/Bundle\" alias 'Bundle' as target#xD;\nuses \"https://smart.who.int/ccc/StructureDefinition/observation\" alias 'Observation' as target#xD;\nuses \"https://smart.who.int/ccc/StructureDefinition/Cccobservation\" alias 'Ccc Observation' as produced#xD;\n#xD;\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {#xD;\n  src -&gt; bundle.id = uuid() \"id\";#xD;\n  src -&gt; bundle.type = 'batch' \"type\";#xD;\n  src where src.item.where(linkId = 'Ccc.B22.DE17').answer.where(value.code = 'Ccc.B22.DE18') then {#xD;\n    src.item first as item where (linkId = 'Ccc.B22.DE17') and answer.exists() then {#xD;\n      src -&gt; bundle.entry as entry then {#xD;\n        src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) \"b50ac4c5\";#xD;\n        src -&gt; entry.resource = create('Observation') as tgt then {#xD;\n          src then CccobservationCccb22de17Cccb22de18t(src, tgt) \"4b4e3882\";#xD;\n        } \"a29f448d\";#xD;\n      } \"8c5fbec1\";#xD;\n    } \"b0f57b45\";#xD;\n  } \"21951d21\";#xD;\n  src where src.item.where(linkId = 'Ccc.B22.DE17').exists() and src.item.where(linkId = 'Ccc.B22.DE17').answer.where(value.code = 'Ccc.B22.DE18').empty() then {#xD;\n    src.item first as item where (linkId = 'Ccc.B22.DE17') and answer.exists() then {#xD;\n      src -&gt; bundle.entry as entry then {#xD;\n        src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) \"b50ac4c5\";#xD;\n        src -&gt; entry.resource = create('Observation') as tgt then {#xD;\n          src then CccobservationCccb22de17Cccb22de18f(src, tgt) \"4fd23ec4\";#xD;\n        } \"e477bbcc\";#xD;\n      } \"c329f1a7\";#xD;\n    } \"78424877\";#xD;\n  } \"c5976cd7\";#xD;\n  src where src.item.where(linkId = 'Ccc.B22.DE17').answer.where(value.code = 'Ccc.B22.DE19') then {#xD;\n    src.item first as item where (linkId = 'Ccc.B22.DE17') and answer.exists() then {#xD;\n      src -&gt; bundle.entry as entry then {#xD;\n        src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) \"b50ac4c5\";#xD;\n        src -&gt; entry.resource = create('Observation') as tgt then {#xD;\n          src then CccobservationCccb22de17Cccb22de19t(src, tgt) \"832556c2\";#xD;\n        } \"25d864fa\";#xD;\n      } \"d659dd64\";#xD;\n    } \"5b545a39\";#xD;\n  } \"5e2e09fd\";#xD;\n  src where src.item.where(linkId = 'Ccc.B22.DE17').exists() and src.item.where(linkId = 'Ccc.B22.DE17').answer.where(value.code = 'Ccc.B22.DE19').empty() then {#xD;\n    src.item first as item where (linkId = 'Ccc.B22.DE17') and answer.exists() then {#xD;\n      src -&gt; bundle.entry as entry then {#xD;\n        src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) \"b50ac4c5\";#xD;\n        src -&gt; entry.resource = create('Observation') as tgt then {#xD;\n          src then CccobservationCccb22de17Cccb22de19f(src, tgt) \"917126ea\";#xD;\n        } \"4d341549\";#xD;\n      } \"7cf5a310\";#xD;\n    } \"c89d7013\";#xD;\n  } \"9e5f2bdb\";#xD;\n  src where src.item.where(linkId = 'Ccc.B22.DE17').answer.where(value.code = 'Ccc.B22.DE20') then {#xD;\n    src.item first as item where (linkId = 'Ccc.B22.DE17') and answer.exists() then {#xD;\n      src -&gt; bundle.entry as entry then {#xD;\n        src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) \"b50ac4c5\";#xD;\n        src -&gt; entry.resource = create('Observation') as tgt then {#xD;\n          src then CccobservationCccb22de17Cccb22de20t(src, tgt) \"178da581\";#xD;\n        } \"1e80b046\";#xD;\n      } \"d67193a2\";#xD;\n    } \"59186280\";#xD;\n  } \"f429fd81\";#xD;\n  src where src.item.where(linkId = 'Ccc.B22.DE17').exists() and src.item.where(linkId = 'Ccc.B22.DE17').answer.where(value.code = 'Ccc.B22.DE20').empty() then {#xD;\n    src.item first as item where (linkId = 'Ccc.B22.DE17') and answer.exists() then {#xD;\n      src -&gt; bundle.entry as entry then {#xD;\n        src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) \"b50ac4c5\";#xD;\n        src -&gt; entry.resource = create('Observation') as tgt then {#xD;\n          src then CccobservationCccb22de17Cccb22de20f(src, tgt) \"4fa88d49\";#xD;\n        } \"30a84474\";#xD;\n      } \"25416983\";#xD;\n    } \"7552e3d3\";#xD;\n  } \"8363b35b\";#xD;\n  src where src.item.where(linkId = 'Ccc.B22.DE17').answer.where(value.code = 'Ccc.B22.DE21') then {#xD;\n    src.item first as item where (linkId = 'Ccc.B22.DE17') and answer.exists() then {#xD;\n      src -&gt; bundle.entry as entry then {#xD;\n        src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) \"b50ac4c5\";#xD;\n        src -&gt; entry.resource = create('Observation') as tgt then {#xD;\n          src then CccobservationCccb22de17Cccb22de21t(src, tgt) \"628bfa1d\";#xD;\n        } \"0bf9d78c\";#xD;\n      } \"b0fa129e\";#xD;\n    } \"913a00ce\";#xD;\n  } \"1561f370\";#xD;\n  src where src.item.where(linkId = 'Ccc.B22.DE17').exists() and src.item.where(linkId = 'Ccc.B22.DE17').answer.where(value.code = 'Ccc.B22.DE21').empty() then {#xD;\n    src.item first as item where (linkId = 'Ccc.B22.DE17') and answer.exists() then {#xD;\n      src -&gt; bundle.entry as entry then {#xD;\n        src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) \"b50ac4c5\";#xD;\n        src -&gt; entry.resource = create('Observation') as tgt then {#xD;\n          src then CccobservationCccb22de17Cccb22de21f(src, tgt) \"f42ef3e7\";#xD;\n        } \"65279195\";#xD;\n      } \"954bbaec\";#xD;\n    } \"f61383c6\";#xD;\n  } \"530338c0\";#xD;\n  src where src.item.where(linkId = 'Ccc.B22.DE17').answer.where(value.code = 'Ccc.B22.DE22') then {#xD;\n    src.item first as item where (linkId = 'Ccc.B22.DE17') and answer.exists() then {#xD;\n      src -&gt; bundle.entry as entry then {#xD;\n        src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) \"b50ac4c5\";#xD;\n        src -&gt; entry.resource = create('Observation') as tgt then {#xD;\n          src then CccobservationCccb22de17Cccb22de22t(src, tgt) \"a1caf2e7\";#xD;\n        } \"cea3f121\";#xD;\n      } \"f3d4e5ff\";#xD;\n    } \"119d61d2\";#xD;\n  } \"ba871435\";#xD;\n  src where src.item.where(linkId = 'Ccc.B22.DE17').exists() and src.item.where(linkId = 'Ccc.B22.DE17').answer.where(value.code = 'Ccc.B22.DE22').empty() then {#xD;\n    src.item first as item where (linkId = 'Ccc.B22.DE17') and answer.exists() then {#xD;\n      src -&gt; bundle.entry as entry then {#xD;\n        src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) \"b50ac4c5\";#xD;\n        src -&gt; entry.resource = create('Observation') as tgt then {#xD;\n          src then CccobservationCccb22de17Cccb22de22f(src, tgt) \"df402cb9\";#xD;\n        } \"a7736492\";#xD;\n      } \"0fd648ea\";#xD;\n    } \"cad5ab21\";#xD;\n  } \"e57a3dc1\";#xD;\n  src.item first as item where (linkId = 'Ccc.B22.DE22') and answer.exists() then {#xD;\n    src -&gt; bundle.entry as entry then {#xD;\n      src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) \"b50ac4c5\";#xD;\n      src -&gt; entry.resource = create('Observation') as tgt then {#xD;\n        src -&gt; tgt then CccobservationCccb22de22(src, tgt) \"b9010fac\";#xD;\n      } \"109bcf94\";#xD;\n    } \"88ceffcd\";#xD;\n  } \"88960ea0\";#xD;\n  src.item first as item where (linkId = 'Ccc.B22.DE21') and answer.exists() then {#xD;\n    src -&gt; bundle.entry as entry then {#xD;\n      src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) \"b50ac4c5\";#xD;\n      src -&gt; entry.resource = create('Observation') as tgt then {#xD;\n        src -&gt; tgt then CccobservationCccb22de21(src, tgt) \"7c45409d\";#xD;\n      } \"ec6cbc70\";#xD;\n    } \"2bc763d0\";#xD;\n  } \"86c6f66b\";#xD;\n}#xD;\n#xD;\ngroup CccobservationCccb22de17Cccb22de18t(source src, target tgt) {#xD;\n  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() \"id-CccobservationCccb22de17Cccb22de18t\";#xD;\n  src.encounter as encounter -&gt; tgt.encounter = encounter \"35bc6b82\";#xD;\n  src.subject as subject -&gt;  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/Cccobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes',  coding.code = 'Ccc.B22.DE17&amp;Ccc.B22.DE18' \"code-CccobservationCccb22de17Cccb22de18t\";#xD;\n  src.item as itemtimestamp where linkId = 'timestamp' then {#xD;\n    itemtimestamp.answer first as atimestamp then {#xD;\n      atimestamp.value as val -&gt; tgt.issued = val \"5af77f2c\";#xD;\n    } \"7f22f29f\";#xD;\n  } \"aae7a11d\";#xD;\n  src.subject as subject -&gt; tgt.subject = subject \"patient\";#xD;\n  src -&gt;  tgt.status = 'final',  tgt.value = true \"e9d639e1\";#xD;\n}#xD;\n#xD;\ngroup CccobservationCccb22de17Cccb22de18f(source src, target tgt) {#xD;\n  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() \"id-CccobservationCccb22de17Cccb22de18f\";#xD;\n  src.encounter as encounter -&gt; tgt.encounter = encounter \"35bc6b82\";#xD;\n  src.subject as subject -&gt;  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/Cccobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes',  coding.code = 'Ccc.B22.DE17&amp;Ccc.B22.DE18' \"code-CccobservationCccb22de17Cccb22de18f\";#xD;\n  src.item as itemtimestamp where linkId = 'timestamp' then {#xD;\n    itemtimestamp.answer first as atimestamp then {#xD;\n      atimestamp.value as val -&gt; tgt.issued = val \"5af77f2c\";#xD;\n    } \"7f22f29f\";#xD;\n  } \"aae7a11d\";#xD;\n  src.subject as subject -&gt; tgt.subject = subject \"patient\";#xD;\n  src -&gt;  tgt.status = 'cancelled',  tgt.value = false \"f21d6e36\";#xD;\n}#xD;\n#xD;\ngroup CccobservationCccb22de17Cccb22de19t(source src, target tgt) {#xD;\n  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() \"id-CccobservationCccb22de17Cccb22de19t\";#xD;\n  src.encounter as encounter -&gt; tgt.encounter = encounter \"35bc6b82\";#xD;\n  src.subject as subject -&gt;  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/Cccobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes',  coding.code = 'Ccc.B22.DE17&amp;Ccc.B22.DE19' \"code-CccobservationCccb22de17Cccb22de19t\";#xD;\n  src.item as itemtimestamp where linkId = 'timestamp' then {#xD;\n    itemtimestamp.answer first as atimestamp then {#xD;\n      atimestamp.value as val -&gt; tgt.issued = val \"5af77f2c\";#xD;\n    } \"7f22f29f\";#xD;\n  } \"aae7a11d\";#xD;\n  src.subject as subject -&gt; tgt.subject = subject \"patient\";#xD;\n  src -&gt;  tgt.status = 'final',  tgt.value = true \"e9d639e1\";#xD;\n}#xD;\n#xD;\ngroup CccobservationCccb22de17Cccb22de19f(source src, target tgt) {#xD;\n  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() \"id-CccobservationCccb22de17Cccb22de19f\";#xD;\n  src.encounter as encounter -&gt; tgt.encounter = encounter \"35bc6b82\";#xD;\n  src.subject as subject -&gt;  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/Cccobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes',  coding.code = 'Ccc.B22.DE17&amp;Ccc.B22.DE19' \"code-CccobservationCccb22de17Cccb22de19f\";#xD;\n  src.item as itemtimestamp where linkId = 'timestamp' then {#xD;\n    itemtimestamp.answer first as atimestamp then {#xD;\n      atimestamp.value as val -&gt; tgt.issued = val \"5af77f2c\";#xD;\n    } \"7f22f29f\";#xD;\n  } \"aae7a11d\";#xD;\n  src.subject as subject -&gt; tgt.subject = subject \"patient\";#xD;\n  src -&gt;  tgt.status = 'cancelled',  tgt.value = false \"f21d6e36\";#xD;\n}#xD;\n#xD;\ngroup CccobservationCccb22de17Cccb22de20t(source src, target tgt) {#xD;\n  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() \"id-CccobservationCccb22de17Cccb22de20t\";#xD;\n  src.encounter as encounter -&gt; tgt.encounter = encounter \"35bc6b82\";#xD;\n  src.subject as subject -&gt;  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/Cccobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes',  coding.code = 'Ccc.B22.DE17&amp;Ccc.B22.DE20' \"code-CccobservationCccb22de17Cccb22de20t\";#xD;\n  src.item as itemtimestamp where linkId = 'timestamp' then {#xD;\n    itemtimestamp.answer first as atimestamp then {#xD;\n      atimestamp.value as val -&gt; tgt.issued = val \"5af77f2c\";#xD;\n    } \"7f22f29f\";#xD;\n  } \"aae7a11d\";#xD;\n  src.subject as subject -&gt; tgt.subject = subject \"patient\";#xD;\n  src -&gt;  tgt.status = 'final',  tgt.value = true \"e9d639e1\";#xD;\n}#xD;\n#xD;\ngroup CccobservationCccb22de17Cccb22de20f(source src, target tgt) {#xD;\n  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() \"id-CccobservationCccb22de17Cccb22de20f\";#xD;\n  src.encounter as encounter -&gt; tgt.encounter = encounter \"35bc6b82\";#xD;\n  src.subject as subject -&gt;  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/Cccobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes',  coding.code = 'Ccc.B22.DE17&amp;Ccc.B22.DE20' \"code-CccobservationCccb22de17Cccb22de20f\";#xD;\n  src.item as itemtimestamp where linkId = 'timestamp' then {#xD;\n    itemtimestamp.answer first as atimestamp then {#xD;\n      atimestamp.value as val -&gt; tgt.issued = val \"5af77f2c\";#xD;\n    } \"7f22f29f\";#xD;\n  } \"aae7a11d\";#xD;\n  src.subject as subject -&gt; tgt.subject = subject \"patient\";#xD;\n  src -&gt;  tgt.status = 'cancelled',  tgt.value = false \"f21d6e36\";#xD;\n}#xD;\n#xD;\ngroup CccobservationCccb22de17Cccb22de21t(source src, target tgt) {#xD;\n  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() \"id-CccobservationCccb22de17Cccb22de21t\";#xD;\n  src.encounter as encounter -&gt; tgt.encounter = encounter \"35bc6b82\";#xD;\n  src.subject as subject -&gt;  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/Cccobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes',  coding.code = 'Ccc.B22.DE17&amp;Ccc.B22.DE21' \"code-CccobservationCccb22de17Cccb22de21t\";#xD;\n  src.item as itemtimestamp where linkId = 'timestamp' then {#xD;\n    itemtimestamp.answer first as atimestamp then {#xD;\n      atimestamp.value as val -&gt; tgt.issued = val \"5af77f2c\";#xD;\n    } \"7f22f29f\";#xD;\n  } \"aae7a11d\";#xD;\n  src.subject as subject -&gt; tgt.subject = subject \"patient\";#xD;\n  src -&gt;  tgt.status = 'final',  tgt.value = true \"e9d639e1\";#xD;\n}#xD;\n#xD;\ngroup CccobservationCccb22de17Cccb22de21f(source src, target tgt) {#xD;\n  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() \"id-CccobservationCccb22de17Cccb22de21f\";#xD;\n  src.encounter as encounter -&gt; tgt.encounter = encounter \"35bc6b82\";#xD;\n  src.subject as subject -&gt;  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/Cccobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes',  coding.code = 'Ccc.B22.DE17&amp;Ccc.B22.DE21' \"code-CccobservationCccb22de17Cccb22de21f\";#xD;\n  src.item as itemtimestamp where linkId = 'timestamp' then {#xD;\n    itemtimestamp.answer first as atimestamp then {#xD;\n      atimestamp.value as val -&gt; tgt.issued = val \"5af77f2c\";#xD;\n    } \"7f22f29f\";#xD;\n  } \"aae7a11d\";#xD;\n  src.subject as subject -&gt; tgt.subject = subject \"patient\";#xD;\n  src -&gt;  tgt.status = 'cancelled',  tgt.value = false \"f21d6e36\";#xD;\n}#xD;\n#xD;\ngroup CccobservationCccb22de17Cccb22de22t(source src, target tgt) {#xD;\n  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() \"id-CccobservationCccb22de17Cccb22de22t\";#xD;\n  src.encounter as encounter -&gt; tgt.encounter = encounter \"35bc6b82\";#xD;\n  src.subject as subject -&gt;  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/Cccobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes',  coding.code = 'Ccc.B22.DE17&amp;Ccc.B22.DE22' \"code-CccobservationCccb22de17Cccb22de22t\";#xD;\n  src.item as itemtimestamp where linkId = 'timestamp' then {#xD;\n    itemtimestamp.answer first as atimestamp then {#xD;\n      atimestamp.value as val -&gt; tgt.issued = val \"5af77f2c\";#xD;\n    } \"7f22f29f\";#xD;\n  } \"aae7a11d\";#xD;\n  src.subject as subject -&gt; tgt.subject = subject \"patient\";#xD;\n  src -&gt;  tgt.status = 'final',  tgt.value = true \"e9d639e1\";#xD;\n}#xD;\n#xD;\ngroup CccobservationCccb22de17Cccb22de22f(source src, target tgt) {#xD;\n  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() \"id-CccobservationCccb22de17Cccb22de22f\";#xD;\n  src.encounter as encounter -&gt; tgt.encounter = encounter \"35bc6b82\";#xD;\n  src.subject as subject -&gt;  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/Cccobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes',  coding.code = 'Ccc.B22.DE17&amp;Ccc.B22.DE22' \"code-CccobservationCccb22de17Cccb22de22f\";#xD;\n  src.item as itemtimestamp where linkId = 'timestamp' then {#xD;\n    itemtimestamp.answer first as atimestamp then {#xD;\n      atimestamp.value as val -&gt; tgt.issued = val \"5af77f2c\";#xD;\n    } \"7f22f29f\";#xD;\n  } \"aae7a11d\";#xD;\n  src.subject as subject -&gt; tgt.subject = subject \"patient\";#xD;\n  src -&gt;  tgt.status = 'cancelled',  tgt.value = false \"f21d6e36\";#xD;\n}#xD;\n#xD;\ngroup CccobservationCccb22de22(source src, target tgt) {#xD;\n  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() \"id-Cccb22de22\";#xD;\n  src.encounter as encounter -&gt; tgt.encounter = encounter \"35bc6b82\";#xD;\n  src.subject as subject -&gt;  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/Cccobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes',  coding.code = 'Ccc.B22.DE22' \"code-Cccb22de22\";#xD;\n  src.item as itemtimestamp where linkId = 'timestamp' then {#xD;\n    itemtimestamp.answer first as atimestamp then {#xD;\n      atimestamp.value as val -&gt; tgt.issued = val \"5af77f2c\";#xD;\n    } \"7f22f29f\";#xD;\n  } \"aae7a11d\";#xD;\n  src.subject as subject -&gt; tgt.subject = subject \"patient\";#xD;\n  src.item first as item where (linkId = 'Ccc.B22.DE22') and answer.exists() then {#xD;\n    item.answer first as a then {#xD;\n      a.value as val then {#xD;\n        val where val.code = 'true' -&gt;  tgt.status = 'final',  tgt.value = true \"8a65aaa5\";#xD;\n      } \"26c2c8c7\";#xD;\n    } \"721205d5\";#xD;\n  } \"dd2a446b\";#xD;\n}#xD;\n#xD;\ngroup CccobservationCccb22de21(source src, target tgt) {#xD;\n  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() \"id-Cccb22de21\";#xD;\n  src.encounter as encounter -&gt; tgt.encounter = encounter \"35bc6b82\";#xD;\n  src.subject as subject -&gt;  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/Cccobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes',  coding.code = 'Ccc.B22.DE21' \"code-Cccb22de21\";#xD;\n  src.item as itemtimestamp where linkId = 'timestamp' then {#xD;\n    itemtimestamp.answer first as atimestamp then {#xD;\n      atimestamp.value as val -&gt; tgt.issued = val \"5af77f2c\";#xD;\n    } \"7f22f29f\";#xD;\n  } \"aae7a11d\";#xD;\n  src.subject as subject -&gt; tgt.subject = subject \"patient\";#xD;\n  src.item first as item where (linkId = 'Ccc.B22.DE21') and answer.exists() then {#xD;\n    item.answer first as a then {#xD;\n      a where a.value = true -&gt;  tgt.status = 'final',  tgt.value = true \"final-Cccb22de21\";#xD;\n      a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false \"notfound-Cccb22de21\";#xD;\n    } \"bdab9370\";#xD;\n  } \"be0b9dbe\";#xD;\n}#xD;\n#xD;\n</pre></div>"^^rdf:XMLLiteral ]
      ] ; #
      fhir:url [
    fhir:v "https://smart.who.int/ccc/StructureMap/Ccc.b22.bronchodilatortest"^^xsd:anyURI ;
    fhir:l <https://smart.who.int/ccc/StructureMap/Ccc.b22.bronchodilatortest>
      ] ; #
      fhir:version [ fhir:v "0.1.0"] ; #
      fhir:name [ fhir:v "Ccc.b22.bronchodilatortest"] ; #
      fhir:status [ fhir:v "active"] ; #
      fhir:date [ fhir:v "2026-04-07T13:42:05+00:00"^^xsd:dateTime] ; #
      fhir:publisher [ fhir:v "World Health Organization (WHO)"] ; #
      fhir:contact ( [
    fhir:name [ fhir:v "World Health Organization (WHO)" ] ;
        ( fhir:telecom [
    fhir:system [ fhir:v "url" ] ;
    fhir:value [ fhir:v "https://www.who.int" ]     ] )
      ] [
        ( fhir:telecom [
    fhir:system [ fhir:v "url" ] ;
    fhir:value [ fhir:v "https://www.who.int" ]     ] )
      ] ) ; #
      fhir:jurisdiction ( [
        ( fhir:coding [
    fhir:system [
    fhir:v "http://unstats.un.org/unsd/methods/m49/m49.htm"^^xsd:anyURI ;
    fhir:l <http://unstats.un.org/unsd/methods/m49/m49.htm>       ] ;
    fhir:code [ fhir:v "001" ]     ] )
      ] ) ; #
      fhir:structure ( [
    fhir:url [
    fhir:v "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse>     ] ;
    fhir:mode [ fhir:v "source" ] ;
    fhir:alias [ fhir:v "'questionnaireResponse'" ]
      ] [
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Bundle"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Bundle>     ] ;
    fhir:mode [ fhir:v "target" ] ;
    fhir:alias [ fhir:v "'Bundle'" ]
      ] [
    fhir:url [
    fhir:v "https://smart.who.int/ccc/StructureDefinition/observation"^^xsd:anyURI ;
    fhir:l <https://smart.who.int/ccc/StructureDefinition/observation>     ] ;
    fhir:mode [ fhir:v "target" ] ;
    fhir:alias [ fhir:v "'Observation'" ]
      ] [
    fhir:url [
    fhir:v "https://smart.who.int/ccc/StructureDefinition/Cccobservation"^^xsd:anyURI ;
    fhir:l <https://smart.who.int/ccc/StructureDefinition/Cccobservation>     ] ;
    fhir:mode [ fhir:v "produced" ] ;
    fhir:alias [ fhir:v "'Ccc Observation'" ]
      ] ) ; #
      fhir:group ( [
    fhir:name [ fhir:v "bundletrans" ] ;
    fhir:typeMode [ fhir:v "none" ] ;
        ( fhir:input [
    fhir:name [ fhir:v "src" ] ;
    fhir:type [ fhir:v "questionnaireResponse" ] ;
    fhir:mode [ fhir:v "source" ]     ] [
    fhir:name [ fhir:v "bundle" ] ;
    fhir:type [ fhir:v "Bundle" ] ;
    fhir:mode [ fhir:v "target" ]     ] ) ;
        ( fhir:rule [
    fhir:name [ fhir:v "id" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "bundle" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "id" ] ;
    fhir:transform [ fhir:v "uuid" ]       ] )     ] [
    fhir:name [ fhir:v "type" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "bundle" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "type" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "batch"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "21951d21" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:condition [ fhir:v "src.item.where(linkId = 'Ccc.B22.DE17').answer.where(value.code = 'Ccc.B22.DE18')" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "b0f57b45" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "item" ] ;
    fhir:listMode [ fhir:v "first" ] ;
    fhir:variable [ fhir:v "item" ] ;
    fhir:condition [ fhir:v "(linkId = 'Ccc.B22.DE17') and answer.exists()" ]         ] ) ;
            ( fhir:rule [
    fhir:name [ fhir:v "8c5fbec1" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "src" ]           ] ) ;
              ( fhir:target [
    fhir:context [ fhir:v "bundle" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "entry" ] ;
    fhir:variable [ fhir:v "entry" ]           ] ) ;
              ( fhir:rule [
    fhir:name [ fhir:v "b50ac4c5" ] ;
                ( fhir:source [
    fhir:context [ fhir:v "src" ]             ] ) ;
                ( fhir:target [
    fhir:context [ fhir:v "entry" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "request" ] ;
    fhir:variable [ fhir:v "request" ]             ] [
    fhir:context [ fhir:v "request" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "method" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "POST"                 ]               ] )             ] [
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:variable [ fhir:v "uuid" ] ;
    fhir:transform [ fhir:v "uuid" ]             ] [
    fhir:context [ fhir:v "request" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "url" ] ;
    fhir:transform [ fhir:v "append" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "/Observation/"                 ]               ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "uuid"                 ]               ] )             ] )           ] [
    fhir:name [ fhir:v "a29f448d" ] ;
                ( fhir:source [
    fhir:context [ fhir:v "src" ]             ] ) ;
                ( fhir:target [
    fhir:context [ fhir:v "entry" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "resource" ] ;
    fhir:variable [ fhir:v "tgt" ] ;
    fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Observation"                 ]               ] )             ] ) ;
                ( fhir:rule [
    fhir:name [ fhir:v "4b4e3882" ] ;
                  ( fhir:source [
    fhir:context [ fhir:v "src" ]               ] ) ;
                  ( fhir:dependent [
    fhir:name [ fhir:v "CccobservationCccb22de17Cccb22de18t" ] ;
                    ( fhir:variable [ fhir:v "src" ] [ fhir:v "tgt" ] )               ] )             ] )           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "c5976cd7" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:condition [ fhir:v "src.item.where(linkId = 'Ccc.B22.DE17').exists() and src.item.where(linkId = 'Ccc.B22.DE17').answer.where(value.code = 'Ccc.B22.DE18').empty()" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "78424877" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "item" ] ;
    fhir:listMode [ fhir:v "first" ] ;
    fhir:variable [ fhir:v "item" ] ;
    fhir:condition [ fhir:v "(linkId = 'Ccc.B22.DE17') and answer.exists()" ]         ] ) ;
            ( fhir:rule [
    fhir:name [ fhir:v "c329f1a7" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "src" ]           ] ) ;
              ( fhir:target [
    fhir:context [ fhir:v "bundle" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "entry" ] ;
    fhir:variable [ fhir:v "entry" ]           ] ) ;
              ( fhir:rule [
    fhir:name [ fhir:v "b50ac4c5" ] ;
                ( fhir:source [
    fhir:context [ fhir:v "src" ]             ] ) ;
                ( fhir:target [
    fhir:context [ fhir:v "entry" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "request" ] ;
    fhir:variable [ fhir:v "request" ]             ] [
    fhir:context [ fhir:v "request" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "method" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "POST"                 ]               ] )             ] [
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:variable [ fhir:v "uuid" ] ;
    fhir:transform [ fhir:v "uuid" ]             ] [
    fhir:context [ fhir:v "request" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "url" ] ;
    fhir:transform [ fhir:v "append" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "/Observation/"                 ]               ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "uuid"                 ]               ] )             ] )           ] [
    fhir:name [ fhir:v "e477bbcc" ] ;
                ( fhir:source [
    fhir:context [ fhir:v "src" ]             ] ) ;
                ( fhir:target [
    fhir:context [ fhir:v "entry" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "resource" ] ;
    fhir:variable [ fhir:v "tgt" ] ;
    fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Observation"                 ]               ] )             ] ) ;
                ( fhir:rule [
    fhir:name [ fhir:v "4fd23ec4" ] ;
                  ( fhir:source [
    fhir:context [ fhir:v "src" ]               ] ) ;
                  ( fhir:dependent [
    fhir:name [ fhir:v "CccobservationCccb22de17Cccb22de18f" ] ;
                    ( fhir:variable [ fhir:v "src" ] [ fhir:v "tgt" ] )               ] )             ] )           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "5e2e09fd" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:condition [ fhir:v "src.item.where(linkId = 'Ccc.B22.DE17').answer.where(value.code = 'Ccc.B22.DE19')" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "5b545a39" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "item" ] ;
    fhir:listMode [ fhir:v "first" ] ;
    fhir:variable [ fhir:v "item" ] ;
    fhir:condition [ fhir:v "(linkId = 'Ccc.B22.DE17') and answer.exists()" ]         ] ) ;
            ( fhir:rule [
    fhir:name [ fhir:v "d659dd64" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "src" ]           ] ) ;
              ( fhir:target [
    fhir:context [ fhir:v "bundle" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "entry" ] ;
    fhir:variable [ fhir:v "entry" ]           ] ) ;
              ( fhir:rule [
    fhir:name [ fhir:v "b50ac4c5" ] ;
                ( fhir:source [
    fhir:context [ fhir:v "src" ]             ] ) ;
                ( fhir:target [
    fhir:context [ fhir:v "entry" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "request" ] ;
    fhir:variable [ fhir:v "request" ]             ] [
    fhir:context [ fhir:v "request" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "method" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "POST"                 ]               ] )             ] [
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:variable [ fhir:v "uuid" ] ;
    fhir:transform [ fhir:v "uuid" ]             ] [
    fhir:context [ fhir:v "request" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "url" ] ;
    fhir:transform [ fhir:v "append" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "/Observation/"                 ]               ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "uuid"                 ]               ] )             ] )           ] [
    fhir:name [ fhir:v "25d864fa" ] ;
                ( fhir:source [
    fhir:context [ fhir:v "src" ]             ] ) ;
                ( fhir:target [
    fhir:context [ fhir:v "entry" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "resource" ] ;
    fhir:variable [ fhir:v "tgt" ] ;
    fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Observation"                 ]               ] )             ] ) ;
                ( fhir:rule [
    fhir:name [ fhir:v "832556c2" ] ;
                  ( fhir:source [
    fhir:context [ fhir:v "src" ]               ] ) ;
                  ( fhir:dependent [
    fhir:name [ fhir:v "CccobservationCccb22de17Cccb22de19t" ] ;
                    ( fhir:variable [ fhir:v "src" ] [ fhir:v "tgt" ] )               ] )             ] )           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "9e5f2bdb" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:condition [ fhir:v "src.item.where(linkId = 'Ccc.B22.DE17').exists() and src.item.where(linkId = 'Ccc.B22.DE17').answer.where(value.code = 'Ccc.B22.DE19').empty()" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "c89d7013" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "item" ] ;
    fhir:listMode [ fhir:v "first" ] ;
    fhir:variable [ fhir:v "item" ] ;
    fhir:condition [ fhir:v "(linkId = 'Ccc.B22.DE17') and answer.exists()" ]         ] ) ;
            ( fhir:rule [
    fhir:name [ fhir:v "7cf5a310" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "src" ]           ] ) ;
              ( fhir:target [
    fhir:context [ fhir:v "bundle" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "entry" ] ;
    fhir:variable [ fhir:v "entry" ]           ] ) ;
              ( fhir:rule [
    fhir:name [ fhir:v "b50ac4c5" ] ;
                ( fhir:source [
    fhir:context [ fhir:v "src" ]             ] ) ;
                ( fhir:target [
    fhir:context [ fhir:v "entry" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "request" ] ;
    fhir:variable [ fhir:v "request" ]             ] [
    fhir:context [ fhir:v "request" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "method" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "POST"                 ]               ] )             ] [
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:variable [ fhir:v "uuid" ] ;
    fhir:transform [ fhir:v "uuid" ]             ] [
    fhir:context [ fhir:v "request" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "url" ] ;
    fhir:transform [ fhir:v "append" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "/Observation/"                 ]               ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "uuid"                 ]               ] )             ] )           ] [
    fhir:name [ fhir:v "4d341549" ] ;
                ( fhir:source [
    fhir:context [ fhir:v "src" ]             ] ) ;
                ( fhir:target [
    fhir:context [ fhir:v "entry" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "resource" ] ;
    fhir:variable [ fhir:v "tgt" ] ;
    fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Observation"                 ]               ] )             ] ) ;
                ( fhir:rule [
    fhir:name [ fhir:v "917126ea" ] ;
                  ( fhir:source [
    fhir:context [ fhir:v "src" ]               ] ) ;
                  ( fhir:dependent [
    fhir:name [ fhir:v "CccobservationCccb22de17Cccb22de19f" ] ;
                    ( fhir:variable [ fhir:v "src" ] [ fhir:v "tgt" ] )               ] )             ] )           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "f429fd81" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:condition [ fhir:v "src.item.where(linkId = 'Ccc.B22.DE17').answer.where(value.code = 'Ccc.B22.DE20')" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "59186280" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "item" ] ;
    fhir:listMode [ fhir:v "first" ] ;
    fhir:variable [ fhir:v "item" ] ;
    fhir:condition [ fhir:v "(linkId = 'Ccc.B22.DE17') and answer.exists()" ]         ] ) ;
            ( fhir:rule [
    fhir:name [ fhir:v "d67193a2" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "src" ]           ] ) ;
              ( fhir:target [
    fhir:context [ fhir:v "bundle" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "entry" ] ;
    fhir:variable [ fhir:v "entry" ]           ] ) ;
              ( fhir:rule [
    fhir:name [ fhir:v "b50ac4c5" ] ;
                ( fhir:source [
    fhir:context [ fhir:v "src" ]             ] ) ;
                ( fhir:target [
    fhir:context [ fhir:v "entry" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "request" ] ;
    fhir:variable [ fhir:v "request" ]             ] [
    fhir:context [ fhir:v "request" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "method" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "POST"                 ]               ] )             ] [
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:variable [ fhir:v "uuid" ] ;
    fhir:transform [ fhir:v "uuid" ]             ] [
    fhir:context [ fhir:v "request" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "url" ] ;
    fhir:transform [ fhir:v "append" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "/Observation/"                 ]               ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "uuid"                 ]               ] )             ] )           ] [
    fhir:name [ fhir:v "1e80b046" ] ;
                ( fhir:source [
    fhir:context [ fhir:v "src" ]             ] ) ;
                ( fhir:target [
    fhir:context [ fhir:v "entry" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "resource" ] ;
    fhir:variable [ fhir:v "tgt" ] ;
    fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Observation"                 ]               ] )             ] ) ;
                ( fhir:rule [
    fhir:name [ fhir:v "178da581" ] ;
                  ( fhir:source [
    fhir:context [ fhir:v "src" ]               ] ) ;
                  ( fhir:dependent [
    fhir:name [ fhir:v "CccobservationCccb22de17Cccb22de20t" ] ;
                    ( fhir:variable [ fhir:v "src" ] [ fhir:v "tgt" ] )               ] )             ] )           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "8363b35b" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:condition [ fhir:v "src.item.where(linkId = 'Ccc.B22.DE17').exists() and src.item.where(linkId = 'Ccc.B22.DE17').answer.where(value.code = 'Ccc.B22.DE20').empty()" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "7552e3d3" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "item" ] ;
    fhir:listMode [ fhir:v "first" ] ;
    fhir:variable [ fhir:v "item" ] ;
    fhir:condition [ fhir:v "(linkId = 'Ccc.B22.DE17') and answer.exists()" ]         ] ) ;
            ( fhir:rule [
    fhir:name [ fhir:v "25416983" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "src" ]           ] ) ;
              ( fhir:target [
    fhir:context [ fhir:v "bundle" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "entry" ] ;
    fhir:variable [ fhir:v "entry" ]           ] ) ;
              ( fhir:rule [
    fhir:name [ fhir:v "b50ac4c5" ] ;
                ( fhir:source [
    fhir:context [ fhir:v "src" ]             ] ) ;
                ( fhir:target [
    fhir:context [ fhir:v "entry" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "request" ] ;
    fhir:variable [ fhir:v "request" ]             ] [
    fhir:context [ fhir:v "request" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "method" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "POST"                 ]               ] )             ] [
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:variable [ fhir:v "uuid" ] ;
    fhir:transform [ fhir:v "uuid" ]             ] [
    fhir:context [ fhir:v "request" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "url" ] ;
    fhir:transform [ fhir:v "append" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "/Observation/"                 ]               ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "uuid"                 ]               ] )             ] )           ] [
    fhir:name [ fhir:v "30a84474" ] ;
                ( fhir:source [
    fhir:context [ fhir:v "src" ]             ] ) ;
                ( fhir:target [
    fhir:context [ fhir:v "entry" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "resource" ] ;
    fhir:variable [ fhir:v "tgt" ] ;
    fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Observation"                 ]               ] )             ] ) ;
                ( fhir:rule [
    fhir:name [ fhir:v "4fa88d49" ] ;
                  ( fhir:source [
    fhir:context [ fhir:v "src" ]               ] ) ;
                  ( fhir:dependent [
    fhir:name [ fhir:v "CccobservationCccb22de17Cccb22de20f" ] ;
                    ( fhir:variable [ fhir:v "src" ] [ fhir:v "tgt" ] )               ] )             ] )           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "1561f370" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:condition [ fhir:v "src.item.where(linkId = 'Ccc.B22.DE17').answer.where(value.code = 'Ccc.B22.DE21')" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "913a00ce" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "item" ] ;
    fhir:listMode [ fhir:v "first" ] ;
    fhir:variable [ fhir:v "item" ] ;
    fhir:condition [ fhir:v "(linkId = 'Ccc.B22.DE17') and answer.exists()" ]         ] ) ;
            ( fhir:rule [
    fhir:name [ fhir:v "b0fa129e" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "src" ]           ] ) ;
              ( fhir:target [
    fhir:context [ fhir:v "bundle" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "entry" ] ;
    fhir:variable [ fhir:v "entry" ]           ] ) ;
              ( fhir:rule [
    fhir:name [ fhir:v "b50ac4c5" ] ;
                ( fhir:source [
    fhir:context [ fhir:v "src" ]             ] ) ;
                ( fhir:target [
    fhir:context [ fhir:v "entry" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "request" ] ;
    fhir:variable [ fhir:v "request" ]             ] [
    fhir:context [ fhir:v "request" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "method" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "POST"                 ]               ] )             ] [
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:variable [ fhir:v "uuid" ] ;
    fhir:transform [ fhir:v "uuid" ]             ] [
    fhir:context [ fhir:v "request" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "url" ] ;
    fhir:transform [ fhir:v "append" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "/Observation/"                 ]               ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "uuid"                 ]               ] )             ] )           ] [
    fhir:name [ fhir:v "0bf9d78c" ] ;
                ( fhir:source [
    fhir:context [ fhir:v "src" ]             ] ) ;
                ( fhir:target [
    fhir:context [ fhir:v "entry" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "resource" ] ;
    fhir:variable [ fhir:v "tgt" ] ;
    fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Observation"                 ]               ] )             ] ) ;
                ( fhir:rule [
    fhir:name [ fhir:v "628bfa1d" ] ;
                  ( fhir:source [
    fhir:context [ fhir:v "src" ]               ] ) ;
                  ( fhir:dependent [
    fhir:name [ fhir:v "CccobservationCccb22de17Cccb22de21t" ] ;
                    ( fhir:variable [ fhir:v "src" ] [ fhir:v "tgt" ] )               ] )             ] )           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "530338c0" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:condition [ fhir:v "src.item.where(linkId = 'Ccc.B22.DE17').exists() and src.item.where(linkId = 'Ccc.B22.DE17').answer.where(value.code = 'Ccc.B22.DE21').empty()" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "f61383c6" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "item" ] ;
    fhir:listMode [ fhir:v "first" ] ;
    fhir:variable [ fhir:v "item" ] ;
    fhir:condition [ fhir:v "(linkId = 'Ccc.B22.DE17') and answer.exists()" ]         ] ) ;
            ( fhir:rule [
    fhir:name [ fhir:v "954bbaec" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "src" ]           ] ) ;
              ( fhir:target [
    fhir:context [ fhir:v "bundle" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "entry" ] ;
    fhir:variable [ fhir:v "entry" ]           ] ) ;
              ( fhir:rule [
    fhir:name [ fhir:v "b50ac4c5" ] ;
                ( fhir:source [
    fhir:context [ fhir:v "src" ]             ] ) ;
                ( fhir:target [
    fhir:context [ fhir:v "entry" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "request" ] ;
    fhir:variable [ fhir:v "request" ]             ] [
    fhir:context [ fhir:v "request" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "method" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "POST"                 ]               ] )             ] [
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:variable [ fhir:v "uuid" ] ;
    fhir:transform [ fhir:v "uuid" ]             ] [
    fhir:context [ fhir:v "request" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "url" ] ;
    fhir:transform [ fhir:v "append" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "/Observation/"                 ]               ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "uuid"                 ]               ] )             ] )           ] [
    fhir:name [ fhir:v "65279195" ] ;
                ( fhir:source [
    fhir:context [ fhir:v "src" ]             ] ) ;
                ( fhir:target [
    fhir:context [ fhir:v "entry" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "resource" ] ;
    fhir:variable [ fhir:v "tgt" ] ;
    fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Observation"                 ]               ] )             ] ) ;
                ( fhir:rule [
    fhir:name [ fhir:v "f42ef3e7" ] ;
                  ( fhir:source [
    fhir:context [ fhir:v "src" ]               ] ) ;
                  ( fhir:dependent [
    fhir:name [ fhir:v "CccobservationCccb22de17Cccb22de21f" ] ;
                    ( fhir:variable [ fhir:v "src" ] [ fhir:v "tgt" ] )               ] )             ] )           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "ba871435" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:condition [ fhir:v "src.item.where(linkId = 'Ccc.B22.DE17').answer.where(value.code = 'Ccc.B22.DE22')" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "119d61d2" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "item" ] ;
    fhir:listMode [ fhir:v "first" ] ;
    fhir:variable [ fhir:v "item" ] ;
    fhir:condition [ fhir:v "(linkId = 'Ccc.B22.DE17') and answer.exists()" ]         ] ) ;
            ( fhir:rule [
    fhir:name [ fhir:v "f3d4e5ff" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "src" ]           ] ) ;
              ( fhir:target [
    fhir:context [ fhir:v "bundle" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "entry" ] ;
    fhir:variable [ fhir:v "entry" ]           ] ) ;
              ( fhir:rule [
    fhir:name [ fhir:v "b50ac4c5" ] ;
                ( fhir:source [
    fhir:context [ fhir:v "src" ]             ] ) ;
                ( fhir:target [
    fhir:context [ fhir:v "entry" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "request" ] ;
    fhir:variable [ fhir:v "request" ]             ] [
    fhir:context [ fhir:v "request" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "method" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "POST"                 ]               ] )             ] [
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:variable [ fhir:v "uuid" ] ;
    fhir:transform [ fhir:v "uuid" ]             ] [
    fhir:context [ fhir:v "request" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "url" ] ;
    fhir:transform [ fhir:v "append" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "/Observation/"                 ]               ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "uuid"                 ]               ] )             ] )           ] [
    fhir:name [ fhir:v "cea3f121" ] ;
                ( fhir:source [
    fhir:context [ fhir:v "src" ]             ] ) ;
                ( fhir:target [
    fhir:context [ fhir:v "entry" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "resource" ] ;
    fhir:variable [ fhir:v "tgt" ] ;
    fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Observation"                 ]               ] )             ] ) ;
                ( fhir:rule [
    fhir:name [ fhir:v "a1caf2e7" ] ;
                  ( fhir:source [
    fhir:context [ fhir:v "src" ]               ] ) ;
                  ( fhir:dependent [
    fhir:name [ fhir:v "CccobservationCccb22de17Cccb22de22t" ] ;
                    ( fhir:variable [ fhir:v "src" ] [ fhir:v "tgt" ] )               ] )             ] )           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "e57a3dc1" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:condition [ fhir:v "src.item.where(linkId = 'Ccc.B22.DE17').exists() and src.item.where(linkId = 'Ccc.B22.DE17').answer.where(value.code = 'Ccc.B22.DE22').empty()" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "cad5ab21" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "item" ] ;
    fhir:listMode [ fhir:v "first" ] ;
    fhir:variable [ fhir:v "item" ] ;
    fhir:condition [ fhir:v "(linkId = 'Ccc.B22.DE17') and answer.exists()" ]         ] ) ;
            ( fhir:rule [
    fhir:name [ fhir:v "0fd648ea" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "src" ]           ] ) ;
              ( fhir:target [
    fhir:context [ fhir:v "bundle" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "entry" ] ;
    fhir:variable [ fhir:v "entry" ]           ] ) ;
              ( fhir:rule [
    fhir:name [ fhir:v "b50ac4c5" ] ;
                ( fhir:source [
    fhir:context [ fhir:v "src" ]             ] ) ;
                ( fhir:target [
    fhir:context [ fhir:v "entry" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "request" ] ;
    fhir:variable [ fhir:v "request" ]             ] [
    fhir:context [ fhir:v "request" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "method" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "POST"                 ]               ] )             ] [
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:variable [ fhir:v "uuid" ] ;
    fhir:transform [ fhir:v "uuid" ]             ] [
    fhir:context [ fhir:v "request" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "url" ] ;
    fhir:transform [ fhir:v "append" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "/Observation/"                 ]               ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "uuid"                 ]               ] )             ] )           ] [
    fhir:name [ fhir:v "a7736492" ] ;
                ( fhir:source [
    fhir:context [ fhir:v "src" ]             ] ) ;
                ( fhir:target [
    fhir:context [ fhir:v "entry" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "resource" ] ;
    fhir:variable [ fhir:v "tgt" ] ;
    fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Observation"                 ]               ] )             ] ) ;
                ( fhir:rule [
    fhir:name [ fhir:v "df402cb9" ] ;
                  ( fhir:source [
    fhir:context [ fhir:v "src" ]               ] ) ;
                  ( fhir:dependent [
    fhir:name [ fhir:v "CccobservationCccb22de17Cccb22de22f" ] ;
                    ( fhir:variable [ fhir:v "src" ] [ fhir:v "tgt" ] )               ] )             ] )           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "88960ea0" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "item" ] ;
    fhir:listMode [ fhir:v "first" ] ;
    fhir:variable [ fhir:v "item" ] ;
    fhir:condition [ fhir:v "(linkId = 'Ccc.B22.DE22') and answer.exists()" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "88ceffcd" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "src" ]         ] ) ;
            ( fhir:target [
    fhir:context [ fhir:v "bundle" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "entry" ] ;
    fhir:variable [ fhir:v "entry" ]         ] ) ;
            ( fhir:rule [
    fhir:name [ fhir:v "b50ac4c5" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "src" ]           ] ) ;
              ( fhir:target [
    fhir:context [ fhir:v "entry" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "request" ] ;
    fhir:variable [ fhir:v "request" ]           ] [
    fhir:context [ fhir:v "request" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "method" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "POST"               ]             ] )           ] [
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:variable [ fhir:v "uuid" ] ;
    fhir:transform [ fhir:v "uuid" ]           ] [
    fhir:context [ fhir:v "request" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "url" ] ;
    fhir:transform [ fhir:v "append" ] ;
                ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "/Observation/"               ]             ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "uuid"               ]             ] )           ] )         ] [
    fhir:name [ fhir:v "109bcf94" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "src" ]           ] ) ;
              ( fhir:target [
    fhir:context [ fhir:v "entry" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "resource" ] ;
    fhir:variable [ fhir:v "tgt" ] ;
    fhir:transform [ fhir:v "create" ] ;
                ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Observation"               ]             ] )           ] ) ;
              ( fhir:rule [
    fhir:name [ fhir:v "b9010fac" ] ;
                ( fhir:source [
    fhir:context [ fhir:v "src" ]             ] ) ;
                ( fhir:target [
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "tgt"                 ]               ] )             ] ) ;
                ( fhir:dependent [
    fhir:name [ fhir:v "CccobservationCccb22de22" ] ;
                  ( fhir:variable [ fhir:v "src" ] [ fhir:v "tgt" ] )             ] )           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "86c6f66b" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "item" ] ;
    fhir:listMode [ fhir:v "first" ] ;
    fhir:variable [ fhir:v "item" ] ;
    fhir:condition [ fhir:v "(linkId = 'Ccc.B22.DE21') and answer.exists()" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "2bc763d0" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "src" ]         ] ) ;
            ( fhir:target [
    fhir:context [ fhir:v "bundle" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "entry" ] ;
    fhir:variable [ fhir:v "entry" ]         ] ) ;
            ( fhir:rule [
    fhir:name [ fhir:v "b50ac4c5" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "src" ]           ] ) ;
              ( fhir:target [
    fhir:context [ fhir:v "entry" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "request" ] ;
    fhir:variable [ fhir:v "request" ]           ] [
    fhir:context [ fhir:v "request" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "method" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "POST"               ]             ] )           ] [
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:variable [ fhir:v "uuid" ] ;
    fhir:transform [ fhir:v "uuid" ]           ] [
    fhir:context [ fhir:v "request" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "url" ] ;
    fhir:transform [ fhir:v "append" ] ;
                ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "/Observation/"               ]             ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "uuid"               ]             ] )           ] )         ] [
    fhir:name [ fhir:v "ec6cbc70" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "src" ]           ] ) ;
              ( fhir:target [
    fhir:context [ fhir:v "entry" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "resource" ] ;
    fhir:variable [ fhir:v "tgt" ] ;
    fhir:transform [ fhir:v "create" ] ;
                ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Observation"               ]             ] )           ] ) ;
              ( fhir:rule [
    fhir:name [ fhir:v "7c45409d" ] ;
                ( fhir:source [
    fhir:context [ fhir:v "src" ]             ] ) ;
                ( fhir:target [
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "tgt"                 ]               ] )             ] ) ;
                ( fhir:dependent [
    fhir:name [ fhir:v "CccobservationCccb22de21" ] ;
                  ( fhir:variable [ fhir:v "src" ] [ fhir:v "tgt" ] )             ] )           ] )         ] )       ] )     ] )
      ] [
    fhir:name [ fhir:v "CccobservationCccb22de17Cccb22de18t" ] ;
    fhir:typeMode [ fhir:v "none" ] ;
        ( fhir:input [
    fhir:name [ fhir:v "src" ] ;
    fhir:mode [ fhir:v "source" ]     ] [
    fhir:name [ fhir:v "tgt" ] ;
    fhir:mode [ fhir:v "target" ]     ] ) ;
        ( fhir:rule [
    fhir:name [ fhir:v "id-CccobservationCccb22de17Cccb22de18t" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "identifier" ] ;
    fhir:variable [ fhir:v "CodeID" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Identifier"           ]         ] )       ] [
    fhir:context [ fhir:v "CodeID" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "system" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "http://hl7.org/fhir/namingsystem-identifier-type"           ]         ] )       ] [
    fhir:context [ fhir:v "CodeID" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "use" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "official"           ]         ] )       ] [
    fhir:context [ fhir:v "CodeID" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "value" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "uuid"           ]         ] )       ] [
    fhir:context [ fhir:v "CodeID" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "id" ] ;
    fhir:transform [ fhir:v "uuid" ]       ] )     ] [
    fhir:name [ fhir:v "35bc6b82" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "encounter" ] ;
    fhir:variable [ fhir:v "encounter" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "encounter" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "encounter"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "code-CccobservationCccb22de17Cccb22de18t" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "subject" ] ;
    fhir:variable [ fhir:v "subject" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "subject" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "subject"           ]         ] )       ] [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "meta" ] ;
    fhir:variable [ fhir:v "newMeta" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Meta"           ]         ] )       ] [
    fhir:context [ fhir:v "newMeta" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "profile" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "https://smart.who.int/ccc/StructureDefinition/Cccobservation"           ]         ] )       ] [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "code" ] ;
    fhir:variable [ fhir:v "concept" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "CodeableConcept"           ]         ] )       ] [
    fhir:context [ fhir:v "concept" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "coding" ] ;
    fhir:variable [ fhir:v "coding" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Coding"           ]         ] )       ] [
    fhir:context [ fhir:v "coding" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "system" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes"           ]         ] )       ] [
    fhir:context [ fhir:v "coding" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "code" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Ccc.B22.DE17&Ccc.B22.DE18"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "aae7a11d" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "item" ] ;
    fhir:variable [ fhir:v "itemtimestamp" ] ;
    fhir:condition [ fhir:v "linkId = 'timestamp'" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "7f22f29f" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "itemtimestamp" ] ;
    fhir:element [ fhir:v "answer" ] ;
    fhir:listMode [ fhir:v "first" ] ;
    fhir:variable [ fhir:v "atimestamp" ]         ] ) ;
            ( fhir:rule [
    fhir:name [ fhir:v "5af77f2c" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "atimestamp" ] ;
    fhir:element [ fhir:v "value" ] ;
    fhir:variable [ fhir:v "val" ]           ] ) ;
              ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "issued" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "val"               ]             ] )           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "patient" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "subject" ] ;
    fhir:variable [ fhir:v "subject" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "subject" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "subject"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "e9d639e1" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "status" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "final"           ]         ] )       ] [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "value" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Boolean ;
    fhir:v true           ]         ] )       ] )     ] )
      ] [
    fhir:name [ fhir:v "CccobservationCccb22de17Cccb22de18f" ] ;
    fhir:typeMode [ fhir:v "none" ] ;
        ( fhir:input [
    fhir:name [ fhir:v "src" ] ;
    fhir:mode [ fhir:v "source" ]     ] [
    fhir:name [ fhir:v "tgt" ] ;
    fhir:mode [ fhir:v "target" ]     ] ) ;
        ( fhir:rule [
    fhir:name [ fhir:v "id-CccobservationCccb22de17Cccb22de18f" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "identifier" ] ;
    fhir:variable [ fhir:v "CodeID" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Identifier"           ]         ] )       ] [
    fhir:context [ fhir:v "CodeID" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "system" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "http://hl7.org/fhir/namingsystem-identifier-type"           ]         ] )       ] [
    fhir:context [ fhir:v "CodeID" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "use" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "official"           ]         ] )       ] [
    fhir:context [ fhir:v "CodeID" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "value" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "uuid"           ]         ] )       ] [
    fhir:context [ fhir:v "CodeID" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "id" ] ;
    fhir:transform [ fhir:v "uuid" ]       ] )     ] [
    fhir:name [ fhir:v "35bc6b82" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "encounter" ] ;
    fhir:variable [ fhir:v "encounter" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "encounter" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "encounter"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "code-CccobservationCccb22de17Cccb22de18f" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "subject" ] ;
    fhir:variable [ fhir:v "subject" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "subject" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "subject"           ]         ] )       ] [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "meta" ] ;
    fhir:variable [ fhir:v "newMeta" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Meta"           ]         ] )       ] [
    fhir:context [ fhir:v "newMeta" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "profile" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "https://smart.who.int/ccc/StructureDefinition/Cccobservation"           ]         ] )       ] [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "code" ] ;
    fhir:variable [ fhir:v "concept" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "CodeableConcept"           ]         ] )       ] [
    fhir:context [ fhir:v "concept" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "coding" ] ;
    fhir:variable [ fhir:v "coding" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Coding"           ]         ] )       ] [
    fhir:context [ fhir:v "coding" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "system" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes"           ]         ] )       ] [
    fhir:context [ fhir:v "coding" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "code" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Ccc.B22.DE17&Ccc.B22.DE18"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "aae7a11d" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "item" ] ;
    fhir:variable [ fhir:v "itemtimestamp" ] ;
    fhir:condition [ fhir:v "linkId = 'timestamp'" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "7f22f29f" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "itemtimestamp" ] ;
    fhir:element [ fhir:v "answer" ] ;
    fhir:listMode [ fhir:v "first" ] ;
    fhir:variable [ fhir:v "atimestamp" ]         ] ) ;
            ( fhir:rule [
    fhir:name [ fhir:v "5af77f2c" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "atimestamp" ] ;
    fhir:element [ fhir:v "value" ] ;
    fhir:variable [ fhir:v "val" ]           ] ) ;
              ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "issued" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "val"               ]             ] )           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "patient" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "subject" ] ;
    fhir:variable [ fhir:v "subject" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "subject" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "subject"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "f21d6e36" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "status" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "cancelled"           ]         ] )       ] [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "value" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Boolean ;
    fhir:v false           ]         ] )       ] )     ] )
      ] [
    fhir:name [ fhir:v "CccobservationCccb22de17Cccb22de19t" ] ;
    fhir:typeMode [ fhir:v "none" ] ;
        ( fhir:input [
    fhir:name [ fhir:v "src" ] ;
    fhir:mode [ fhir:v "source" ]     ] [
    fhir:name [ fhir:v "tgt" ] ;
    fhir:mode [ fhir:v "target" ]     ] ) ;
        ( fhir:rule [
    fhir:name [ fhir:v "id-CccobservationCccb22de17Cccb22de19t" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "identifier" ] ;
    fhir:variable [ fhir:v "CodeID" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Identifier"           ]         ] )       ] [
    fhir:context [ fhir:v "CodeID" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "system" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "http://hl7.org/fhir/namingsystem-identifier-type"           ]         ] )       ] [
    fhir:context [ fhir:v "CodeID" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "use" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "official"           ]         ] )       ] [
    fhir:context [ fhir:v "CodeID" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "value" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "uuid"           ]         ] )       ] [
    fhir:context [ fhir:v "CodeID" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "id" ] ;
    fhir:transform [ fhir:v "uuid" ]       ] )     ] [
    fhir:name [ fhir:v "35bc6b82" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "encounter" ] ;
    fhir:variable [ fhir:v "encounter" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "encounter" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "encounter"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "code-CccobservationCccb22de17Cccb22de19t" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "subject" ] ;
    fhir:variable [ fhir:v "subject" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "subject" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "subject"           ]         ] )       ] [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "meta" ] ;
    fhir:variable [ fhir:v "newMeta" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Meta"           ]         ] )       ] [
    fhir:context [ fhir:v "newMeta" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "profile" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "https://smart.who.int/ccc/StructureDefinition/Cccobservation"           ]         ] )       ] [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "code" ] ;
    fhir:variable [ fhir:v "concept" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "CodeableConcept"           ]         ] )       ] [
    fhir:context [ fhir:v "concept" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "coding" ] ;
    fhir:variable [ fhir:v "coding" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Coding"           ]         ] )       ] [
    fhir:context [ fhir:v "coding" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "system" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes"           ]         ] )       ] [
    fhir:context [ fhir:v "coding" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "code" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Ccc.B22.DE17&Ccc.B22.DE19"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "aae7a11d" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "item" ] ;
    fhir:variable [ fhir:v "itemtimestamp" ] ;
    fhir:condition [ fhir:v "linkId = 'timestamp'" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "7f22f29f" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "itemtimestamp" ] ;
    fhir:element [ fhir:v "answer" ] ;
    fhir:listMode [ fhir:v "first" ] ;
    fhir:variable [ fhir:v "atimestamp" ]         ] ) ;
            ( fhir:rule [
    fhir:name [ fhir:v "5af77f2c" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "atimestamp" ] ;
    fhir:element [ fhir:v "value" ] ;
    fhir:variable [ fhir:v "val" ]           ] ) ;
              ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "issued" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "val"               ]             ] )           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "patient" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "subject" ] ;
    fhir:variable [ fhir:v "subject" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "subject" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "subject"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "e9d639e1" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "status" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "final"           ]         ] )       ] [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "value" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Boolean ;
    fhir:v true           ]         ] )       ] )     ] )
      ] [
    fhir:name [ fhir:v "CccobservationCccb22de17Cccb22de19f" ] ;
    fhir:typeMode [ fhir:v "none" ] ;
        ( fhir:input [
    fhir:name [ fhir:v "src" ] ;
    fhir:mode [ fhir:v "source" ]     ] [
    fhir:name [ fhir:v "tgt" ] ;
    fhir:mode [ fhir:v "target" ]     ] ) ;
        ( fhir:rule [
    fhir:name [ fhir:v "id-CccobservationCccb22de17Cccb22de19f" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "identifier" ] ;
    fhir:variable [ fhir:v "CodeID" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Identifier"           ]         ] )       ] [
    fhir:context [ fhir:v "CodeID" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "system" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "http://hl7.org/fhir/namingsystem-identifier-type"           ]         ] )       ] [
    fhir:context [ fhir:v "CodeID" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "use" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "official"           ]         ] )       ] [
    fhir:context [ fhir:v "CodeID" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "value" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "uuid"           ]         ] )       ] [
    fhir:context [ fhir:v "CodeID" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "id" ] ;
    fhir:transform [ fhir:v "uuid" ]       ] )     ] [
    fhir:name [ fhir:v "35bc6b82" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "encounter" ] ;
    fhir:variable [ fhir:v "encounter" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "encounter" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "encounter"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "code-CccobservationCccb22de17Cccb22de19f" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "subject" ] ;
    fhir:variable [ fhir:v "subject" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "subject" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "subject"           ]         ] )       ] [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "meta" ] ;
    fhir:variable [ fhir:v "newMeta" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Meta"           ]         ] )       ] [
    fhir:context [ fhir:v "newMeta" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "profile" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "https://smart.who.int/ccc/StructureDefinition/Cccobservation"           ]         ] )       ] [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "code" ] ;
    fhir:variable [ fhir:v "concept" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "CodeableConcept"           ]         ] )       ] [
    fhir:context [ fhir:v "concept" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "coding" ] ;
    fhir:variable [ fhir:v "coding" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Coding"           ]         ] )       ] [
    fhir:context [ fhir:v "coding" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "system" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes"           ]         ] )       ] [
    fhir:context [ fhir:v "coding" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "code" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Ccc.B22.DE17&Ccc.B22.DE19"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "aae7a11d" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "item" ] ;
    fhir:variable [ fhir:v "itemtimestamp" ] ;
    fhir:condition [ fhir:v "linkId = 'timestamp'" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "7f22f29f" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "itemtimestamp" ] ;
    fhir:element [ fhir:v "answer" ] ;
    fhir:listMode [ fhir:v "first" ] ;
    fhir:variable [ fhir:v "atimestamp" ]         ] ) ;
            ( fhir:rule [
    fhir:name [ fhir:v "5af77f2c" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "atimestamp" ] ;
    fhir:element [ fhir:v "value" ] ;
    fhir:variable [ fhir:v "val" ]           ] ) ;
              ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "issued" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "val"               ]             ] )           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "patient" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "subject" ] ;
    fhir:variable [ fhir:v "subject" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "subject" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "subject"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "f21d6e36" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "status" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "cancelled"           ]         ] )       ] [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "value" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Boolean ;
    fhir:v false           ]         ] )       ] )     ] )
      ] [
    fhir:name [ fhir:v "CccobservationCccb22de17Cccb22de20t" ] ;
    fhir:typeMode [ fhir:v "none" ] ;
        ( fhir:input [
    fhir:name [ fhir:v "src" ] ;
    fhir:mode [ fhir:v "source" ]     ] [
    fhir:name [ fhir:v "tgt" ] ;
    fhir:mode [ fhir:v "target" ]     ] ) ;
        ( fhir:rule [
    fhir:name [ fhir:v "id-CccobservationCccb22de17Cccb22de20t" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "identifier" ] ;
    fhir:variable [ fhir:v "CodeID" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Identifier"           ]         ] )       ] [
    fhir:context [ fhir:v "CodeID" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "system" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "http://hl7.org/fhir/namingsystem-identifier-type"           ]         ] )       ] [
    fhir:context [ fhir:v "CodeID" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "use" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "official"           ]         ] )       ] [
    fhir:context [ fhir:v "CodeID" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "value" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "uuid"           ]         ] )       ] [
    fhir:context [ fhir:v "CodeID" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "id" ] ;
    fhir:transform [ fhir:v "uuid" ]       ] )     ] [
    fhir:name [ fhir:v "35bc6b82" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "encounter" ] ;
    fhir:variable [ fhir:v "encounter" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "encounter" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "encounter"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "code-CccobservationCccb22de17Cccb22de20t" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "subject" ] ;
    fhir:variable [ fhir:v "subject" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "subject" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "subject"           ]         ] )       ] [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "meta" ] ;
    fhir:variable [ fhir:v "newMeta" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Meta"           ]         ] )       ] [
    fhir:context [ fhir:v "newMeta" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "profile" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "https://smart.who.int/ccc/StructureDefinition/Cccobservation"           ]         ] )       ] [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "code" ] ;
    fhir:variable [ fhir:v "concept" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "CodeableConcept"           ]         ] )       ] [
    fhir:context [ fhir:v "concept" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "coding" ] ;
    fhir:variable [ fhir:v "coding" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Coding"           ]         ] )       ] [
    fhir:context [ fhir:v "coding" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "system" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes"           ]         ] )       ] [
    fhir:context [ fhir:v "coding" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "code" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Ccc.B22.DE17&Ccc.B22.DE20"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "aae7a11d" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "item" ] ;
    fhir:variable [ fhir:v "itemtimestamp" ] ;
    fhir:condition [ fhir:v "linkId = 'timestamp'" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "7f22f29f" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "itemtimestamp" ] ;
    fhir:element [ fhir:v "answer" ] ;
    fhir:listMode [ fhir:v "first" ] ;
    fhir:variable [ fhir:v "atimestamp" ]         ] ) ;
            ( fhir:rule [
    fhir:name [ fhir:v "5af77f2c" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "atimestamp" ] ;
    fhir:element [ fhir:v "value" ] ;
    fhir:variable [ fhir:v "val" ]           ] ) ;
              ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "issued" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "val"               ]             ] )           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "patient" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "subject" ] ;
    fhir:variable [ fhir:v "subject" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "subject" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "subject"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "e9d639e1" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "status" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "final"           ]         ] )       ] [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "value" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Boolean ;
    fhir:v true           ]         ] )       ] )     ] )
      ] [
    fhir:name [ fhir:v "CccobservationCccb22de17Cccb22de20f" ] ;
    fhir:typeMode [ fhir:v "none" ] ;
        ( fhir:input [
    fhir:name [ fhir:v "src" ] ;
    fhir:mode [ fhir:v "source" ]     ] [
    fhir:name [ fhir:v "tgt" ] ;
    fhir:mode [ fhir:v "target" ]     ] ) ;
        ( fhir:rule [
    fhir:name [ fhir:v "id-CccobservationCccb22de17Cccb22de20f" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "identifier" ] ;
    fhir:variable [ fhir:v "CodeID" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Identifier"           ]         ] )       ] [
    fhir:context [ fhir:v "CodeID" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "system" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "http://hl7.org/fhir/namingsystem-identifier-type"           ]         ] )       ] [
    fhir:context [ fhir:v "CodeID" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "use" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "official"           ]         ] )       ] [
    fhir:context [ fhir:v "CodeID" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "value" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "uuid"           ]         ] )       ] [
    fhir:context [ fhir:v "CodeID" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "id" ] ;
    fhir:transform [ fhir:v "uuid" ]       ] )     ] [
    fhir:name [ fhir:v "35bc6b82" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "encounter" ] ;
    fhir:variable [ fhir:v "encounter" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "encounter" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "encounter"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "code-CccobservationCccb22de17Cccb22de20f" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "subject" ] ;
    fhir:variable [ fhir:v "subject" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "subject" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "subject"           ]         ] )       ] [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "meta" ] ;
    fhir:variable [ fhir:v "newMeta" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Meta"           ]         ] )       ] [
    fhir:context [ fhir:v "newMeta" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "profile" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "https://smart.who.int/ccc/StructureDefinition/Cccobservation"           ]         ] )       ] [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "code" ] ;
    fhir:variable [ fhir:v "concept" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "CodeableConcept"           ]         ] )       ] [
    fhir:context [ fhir:v "concept" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "coding" ] ;
    fhir:variable [ fhir:v "coding" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Coding"           ]         ] )       ] [
    fhir:context [ fhir:v "coding" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "system" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes"           ]         ] )       ] [
    fhir:context [ fhir:v "coding" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "code" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Ccc.B22.DE17&Ccc.B22.DE20"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "aae7a11d" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "item" ] ;
    fhir:variable [ fhir:v "itemtimestamp" ] ;
    fhir:condition [ fhir:v "linkId = 'timestamp'" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "7f22f29f" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "itemtimestamp" ] ;
    fhir:element [ fhir:v "answer" ] ;
    fhir:listMode [ fhir:v "first" ] ;
    fhir:variable [ fhir:v "atimestamp" ]         ] ) ;
            ( fhir:rule [
    fhir:name [ fhir:v "5af77f2c" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "atimestamp" ] ;
    fhir:element [ fhir:v "value" ] ;
    fhir:variable [ fhir:v "val" ]           ] ) ;
              ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "issued" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "val"               ]             ] )           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "patient" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "subject" ] ;
    fhir:variable [ fhir:v "subject" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "subject" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "subject"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "f21d6e36" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "status" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "cancelled"           ]         ] )       ] [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "value" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Boolean ;
    fhir:v false           ]         ] )       ] )     ] )
      ] [
    fhir:name [ fhir:v "CccobservationCccb22de17Cccb22de21t" ] ;
    fhir:typeMode [ fhir:v "none" ] ;
        ( fhir:input [
    fhir:name [ fhir:v "src" ] ;
    fhir:mode [ fhir:v "source" ]     ] [
    fhir:name [ fhir:v "tgt" ] ;
    fhir:mode [ fhir:v "target" ]     ] ) ;
        ( fhir:rule [
    fhir:name [ fhir:v "id-CccobservationCccb22de17Cccb22de21t" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "identifier" ] ;
    fhir:variable [ fhir:v "CodeID" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Identifier"           ]         ] )       ] [
    fhir:context [ fhir:v "CodeID" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "system" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "http://hl7.org/fhir/namingsystem-identifier-type"           ]         ] )       ] [
    fhir:context [ fhir:v "CodeID" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "use" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "official"           ]         ] )       ] [
    fhir:context [ fhir:v "CodeID" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "value" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "uuid"           ]         ] )       ] [
    fhir:context [ fhir:v "CodeID" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "id" ] ;
    fhir:transform [ fhir:v "uuid" ]       ] )     ] [
    fhir:name [ fhir:v "35bc6b82" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "encounter" ] ;
    fhir:variable [ fhir:v "encounter" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "encounter" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "encounter"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "code-CccobservationCccb22de17Cccb22de21t" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "subject" ] ;
    fhir:variable [ fhir:v "subject" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "subject" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "subject"           ]         ] )       ] [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "meta" ] ;
    fhir:variable [ fhir:v "newMeta" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Meta"           ]         ] )       ] [
    fhir:context [ fhir:v "newMeta" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "profile" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "https://smart.who.int/ccc/StructureDefinition/Cccobservation"           ]         ] )       ] [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "code" ] ;
    fhir:variable [ fhir:v "concept" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "CodeableConcept"           ]         ] )       ] [
    fhir:context [ fhir:v "concept" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "coding" ] ;
    fhir:variable [ fhir:v "coding" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Coding"           ]         ] )       ] [
    fhir:context [ fhir:v "coding" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "system" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes"           ]         ] )       ] [
    fhir:context [ fhir:v "coding" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "code" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Ccc.B22.DE17&Ccc.B22.DE21"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "aae7a11d" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "item" ] ;
    fhir:variable [ fhir:v "itemtimestamp" ] ;
    fhir:condition [ fhir:v "linkId = 'timestamp'" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "7f22f29f" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "itemtimestamp" ] ;
    fhir:element [ fhir:v "answer" ] ;
    fhir:listMode [ fhir:v "first" ] ;
    fhir:variable [ fhir:v "atimestamp" ]         ] ) ;
            ( fhir:rule [
    fhir:name [ fhir:v "5af77f2c" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "atimestamp" ] ;
    fhir:element [ fhir:v "value" ] ;
    fhir:variable [ fhir:v "val" ]           ] ) ;
              ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "issued" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "val"               ]             ] )           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "patient" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "subject" ] ;
    fhir:variable [ fhir:v "subject" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "subject" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "subject"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "e9d639e1" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "status" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "final"           ]         ] )       ] [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "value" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Boolean ;
    fhir:v true           ]         ] )       ] )     ] )
      ] [
    fhir:name [ fhir:v "CccobservationCccb22de17Cccb22de21f" ] ;
    fhir:typeMode [ fhir:v "none" ] ;
        ( fhir:input [
    fhir:name [ fhir:v "src" ] ;
    fhir:mode [ fhir:v "source" ]     ] [
    fhir:name [ fhir:v "tgt" ] ;
    fhir:mode [ fhir:v "target" ]     ] ) ;
        ( fhir:rule [
    fhir:name [ fhir:v "id-CccobservationCccb22de17Cccb22de21f" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "identifier" ] ;
    fhir:variable [ fhir:v "CodeID" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Identifier"           ]         ] )       ] [
    fhir:context [ fhir:v "CodeID" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "system" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "http://hl7.org/fhir/namingsystem-identifier-type"           ]         ] )       ] [
    fhir:context [ fhir:v "CodeID" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "use" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "official"           ]         ] )       ] [
    fhir:context [ fhir:v "CodeID" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "value" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "uuid"           ]         ] )       ] [
    fhir:context [ fhir:v "CodeID" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "id" ] ;
    fhir:transform [ fhir:v "uuid" ]       ] )     ] [
    fhir:name [ fhir:v "35bc6b82" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "encounter" ] ;
    fhir:variable [ fhir:v "encounter" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "encounter" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "encounter"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "code-CccobservationCccb22de17Cccb22de21f" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "subject" ] ;
    fhir:variable [ fhir:v "subject" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "subject" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "subject"           ]         ] )       ] [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "meta" ] ;
    fhir:variable [ fhir:v "newMeta" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Meta"           ]         ] )       ] [
    fhir:context [ fhir:v "newMeta" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "profile" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "https://smart.who.int/ccc/StructureDefinition/Cccobservation"           ]         ] )       ] [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "code" ] ;
    fhir:variable [ fhir:v "concept" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "CodeableConcept"           ]         ] )       ] [
    fhir:context [ fhir:v "concept" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "coding" ] ;
    fhir:variable [ fhir:v "coding" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Coding"           ]         ] )       ] [
    fhir:context [ fhir:v "coding" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "system" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes"           ]         ] )       ] [
    fhir:context [ fhir:v "coding" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "code" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Ccc.B22.DE17&Ccc.B22.DE21"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "aae7a11d" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "item" ] ;
    fhir:variable [ fhir:v "itemtimestamp" ] ;
    fhir:condition [ fhir:v "linkId = 'timestamp'" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "7f22f29f" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "itemtimestamp" ] ;
    fhir:element [ fhir:v "answer" ] ;
    fhir:listMode [ fhir:v "first" ] ;
    fhir:variable [ fhir:v "atimestamp" ]         ] ) ;
            ( fhir:rule [
    fhir:name [ fhir:v "5af77f2c" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "atimestamp" ] ;
    fhir:element [ fhir:v "value" ] ;
    fhir:variable [ fhir:v "val" ]           ] ) ;
              ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "issued" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "val"               ]             ] )           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "patient" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "subject" ] ;
    fhir:variable [ fhir:v "subject" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "subject" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "subject"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "f21d6e36" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "status" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "cancelled"           ]         ] )       ] [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "value" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Boolean ;
    fhir:v false           ]         ] )       ] )     ] )
      ] [
    fhir:name [ fhir:v "CccobservationCccb22de17Cccb22de22t" ] ;
    fhir:typeMode [ fhir:v "none" ] ;
        ( fhir:input [
    fhir:name [ fhir:v "src" ] ;
    fhir:mode [ fhir:v "source" ]     ] [
    fhir:name [ fhir:v "tgt" ] ;
    fhir:mode [ fhir:v "target" ]     ] ) ;
        ( fhir:rule [
    fhir:name [ fhir:v "id-CccobservationCccb22de17Cccb22de22t" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "identifier" ] ;
    fhir:variable [ fhir:v "CodeID" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Identifier"           ]         ] )       ] [
    fhir:context [ fhir:v "CodeID" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "system" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "http://hl7.org/fhir/namingsystem-identifier-type"           ]         ] )       ] [
    fhir:context [ fhir:v "CodeID" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "use" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "official"           ]         ] )       ] [
    fhir:context [ fhir:v "CodeID" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "value" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "uuid"           ]         ] )       ] [
    fhir:context [ fhir:v "CodeID" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "id" ] ;
    fhir:transform [ fhir:v "uuid" ]       ] )     ] [
    fhir:name [ fhir:v "35bc6b82" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "encounter" ] ;
    fhir:variable [ fhir:v "encounter" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "encounter" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "encounter"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "code-CccobservationCccb22de17Cccb22de22t" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "subject" ] ;
    fhir:variable [ fhir:v "subject" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "subject" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "subject"           ]         ] )       ] [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "meta" ] ;
    fhir:variable [ fhir:v "newMeta" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Meta"           ]         ] )       ] [
    fhir:context [ fhir:v "newMeta" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "profile" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "https://smart.who.int/ccc/StructureDefinition/Cccobservation"           ]         ] )       ] [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "code" ] ;
    fhir:variable [ fhir:v "concept" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "CodeableConcept"           ]         ] )       ] [
    fhir:context [ fhir:v "concept" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "coding" ] ;
    fhir:variable [ fhir:v "coding" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Coding"           ]         ] )       ] [
    fhir:context [ fhir:v "coding" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "system" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes"           ]         ] )       ] [
    fhir:context [ fhir:v "coding" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "code" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Ccc.B22.DE17&Ccc.B22.DE22"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "aae7a11d" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "item" ] ;
    fhir:variable [ fhir:v "itemtimestamp" ] ;
    fhir:condition [ fhir:v "linkId = 'timestamp'" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "7f22f29f" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "itemtimestamp" ] ;
    fhir:element [ fhir:v "answer" ] ;
    fhir:listMode [ fhir:v "first" ] ;
    fhir:variable [ fhir:v "atimestamp" ]         ] ) ;
            ( fhir:rule [
    fhir:name [ fhir:v "5af77f2c" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "atimestamp" ] ;
    fhir:element [ fhir:v "value" ] ;
    fhir:variable [ fhir:v "val" ]           ] ) ;
              ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "issued" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "val"               ]             ] )           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "patient" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "subject" ] ;
    fhir:variable [ fhir:v "subject" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "subject" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "subject"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "e9d639e1" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "status" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "final"           ]         ] )       ] [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "value" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Boolean ;
    fhir:v true           ]         ] )       ] )     ] )
      ] [
    fhir:name [ fhir:v "CccobservationCccb22de17Cccb22de22f" ] ;
    fhir:typeMode [ fhir:v "none" ] ;
        ( fhir:input [
    fhir:name [ fhir:v "src" ] ;
    fhir:mode [ fhir:v "source" ]     ] [
    fhir:name [ fhir:v "tgt" ] ;
    fhir:mode [ fhir:v "target" ]     ] ) ;
        ( fhir:rule [
    fhir:name [ fhir:v "id-CccobservationCccb22de17Cccb22de22f" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "identifier" ] ;
    fhir:variable [ fhir:v "CodeID" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Identifier"           ]         ] )       ] [
    fhir:context [ fhir:v "CodeID" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "system" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "http://hl7.org/fhir/namingsystem-identifier-type"           ]         ] )       ] [
    fhir:context [ fhir:v "CodeID" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "use" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "official"           ]         ] )       ] [
    fhir:context [ fhir:v "CodeID" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "value" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "uuid"           ]         ] )       ] [
    fhir:context [ fhir:v "CodeID" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "id" ] ;
    fhir:transform [ fhir:v "uuid" ]       ] )     ] [
    fhir:name [ fhir:v "35bc6b82" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "encounter" ] ;
    fhir:variable [ fhir:v "encounter" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "encounter" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "encounter"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "code-CccobservationCccb22de17Cccb22de22f" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "subject" ] ;
    fhir:variable [ fhir:v "subject" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "subject" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "subject"           ]         ] )       ] [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "meta" ] ;
    fhir:variable [ fhir:v "newMeta" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Meta"           ]         ] )       ] [
    fhir:context [ fhir:v "newMeta" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "profile" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "https://smart.who.int/ccc/StructureDefinition/Cccobservation"           ]         ] )       ] [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "code" ] ;
    fhir:variable [ fhir:v "concept" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "CodeableConcept"           ]         ] )       ] [
    fhir:context [ fhir:v "concept" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "coding" ] ;
    fhir:variable [ fhir:v "coding" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Coding"           ]         ] )       ] [
    fhir:context [ fhir:v "coding" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "system" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes"           ]         ] )       ] [
    fhir:context [ fhir:v "coding" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "code" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Ccc.B22.DE17&Ccc.B22.DE22"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "aae7a11d" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "item" ] ;
    fhir:variable [ fhir:v "itemtimestamp" ] ;
    fhir:condition [ fhir:v "linkId = 'timestamp'" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "7f22f29f" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "itemtimestamp" ] ;
    fhir:element [ fhir:v "answer" ] ;
    fhir:listMode [ fhir:v "first" ] ;
    fhir:variable [ fhir:v "atimestamp" ]         ] ) ;
            ( fhir:rule [
    fhir:name [ fhir:v "5af77f2c" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "atimestamp" ] ;
    fhir:element [ fhir:v "value" ] ;
    fhir:variable [ fhir:v "val" ]           ] ) ;
              ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "issued" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "val"               ]             ] )           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "patient" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "subject" ] ;
    fhir:variable [ fhir:v "subject" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "subject" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "subject"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "f21d6e36" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "status" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "cancelled"           ]         ] )       ] [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "value" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Boolean ;
    fhir:v false           ]         ] )       ] )     ] )
      ] [
    fhir:name [ fhir:v "CccobservationCccb22de22" ] ;
    fhir:typeMode [ fhir:v "none" ] ;
        ( fhir:input [
    fhir:name [ fhir:v "src" ] ;
    fhir:mode [ fhir:v "source" ]     ] [
    fhir:name [ fhir:v "tgt" ] ;
    fhir:mode [ fhir:v "target" ]     ] ) ;
        ( fhir:rule [
    fhir:name [ fhir:v "id-Cccb22de22" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "identifier" ] ;
    fhir:variable [ fhir:v "CodeID" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Identifier"           ]         ] )       ] [
    fhir:context [ fhir:v "CodeID" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "system" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "http://hl7.org/fhir/namingsystem-identifier-type"           ]         ] )       ] [
    fhir:context [ fhir:v "CodeID" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "use" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "official"           ]         ] )       ] [
    fhir:context [ fhir:v "CodeID" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "value" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "uuid"           ]         ] )       ] [
    fhir:context [ fhir:v "CodeID" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "id" ] ;
    fhir:transform [ fhir:v "uuid" ]       ] )     ] [
    fhir:name [ fhir:v "35bc6b82" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "encounter" ] ;
    fhir:variable [ fhir:v "encounter" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "encounter" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "encounter"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "code-Cccb22de22" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "subject" ] ;
    fhir:variable [ fhir:v "subject" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "subject" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "subject"           ]         ] )       ] [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "meta" ] ;
    fhir:variable [ fhir:v "newMeta" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Meta"           ]         ] )       ] [
    fhir:context [ fhir:v "newMeta" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "profile" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "https://smart.who.int/ccc/StructureDefinition/Cccobservation"           ]         ] )       ] [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "code" ] ;
    fhir:variable [ fhir:v "concept" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "CodeableConcept"           ]         ] )       ] [
    fhir:context [ fhir:v "concept" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "coding" ] ;
    fhir:variable [ fhir:v "coding" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Coding"           ]         ] )       ] [
    fhir:context [ fhir:v "coding" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "system" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes"           ]         ] )       ] [
    fhir:context [ fhir:v "coding" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "code" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Ccc.B22.DE22"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "aae7a11d" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "item" ] ;
    fhir:variable [ fhir:v "itemtimestamp" ] ;
    fhir:condition [ fhir:v "linkId = 'timestamp'" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "7f22f29f" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "itemtimestamp" ] ;
    fhir:element [ fhir:v "answer" ] ;
    fhir:listMode [ fhir:v "first" ] ;
    fhir:variable [ fhir:v "atimestamp" ]         ] ) ;
            ( fhir:rule [
    fhir:name [ fhir:v "5af77f2c" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "atimestamp" ] ;
    fhir:element [ fhir:v "value" ] ;
    fhir:variable [ fhir:v "val" ]           ] ) ;
              ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "issued" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "val"               ]             ] )           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "patient" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "subject" ] ;
    fhir:variable [ fhir:v "subject" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "subject" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "subject"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "dd2a446b" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "item" ] ;
    fhir:listMode [ fhir:v "first" ] ;
    fhir:variable [ fhir:v "item" ] ;
    fhir:condition [ fhir:v "(linkId = 'Ccc.B22.DE22') and answer.exists()" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "721205d5" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "item" ] ;
    fhir:element [ fhir:v "answer" ] ;
    fhir:listMode [ fhir:v "first" ] ;
    fhir:variable [ fhir:v "a" ]         ] ) ;
            ( fhir:rule [
    fhir:name [ fhir:v "26c2c8c7" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "a" ] ;
    fhir:element [ fhir:v "value" ] ;
    fhir:variable [ fhir:v "val" ]           ] ) ;
              ( fhir:rule [
    fhir:name [ fhir:v "8a65aaa5" ] ;
                ( fhir:source [
    fhir:context [ fhir:v "val" ] ;
    fhir:condition [ fhir:v "val.code = 'true'" ]             ] ) ;
                ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "status" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "final"                 ]               ] )             ] [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "value" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:Boolean ;
    fhir:v true                 ]               ] )             ] )           ] )         ] )       ] )     ] )
      ] [
    fhir:name [ fhir:v "CccobservationCccb22de21" ] ;
    fhir:typeMode [ fhir:v "none" ] ;
        ( fhir:input [
    fhir:name [ fhir:v "src" ] ;
    fhir:mode [ fhir:v "source" ]     ] [
    fhir:name [ fhir:v "tgt" ] ;
    fhir:mode [ fhir:v "target" ]     ] ) ;
        ( fhir:rule [
    fhir:name [ fhir:v "id-Cccb22de21" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "identifier" ] ;
    fhir:variable [ fhir:v "CodeID" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Identifier"           ]         ] )       ] [
    fhir:context [ fhir:v "CodeID" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "system" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "http://hl7.org/fhir/namingsystem-identifier-type"           ]         ] )       ] [
    fhir:context [ fhir:v "CodeID" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "use" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "official"           ]         ] )       ] [
    fhir:context [ fhir:v "CodeID" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "value" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "uuid"           ]         ] )       ] [
    fhir:context [ fhir:v "CodeID" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "id" ] ;
    fhir:transform [ fhir:v "uuid" ]       ] )     ] [
    fhir:name [ fhir:v "35bc6b82" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "encounter" ] ;
    fhir:variable [ fhir:v "encounter" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "encounter" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "encounter"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "code-Cccb22de21" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "subject" ] ;
    fhir:variable [ fhir:v "subject" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "subject" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "subject"           ]         ] )       ] [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "meta" ] ;
    fhir:variable [ fhir:v "newMeta" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Meta"           ]         ] )       ] [
    fhir:context [ fhir:v "newMeta" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "profile" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "https://smart.who.int/ccc/StructureDefinition/Cccobservation"           ]         ] )       ] [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "code" ] ;
    fhir:variable [ fhir:v "concept" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "CodeableConcept"           ]         ] )       ] [
    fhir:context [ fhir:v "concept" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "coding" ] ;
    fhir:variable [ fhir:v "coding" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Coding"           ]         ] )       ] [
    fhir:context [ fhir:v "coding" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "system" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes"           ]         ] )       ] [
    fhir:context [ fhir:v "coding" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "code" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Ccc.B22.DE21"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "aae7a11d" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "item" ] ;
    fhir:variable [ fhir:v "itemtimestamp" ] ;
    fhir:condition [ fhir:v "linkId = 'timestamp'" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "7f22f29f" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "itemtimestamp" ] ;
    fhir:element [ fhir:v "answer" ] ;
    fhir:listMode [ fhir:v "first" ] ;
    fhir:variable [ fhir:v "atimestamp" ]         ] ) ;
            ( fhir:rule [
    fhir:name [ fhir:v "5af77f2c" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "atimestamp" ] ;
    fhir:element [ fhir:v "value" ] ;
    fhir:variable [ fhir:v "val" ]           ] ) ;
              ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "issued" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "val"               ]             ] )           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "patient" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "subject" ] ;
    fhir:variable [ fhir:v "subject" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "subject" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "subject"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "be0b9dbe" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "item" ] ;
    fhir:listMode [ fhir:v "first" ] ;
    fhir:variable [ fhir:v "item" ] ;
    fhir:condition [ fhir:v "(linkId = 'Ccc.B22.DE21') and answer.exists()" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "bdab9370" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "item" ] ;
    fhir:element [ fhir:v "answer" ] ;
    fhir:listMode [ fhir:v "first" ] ;
    fhir:variable [ fhir:v "a" ]         ] ) ;
            ( fhir:rule [
    fhir:name [ fhir:v "final-Cccb22de21" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "a" ] ;
    fhir:condition [ fhir:v "a.value = true" ]           ] ) ;
              ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "status" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "final"               ]             ] )           ] [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "value" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
    fhir:value [
    a fhir:Boolean ;
    fhir:v true               ]             ] )           ] )         ] [
    fhir:name [ fhir:v "notfound-Cccb22de21" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "a" ] ;
    fhir:condition [ fhir:v "a.value = false" ]           ] ) ;
              ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "status" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "cancelled"               ]             ] )           ] [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "value" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
    fhir:value [
    a fhir:Boolean ;
    fhir:v false               ]             ] )           ] )         ] )       ] )     ] )
      ] ) . #