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.b18-21.signs.2m.m - 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.b18-21.signs.2m.m"] ; #
      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.b18-21.signs.2m.m\" = \"Ccc.b18-21.signs.2m.m\"#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.item first as item where (linkId = 'Ccc.B18S2.DE07') 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 CccobservationCccb18s2de07(src, tgt) \"ca6d2440\";#xD;\n      } \"4d3562ea\";#xD;\n    } \"1f5e2e49\";#xD;\n  } \"eeb88b76\";#xD;\n  src.item first as item where (linkId = 'Ccc.B18S2.DE08') 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 CccobservationCccb18s2de08(src, tgt) \"c262db3f\";#xD;\n      } \"f43b4802\";#xD;\n    } \"b192f8b8\";#xD;\n  } \"45ffea94\";#xD;\n  src.item first as item where (linkId = 'Ccc.B18S2.DE12') 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 CccobservationCccb18s2de12(src, tgt) \"6f6b2618\";#xD;\n      } \"09f8d74d\";#xD;\n    } \"5e6747fd\";#xD;\n  } \"8665f72f\";#xD;\n  src.item first as item where (linkId = 'Ccc.B18S2.DE13') 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 CccobservationCccb18s2de13(src, tgt) \"80759c57\";#xD;\n      } \"f658f964\";#xD;\n    } \"30291a87\";#xD;\n  } \"5c0dbbd7\";#xD;\n  src.item first as item where (linkId = 'Ccc.B19S2.DE01') 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 CccobservationCccb19s2de01(src, tgt) \"732434fb\";#xD;\n      } \"a79173fe\";#xD;\n    } \"355d3980\";#xD;\n  } \"55fa8d66\";#xD;\n  src.item first as item where (linkId = 'Ccc.B19S2.DE02') 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 CccobservationCccb19s2de02(src, tgt) \"19b33283\";#xD;\n      } \"723e7b39\";#xD;\n    } \"ab195945\";#xD;\n  } \"a451ea64\";#xD;\n  src.item first as item where (linkId = 'Ccc.B19S2.DE04') 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 CccobservationCccb19s2de04(src, tgt) \"5f959962\";#xD;\n      } \"ec59f51c\";#xD;\n    } \"08a1cfa8\";#xD;\n  } \"3bb01182\";#xD;\n  src.item first as item where (linkId = 'Ccc.B11S2.DE01') 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 CccobservationCccb11s2de01(src, tgt) \"571f12fb\";#xD;\n      } \"df9369ca\";#xD;\n    } \"b1634b07\";#xD;\n  } \"bf55dba7\";#xD;\n  src.item first as item where (linkId = 'Ccc.B11S2.DE02') 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 CccobservationCccb11s2de02(src, tgt) \"35df08c4\";#xD;\n      } \"52eb002b\";#xD;\n    } \"c096f5b2\";#xD;\n  } \"f35e6a90\";#xD;\n  src.item first as item where (linkId = 'Ccc.B11S2.DE06') 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 CccobservationCccb11s2de06(src, tgt) \"048f10f9\";#xD;\n      } \"011caec9\";#xD;\n    } \"431cd0b3\";#xD;\n  } \"5a3f8e99\";#xD;\n  src.item first as item where (linkId = 'Ccc.B21S2.DE01') 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 CccobservationCccb21s2de01(src, tgt) \"94478be1\";#xD;\n      } \"2cf57502\";#xD;\n    } \"a5752431\";#xD;\n  } \"431eb374\";#xD;\n  src.item first as item where (linkId = 'Ccc.B21S2.DE05') 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 CccobservationCccb21s2de05(src, tgt) \"8cbd2b43\";#xD;\n      } \"04b19cec\";#xD;\n    } \"1e478ba6\";#xD;\n  } \"a6ecc4b7\";#xD;\n  src.item first as item where (linkId = 'Ccc.B21S2.DE06') 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 CccobservationCccb21s2de06(src, tgt) \"2d3c82db\";#xD;\n      } \"d38f9e09\";#xD;\n    } \"18c5885a\";#xD;\n  } \"3a24e445\";#xD;\n  src.item first as item where (linkId = 'Ccc.B21S2.DE08') 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 CccobservationCccb21s2de08(src, tgt) \"f361a68d\";#xD;\n      } \"5189a3f8\";#xD;\n    } \"a0b4c2bc\";#xD;\n  } \"79ee0a37\";#xD;\n  src where src.item.where(linkId = 'Ccc.B21S2.DE09').answer.where(value.code = 'Ccc.B21S2.DE11') then {#xD;\n    src.item first as item where (linkId = 'Ccc.B21S2.DE09') 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 CccobservationCccb21s2de09Cccb21s2de11t(src, tgt) \"a9a122af\";#xD;\n        } \"d7f85848\";#xD;\n      } \"6de484e0\";#xD;\n    } \"37c1ad1e\";#xD;\n  } \"7d349d00\";#xD;\n  src where src.item.where(linkId = 'Ccc.B21S2.DE09').exists() and src.item.where(linkId = 'Ccc.B21S2.DE09').answer.where(value.code = 'Ccc.B21S2.DE11').empty() then {#xD;\n    src.item first as item where (linkId = 'Ccc.B21S2.DE09') 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 CccobservationCccb21s2de09Cccb21s2de11f(src, tgt) \"d1d28f86\";#xD;\n        } \"d67305e0\";#xD;\n      } \"653bf0a8\";#xD;\n    } \"4899742e\";#xD;\n  } \"e01f9812\";#xD;\n  src where src.item.where(linkId = 'Ccc.B21S2.DE09').answer.where(value.code = 'Ccc.B21S2.DE10') then {#xD;\n    src.item first as item where (linkId = 'Ccc.B21S2.DE09') 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 CccobservationCccb21s2de09Cccb21s2de10t(src, tgt) \"8e89324d\";#xD;\n        } \"93674a9a\";#xD;\n      } \"aa6f3f2f\";#xD;\n    } \"94e88b7c\";#xD;\n  } \"9864ed15\";#xD;\n  src where src.item.where(linkId = 'Ccc.B21S2.DE09').exists() and src.item.where(linkId = 'Ccc.B21S2.DE09').answer.where(value.code = 'Ccc.B21S2.DE10').empty() then {#xD;\n    src.item first as item where (linkId = 'Ccc.B21S2.DE09') 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 CccobservationCccb21s2de09Cccb21s2de10f(src, tgt) \"b433f49e\";#xD;\n        } \"e8c61eb0\";#xD;\n      } \"fa7e3d84\";#xD;\n    } \"68af5a34\";#xD;\n  } \"e81b6afa\";#xD;\n  src.item first as item where (linkId = 'Ccc.B21S2.DE12') 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 CccobservationCccb21s2de12(src, tgt) \"8f04b3ac\";#xD;\n      } \"b1374c84\";#xD;\n    } \"8cb03aa0\";#xD;\n  } \"e2b672db\";#xD;\n  src.item first as item where (linkId = 'Ccc.B21S2.DE13') 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 CccobservationCccb21s2de13(src, tgt) \"0aaf1ecd\";#xD;\n      } \"695ddd29\";#xD;\n    } \"64398d2e\";#xD;\n  } \"e854f1bd\";#xD;\n  src.item first as item where (linkId = 'Ccc.B21S2.DE15') 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 CccobservationCccb21s2de15(src, tgt) \"7858a431\";#xD;\n      } \"43de516f\";#xD;\n    } \"e494830e\";#xD;\n  } \"faf9102b\";#xD;\n  src.item first as item where (linkId = 'Ccc.B21S2.DE16') 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 CccobservationCccb21s2de16(src, tgt) \"b2e4c410\";#xD;\n      } \"b8bfacf5\";#xD;\n    } \"9b56be06\";#xD;\n  } \"be6683f9\";#xD;\n  src.item first as item where (linkId = 'Ccc.B21S2.DE18') 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 CccobservationCccb21s2de18(src, tgt) \"87a87f89\";#xD;\n      } \"ecd09b62\";#xD;\n    } \"af8f5c24\";#xD;\n  } \"c0db11dc\";#xD;\n  src.item first as item where (linkId = 'Ccc.B21S2.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 CccobservationCccb21s2de21(src, tgt) \"e288e392\";#xD;\n      } \"ae968910\";#xD;\n    } \"46cbfc52\";#xD;\n  } \"8f89318d\";#xD;\n  src.item first as item where (linkId = 'Ccc.B21S2.DE24') 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 CccobservationCccb21s2de24(src, tgt) \"c746464e\";#xD;\n      } \"6b52ad04\";#xD;\n    } \"c7688cc7\";#xD;\n  } \"668c3c42\";#xD;\n  src.item first as item where (linkId = 'Ccc.B21S2.DE27') 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 CccobservationCccb21s2de27(src, tgt) \"46c80d1a\";#xD;\n      } \"1c5eb3d7\";#xD;\n    } \"c270b0d1\";#xD;\n  } \"24323941\";#xD;\n  src.item first as item where (linkId = 'Ccc.B21S2.DE30') 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 CccobservationCccb21s2de30(src, tgt) \"f7a188b4\";#xD;\n      } \"8891d1a4\";#xD;\n    } \"ec6c3ef3\";#xD;\n  } \"5e474dbb\";#xD;\n  src.item first as item where (linkId = 'Ccc.B21S2.DE31') 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 CccobservationCccb21s2de31(src, tgt) \"7b00306c\";#xD;\n      } \"ded65bf0\";#xD;\n    } \"6c051e6d\";#xD;\n  } \"0dac018e\";#xD;\n  src.item first as itm1 where linkId = 'Ccc.B22.RespiratoryRate' then {#xD;\n    itm1.item first as item where (linkId = 'Ccc.B22.DE01') 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 CccobservationCccb22de01(src, tgt) \"94788d70\";#xD;\n        } \"cafa1f90\";#xD;\n      } \"44017cb3\";#xD;\n    } \"1c5108b8\";#xD;\n  } \"88bb5c43\";#xD;\n  src.item first as itm1 where linkId = 'Ccc.B22.RespiratoryRate' then {#xD;\n    itm1.item first as item where (linkId = 'Ccc.B22.DE02') 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 CccobservationCccb22de02(src, tgt) \"c3e885af\";#xD;\n        } \"60b301de\";#xD;\n      } \"815e425c\";#xD;\n    } \"85d3c3a3\";#xD;\n  } \"c7e0dbc2\";#xD;\n  src.item first as itm1 where linkId = 'Ccc.B22.RespiratoryRate' then {#xD;\n    itm1.item first as itm2 where linkId = 'second' then {#xD;\n      itm2.item first as item where (linkId = 'Ccc.B22.DE04') 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 CccobservationCccb22de04(src, tgt) \"42ed4c3a\";#xD;\n          } \"b802d4a2\";#xD;\n        } \"c7431f4f\";#xD;\n      } \"ad5094ed\";#xD;\n    } \"3b2e9629\";#xD;\n  } \"318dfe75\";#xD;\n  src.item first as itm1 where linkId = 'Ccc.B22.RespiratoryRate' then {#xD;\n    itm1.item first as itm2 where linkId = 'second' then {#xD;\n      itm2.item first as item where (linkId = 'Ccc.B22.DE05') 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 CccobservationCccb22de05(src, tgt) \"3be4cd34\";#xD;\n          } \"b7585bc2\";#xD;\n        } \"61b1a5c6\";#xD;\n      } \"d9d928a7\";#xD;\n    } \"9853d168\";#xD;\n  } \"c21c2c7c\";#xD;\n  src.item first as itm1 where linkId = 'Ccc.B22.RespiratoryRate' then {#xD;\n    itm1.item first as item where (linkId = 'Ccc.B22.DE07') 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 CccobservationCccb22de07(src, tgt) \"fa30cee1\";#xD;\n        } \"aad75965\";#xD;\n      } \"8267defb\";#xD;\n    } \"a2eebe03\";#xD;\n  } \"7ef76f25\";#xD;\n}#xD;\n#xD;\ngroup CccobservationCccb18s2de07(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-Cccb18s2de07\";#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.B18S2.DE07' \"code-Cccb18s2de07\";#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.B18S2.DE07') 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-Cccb18s2de07\";#xD;\n      a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false \"notfound-Cccb18s2de07\";#xD;\n    } \"bdab9370\";#xD;\n  } \"03e3bd99\";#xD;\n}#xD;\n#xD;\ngroup CccobservationCccb18s2de08(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-Cccb18s2de08\";#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.B18S2.DE08' \"code-Cccb18s2de08\";#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.B18S2.DE08') 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 = 'none' -&gt; tgt.swrapin_entry_createtatus = 'cancelled' \"d0a13fda\";#xD;\n        val where val.code != 'none' -&gt;  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' \"a1050460\";#xD;\n      } \"310f4b1f\";#xD;\n    } \"6af9bfcc\";#xD;\n  } \"0b46e243\";#xD;\n}#xD;\n#xD;\ngroup CccobservationCccb18s2de12(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-Cccb18s2de12\";#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.B18S2.DE12' \"code-Cccb18s2de12\";#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.B18S2.DE12') 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-Cccb18s2de12\";#xD;\n      a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false \"notfound-Cccb18s2de12\";#xD;\n    } \"bdab9370\";#xD;\n  } \"c2b6211e\";#xD;\n}#xD;\n#xD;\ngroup CccobservationCccb18s2de13(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-Cccb18s2de13\";#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.B18S2.DE13' \"code-Cccb18s2de13\";#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.B18S2.DE13') 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-Cccb18s2de13\";#xD;\n      a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false \"notfound-Cccb18s2de13\";#xD;\n    } \"bdab9370\";#xD;\n  } \"5c58b9dd\";#xD;\n}#xD;\n#xD;\ngroup CccobservationCccb19s2de01(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-Cccb19s2de01\";#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.B19S2.DE01' \"code-Cccb19s2de01\";#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.B19S2.DE01') 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-Cccb19s2de01\";#xD;\n      a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false \"notfound-Cccb19s2de01\";#xD;\n    } \"bdab9370\";#xD;\n  } \"9cc43da0\";#xD;\n}#xD;\n#xD;\ngroup CccobservationCccb19s2de02(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-Cccb19s2de02\";#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.B19S2.DE02' \"code-Cccb19s2de02\";#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.B19S2.DE02') 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-Cccb19s2de02\";#xD;\n      a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false \"notfound-Cccb19s2de02\";#xD;\n    } \"bdab9370\";#xD;\n  } \"c6f7f824\";#xD;\n}#xD;\n#xD;\ngroup CccobservationCccb19s2de04(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-Cccb19s2de04\";#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.B19S2.DE04' \"code-Cccb19s2de04\";#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.B19S2.DE04') 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 = 'none' -&gt; tgt.swrapin_entry_createtatus = 'cancelled' \"d0a13fda\";#xD;\n        val where val.code != 'none' -&gt;  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' \"a1050460\";#xD;\n      } \"310f4b1f\";#xD;\n    } \"6af9bfcc\";#xD;\n  } \"42fb84b8\";#xD;\n}#xD;\n#xD;\ngroup CccobservationCccb11s2de01(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-Cccb11s2de01\";#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.B11S2.DE01' \"code-Cccb11s2de01\";#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.B11S2.DE01') 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-Cccb11s2de01\";#xD;\n      a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false \"notfound-Cccb11s2de01\";#xD;\n    } \"bdab9370\";#xD;\n  } \"7fc3f941\";#xD;\n}#xD;\n#xD;\ngroup CccobservationCccb11s2de02(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-Cccb11s2de02\";#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.B11S2.DE02' \"code-Cccb11s2de02\";#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.B11S2.DE02') 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 = 'none' -&gt; tgt.swrapin_entry_createtatus = 'cancelled' \"d0a13fda\";#xD;\n        val where val.code != 'none' -&gt;  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' \"a1050460\";#xD;\n      } \"310f4b1f\";#xD;\n    } \"6af9bfcc\";#xD;\n  } \"73bc942d\";#xD;\n}#xD;\n#xD;\ngroup CccobservationCccb11s2de06(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-Cccb11s2de06\";#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.B11S2.DE06' \"code-Cccb11s2de06\";#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.B11S2.DE06') 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-Cccb11s2de06\";#xD;\n      a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false \"notfound-Cccb11s2de06\";#xD;\n    } \"bdab9370\";#xD;\n  } \"47e72c0c\";#xD;\n}#xD;\n#xD;\ngroup CccobservationCccb21s2de01(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-Cccb21s2de01\";#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.B21S2.DE01' \"code-Cccb21s2de01\";#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.B21S2.DE01') and answer.exists() then {#xD;\n    item.answer first as a then {#xD;\n      a.value as val then {#xD;\n        val -&gt;  tgt.value = create('CodeableConcept') as cc,  cc.coding = create('Coding') as c,  c.code = val,  c.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes',  tgt.status = 'final' \"759a9a54\";#xD;\n      } \"1b820ab0\";#xD;\n    } \"d39f9088\";#xD;\n  } \"75d5dd53\";#xD;\n}#xD;\n#xD;\ngroup CccobservationCccb21s2de05(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-Cccb21s2de05\";#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.B21S2.DE05' \"code-Cccb21s2de05\";#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.B21S2.DE05') and answer.exists() then {#xD;\n    item.answer first as a then {#xD;\n      a.value as val -&gt;  tgt.value = val,  tgt.status = 'final' \"afa0ccc0\";#xD;\n    } \"d40466ff\";#xD;\n  } \"0d215e07\";#xD;\n}#xD;\n#xD;\ngroup CccobservationCccb21s2de06(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-Cccb21s2de06\";#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.B21S2.DE06' \"code-Cccb21s2de06\";#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.B21S2.DE06') and answer.exists() then {#xD;\n    item.answer first as a then {#xD;\n      a.value as val -&gt;  tgt.value = val,  tgt.status = 'final' \"afa0ccc0\";#xD;\n    } \"d40466ff\";#xD;\n  } \"3a4a4375\";#xD;\n}#xD;\n#xD;\ngroup CccobservationCccb21s2de08(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-Cccb21s2de08\";#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.B21S2.DE08' \"code-Cccb21s2de08\";#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.B21S2.DE08') 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-Cccb21s2de08\";#xD;\n      a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false \"notfound-Cccb21s2de08\";#xD;\n    } \"bdab9370\";#xD;\n  } \"ac3004d0\";#xD;\n}#xD;\n#xD;\ngroup CccobservationCccb21s2de09Cccb21s2de11t(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-CccobservationCccb21s2de09Cccb21s2de11t\";#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.B21S2.DE09&amp;Ccc.B21S2.DE11' \"code-CccobservationCccb21s2de09Cccb21s2de11t\";#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 CccobservationCccb21s2de09Cccb21s2de11f(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-CccobservationCccb21s2de09Cccb21s2de11f\";#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.B21S2.DE09&amp;Ccc.B21S2.DE11' \"code-CccobservationCccb21s2de09Cccb21s2de11f\";#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 CccobservationCccb21s2de09Cccb21s2de10t(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-CccobservationCccb21s2de09Cccb21s2de10t\";#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.B21S2.DE09&amp;Ccc.B21S2.DE10' \"code-CccobservationCccb21s2de09Cccb21s2de10t\";#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 CccobservationCccb21s2de09Cccb21s2de10f(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-CccobservationCccb21s2de09Cccb21s2de10f\";#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.B21S2.DE09&amp;Ccc.B21S2.DE10' \"code-CccobservationCccb21s2de09Cccb21s2de10f\";#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 CccobservationCccb21s2de12(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-Cccb21s2de12\";#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.B21S2.DE12' \"code-Cccb21s2de12\";#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.B21S2.DE12') and answer.exists() then {#xD;\n    item.answer first as a then {#xD;\n      a.value as val -&gt;  tgt.value = val,  tgt.status = 'final' \"afa0ccc0\";#xD;\n    } \"d40466ff\";#xD;\n  } \"fe73483f\";#xD;\n}#xD;\n#xD;\ngroup CccobservationCccb21s2de13(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-Cccb21s2de13\";#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.B21S2.DE13' \"code-Cccb21s2de13\";#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.B21S2.DE13') 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-Cccb21s2de13\";#xD;\n      a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false \"notfound-Cccb21s2de13\";#xD;\n    } \"bdab9370\";#xD;\n  } \"a1265fc3\";#xD;\n}#xD;\n#xD;\ngroup CccobservationCccb21s2de15(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-Cccb21s2de15\";#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.B21S2.DE15' \"code-Cccb21s2de15\";#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.B21S2.DE15') and answer.exists() then {#xD;\n    item.answer first as a then {#xD;\n      a.value as val -&gt;  tgt.value = val,  tgt.status = 'final' \"afa0ccc0\";#xD;\n    } \"d40466ff\";#xD;\n  } \"1b63fd85\";#xD;\n}#xD;\n#xD;\ngroup CccobservationCccb21s2de16(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-Cccb21s2de16\";#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.B21S2.DE16' \"code-Cccb21s2de16\";#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.B21S2.DE16') 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-Cccb21s2de16\";#xD;\n      a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false \"notfound-Cccb21s2de16\";#xD;\n    } \"bdab9370\";#xD;\n  } \"e00da6e9\";#xD;\n}#xD;\n#xD;\ngroup CccobservationCccb21s2de18(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-Cccb21s2de18\";#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.B21S2.DE18' \"code-Cccb21s2de18\";#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.B21S2.DE18') 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 = 'none' -&gt; tgt.swrapin_entry_createtatus = 'cancelled' \"d0a13fda\";#xD;\n        val where val.code != 'none' -&gt;  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' \"a1050460\";#xD;\n      } \"310f4b1f\";#xD;\n    } \"6af9bfcc\";#xD;\n  } \"af7f6c69\";#xD;\n}#xD;\n#xD;\ngroup CccobservationCccb21s2de21(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-Cccb21s2de21\";#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.B21S2.DE21' \"code-Cccb21s2de21\";#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.B21S2.DE21') 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 = 'none' -&gt; tgt.swrapin_entry_createtatus = 'cancelled' \"d0a13fda\";#xD;\n        val where val.code != 'none' -&gt;  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' \"a1050460\";#xD;\n      } \"310f4b1f\";#xD;\n    } \"6af9bfcc\";#xD;\n  } \"b4ca78b5\";#xD;\n}#xD;\n#xD;\ngroup CccobservationCccb21s2de24(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-Cccb21s2de24\";#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.B21S2.DE24' \"code-Cccb21s2de24\";#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.B21S2.DE24') 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 = 'none' -&gt; tgt.swrapin_entry_createtatus = 'cancelled' \"d0a13fda\";#xD;\n        val where val.code != 'none' -&gt;  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' \"a1050460\";#xD;\n      } \"310f4b1f\";#xD;\n    } \"6af9bfcc\";#xD;\n  } \"b08f8fe7\";#xD;\n}#xD;\n#xD;\ngroup CccobservationCccb21s2de27(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-Cccb21s2de27\";#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.B21S2.DE27' \"code-Cccb21s2de27\";#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.B21S2.DE27') 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 = 'none' -&gt; tgt.swrapin_entry_createtatus = 'cancelled' \"d0a13fda\";#xD;\n        val where val.code != 'none' -&gt;  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' \"a1050460\";#xD;\n      } \"310f4b1f\";#xD;\n    } \"6af9bfcc\";#xD;\n  } \"49d85a6e\";#xD;\n}#xD;\n#xD;\ngroup CccobservationCccb21s2de30(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-Cccb21s2de30\";#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.B21S2.DE30' \"code-Cccb21s2de30\";#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.B21S2.DE30') 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-Cccb21s2de30\";#xD;\n      a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false \"notfound-Cccb21s2de30\";#xD;\n    } \"bdab9370\";#xD;\n  } \"fe4c0b1a\";#xD;\n}#xD;\n#xD;\ngroup CccobservationCccb21s2de31(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-Cccb21s2de31\";#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.B21S2.DE31' \"code-Cccb21s2de31\";#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.B21S2.DE31') 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  } \"789ed550\";#xD;\n}#xD;\n#xD;\ngroup CccobservationCccb22de01(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-Cccb22de01\";#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.DE01' \"code-Cccb22de01\";#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 itm1 where linkId = 'Ccc.B22.RespiratoryRate' then {#xD;\n    itm1.item first as item where (linkId = 'Ccc.B22.DE01') and answer.exists() then {#xD;\n      item.answer first as a then {#xD;\n        a.value as val -&gt;  tgt.value = val,  tgt.status = 'final' \"afa0ccc0\";#xD;\n      } \"d40466ff\";#xD;\n    } \"e1cd1fa1\";#xD;\n  } \"ad8e4fa6\";#xD;\n}#xD;\n#xD;\ngroup CccobservationCccb22de02(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-Cccb22de02\";#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.DE02' \"code-Cccb22de02\";#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 itm1 where linkId = 'Ccc.B22.RespiratoryRate' then {#xD;\n    itm1.item first as item where (linkId = 'Ccc.B22.DE02') 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    } \"38b3c27b\";#xD;\n  } \"5b046e45\";#xD;\n}#xD;\n#xD;\ngroup CccobservationCccb22de04(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-Cccb22de04\";#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.DE04' \"code-Cccb22de04\";#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 itm1 where linkId = 'Ccc.B22.RespiratoryRate' then {#xD;\n    itm1.item first as itm2 where linkId = 'second' then {#xD;\n      itm2.item first as item where (linkId = 'Ccc.B22.DE04') and answer.exists() then {#xD;\n        item.answer first as a then {#xD;\n          a.value as val -&gt;  tgt.value = val,  tgt.status = 'final' \"afa0ccc0\";#xD;\n        } \"d40466ff\";#xD;\n      } \"f66ca63f\";#xD;\n    } \"1b837896\";#xD;\n  } \"6b3a0b06\";#xD;\n}#xD;\n#xD;\ngroup CccobservationCccb22de05(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-Cccb22de05\";#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.DE05' \"code-Cccb22de05\";#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 itm1 where linkId = 'Ccc.B22.RespiratoryRate' then {#xD;\n    itm1.item first as itm2 where linkId = 'second' then {#xD;\n      itm2.item first as item where (linkId = 'Ccc.B22.DE05') 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      } \"48a81a4f\";#xD;\n    } \"9322cbb7\";#xD;\n  } \"ed73ec89\";#xD;\n}#xD;\n#xD;\ngroup CccobservationCccb22de07(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-Cccb22de07\";#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.DE07' \"code-Cccb22de07\";#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 itm1 where linkId = 'Ccc.B22.RespiratoryRate' then {#xD;\n    itm1.item first as item where (linkId = 'Ccc.B22.DE07') 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-Cccb22de07\";#xD;\n        a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false \"notfound-Cccb22de07\";#xD;\n      } \"bdab9370\";#xD;\n    } \"b5e73929\";#xD;\n  } \"306838ed\";#xD;\n}#xD;\n#xD;\n</pre></div>"^^rdf:XMLLiteral ]
      ] ; #
      fhir:url [
    fhir:v "https://smart.who.int/ccc/StructureMap/Ccc.b18-21.signs.2m.m"^^xsd:anyURI ;
    fhir:l <https://smart.who.int/ccc/StructureMap/Ccc.b18-21.signs.2m.m>
      ] ; #
      fhir:version [ fhir:v "0.1.0"] ; #
      fhir:name [ fhir:v "Ccc.b18-21.signs.2m.m"] ; #
      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 "eeb88b76" ] ;
          ( 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.B18S2.DE07') and answer.exists()" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "1f5e2e49" ] ;
            ( 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 "4d3562ea" ] ;
              ( 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 "ca6d2440" ] ;
                ( 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 "CccobservationCccb18s2de07" ] ;
                  ( fhir:variable [ fhir:v "src" ] [ fhir:v "tgt" ] )             ] )           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "45ffea94" ] ;
          ( 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.B18S2.DE08') and answer.exists()" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "b192f8b8" ] ;
            ( 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 "f43b4802" ] ;
              ( 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 "c262db3f" ] ;
                ( 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 "CccobservationCccb18s2de08" ] ;
                  ( fhir:variable [ fhir:v "src" ] [ fhir:v "tgt" ] )             ] )           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "8665f72f" ] ;
          ( 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.B18S2.DE12') and answer.exists()" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "5e6747fd" ] ;
            ( 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 "09f8d74d" ] ;
              ( 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 "6f6b2618" ] ;
                ( 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 "CccobservationCccb18s2de12" ] ;
                  ( fhir:variable [ fhir:v "src" ] [ fhir:v "tgt" ] )             ] )           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "5c0dbbd7" ] ;
          ( 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.B18S2.DE13') and answer.exists()" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "30291a87" ] ;
            ( 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 "f658f964" ] ;
              ( 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 "80759c57" ] ;
                ( 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 "CccobservationCccb18s2de13" ] ;
                  ( fhir:variable [ fhir:v "src" ] [ fhir:v "tgt" ] )             ] )           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "55fa8d66" ] ;
          ( 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.B19S2.DE01') and answer.exists()" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "355d3980" ] ;
            ( 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 "a79173fe" ] ;
              ( 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 "732434fb" ] ;
                ( 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 "CccobservationCccb19s2de01" ] ;
                  ( fhir:variable [ fhir:v "src" ] [ fhir:v "tgt" ] )             ] )           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "a451ea64" ] ;
          ( 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.B19S2.DE02') and answer.exists()" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "ab195945" ] ;
            ( 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 "723e7b39" ] ;
              ( 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 "19b33283" ] ;
                ( 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 "CccobservationCccb19s2de02" ] ;
                  ( fhir:variable [ fhir:v "src" ] [ fhir:v "tgt" ] )             ] )           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "3bb01182" ] ;
          ( 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.B19S2.DE04') and answer.exists()" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "08a1cfa8" ] ;
            ( 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 "ec59f51c" ] ;
              ( 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 "5f959962" ] ;
                ( 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 "CccobservationCccb19s2de04" ] ;
                  ( fhir:variable [ fhir:v "src" ] [ fhir:v "tgt" ] )             ] )           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "bf55dba7" ] ;
          ( 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.B11S2.DE01') and answer.exists()" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "b1634b07" ] ;
            ( 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 "df9369ca" ] ;
              ( 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 "571f12fb" ] ;
                ( 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 "CccobservationCccb11s2de01" ] ;
                  ( fhir:variable [ fhir:v "src" ] [ fhir:v "tgt" ] )             ] )           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "f35e6a90" ] ;
          ( 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.B11S2.DE02') and answer.exists()" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "c096f5b2" ] ;
            ( 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 "52eb002b" ] ;
              ( 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 "35df08c4" ] ;
                ( 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 "CccobservationCccb11s2de02" ] ;
                  ( fhir:variable [ fhir:v "src" ] [ fhir:v "tgt" ] )             ] )           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "5a3f8e99" ] ;
          ( 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.B11S2.DE06') and answer.exists()" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "431cd0b3" ] ;
            ( 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 "011caec9" ] ;
              ( 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 "048f10f9" ] ;
                ( 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 "CccobservationCccb11s2de06" ] ;
                  ( fhir:variable [ fhir:v "src" ] [ fhir:v "tgt" ] )             ] )           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "431eb374" ] ;
          ( 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.B21S2.DE01') and answer.exists()" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "a5752431" ] ;
            ( 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 "2cf57502" ] ;
              ( 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 "94478be1" ] ;
                ( 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 "CccobservationCccb21s2de01" ] ;
                  ( fhir:variable [ fhir:v "src" ] [ fhir:v "tgt" ] )             ] )           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "a6ecc4b7" ] ;
          ( 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.B21S2.DE05') and answer.exists()" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "1e478ba6" ] ;
            ( 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 "04b19cec" ] ;
              ( 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 "8cbd2b43" ] ;
                ( 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 "CccobservationCccb21s2de05" ] ;
                  ( fhir:variable [ fhir:v "src" ] [ fhir:v "tgt" ] )             ] )           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "3a24e445" ] ;
          ( 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.B21S2.DE06') and answer.exists()" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "18c5885a" ] ;
            ( 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 "d38f9e09" ] ;
              ( 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 "2d3c82db" ] ;
                ( 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 "CccobservationCccb21s2de06" ] ;
                  ( fhir:variable [ fhir:v "src" ] [ fhir:v "tgt" ] )             ] )           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "79ee0a37" ] ;
          ( 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.B21S2.DE08') and answer.exists()" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "a0b4c2bc" ] ;
            ( 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 "5189a3f8" ] ;
              ( 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 "f361a68d" ] ;
                ( 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 "CccobservationCccb21s2de08" ] ;
                  ( fhir:variable [ fhir:v "src" ] [ fhir:v "tgt" ] )             ] )           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "7d349d00" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:condition [ fhir:v "src.item.where(linkId = 'Ccc.B21S2.DE09').answer.where(value.code = 'Ccc.B21S2.DE11')" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "37c1ad1e" ] ;
            ( 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.B21S2.DE09') and answer.exists()" ]         ] ) ;
            ( fhir:rule [
    fhir:name [ fhir:v "6de484e0" ] ;
              ( 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 "d7f85848" ] ;
                ( 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 "a9a122af" ] ;
                  ( fhir:source [
    fhir:context [ fhir:v "src" ]               ] ) ;
                  ( fhir:dependent [
    fhir:name [ fhir:v "CccobservationCccb21s2de09Cccb21s2de11t" ] ;
                    ( fhir:variable [ fhir:v "src" ] [ fhir:v "tgt" ] )               ] )             ] )           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "e01f9812" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:condition [ fhir:v "src.item.where(linkId = 'Ccc.B21S2.DE09').exists() and src.item.where(linkId = 'Ccc.B21S2.DE09').answer.where(value.code = 'Ccc.B21S2.DE11').empty()" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "4899742e" ] ;
            ( 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.B21S2.DE09') and answer.exists()" ]         ] ) ;
            ( fhir:rule [
    fhir:name [ fhir:v "653bf0a8" ] ;
              ( 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 "d67305e0" ] ;
                ( 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 "d1d28f86" ] ;
                  ( fhir:source [
    fhir:context [ fhir:v "src" ]               ] ) ;
                  ( fhir:dependent [
    fhir:name [ fhir:v "CccobservationCccb21s2de09Cccb21s2de11f" ] ;
                    ( fhir:variable [ fhir:v "src" ] [ fhir:v "tgt" ] )               ] )             ] )           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "9864ed15" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:condition [ fhir:v "src.item.where(linkId = 'Ccc.B21S2.DE09').answer.where(value.code = 'Ccc.B21S2.DE10')" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "94e88b7c" ] ;
            ( 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.B21S2.DE09') and answer.exists()" ]         ] ) ;
            ( fhir:rule [
    fhir:name [ fhir:v "aa6f3f2f" ] ;
              ( 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 "93674a9a" ] ;
                ( 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 "8e89324d" ] ;
                  ( fhir:source [
    fhir:context [ fhir:v "src" ]               ] ) ;
                  ( fhir:dependent [
    fhir:name [ fhir:v "CccobservationCccb21s2de09Cccb21s2de10t" ] ;
                    ( fhir:variable [ fhir:v "src" ] [ fhir:v "tgt" ] )               ] )             ] )           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "e81b6afa" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:condition [ fhir:v "src.item.where(linkId = 'Ccc.B21S2.DE09').exists() and src.item.where(linkId = 'Ccc.B21S2.DE09').answer.where(value.code = 'Ccc.B21S2.DE10').empty()" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "68af5a34" ] ;
            ( 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.B21S2.DE09') and answer.exists()" ]         ] ) ;
            ( fhir:rule [
    fhir:name [ fhir:v "fa7e3d84" ] ;
              ( 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 "e8c61eb0" ] ;
                ( 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 "b433f49e" ] ;
                  ( fhir:source [
    fhir:context [ fhir:v "src" ]               ] ) ;
                  ( fhir:dependent [
    fhir:name [ fhir:v "CccobservationCccb21s2de09Cccb21s2de10f" ] ;
                    ( fhir:variable [ fhir:v "src" ] [ fhir:v "tgt" ] )               ] )             ] )           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "e2b672db" ] ;
          ( 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.B21S2.DE12') and answer.exists()" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "8cb03aa0" ] ;
            ( 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 "b1374c84" ] ;
              ( 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 "8f04b3ac" ] ;
                ( 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 "CccobservationCccb21s2de12" ] ;
                  ( fhir:variable [ fhir:v "src" ] [ fhir:v "tgt" ] )             ] )           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "e854f1bd" ] ;
          ( 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.B21S2.DE13') and answer.exists()" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "64398d2e" ] ;
            ( 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 "695ddd29" ] ;
              ( 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 "0aaf1ecd" ] ;
                ( 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 "CccobservationCccb21s2de13" ] ;
                  ( fhir:variable [ fhir:v "src" ] [ fhir:v "tgt" ] )             ] )           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "faf9102b" ] ;
          ( 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.B21S2.DE15') and answer.exists()" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "e494830e" ] ;
            ( 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 "43de516f" ] ;
              ( 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 "7858a431" ] ;
                ( 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 "CccobservationCccb21s2de15" ] ;
                  ( fhir:variable [ fhir:v "src" ] [ fhir:v "tgt" ] )             ] )           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "be6683f9" ] ;
          ( 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.B21S2.DE16') and answer.exists()" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "9b56be06" ] ;
            ( 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 "b8bfacf5" ] ;
              ( 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 "b2e4c410" ] ;
                ( 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 "CccobservationCccb21s2de16" ] ;
                  ( fhir:variable [ fhir:v "src" ] [ fhir:v "tgt" ] )             ] )           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "c0db11dc" ] ;
          ( 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.B21S2.DE18') and answer.exists()" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "af8f5c24" ] ;
            ( 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 "ecd09b62" ] ;
              ( 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 "87a87f89" ] ;
                ( 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 "CccobservationCccb21s2de18" ] ;
                  ( fhir:variable [ fhir:v "src" ] [ fhir:v "tgt" ] )             ] )           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "8f89318d" ] ;
          ( 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.B21S2.DE21') and answer.exists()" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "46cbfc52" ] ;
            ( 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 "ae968910" ] ;
              ( 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 "e288e392" ] ;
                ( 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 "CccobservationCccb21s2de21" ] ;
                  ( fhir:variable [ fhir:v "src" ] [ fhir:v "tgt" ] )             ] )           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "668c3c42" ] ;
          ( 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.B21S2.DE24') and answer.exists()" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "c7688cc7" ] ;
            ( 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 "6b52ad04" ] ;
              ( 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 "c746464e" ] ;
                ( 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 "CccobservationCccb21s2de24" ] ;
                  ( fhir:variable [ fhir:v "src" ] [ fhir:v "tgt" ] )             ] )           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "24323941" ] ;
          ( 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.B21S2.DE27') and answer.exists()" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "c270b0d1" ] ;
            ( 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 "1c5eb3d7" ] ;
              ( 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 "46c80d1a" ] ;
                ( 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 "CccobservationCccb21s2de27" ] ;
                  ( fhir:variable [ fhir:v "src" ] [ fhir:v "tgt" ] )             ] )           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "5e474dbb" ] ;
          ( 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.B21S2.DE30') and answer.exists()" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "ec6c3ef3" ] ;
            ( 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 "8891d1a4" ] ;
              ( 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 "f7a188b4" ] ;
                ( 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 "CccobservationCccb21s2de30" ] ;
                  ( fhir:variable [ fhir:v "src" ] [ fhir:v "tgt" ] )             ] )           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "0dac018e" ] ;
          ( 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.B21S2.DE31') and answer.exists()" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "6c051e6d" ] ;
            ( 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 "ded65bf0" ] ;
              ( 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 "7b00306c" ] ;
                ( 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 "CccobservationCccb21s2de31" ] ;
                  ( fhir:variable [ fhir:v "src" ] [ fhir:v "tgt" ] )             ] )           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "88bb5c43" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "item" ] ;
    fhir:listMode [ fhir:v "first" ] ;
    fhir:variable [ fhir:v "itm1" ] ;
    fhir:condition [ fhir:v "linkId = 'Ccc.B22.RespiratoryRate'" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "1c5108b8" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "itm1" ] ;
    fhir:element [ fhir:v "item" ] ;
    fhir:listMode [ fhir:v "first" ] ;
    fhir:variable [ fhir:v "item" ] ;
    fhir:condition [ fhir:v "(linkId = 'Ccc.B22.DE01') and answer.exists()" ]         ] ) ;
            ( fhir:rule [
    fhir:name [ fhir:v "44017cb3" ] ;
              ( 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 "cafa1f90" ] ;
                ( 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 "94788d70" ] ;
                  ( 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 "CccobservationCccb22de01" ] ;
                    ( fhir:variable [ fhir:v "src" ] [ fhir:v "tgt" ] )               ] )             ] )           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "c7e0dbc2" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "item" ] ;
    fhir:listMode [ fhir:v "first" ] ;
    fhir:variable [ fhir:v "itm1" ] ;
    fhir:condition [ fhir:v "linkId = 'Ccc.B22.RespiratoryRate'" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "85d3c3a3" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "itm1" ] ;
    fhir:element [ fhir:v "item" ] ;
    fhir:listMode [ fhir:v "first" ] ;
    fhir:variable [ fhir:v "item" ] ;
    fhir:condition [ fhir:v "(linkId = 'Ccc.B22.DE02') and answer.exists()" ]         ] ) ;
            ( fhir:rule [
    fhir:name [ fhir:v "815e425c" ] ;
              ( 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 "60b301de" ] ;
                ( 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 "c3e885af" ] ;
                  ( 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 "CccobservationCccb22de02" ] ;
                    ( fhir:variable [ fhir:v "src" ] [ fhir:v "tgt" ] )               ] )             ] )           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "318dfe75" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "item" ] ;
    fhir:listMode [ fhir:v "first" ] ;
    fhir:variable [ fhir:v "itm1" ] ;
    fhir:condition [ fhir:v "linkId = 'Ccc.B22.RespiratoryRate'" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "3b2e9629" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "itm1" ] ;
    fhir:element [ fhir:v "item" ] ;
    fhir:listMode [ fhir:v "first" ] ;
    fhir:variable [ fhir:v "itm2" ] ;
    fhir:condition [ fhir:v "linkId = 'second'" ]         ] ) ;
            ( fhir:rule [
    fhir:name [ fhir:v "ad5094ed" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "itm2" ] ;
    fhir:element [ fhir:v "item" ] ;
    fhir:listMode [ fhir:v "first" ] ;
    fhir:variable [ fhir:v "item" ] ;
    fhir:condition [ fhir:v "(linkId = 'Ccc.B22.DE04') and answer.exists()" ]           ] ) ;
              ( fhir:rule [
    fhir:name [ fhir:v "c7431f4f" ] ;
                ( 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 "b802d4a2" ] ;
                  ( 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 "42ed4c3a" ] ;
                    ( 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 "CccobservationCccb22de04" ] ;
                      ( fhir:variable [ fhir:v "src" ] [ fhir:v "tgt" ] )                 ] )               ] )             ] )           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "c21c2c7c" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "item" ] ;
    fhir:listMode [ fhir:v "first" ] ;
    fhir:variable [ fhir:v "itm1" ] ;
    fhir:condition [ fhir:v "linkId = 'Ccc.B22.RespiratoryRate'" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "9853d168" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "itm1" ] ;
    fhir:element [ fhir:v "item" ] ;
    fhir:listMode [ fhir:v "first" ] ;
    fhir:variable [ fhir:v "itm2" ] ;
    fhir:condition [ fhir:v "linkId = 'second'" ]         ] ) ;
            ( fhir:rule [
    fhir:name [ fhir:v "d9d928a7" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "itm2" ] ;
    fhir:element [ fhir:v "item" ] ;
    fhir:listMode [ fhir:v "first" ] ;
    fhir:variable [ fhir:v "item" ] ;
    fhir:condition [ fhir:v "(linkId = 'Ccc.B22.DE05') and answer.exists()" ]           ] ) ;
              ( fhir:rule [
    fhir:name [ fhir:v "61b1a5c6" ] ;
                ( 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 "b7585bc2" ] ;
                  ( 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 "3be4cd34" ] ;
                    ( 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 "CccobservationCccb22de05" ] ;
                      ( fhir:variable [ fhir:v "src" ] [ fhir:v "tgt" ] )                 ] )               ] )             ] )           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "7ef76f25" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "item" ] ;
    fhir:listMode [ fhir:v "first" ] ;
    fhir:variable [ fhir:v "itm1" ] ;
    fhir:condition [ fhir:v "linkId = 'Ccc.B22.RespiratoryRate'" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "a2eebe03" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "itm1" ] ;
    fhir:element [ fhir:v "item" ] ;
    fhir:listMode [ fhir:v "first" ] ;
    fhir:variable [ fhir:v "item" ] ;
    fhir:condition [ fhir:v "(linkId = 'Ccc.B22.DE07') and answer.exists()" ]         ] ) ;
            ( fhir:rule [
    fhir:name [ fhir:v "8267defb" ] ;
              ( 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 "aad75965" ] ;
                ( 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 "fa30cee1" ] ;
                  ( 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 "CccobservationCccb22de07" ] ;
                    ( fhir:variable [ fhir:v "src" ] [ fhir:v "tgt" ] )               ] )             ] )           ] )         ] )       ] )     ] )
      ] [
    fhir:name [ fhir:v "CccobservationCccb18s2de07" ] ;
    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-Cccb18s2de07" ] ;
          ( 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-Cccb18s2de07" ] ;
          ( 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.B18S2.DE07"           ]         ] )       ] )     ] [
    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 "03e3bd99" ] ;
          ( 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.B18S2.DE07') 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-Cccb18s2de07" ] ;
              ( 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-Cccb18s2de07" ] ;
              ( 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               ]             ] )           ] )         ] )       ] )     ] )
      ] [
    fhir:name [ fhir:v "CccobservationCccb18s2de08" ] ;
    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-Cccb18s2de08" ] ;
          ( 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-Cccb18s2de08" ] ;
          ( 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.B18S2.DE08"           ]         ] )       ] )     ] [
    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 "0b46e243" ] ;
          ( 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.B18S2.DE08') and answer.exists()" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "6af9bfcc" ] ;
            ( 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 "310f4b1f" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "a" ] ;
    fhir:element [ fhir:v "value" ] ;
    fhir:variable [ fhir:v "val" ]           ] ) ;
              ( fhir:rule [
    fhir:name [ fhir:v "d0a13fda" ] ;
                ( fhir:source [
    fhir:context [ fhir:v "val" ] ;
    fhir:condition [ fhir:v "val.code = 'none'" ]             ] ) ;
                ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "swrapin_entry_createtatus" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "cancelled"                 ]               ] )             ] )           ] [
    fhir:name [ fhir:v "a1050460" ] ;
                ( fhir:source [
    fhir:context [ fhir:v "val" ] ;
    fhir:condition [ fhir:v "val.code != 'none'" ]             ] ) ;
                ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "value" ] ;
    fhir:variable [ fhir:v "cc" ] ;
    fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "CodeableConcept"                 ]               ] )             ] [
    fhir:context [ fhir:v "cc" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "coding" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "val"                 ]               ] )             ] [
    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:name [ fhir:v "CccobservationCccb18s2de12" ] ;
    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-Cccb18s2de12" ] ;
          ( 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-Cccb18s2de12" ] ;
          ( 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.B18S2.DE12"           ]         ] )       ] )     ] [
    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 "c2b6211e" ] ;
          ( 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.B18S2.DE12') 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-Cccb18s2de12" ] ;
              ( 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-Cccb18s2de12" ] ;
              ( 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               ]             ] )           ] )         ] )       ] )     ] )
      ] [
    fhir:name [ fhir:v "CccobservationCccb18s2de13" ] ;
    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-Cccb18s2de13" ] ;
          ( 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-Cccb18s2de13" ] ;
          ( 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.B18S2.DE13"           ]         ] )       ] )     ] [
    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 "5c58b9dd" ] ;
          ( 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.B18S2.DE13') 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-Cccb18s2de13" ] ;
              ( 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-Cccb18s2de13" ] ;
              ( 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               ]             ] )           ] )         ] )       ] )     ] )
      ] [
    fhir:name [ fhir:v "CccobservationCccb19s2de01" ] ;
    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-Cccb19s2de01" ] ;
          ( 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-Cccb19s2de01" ] ;
          ( 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.B19S2.DE01"           ]         ] )       ] )     ] [
    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 "9cc43da0" ] ;
          ( 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.B19S2.DE01') 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-Cccb19s2de01" ] ;
              ( 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-Cccb19s2de01" ] ;
              ( 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               ]             ] )           ] )         ] )       ] )     ] )
      ] [
    fhir:name [ fhir:v "CccobservationCccb19s2de02" ] ;
    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-Cccb19s2de02" ] ;
          ( 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-Cccb19s2de02" ] ;
          ( 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.B19S2.DE02"           ]         ] )       ] )     ] [
    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 "c6f7f824" ] ;
          ( 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.B19S2.DE02') 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-Cccb19s2de02" ] ;
              ( 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-Cccb19s2de02" ] ;
              ( 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               ]             ] )           ] )         ] )       ] )     ] )
      ] [
    fhir:name [ fhir:v "CccobservationCccb19s2de04" ] ;
    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-Cccb19s2de04" ] ;
          ( 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-Cccb19s2de04" ] ;
          ( 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.B19S2.DE04"           ]         ] )       ] )     ] [
    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 "42fb84b8" ] ;
          ( 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.B19S2.DE04') and answer.exists()" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "6af9bfcc" ] ;
            ( 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 "310f4b1f" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "a" ] ;
    fhir:element [ fhir:v "value" ] ;
    fhir:variable [ fhir:v "val" ]           ] ) ;
              ( fhir:rule [
    fhir:name [ fhir:v "d0a13fda" ] ;
                ( fhir:source [
    fhir:context [ fhir:v "val" ] ;
    fhir:condition [ fhir:v "val.code = 'none'" ]             ] ) ;
                ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "swrapin_entry_createtatus" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "cancelled"                 ]               ] )             ] )           ] [
    fhir:name [ fhir:v "a1050460" ] ;
                ( fhir:source [
    fhir:context [ fhir:v "val" ] ;
    fhir:condition [ fhir:v "val.code != 'none'" ]             ] ) ;
                ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "value" ] ;
    fhir:variable [ fhir:v "cc" ] ;
    fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "CodeableConcept"                 ]               ] )             ] [
    fhir:context [ fhir:v "cc" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "coding" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "val"                 ]               ] )             ] [
    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:name [ fhir:v "CccobservationCccb11s2de01" ] ;
    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-Cccb11s2de01" ] ;
          ( 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-Cccb11s2de01" ] ;
          ( 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.B11S2.DE01"           ]         ] )       ] )     ] [
    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 "7fc3f941" ] ;
          ( 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.B11S2.DE01') 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-Cccb11s2de01" ] ;
              ( 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-Cccb11s2de01" ] ;
              ( 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               ]             ] )           ] )         ] )       ] )     ] )
      ] [
    fhir:name [ fhir:v "CccobservationCccb11s2de02" ] ;
    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-Cccb11s2de02" ] ;
          ( 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-Cccb11s2de02" ] ;
          ( 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.B11S2.DE02"           ]         ] )       ] )     ] [
    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 "73bc942d" ] ;
          ( 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.B11S2.DE02') and answer.exists()" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "6af9bfcc" ] ;
            ( 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 "310f4b1f" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "a" ] ;
    fhir:element [ fhir:v "value" ] ;
    fhir:variable [ fhir:v "val" ]           ] ) ;
              ( fhir:rule [
    fhir:name [ fhir:v "d0a13fda" ] ;
                ( fhir:source [
    fhir:context [ fhir:v "val" ] ;
    fhir:condition [ fhir:v "val.code = 'none'" ]             ] ) ;
                ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "swrapin_entry_createtatus" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "cancelled"                 ]               ] )             ] )           ] [
    fhir:name [ fhir:v "a1050460" ] ;
                ( fhir:source [
    fhir:context [ fhir:v "val" ] ;
    fhir:condition [ fhir:v "val.code != 'none'" ]             ] ) ;
                ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "value" ] ;
    fhir:variable [ fhir:v "cc" ] ;
    fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "CodeableConcept"                 ]               ] )             ] [
    fhir:context [ fhir:v "cc" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "coding" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "val"                 ]               ] )             ] [
    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:name [ fhir:v "CccobservationCccb11s2de06" ] ;
    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-Cccb11s2de06" ] ;
          ( 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-Cccb11s2de06" ] ;
          ( 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.B11S2.DE06"           ]         ] )       ] )     ] [
    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 "47e72c0c" ] ;
          ( 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.B11S2.DE06') 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-Cccb11s2de06" ] ;
              ( 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-Cccb11s2de06" ] ;
              ( 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               ]             ] )           ] )         ] )       ] )     ] )
      ] [
    fhir:name [ fhir:v "CccobservationCccb21s2de01" ] ;
    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-Cccb21s2de01" ] ;
          ( 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-Cccb21s2de01" ] ;
          ( 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.B21S2.DE01"           ]         ] )       ] )     ] [
    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 "75d5dd53" ] ;
          ( 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.B21S2.DE01') and answer.exists()" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "d39f9088" ] ;
            ( 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 "1b820ab0" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "a" ] ;
    fhir:element [ fhir:v "value" ] ;
    fhir:variable [ fhir:v "val" ]           ] ) ;
              ( fhir:rule [
    fhir:name [ fhir:v "759a9a54" ] ;
                ( fhir:source [
    fhir:context [ fhir:v "val" ]             ] ) ;
                ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "value" ] ;
    fhir:variable [ fhir:v "cc" ] ;
    fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "CodeableConcept"                 ]               ] )             ] [
    fhir:context [ fhir:v "cc" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "coding" ] ;
    fhir:variable [ fhir:v "c" ] ;
    fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Coding"                 ]               ] )             ] [
    fhir:context [ fhir:v "c" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "code" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "val"                 ]               ] )             ] [
    fhir:context [ fhir:v "c" ] ;
    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 "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:name [ fhir:v "CccobservationCccb21s2de05" ] ;
    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-Cccb21s2de05" ] ;
          ( 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-Cccb21s2de05" ] ;
          ( 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.B21S2.DE05"           ]         ] )       ] )     ] [
    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 "0d215e07" ] ;
          ( 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.B21S2.DE05') and answer.exists()" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "d40466ff" ] ;
            ( 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 "afa0ccc0" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "a" ] ;
    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 "value" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "val"               ]             ] )           ] [
    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:name [ fhir:v "CccobservationCccb21s2de06" ] ;
    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-Cccb21s2de06" ] ;
          ( 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-Cccb21s2de06" ] ;
          ( 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.B21S2.DE06"           ]         ] )       ] )     ] [
    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 "3a4a4375" ] ;
          ( 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.B21S2.DE06') and answer.exists()" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "d40466ff" ] ;
            ( 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 "afa0ccc0" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "a" ] ;
    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 "value" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "val"               ]             ] )           ] [
    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:name [ fhir:v "CccobservationCccb21s2de08" ] ;
    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-Cccb21s2de08" ] ;
          ( 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-Cccb21s2de08" ] ;
          ( 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.B21S2.DE08"           ]         ] )       ] )     ] [
    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 "ac3004d0" ] ;
          ( 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.B21S2.DE08') 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-Cccb21s2de08" ] ;
              ( 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-Cccb21s2de08" ] ;
              ( 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               ]             ] )           ] )         ] )       ] )     ] )
      ] [
    fhir:name [ fhir:v "CccobservationCccb21s2de09Cccb21s2de11t" ] ;
    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-CccobservationCccb21s2de09Cccb21s2de11t" ] ;
          ( 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-CccobservationCccb21s2de09Cccb21s2de11t" ] ;
          ( 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.B21S2.DE09&Ccc.B21S2.DE11"           ]         ] )       ] )     ] [
    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 "CccobservationCccb21s2de09Cccb21s2de11f" ] ;
    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-CccobservationCccb21s2de09Cccb21s2de11f" ] ;
          ( 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-CccobservationCccb21s2de09Cccb21s2de11f" ] ;
          ( 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.B21S2.DE09&Ccc.B21S2.DE11"           ]         ] )       ] )     ] [
    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 "CccobservationCccb21s2de09Cccb21s2de10t" ] ;
    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-CccobservationCccb21s2de09Cccb21s2de10t" ] ;
          ( 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-CccobservationCccb21s2de09Cccb21s2de10t" ] ;
          ( 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.B21S2.DE09&Ccc.B21S2.DE10"           ]         ] )       ] )     ] [
    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 "CccobservationCccb21s2de09Cccb21s2de10f" ] ;
    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-CccobservationCccb21s2de09Cccb21s2de10f" ] ;
          ( 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-CccobservationCccb21s2de09Cccb21s2de10f" ] ;
          ( 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.B21S2.DE09&Ccc.B21S2.DE10"           ]         ] )       ] )     ] [
    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 "CccobservationCccb21s2de12" ] ;
    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-Cccb21s2de12" ] ;
          ( 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-Cccb21s2de12" ] ;
          ( 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.B21S2.DE12"           ]         ] )       ] )     ] [
    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 "fe73483f" ] ;
          ( 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.B21S2.DE12') and answer.exists()" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "d40466ff" ] ;
            ( 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 "afa0ccc0" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "a" ] ;
    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 "value" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "val"               ]             ] )           ] [
    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:name [ fhir:v "CccobservationCccb21s2de13" ] ;
    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-Cccb21s2de13" ] ;
          ( 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-Cccb21s2de13" ] ;
          ( 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.B21S2.DE13"           ]         ] )       ] )     ] [
    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 "a1265fc3" ] ;
          ( 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.B21S2.DE13') 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-Cccb21s2de13" ] ;
              ( 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-Cccb21s2de13" ] ;
              ( 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               ]             ] )           ] )         ] )       ] )     ] )
      ] [
    fhir:name [ fhir:v "CccobservationCccb21s2de15" ] ;
    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-Cccb21s2de15" ] ;
          ( 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-Cccb21s2de15" ] ;
          ( 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.B21S2.DE15"           ]         ] )       ] )     ] [
    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 "1b63fd85" ] ;
          ( 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.B21S2.DE15') and answer.exists()" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "d40466ff" ] ;
            ( 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 "afa0ccc0" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "a" ] ;
    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 "value" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "val"               ]             ] )           ] [
    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:name [ fhir:v "CccobservationCccb21s2de16" ] ;
    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-Cccb21s2de16" ] ;
          ( 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-Cccb21s2de16" ] ;
          ( 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.B21S2.DE16"           ]         ] )       ] )     ] [
    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 "e00da6e9" ] ;
          ( 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.B21S2.DE16') 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-Cccb21s2de16" ] ;
              ( 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-Cccb21s2de16" ] ;
              ( 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               ]             ] )           ] )         ] )       ] )     ] )
      ] [
    fhir:name [ fhir:v "CccobservationCccb21s2de18" ] ;
    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-Cccb21s2de18" ] ;
          ( 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-Cccb21s2de18" ] ;
          ( 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.B21S2.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 "af7f6c69" ] ;
          ( 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.B21S2.DE18') and answer.exists()" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "6af9bfcc" ] ;
            ( 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 "310f4b1f" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "a" ] ;
    fhir:element [ fhir:v "value" ] ;
    fhir:variable [ fhir:v "val" ]           ] ) ;
              ( fhir:rule [
    fhir:name [ fhir:v "d0a13fda" ] ;
                ( fhir:source [
    fhir:context [ fhir:v "val" ] ;
    fhir:condition [ fhir:v "val.code = 'none'" ]             ] ) ;
                ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "swrapin_entry_createtatus" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "cancelled"                 ]               ] )             ] )           ] [
    fhir:name [ fhir:v "a1050460" ] ;
                ( fhir:source [
    fhir:context [ fhir:v "val" ] ;
    fhir:condition [ fhir:v "val.code != 'none'" ]             ] ) ;
                ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "value" ] ;
    fhir:variable [ fhir:v "cc" ] ;
    fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "CodeableConcept"                 ]               ] )             ] [
    fhir:context [ fhir:v "cc" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "coding" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "val"                 ]               ] )             ] [
    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:name [ fhir:v "CccobservationCccb21s2de21" ] ;
    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-Cccb21s2de21" ] ;
          ( 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-Cccb21s2de21" ] ;
          ( 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.B21S2.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 "b4ca78b5" ] ;
          ( 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.B21S2.DE21') and answer.exists()" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "6af9bfcc" ] ;
            ( 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 "310f4b1f" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "a" ] ;
    fhir:element [ fhir:v "value" ] ;
    fhir:variable [ fhir:v "val" ]           ] ) ;
              ( fhir:rule [
    fhir:name [ fhir:v "d0a13fda" ] ;
                ( fhir:source [
    fhir:context [ fhir:v "val" ] ;
    fhir:condition [ fhir:v "val.code = 'none'" ]             ] ) ;
                ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "swrapin_entry_createtatus" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "cancelled"                 ]               ] )             ] )           ] [
    fhir:name [ fhir:v "a1050460" ] ;
                ( fhir:source [
    fhir:context [ fhir:v "val" ] ;
    fhir:condition [ fhir:v "val.code != 'none'" ]             ] ) ;
                ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "value" ] ;
    fhir:variable [ fhir:v "cc" ] ;
    fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "CodeableConcept"                 ]               ] )             ] [
    fhir:context [ fhir:v "cc" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "coding" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "val"                 ]               ] )             ] [
    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:name [ fhir:v "CccobservationCccb21s2de24" ] ;
    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-Cccb21s2de24" ] ;
          ( 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-Cccb21s2de24" ] ;
          ( 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.B21S2.DE24"           ]         ] )       ] )     ] [
    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 "b08f8fe7" ] ;
          ( 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.B21S2.DE24') and answer.exists()" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "6af9bfcc" ] ;
            ( 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 "310f4b1f" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "a" ] ;
    fhir:element [ fhir:v "value" ] ;
    fhir:variable [ fhir:v "val" ]           ] ) ;
              ( fhir:rule [
    fhir:name [ fhir:v "d0a13fda" ] ;
                ( fhir:source [
    fhir:context [ fhir:v "val" ] ;
    fhir:condition [ fhir:v "val.code = 'none'" ]             ] ) ;
                ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "swrapin_entry_createtatus" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "cancelled"                 ]               ] )             ] )           ] [
    fhir:name [ fhir:v "a1050460" ] ;
                ( fhir:source [
    fhir:context [ fhir:v "val" ] ;
    fhir:condition [ fhir:v "val.code != 'none'" ]             ] ) ;
                ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "value" ] ;
    fhir:variable [ fhir:v "cc" ] ;
    fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "CodeableConcept"                 ]               ] )             ] [
    fhir:context [ fhir:v "cc" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "coding" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "val"                 ]               ] )             ] [
    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:name [ fhir:v "CccobservationCccb21s2de27" ] ;
    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-Cccb21s2de27" ] ;
          ( 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-Cccb21s2de27" ] ;
          ( 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.B21S2.DE27"           ]         ] )       ] )     ] [
    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 "49d85a6e" ] ;
          ( 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.B21S2.DE27') and answer.exists()" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "6af9bfcc" ] ;
            ( 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 "310f4b1f" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "a" ] ;
    fhir:element [ fhir:v "value" ] ;
    fhir:variable [ fhir:v "val" ]           ] ) ;
              ( fhir:rule [
    fhir:name [ fhir:v "d0a13fda" ] ;
                ( fhir:source [
    fhir:context [ fhir:v "val" ] ;
    fhir:condition [ fhir:v "val.code = 'none'" ]             ] ) ;
                ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "swrapin_entry_createtatus" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "cancelled"                 ]               ] )             ] )           ] [
    fhir:name [ fhir:v "a1050460" ] ;
                ( fhir:source [
    fhir:context [ fhir:v "val" ] ;
    fhir:condition [ fhir:v "val.code != 'none'" ]             ] ) ;
                ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "value" ] ;
    fhir:variable [ fhir:v "cc" ] ;
    fhir:transform [ fhir:v "create" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "CodeableConcept"                 ]               ] )             ] [
    fhir:context [ fhir:v "cc" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "coding" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "val"                 ]               ] )             ] [
    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:name [ fhir:v "CccobservationCccb21s2de30" ] ;
    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-Cccb21s2de30" ] ;
          ( 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-Cccb21s2de30" ] ;
          ( 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.B21S2.DE30"           ]         ] )       ] )     ] [
    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 "fe4c0b1a" ] ;
          ( 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.B21S2.DE30') 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-Cccb21s2de30" ] ;
              ( 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-Cccb21s2de30" ] ;
              ( 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               ]             ] )           ] )         ] )       ] )     ] )
      ] [
    fhir:name [ fhir:v "CccobservationCccb21s2de31" ] ;
    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-Cccb21s2de31" ] ;
          ( 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-Cccb21s2de31" ] ;
          ( 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.B21S2.DE31"           ]         ] )       ] )     ] [
    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 "789ed550" ] ;
          ( 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.B21S2.DE31') 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 "CccobservationCccb22de01" ] ;
    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-Cccb22de01" ] ;
          ( 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-Cccb22de01" ] ;
          ( 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.DE01"           ]         ] )       ] )     ] [
    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 "ad8e4fa6" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "item" ] ;
    fhir:listMode [ fhir:v "first" ] ;
    fhir:variable [ fhir:v "itm1" ] ;
    fhir:condition [ fhir:v "linkId = 'Ccc.B22.RespiratoryRate'" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "e1cd1fa1" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "itm1" ] ;
    fhir:element [ fhir:v "item" ] ;
    fhir:listMode [ fhir:v "first" ] ;
    fhir:variable [ fhir:v "item" ] ;
    fhir:condition [ fhir:v "(linkId = 'Ccc.B22.DE01') and answer.exists()" ]         ] ) ;
            ( fhir:rule [
    fhir:name [ fhir:v "d40466ff" ] ;
              ( 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 "afa0ccc0" ] ;
                ( fhir:source [
    fhir:context [ fhir:v "a" ] ;
    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 "value" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "val"                 ]               ] )             ] [
    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:name [ fhir:v "CccobservationCccb22de02" ] ;
    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-Cccb22de02" ] ;
          ( 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-Cccb22de02" ] ;
          ( 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.DE02"           ]         ] )       ] )     ] [
    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 "5b046e45" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "item" ] ;
    fhir:listMode [ fhir:v "first" ] ;
    fhir:variable [ fhir:v "itm1" ] ;
    fhir:condition [ fhir:v "linkId = 'Ccc.B22.RespiratoryRate'" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "38b3c27b" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "itm1" ] ;
    fhir:element [ fhir:v "item" ] ;
    fhir:listMode [ fhir:v "first" ] ;
    fhir:variable [ fhir:v "item" ] ;
    fhir:condition [ fhir:v "(linkId = 'Ccc.B22.DE02') 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 "CccobservationCccb22de04" ] ;
    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-Cccb22de04" ] ;
          ( 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-Cccb22de04" ] ;
          ( 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.DE04"           ]         ] )       ] )     ] [
    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 "6b3a0b06" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "item" ] ;
    fhir:listMode [ fhir:v "first" ] ;
    fhir:variable [ fhir:v "itm1" ] ;
    fhir:condition [ fhir:v "linkId = 'Ccc.B22.RespiratoryRate'" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "1b837896" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "itm1" ] ;
    fhir:element [ fhir:v "item" ] ;
    fhir:listMode [ fhir:v "first" ] ;
    fhir:variable [ fhir:v "itm2" ] ;
    fhir:condition [ fhir:v "linkId = 'second'" ]         ] ) ;
            ( fhir:rule [
    fhir:name [ fhir:v "f66ca63f" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "itm2" ] ;
    fhir:element [ fhir:v "item" ] ;
    fhir:listMode [ fhir:v "first" ] ;
    fhir:variable [ fhir:v "item" ] ;
    fhir:condition [ fhir:v "(linkId = 'Ccc.B22.DE04') and answer.exists()" ]           ] ) ;
              ( fhir:rule [
    fhir:name [ fhir:v "d40466ff" ] ;
                ( 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 "afa0ccc0" ] ;
                  ( fhir:source [
    fhir:context [ fhir:v "a" ] ;
    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 "value" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                    ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "val"                   ]                 ] )               ] [
    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:name [ fhir:v "CccobservationCccb22de05" ] ;
    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-Cccb22de05" ] ;
          ( 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-Cccb22de05" ] ;
          ( 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.DE05"           ]         ] )       ] )     ] [
    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 "ed73ec89" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "item" ] ;
    fhir:listMode [ fhir:v "first" ] ;
    fhir:variable [ fhir:v "itm1" ] ;
    fhir:condition [ fhir:v "linkId = 'Ccc.B22.RespiratoryRate'" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "9322cbb7" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "itm1" ] ;
    fhir:element [ fhir:v "item" ] ;
    fhir:listMode [ fhir:v "first" ] ;
    fhir:variable [ fhir:v "itm2" ] ;
    fhir:condition [ fhir:v "linkId = 'second'" ]         ] ) ;
            ( fhir:rule [
    fhir:name [ fhir:v "48a81a4f" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "itm2" ] ;
    fhir:element [ fhir:v "item" ] ;
    fhir:listMode [ fhir:v "first" ] ;
    fhir:variable [ fhir:v "item" ] ;
    fhir:condition [ fhir:v "(linkId = 'Ccc.B22.DE05') 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 "CccobservationCccb22de07" ] ;
    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-Cccb22de07" ] ;
          ( 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-Cccb22de07" ] ;
          ( 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.DE07"           ]         ] )       ] )     ] [
    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 "306838ed" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "item" ] ;
    fhir:listMode [ fhir:v "first" ] ;
    fhir:variable [ fhir:v "itm1" ] ;
    fhir:condition [ fhir:v "linkId = 'Ccc.B22.RespiratoryRate'" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "b5e73929" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "itm1" ] ;
    fhir:element [ fhir:v "item" ] ;
    fhir:listMode [ fhir:v "first" ] ;
    fhir:variable [ fhir:v "item" ] ;
    fhir:condition [ fhir:v "(linkId = 'Ccc.B22.DE07') 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-Cccb22de07" ] ;
                ( 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-Cccb22de07" ] ;
                ( 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                 ]               ] )             ] )           ] )         ] )       ] )     ] )
      ] ) . #