WHO Clinical Care in Crisis Implementation Guide for Children
0.1.0 - ci-build
WHO Clinical Care in Crisis Implementation Guide for Children - Local Development build (v0.1.0). See the Directory of published versions
Active as of 2023-10-04 |
{
"resourceType" : "StructureMap",
"id" : "che.b10-16.signs.2m.p",
"text" : {
"status" : "generated",
"div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><pre>map "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/che.b10-16.signs.2m.p" = "che.b10-16.signs.2m.p"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/observation" alias 'Observation' as target\r\nuses "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation" alias 'CHE Observation' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n src -> bundle.id = uuid() "id";\r\n src -> bundle.type = 'batch' "type";\r\n src.item first as itm1 where linkId = 'cought_difficulty' then {\r\n itm1.item first as item where (linkId = 'CHE.B10S2.DE03') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then cheobservationcheb10s2de03(src, tgt) "a3121769";\r\n } "e4e82dc3";\r\n } "ccc7345c";\r\n } "fc59465c";\r\n } "e5d16814";\r\n src.item first as itm1 where linkId = 'cought_difficulty' then {\r\n itm1.item first as item where (linkId = 'CHE.B10S2.DE04') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then cheobservationcheb10s2de04(src, tgt) "12726a73";\r\n } "1e206187";\r\n } "4d708b4e";\r\n } "bb5f6628";\r\n } "4d4fa5b7";\r\n src.item first as itm1 where linkId = 'cought_difficulty' then {\r\n itm1.item first as item where (linkId = 'CHE.B10S2.DE05') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then cheobservationcheb10s2de05(src, tgt) "4b9c9224";\r\n } "0aeccb4c";\r\n } "e837b337";\r\n } "9820da17";\r\n } "c3f24b2e";\r\n src.item first as itm1 where linkId = 'cought_difficulty' then {\r\n itm1.item first as item where (linkId = 'CHE.B10S2.DE06') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then cheobservationcheb10s2de06(src, tgt) "ab109b3b";\r\n } "57a50c8d";\r\n } "25285fbe";\r\n } "cdc5f28e";\r\n } "4ab9192b";\r\n src.item first as itm1 where linkId = 'cought_difficulty' then {\r\n itm1.item first as item where (linkId = 'CHE.B10S2.DE07') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then cheobservationcheb10s2de07(src, tgt) "6a6e462c";\r\n } "a13863d4";\r\n } "5ec854e1";\r\n } "2a324f43";\r\n } "92e71e71";\r\n src.item first as itm1 where linkId = 'cought_difficulty' then {\r\n itm1.item first as item where (linkId = 'CHE.B10S2.DE08') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then cheobservationcheb10s2de08(src, tgt) "95d2cc63";\r\n } "d48930cc";\r\n } "60edbce0";\r\n } "7dd85f19";\r\n } "aabb7fda";\r\n src.item first as itm1 where linkId = 'cought_difficulty' then {\r\n itm1.item first as item where (linkId = 'CHE.B10S2.DE09') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then cheobservationcheb10s2de09(src, tgt) "56e0c618";\r\n } "0f63b370";\r\n } "584bb51b";\r\n } "34886c11";\r\n } "b48899e4";\r\n src.item first as item where (linkId = 'CHE.B11S2.DE01') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then cheobservationcheb11s2de01(src, tgt) "e78be8e9";\r\n } "b6f8c15d";\r\n } "12706fb4";\r\n } "196805dd";\r\n src.item first as item where (linkId = 'CHE.B11S2.DE02') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then cheobservationcheb11s2de02(src, tgt) "233f732a";\r\n } "864ab13a";\r\n } "d2a5739c";\r\n } "8f208c49";\r\n src.item first as item where (linkId = 'CHE.B11S2.DE06') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then cheobservationcheb11s2de06(src, tgt) "e8e15f56";\r\n } "143c44d0";\r\n } "6bf6b2e4";\r\n } "676c63aa";\r\n src.item first as item where (linkId = 'CHE.B12S2.DE01') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then cheobservationcheb12s2de01(src, tgt) "9135622f";\r\n } "bf07356f";\r\n } "ce58f29a";\r\n } "9a76cbc7";\r\n src.item first as item where (linkId = 'CHE.B12S2.DE02') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then cheobservationcheb12s2de02(src, tgt) "1b1bf04d";\r\n } "8ea6d745";\r\n } "a824242a";\r\n } "6c1ec8e7";\r\n src.item first as item where (linkId = 'CHE.B12S2.DE03') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then cheobservationcheb12s2de03(src, tgt) "81ee5a51";\r\n } "1553a24f";\r\n } "058ccab8";\r\n } "a9e5d569";\r\n src.item first as item where (linkId = 'CHE.B12S2.DE05') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then cheobservationcheb12s2de05(src, tgt) "e35b2ce0";\r\n } "9d30433e";\r\n } "d94b4c6f";\r\n } "fbc5f12a";\r\n src.item first as item where (linkId = 'CHE.B13S2.DE01') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then cheobservationcheb13s2de01(src, tgt) "a3dd6e3c";\r\n } "65fe53f6";\r\n } "7f824586";\r\n } "f909293c";\r\n src.item first as item where (linkId = 'CHE.B13S2.DE02') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then cheobservationcheb13s2de02(src, tgt) "680332d4";\r\n } "05119853";\r\n } "293fb33c";\r\n } "4a1f0e05";\r\n src.item first as item where (linkId = 'CHE.B13S2.DE03') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then cheobservationcheb13s2de03(src, tgt) "0d34b650";\r\n } "d077d65d";\r\n } "82f46f41";\r\n } "b34e18da";\r\n src.item first as item where (linkId = 'CHE.B14S2.DE01') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then cheobservationcheb14s2de01(src, tgt) "f67e1d1e";\r\n } "f5eee0d6";\r\n } "d2d701c3";\r\n } "6d73aa66";\r\n src.item first as item where (linkId = 'CHE.B14S2.DE02') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then cheobservationcheb14s2de02(src, tgt) "d2a34da0";\r\n } "d5bdc17e";\r\n } "1e7e8586";\r\n } "da4cbe94";\r\n src.item first as item where (linkId = 'CHE.B14S2.DE03') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then cheobservationcheb14s2de03(src, tgt) "afbf6dfc";\r\n } "ada8a30b";\r\n } "58a7d9ce";\r\n } "4876aa02";\r\n src.item first as item where (linkId = 'CHE.B14S2.DE04') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then cheobservationcheb14s2de04(src, tgt) "d931de40";\r\n } "84576f4c";\r\n } "b7ae7464";\r\n } "c1f8eba4";\r\n src.item first as item where (linkId = 'CHE.B14S2.DE05') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then cheobservationcheb14s2de05(src, tgt) "2c27e645";\r\n } "4fd085e6";\r\n } "561b23b7";\r\n } "7f699109";\r\n src where src.item.where(linkId = 'CHE.B14S2.DE06').answer.where(value.code = 'CHE.B14S2.DE07') then {\r\n src.item first as item where (linkId = 'CHE.B14S2.DE06') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then cheobservationcheb14s2de07t(src, tgt) "a70fa063";\r\n } "c59e7aeb";\r\n } "63793fad";\r\n } "cb30cd2f";\r\n } "b704a158";\r\n src where src.item.where(linkId = 'CHE.B14S2.DE06').exists() and src.item.where(linkId = 'CHE.B14S2.DE06').answer.where(value.code = 'CHE.B14S2.DE07').empty() then {\r\n src.item first as item where (linkId = 'CHE.B14S2.DE06') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then cheobservationcheb14s2de07f(src, tgt) "6160ac55";\r\n } "40563b74";\r\n } "b34ff0e4";\r\n } "aa78f8ce";\r\n } "9f7ea995";\r\n src where src.item.where(linkId = 'CHE.B14S2.DE06').answer.where(value.code = 'CHE.B14S2.DE08') then {\r\n src.item first as item where (linkId = 'CHE.B14S2.DE06') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then cheobservationcheb14s2de08t(src, tgt) "7d23edb9";\r\n } "6c9dfd70";\r\n } "2d6d5812";\r\n } "bf832823";\r\n } "f71b8189";\r\n src where src.item.where(linkId = 'CHE.B14S2.DE06').exists() and src.item.where(linkId = 'CHE.B14S2.DE06').answer.where(value.code = 'CHE.B14S2.DE08').empty() then {\r\n src.item first as item where (linkId = 'CHE.B14S2.DE06') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then cheobservationcheb14s2de08f(src, tgt) "e7499185";\r\n } "cf8657d2";\r\n } "a04f0e1f";\r\n } "66356287";\r\n } "86ef6deb";\r\n src where src.item.where(linkId = 'CHE.B14S2.DE06').answer.where(value.code = 'CHE.B14S2.DE09') then {\r\n src.item first as item where (linkId = 'CHE.B14S2.DE06') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then cheobservationcheb14s2de09t(src, tgt) "5de89547";\r\n } "59e146db";\r\n } "87a2c607";\r\n } "dd8ce1c7";\r\n } "fa4d49d9";\r\n src where src.item.where(linkId = 'CHE.B14S2.DE06').exists() and src.item.where(linkId = 'CHE.B14S2.DE06').answer.where(value.code = 'CHE.B14S2.DE09').empty() then {\r\n src.item first as item where (linkId = 'CHE.B14S2.DE06') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then cheobservationcheb14s2de09f(src, tgt) "cf532f71";\r\n } "e051ab43";\r\n } "b3ea33b1";\r\n } "3e9b92bd";\r\n } "c92bdf9f";\r\n src.item first as item where (linkId = 'CHE.B14S2.DE10') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then cheobservationcheb14s2de10(src, tgt) "451a05a2";\r\n } "104c51b0";\r\n } "697ccfc3";\r\n } "18029a3e";\r\n src.item first as item where (linkId = 'CHE.B14S2.DE11') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then cheobservationcheb14s2de11(src, tgt) "fd57f88b";\r\n } "9106c3cd";\r\n } "741e4f3a";\r\n } "c0cee43d";\r\n src.item first as item where (linkId = 'CHE.B14S2.DE11A') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then cheobservationcheb14s2de11a(src, tgt) "f953aba0";\r\n } "907e904c";\r\n } "9ca7d2e0";\r\n } "e685d30a";\r\n src.item first as item where (linkId = 'CHE.B14S2.DE012') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then cheobservationcheb14s2de012(src, tgt) "008f1388";\r\n } "579ba6a1";\r\n } "328afba1";\r\n } "a8ce40d4";\r\n src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n itm1.item first as item where (linkId = 'CHE.B14S2.DE14') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then cheobservationcheb14s2de14(src, tgt) "d8a27ed8";\r\n } "c984d708";\r\n } "849511d5";\r\n } "c648daf1";\r\n } "5022f5b3";\r\n src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n itm1.item first as item where (linkId = 'CHE.B14S2.DE15') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then cheobservationcheb14s2de15(src, tgt) "06c44747";\r\n } "1ebd7c1d";\r\n } "277056b9";\r\n } "79008e21";\r\n } "e942530d";\r\n src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n itm1.item first as item where (linkId = 'CHE.B14S2.DE16') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then cheobservationcheb14s2de16(src, tgt) "5e21e5de";\r\n } "10a43a24";\r\n } "2bc887e7";\r\n } "25d97a1e";\r\n } "68cc6612";\r\n src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n itm1.item first as item where (linkId = 'CHE.B14S2.DE17') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then cheobservationcheb14s2de17(src, tgt) "4e32087b";\r\n } "0e42c26b";\r\n } "271fa5d7";\r\n } "efd53e0f";\r\n } "a9de2b75";\r\n src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n itm1.item first as item where (linkId = 'CHE.B14S2.DE19') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then cheobservationcheb14s2de19(src, tgt) "c22b8141";\r\n } "0bc665bb";\r\n } "94c5130e";\r\n } "69fac502";\r\n } "1115b12f";\r\n src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n itm1.item first as item where (linkId = 'CHE.B14S2.DE20') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then cheobservationcheb14s2de20(src, tgt) "8932862f";\r\n } "3b7c1658";\r\n } "b43fef3b";\r\n } "8c60ee58";\r\n } "48a20f87";\r\n src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n itm1.item first as item where (linkId = 'CHE.B14S2.DE23') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then cheobservationcheb14s2de23(src, tgt) "7113a51f";\r\n } "fdda7798";\r\n } "c4dd7711";\r\n } "db05c5d5";\r\n } "024d60ff";\r\n src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n itm1.item first as item where (linkId = 'CHE.B14S2.DE24') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then cheobservationcheb14s2de24(src, tgt) "f8322d67";\r\n } "145a48f6";\r\n } "2d029a29";\r\n } "ebf4a6da";\r\n } "ae402ca3";\r\n src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n itm1.item first as item where (linkId = 'CHE.B14S2.DE25') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then cheobservationcheb14s2de25(src, tgt) "45d07795";\r\n } "b1ff5512";\r\n } "9fbf564f";\r\n } "b41a0646";\r\n } "8f0d5b43";\r\n src where src.item.where(linkId = 'CHE.B14S2.DE26').answer.where(value.code = 'CHE.B14S2.DE27') then {\r\n src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n itm1.item first as item where (linkId = 'CHE.B14S2.DE26') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then cheobservationcheb14s2de26cheb14s2de27t(src, tgt) "be4e0b60";\r\n } "e9f4ebb1";\r\n } "324c47b7";\r\n } "8c812460";\r\n } "7bed4bf8";\r\n } "510cf766";\r\n src where src.item.where(linkId = 'CHE.B14S2.DE26').exists() and src.item.where(linkId = 'CHE.B14S2.DE26').answer.where(value.code = 'CHE.B14S2.DE27').empty() then {\r\n src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n itm1.item first as item where (linkId = 'CHE.B14S2.DE26') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then cheobservationcheb14s2de26cheb14s2de27f(src, tgt) "d04eb1a3";\r\n } "277a3784";\r\n } "1b910bf2";\r\n } "538610a2";\r\n } "3afba5e7";\r\n } "b487a855";\r\n src where src.item.where(linkId = 'CHE.B14S2.DE26').answer.where(value.code = 'CHE.B14S2.DE28') then {\r\n src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n itm1.item first as item where (linkId = 'CHE.B14S2.DE26') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then cheobservationcheb14s2de26cheb14s2de28t(src, tgt) "1a7082ed";\r\n } "702e6884";\r\n } "2b564d88";\r\n } "d238ec7f";\r\n } "0c4da54c";\r\n } "d83b694e";\r\n src where src.item.where(linkId = 'CHE.B14S2.DE26').exists() and src.item.where(linkId = 'CHE.B14S2.DE26').answer.where(value.code = 'CHE.B14S2.DE28').empty() then {\r\n src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n itm1.item first as item where (linkId = 'CHE.B14S2.DE26') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then cheobservationcheb14s2de26cheb14s2de28f(src, tgt) "99ca6943";\r\n } "9360ee27";\r\n } "9ffd47db";\r\n } "81ceef74";\r\n } "23b74abe";\r\n } "ad601afb";\r\n src where src.item.where(linkId = 'CHE.B14S2.DE26').answer.where(value.code = 'CHE.B14S2.DE29') then {\r\n src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n itm1.item first as item where (linkId = 'CHE.B14S2.DE26') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then cheobservationcheb14s2de26cheb14s2de29t(src, tgt) "da408d9d";\r\n } "19ef0f0a";\r\n } "f79a18a9";\r\n } "f812bd55";\r\n } "7c215c60";\r\n } "aeb3c216";\r\n src where src.item.where(linkId = 'CHE.B14S2.DE26').exists() and src.item.where(linkId = 'CHE.B14S2.DE26').answer.where(value.code = 'CHE.B14S2.DE29').empty() then {\r\n src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n itm1.item first as item where (linkId = 'CHE.B14S2.DE26') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then cheobservationcheb14s2de26cheb14s2de29f(src, tgt) "3d40c3ae";\r\n } "ff23a53e";\r\n } "cc7d9ee1";\r\n } "e083fd1f";\r\n } "195f01b1";\r\n } "0572916b";\r\n src where src.item.where(linkId = 'CHE.B14S2.DE26').answer.where(value.code = 'CHE.B14S2.DE30') then {\r\n src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n itm1.item first as item where (linkId = 'CHE.B14S2.DE26') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then cheobservationcheb14s2de26cheb14s2de30t(src, tgt) "9e0f2588";\r\n } "d74a8bf3";\r\n } "4ead07a3";\r\n } "ebdfdaa2";\r\n } "4a0e050b";\r\n } "b22c448c";\r\n src where src.item.where(linkId = 'CHE.B14S2.DE26').exists() and src.item.where(linkId = 'CHE.B14S2.DE26').answer.where(value.code = 'CHE.B14S2.DE30').empty() then {\r\n src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n itm1.item first as item where (linkId = 'CHE.B14S2.DE26') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then cheobservationcheb14s2de26cheb14s2de30f(src, tgt) "9e612cf0";\r\n } "279c085f";\r\n } "404ec535";\r\n } "9d5ba213";\r\n } "a1e1a27d";\r\n } "880166e4";\r\n src where src.item.where(linkId = 'CHE.B14S2.DE26').answer.where(value.code = 'CHE.B14S2.DE30a') then {\r\n src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n itm1.item first as item where (linkId = 'CHE.B14S2.DE26') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then cheobservationcheb14s2de26cheb14s2de30at(src, tgt) "2025ce0a";\r\n } "6354fdca";\r\n } "7f0a9fb0";\r\n } "47ec35aa";\r\n } "40d4a8e1";\r\n } "458fd390";\r\n src where src.item.where(linkId = 'CHE.B14S2.DE26').exists() and src.item.where(linkId = 'CHE.B14S2.DE26').answer.where(value.code = 'CHE.B14S2.DE30a').empty() then {\r\n src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n itm1.item first as item where (linkId = 'CHE.B14S2.DE26') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then cheobservationcheb14s2de26cheb14s2de30af(src, tgt) "10068f81";\r\n } "1cbe77e0";\r\n } "12fcdcfc";\r\n } "08ae97a2";\r\n } "9c2b28ef";\r\n } "279f742e";\r\n src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n itm1.item first as item where (linkId = 'CHE.B14S2.DE31') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then cheobservationcheb14s2de31(src, tgt) "4dd5967d";\r\n } "fba7f254";\r\n } "7b9cf0fd";\r\n } "7532f152";\r\n } "d8fddb62";\r\n src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n itm1.item first as item where (linkId = 'CHE.B14S2.DE32') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then cheobservationcheb14s2de32(src, tgt) "987cc780";\r\n } "1d3b8c01";\r\n } "00619899";\r\n } "cbba5ba4";\r\n } "af025e66";\r\n src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n itm1.item first as item where (linkId = 'CHE.B14S2.DE33') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then cheobservationcheb14s2de33(src, tgt) "618273e3";\r\n } "80e526c3";\r\n } "a2c9ebd8";\r\n } "9298cf98";\r\n } "ff219239";\r\n src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n itm1.item first as item where (linkId = 'CHE.B14S2.DE34') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then cheobservationcheb14s2de34(src, tgt) "cc24fb80";\r\n } "2ec1c43c";\r\n } "8853e3aa";\r\n } "1fa8bb60";\r\n } "3132c753";\r\n src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n itm1.item first as item where (linkId = 'CHE.B14S2.DE35') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then cheobservationcheb14s2de35(src, tgt) "b3b9b6b8";\r\n } "538fc0b5";\r\n } "072c37e5";\r\n } "4bfbe729";\r\n } "690f9c2a";\r\n src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n itm1.item first as item where (linkId = 'CHE.B14S2.DE36') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then cheobservationcheb14s2de36(src, tgt) "8e6f1ad3";\r\n } "de413593";\r\n } "68a4caac";\r\n } "683b2da9";\r\n } "e45c8b36";\r\n src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n itm1.item first as item where (linkId = 'CHE.B14S2.DE37') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then cheobservationcheb14s2de37(src, tgt) "fa9a37a4";\r\n } "d7500f73";\r\n } "ae0772e9";\r\n } "8e114ec3";\r\n } "79e278cd";\r\n src.item first as itm1 where linkId = 'CHE.B14S2.DE43' then {\r\n itm1.item first as item where (linkId = 'CHE.B14S2.DE44') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then cheobservationcheb14s2de44(src, tgt) "dd7db2b3";\r\n } "27ff2c7c";\r\n } "0ed64bfa";\r\n } "0633fa02";\r\n } "e2179f22";\r\n src.item first as itm1 where linkId = 'CHE.B14S2.DE43' then {\r\n itm1.item first as item where (linkId = 'CHE.B14S2.DE45') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then cheobservationcheb14s2de45(src, tgt) "5179e4c5";\r\n } "eefeb2de";\r\n } "99252a72";\r\n } "08752eec";\r\n } "badb9b0f";\r\n src.item first as itm1 where linkId = 'CHE.B14S2.DE43' then {\r\n itm1.item first as item where (linkId = 'CHE.B14S2.DE46') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then cheobservationcheb14s2de46(src, tgt) "472516db";\r\n } "1efe4e54";\r\n } "12138513";\r\n } "c3d2d0b5";\r\n } "8c5ef602";\r\n src where src.item.where(linkId = 'CHE.B14S2.DE38').answer.where(value.code = 'CHE.B14S2.DE39') then {\r\n src.item first as item where (linkId = 'CHE.B14S2.DE38') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then cheobservationcheb14s2de39t(src, tgt) "8ff47031";\r\n } "b5c4af76";\r\n } "4884aee5";\r\n } "bd8c72f1";\r\n } "12a2e747";\r\n src where src.item.where(linkId = 'CHE.B14S2.DE38').exists() and src.item.where(linkId = 'CHE.B14S2.DE38').answer.where(value.code = 'CHE.B14S2.DE39').empty() then {\r\n src.item first as item where (linkId = 'CHE.B14S2.DE38') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then cheobservationcheb14s2de39f(src, tgt) "6104c4bd";\r\n } "785b121a";\r\n } "804f12bb";\r\n } "407c392c";\r\n } "1b32ca5d";\r\n src where src.item.where(linkId = 'CHE.B14S2.DE38').answer.where(value.code = 'CHE.B14S2.DE40') then {\r\n src.item first as item where (linkId = 'CHE.B14S2.DE38') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then cheobservationcheb14s2de40t(src, tgt) "63172721";\r\n } "3653da4a";\r\n } "233e72f5";\r\n } "c46cbfc2";\r\n } "95a181ae";\r\n src where src.item.where(linkId = 'CHE.B14S2.DE38').exists() and src.item.where(linkId = 'CHE.B14S2.DE38').answer.where(value.code = 'CHE.B14S2.DE40').empty() then {\r\n src.item first as item where (linkId = 'CHE.B14S2.DE38') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then cheobservationcheb14s2de40f(src, tgt) "178efd53";\r\n } "23add157";\r\n } "d8dfec03";\r\n } "087c0d2f";\r\n } "7af5d83b";\r\n src where src.item.where(linkId = 'CHE.B14S2.DE38').answer.where(value.code = 'CHE.B14S2.DE41') then {\r\n src.item first as item where (linkId = 'CHE.B14S2.DE38') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then cheobservationcheb14s2de41t(src, tgt) "60b3c0d7";\r\n } "f167b9ac";\r\n } "ddd14862";\r\n } "d02acfea";\r\n } "5690e0c0";\r\n src where src.item.where(linkId = 'CHE.B14S2.DE38').exists() and src.item.where(linkId = 'CHE.B14S2.DE38').answer.where(value.code = 'CHE.B14S2.DE41').empty() then {\r\n src.item first as item where (linkId = 'CHE.B14S2.DE38') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then cheobservationcheb14s2de41f(src, tgt) "3f994678";\r\n } "740c34d6";\r\n } "d53e0826";\r\n } "a7f4be77";\r\n } "dc3d7a5c";\r\n src where src.item.where(linkId = 'CHE.B14S2.DE38').answer.where(value.code = 'CHE.B14S2.DE42') then {\r\n src.item first as item where (linkId = 'CHE.B14S2.DE38') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then cheobservationcheb14s2de42t(src, tgt) "158c2ebd";\r\n } "8ce3e09a";\r\n } "eb04e570";\r\n } "5f0b1aa5";\r\n } "d5021b3e";\r\n src where src.item.where(linkId = 'CHE.B14S2.DE38').exists() and src.item.where(linkId = 'CHE.B14S2.DE38').answer.where(value.code = 'CHE.B14S2.DE42').empty() then {\r\n src.item first as item where (linkId = 'CHE.B14S2.DE38') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then cheobservationcheb14s2de42f(src, tgt) "72ecb9fa";\r\n } "35bd055d";\r\n } "2a701124";\r\n } "4c8c24fd";\r\n } "48e2630f";\r\n src.item first as item where (linkId = 'CHE.B15S2.DE01') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then cheobservationcheb15s2de01(src, tgt) "8c85ce6a";\r\n } "031f1439";\r\n } "9d33e3ff";\r\n } "7e9736bb";\r\n src.item first as item where (linkId = 'CHE.B15S2.DE05') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then cheobservationcheb15s2de05(src, tgt) "a8fc884a";\r\n } "03f0b26d";\r\n } "efc29f91";\r\n } "22a2462d";\r\n src.item first as item where (linkId = 'CHE.B16S2.DE01') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then cheobservationcheb16s2de01(src, tgt) "dc9976f9";\r\n } "c972eb7c";\r\n } "eb6fab32";\r\n } "82d4f193";\r\n}\r\n\r\ngroup cheobservationcheb10s2de03(source src, target tgt) {\r\n src -> 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-cheb10s2de03";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B10S2.DE03' "code-cheb10s2de03";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'cought_difficulty' then {\r\n itm1.item first as item where (linkId = 'CHE.B10S2.DE03') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb10s2de03";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb10s2de03";\r\n } "bdab9370";\r\n } "3643892e";\r\n } "a1a59c1c";\r\n}\r\n\r\ngroup cheobservationcheb10s2de04(source src, target tgt) {\r\n src -> 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-cheb10s2de04";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B10S2.DE04' "code-cheb10s2de04";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'cought_difficulty' then {\r\n itm1.item first as item where (linkId = 'CHE.B10S2.DE04') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb10s2de04";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb10s2de04";\r\n } "bdab9370";\r\n } "ae563f8e";\r\n } "671db70c";\r\n}\r\n\r\ngroup cheobservationcheb10s2de05(source src, target tgt) {\r\n src -> 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-cheb10s2de05";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B10S2.DE05' "code-cheb10s2de05";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'cought_difficulty' then {\r\n itm1.item first as item where (linkId = 'CHE.B10S2.DE05') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb10s2de05";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb10s2de05";\r\n } "bdab9370";\r\n } "3247b1e7";\r\n } "65b6d289";\r\n}\r\n\r\ngroup cheobservationcheb10s2de06(source src, target tgt) {\r\n src -> 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-cheb10s2de06";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B10S2.DE06' "code-cheb10s2de06";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'cought_difficulty' then {\r\n itm1.item first as item where (linkId = 'CHE.B10S2.DE06') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb10s2de06";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb10s2de06";\r\n } "bdab9370";\r\n } "594fd043";\r\n } "cf6f5fac";\r\n}\r\n\r\ngroup cheobservationcheb10s2de07(source src, target tgt) {\r\n src -> 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-cheb10s2de07";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B10S2.DE07' "code-cheb10s2de07";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'cought_difficulty' then {\r\n itm1.item first as item where (linkId = 'CHE.B10S2.DE07') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb10s2de07";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb10s2de07";\r\n } "bdab9370";\r\n } "725863c7";\r\n } "33638b4d";\r\n}\r\n\r\ngroup cheobservationcheb10s2de08(source src, target tgt) {\r\n src -> 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-cheb10s2de08";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B10S2.DE08' "code-cheb10s2de08";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'cought_difficulty' then {\r\n itm1.item first as item where (linkId = 'CHE.B10S2.DE08') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.value = val, tgt.status = 'final' "afa0ccc0";\r\n } "d40466ff";\r\n } "7fc374e0";\r\n } "390bb223";\r\n}\r\n\r\ngroup cheobservationcheb10s2de09(source src, target tgt) {\r\n src -> 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-cheb10s2de09";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B10S2.DE09' "code-cheb10s2de09";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'cought_difficulty' then {\r\n itm1.item first as item where (linkId = 'CHE.B10S2.DE09') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'CHE.B10S2.DE09' -> tgt.status = 'final', tgt.value = true "92ce5bab";\r\n } "938e1cf7";\r\n } "eb220f01";\r\n } "39bc21fa";\r\n } "c96afa29";\r\n}\r\n\r\ngroup cheobservationcheb11s2de01(source src, target tgt) {\r\n src -> 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-cheb11s2de01";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B11S2.DE01' "code-cheb11s2de01";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'CHE.B11S2.DE01') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb11s2de01";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb11s2de01";\r\n } "bdab9370";\r\n } "a31aa2b6";\r\n}\r\n\r\ngroup cheobservationcheb11s2de02(source src, target tgt) {\r\n src -> 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-cheb11s2de02";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B11S2.DE02' "code-cheb11s2de02";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'CHE.B11S2.DE02') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'none' -> tgt.status = 'cancelled' "8ab1d7a5";\r\n val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";\r\n } "4ca9082e";\r\n } "7c587a4b";\r\n } "ecb0a4ef";\r\n}\r\n\r\ngroup cheobservationcheb11s2de06(source src, target tgt) {\r\n src -> 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-cheb11s2de06";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B11S2.DE06' "code-cheb11s2de06";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'CHE.B11S2.DE06') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb11s2de06";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb11s2de06";\r\n } "bdab9370";\r\n } "06af4931";\r\n}\r\n\r\ngroup cheobservationcheb12s2de01(source src, target tgt) {\r\n src -> 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-cheb12s2de01";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B12S2.DE01' "code-cheb12s2de01";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'CHE.B12S2.DE01') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb12s2de01";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb12s2de01";\r\n } "bdab9370";\r\n } "10525414";\r\n}\r\n\r\ngroup cheobservationcheb12s2de02(source src, target tgt) {\r\n src -> 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-cheb12s2de02";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B12S2.DE02' "code-cheb12s2de02";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'CHE.B12S2.DE02') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb12s2de02";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb12s2de02";\r\n } "bdab9370";\r\n } "d589f606";\r\n}\r\n\r\ngroup cheobservationcheb12s2de03(source src, target tgt) {\r\n src -> 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-cheb12s2de03";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B12S2.DE03' "code-cheb12s2de03";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'CHE.B12S2.DE03') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb12s2de03";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb12s2de03";\r\n } "bdab9370";\r\n } "632d71c9";\r\n}\r\n\r\ngroup cheobservationcheb12s2de05(source src, target tgt) {\r\n src -> 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-cheb12s2de05";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B12S2.DE05' "code-cheb12s2de05";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'CHE.B12S2.DE05') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb12s2de05";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb12s2de05";\r\n } "bdab9370";\r\n } "71db10fc";\r\n}\r\n\r\ngroup cheobservationcheb13s2de01(source src, target tgt) {\r\n src -> 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-cheb13s2de01";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B13S2.DE01' "code-cheb13s2de01";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'CHE.B13S2.DE01') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb13s2de01";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb13s2de01";\r\n } "bdab9370";\r\n } "d090e850";\r\n}\r\n\r\ngroup cheobservationcheb13s2de02(source src, target tgt) {\r\n src -> 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-cheb13s2de02";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B13S2.DE02' "code-cheb13s2de02";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'CHE.B13S2.DE02') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb13s2de02";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb13s2de02";\r\n } "bdab9370";\r\n } "316c78a3";\r\n}\r\n\r\ngroup cheobservationcheb13s2de03(source src, target tgt) {\r\n src -> 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-cheb13s2de03";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B13S2.DE03' "code-cheb13s2de03";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'CHE.B13S2.DE03') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'none' -> tgt.status = 'cancelled' "8ab1d7a5";\r\n val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";\r\n } "4ca9082e";\r\n } "7c587a4b";\r\n } "9d66829c";\r\n}\r\n\r\ngroup cheobservationcheb14s2de01(source src, target tgt) {\r\n src -> 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-cheb14s2de01";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B14S2.DE01' "code-cheb14s2de01";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'CHE.B14S2.DE01') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb14s2de01";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb14s2de01";\r\n } "bdab9370";\r\n } "4e097293";\r\n}\r\n\r\ngroup cheobservationcheb14s2de02(source src, target tgt) {\r\n src -> 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-cheb14s2de02";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B14S2.DE02' "code-cheb14s2de02";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'CHE.B14S2.DE02') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb14s2de02";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb14s2de02";\r\n } "bdab9370";\r\n } "52ed8da2";\r\n}\r\n\r\ngroup cheobservationcheb14s2de03(source src, target tgt) {\r\n src -> 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-cheb14s2de03";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B14S2.DE03' "code-cheb14s2de03";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'CHE.B14S2.DE03') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb14s2de03";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb14s2de03";\r\n } "bdab9370";\r\n } "bb2fbd60";\r\n}\r\n\r\ngroup cheobservationcheb14s2de04(source src, target tgt) {\r\n src -> 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-cheb14s2de04";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B14S2.DE04' "code-cheb14s2de04";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'CHE.B14S2.DE04') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb14s2de04";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb14s2de04";\r\n } "bdab9370";\r\n } "05ad93a6";\r\n}\r\n\r\ngroup cheobservationcheb14s2de05(source src, target tgt) {\r\n src -> 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-cheb14s2de05";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B14S2.DE05' "code-cheb14s2de05";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'CHE.B14S2.DE05') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb14s2de05";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb14s2de05";\r\n } "bdab9370";\r\n } "66401790";\r\n}\r\n\r\ngroup cheobservationcheb14s2de07t(source src, target tgt) {\r\n src -> 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-cheobservationcheb14s2de07t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B14S2.DE07' "code-cheobservationcheb14s2de07t";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup cheobservationcheb14s2de07f(source src, target tgt) {\r\n src -> 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-cheobservationcheb14s2de07f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B14S2.DE07' "code-cheobservationcheb14s2de07f";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup cheobservationcheb14s2de08t(source src, target tgt) {\r\n src -> 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-cheobservationcheb14s2de08t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B14S2.DE08' "code-cheobservationcheb14s2de08t";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup cheobservationcheb14s2de08f(source src, target tgt) {\r\n src -> 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-cheobservationcheb14s2de08f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B14S2.DE08' "code-cheobservationcheb14s2de08f";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup cheobservationcheb14s2de09t(source src, target tgt) {\r\n src -> 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-cheobservationcheb14s2de09t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B14S2.DE09' "code-cheobservationcheb14s2de09t";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup cheobservationcheb14s2de09f(source src, target tgt) {\r\n src -> 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-cheobservationcheb14s2de09f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B14S2.DE09' "code-cheobservationcheb14s2de09f";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup cheobservationcheb14s2de10(source src, target tgt) {\r\n src -> 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-cheb14s2de10";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B14S2.DE10' "code-cheb14s2de10";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'CHE.B14S2.DE10') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb14s2de10";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb14s2de10";\r\n } "bdab9370";\r\n } "45094cde";\r\n}\r\n\r\ngroup cheobservationcheb14s2de11(source src, target tgt) {\r\n src -> 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-cheb14s2de11";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B14S2.DE11' "code-cheb14s2de11";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'CHE.B14S2.DE11') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb14s2de11";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb14s2de11";\r\n } "bdab9370";\r\n } "3ff0fc37";\r\n}\r\n\r\ngroup cheobservationcheb14s2de11a(source src, target tgt) {\r\n src -> 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-cheb14s2de11a";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B14S2.DE11A' "code-cheb14s2de11a";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'CHE.B14S2.DE11A') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb14s2de11a";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb14s2de11a";\r\n } "bdab9370";\r\n } "84d53423";\r\n}\r\n\r\ngroup cheobservationcheb14s2de012(source src, target tgt) {\r\n src -> 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-cheb14s2de012";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B14S2.DE012' "code-cheb14s2de012";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'CHE.B14S2.DE012') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb14s2de012";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb14s2de012";\r\n } "bdab9370";\r\n } "62463681";\r\n}\r\n\r\ngroup cheobservationcheb14s2de14(source src, target tgt) {\r\n src -> 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-cheb14s2de14";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B14S2.DE14' "code-cheb14s2de14";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n itm1.item first as item where (linkId = 'CHE.B14S2.DE14') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb14s2de14";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb14s2de14";\r\n } "bdab9370";\r\n } "5af19059";\r\n } "2006dfba";\r\n}\r\n\r\ngroup cheobservationcheb14s2de15(source src, target tgt) {\r\n src -> 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-cheb14s2de15";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B14S2.DE15' "code-cheb14s2de15";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n itm1.item first as item where (linkId = 'CHE.B14S2.DE15') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb14s2de15";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb14s2de15";\r\n } "bdab9370";\r\n } "39218419";\r\n } "a57c496c";\r\n}\r\n\r\ngroup cheobservationcheb14s2de16(source src, target tgt) {\r\n src -> 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-cheb14s2de16";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B14S2.DE16' "code-cheb14s2de16";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n itm1.item first as item where (linkId = 'CHE.B14S2.DE16') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb14s2de16";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb14s2de16";\r\n } "bdab9370";\r\n } "450cff64";\r\n } "0722a638";\r\n}\r\n\r\ngroup cheobservationcheb14s2de17(source src, target tgt) {\r\n src -> 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-cheb14s2de17";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B14S2.DE17' "code-cheb14s2de17";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n itm1.item first as item where (linkId = 'CHE.B14S2.DE17') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb14s2de17";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb14s2de17";\r\n } "bdab9370";\r\n } "897dc3be";\r\n } "1909815c";\r\n}\r\n\r\ngroup cheobservationcheb14s2de19(source src, target tgt) {\r\n src -> 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-cheb14s2de19";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B14S2.DE19' "code-cheb14s2de19";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n itm1.item first as item where (linkId = 'CHE.B14S2.DE19') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb14s2de19";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb14s2de19";\r\n } "bdab9370";\r\n } "f72f1788";\r\n } "8ca1952a";\r\n}\r\n\r\ngroup cheobservationcheb14s2de20(source src, target tgt) {\r\n src -> 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-cheb14s2de20";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B14S2.DE20' "code-cheb14s2de20";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n itm1.item first as item where (linkId = 'CHE.B14S2.DE20') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb14s2de20";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb14s2de20";\r\n } "bdab9370";\r\n } "4a2edb0e";\r\n } "923e59ee";\r\n}\r\n\r\ngroup cheobservationcheb14s2de23(source src, target tgt) {\r\n src -> 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-cheb14s2de23";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B14S2.DE23' "code-cheb14s2de23";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n itm1.item first as item where (linkId = 'CHE.B14S2.DE23') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb14s2de23";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb14s2de23";\r\n } "bdab9370";\r\n } "608a4005";\r\n } "13801842";\r\n}\r\n\r\ngroup cheobservationcheb14s2de24(source src, target tgt) {\r\n src -> 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-cheb14s2de24";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B14S2.DE24' "code-cheb14s2de24";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n itm1.item first as item where (linkId = 'CHE.B14S2.DE24') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb14s2de24";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb14s2de24";\r\n } "bdab9370";\r\n } "25c8bf22";\r\n } "60767175";\r\n}\r\n\r\ngroup cheobservationcheb14s2de25(source src, target tgt) {\r\n src -> 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-cheb14s2de25";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B14S2.DE25' "code-cheb14s2de25";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n itm1.item first as item where (linkId = 'CHE.B14S2.DE25') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb14s2de25";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb14s2de25";\r\n } "bdab9370";\r\n } "db85fa52";\r\n } "3c40004e";\r\n}\r\n\r\ngroup cheobservationcheb14s2de26cheb14s2de27t(source src, target tgt) {\r\n src -> 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-cheobservationcheb14s2de26cheb14s2de27t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B14S2.DE26&CHE.B14S2.DE27' "code-cheobservationcheb14s2de26cheb14s2de27t";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup cheobservationcheb14s2de26cheb14s2de27f(source src, target tgt) {\r\n src -> 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-cheobservationcheb14s2de26cheb14s2de27f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B14S2.DE26&CHE.B14S2.DE27' "code-cheobservationcheb14s2de26cheb14s2de27f";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup cheobservationcheb14s2de26cheb14s2de28t(source src, target tgt) {\r\n src -> 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-cheobservationcheb14s2de26cheb14s2de28t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B14S2.DE26&CHE.B14S2.DE28' "code-cheobservationcheb14s2de26cheb14s2de28t";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup cheobservationcheb14s2de26cheb14s2de28f(source src, target tgt) {\r\n src -> 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-cheobservationcheb14s2de26cheb14s2de28f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B14S2.DE26&CHE.B14S2.DE28' "code-cheobservationcheb14s2de26cheb14s2de28f";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup cheobservationcheb14s2de26cheb14s2de29t(source src, target tgt) {\r\n src -> 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-cheobservationcheb14s2de26cheb14s2de29t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B14S2.DE26&CHE.B14S2.DE29' "code-cheobservationcheb14s2de26cheb14s2de29t";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup cheobservationcheb14s2de26cheb14s2de29f(source src, target tgt) {\r\n src -> 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-cheobservationcheb14s2de26cheb14s2de29f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B14S2.DE26&CHE.B14S2.DE29' "code-cheobservationcheb14s2de26cheb14s2de29f";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup cheobservationcheb14s2de26cheb14s2de30t(source src, target tgt) {\r\n src -> 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-cheobservationcheb14s2de26cheb14s2de30t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B14S2.DE26&CHE.B14S2.DE30' "code-cheobservationcheb14s2de26cheb14s2de30t";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup cheobservationcheb14s2de26cheb14s2de30f(source src, target tgt) {\r\n src -> 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-cheobservationcheb14s2de26cheb14s2de30f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B14S2.DE26&CHE.B14S2.DE30' "code-cheobservationcheb14s2de26cheb14s2de30f";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup cheobservationcheb14s2de26cheb14s2de30at(source src, target tgt) {\r\n src -> 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-cheobservationcheb14s2de26cheb14s2de30at";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B14S2.DE26&CHE.B14S2.DE30a' "code-cheobservationcheb14s2de26cheb14s2de30at";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup cheobservationcheb14s2de26cheb14s2de30af(source src, target tgt) {\r\n src -> 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-cheobservationcheb14s2de26cheb14s2de30af";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B14S2.DE26&CHE.B14S2.DE30a' "code-cheobservationcheb14s2de26cheb14s2de30af";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup cheobservationcheb14s2de31(source src, target tgt) {\r\n src -> 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-cheb14s2de31";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B14S2.DE31' "code-cheb14s2de31";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n itm1.item first as item where (linkId = 'CHE.B14S2.DE31') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb14s2de31";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb14s2de31";\r\n } "bdab9370";\r\n } "055fc452";\r\n } "aa637ba6";\r\n}\r\n\r\ngroup cheobservationcheb14s2de32(source src, target tgt) {\r\n src -> 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-cheb14s2de32";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B14S2.DE32' "code-cheb14s2de32";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n itm1.item first as item where (linkId = 'CHE.B14S2.DE32') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb14s2de32";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb14s2de32";\r\n } "bdab9370";\r\n } "17a0f55a";\r\n } "c083af79";\r\n}\r\n\r\ngroup cheobservationcheb14s2de33(source src, target tgt) {\r\n src -> 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-cheb14s2de33";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B14S2.DE33' "code-cheb14s2de33";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n itm1.item first as item where (linkId = 'CHE.B14S2.DE33') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb14s2de33";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb14s2de33";\r\n } "bdab9370";\r\n } "e4745a04";\r\n } "4e4788c5";\r\n}\r\n\r\ngroup cheobservationcheb14s2de34(source src, target tgt) {\r\n src -> 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-cheb14s2de34";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B14S2.DE34' "code-cheb14s2de34";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n itm1.item first as item where (linkId = 'CHE.B14S2.DE34') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb14s2de34";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb14s2de34";\r\n } "bdab9370";\r\n } "de0bbf97";\r\n } "5cd616a6";\r\n}\r\n\r\ngroup cheobservationcheb14s2de35(source src, target tgt) {\r\n src -> 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-cheb14s2de35";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B14S2.DE35' "code-cheb14s2de35";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n itm1.item first as item where (linkId = 'CHE.B14S2.DE35') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb14s2de35";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb14s2de35";\r\n } "bdab9370";\r\n } "638d4331";\r\n } "f58c353f";\r\n}\r\n\r\ngroup cheobservationcheb14s2de36(source src, target tgt) {\r\n src -> 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-cheb14s2de36";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B14S2.DE36' "code-cheb14s2de36";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n itm1.item first as item where (linkId = 'CHE.B14S2.DE36') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb14s2de36";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb14s2de36";\r\n } "bdab9370";\r\n } "cbbe5815";\r\n } "0936cbf6";\r\n}\r\n\r\ngroup cheobservationcheb14s2de37(source src, target tgt) {\r\n src -> 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-cheb14s2de37";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B14S2.DE37' "code-cheb14s2de37";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n itm1.item first as item where (linkId = 'CHE.B14S2.DE37') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb14s2de37";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb14s2de37";\r\n } "bdab9370";\r\n } "b86995dc";\r\n } "5682102f";\r\n}\r\n\r\ngroup cheobservationcheb14s2de44(source src, target tgt) {\r\n src -> 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-cheb14s2de44";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B14S2.DE44' "code-cheb14s2de44";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'CHE.B14S2.DE43' then {\r\n itm1.item first as item where (linkId = 'CHE.B14S2.DE44') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'CHE.B14S2.DE44' -> tgt.status = 'final', tgt.value = true "0b6db5a4";\r\n } "0179b73a";\r\n } "6e03d90e";\r\n } "bf7248e5";\r\n } "53079171";\r\n}\r\n\r\ngroup cheobservationcheb14s2de45(source src, target tgt) {\r\n src -> 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-cheb14s2de45";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B14S2.DE45' "code-cheb14s2de45";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'CHE.B14S2.DE43' then {\r\n itm1.item first as item where (linkId = 'CHE.B14S2.DE45') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'CHE.B14S2.DE45' -> tgt.status = 'final', tgt.value = true "e757280e";\r\n } "cfa88a12";\r\n } "474bfa7e";\r\n } "dc5a7e6f";\r\n } "28d2f74b";\r\n}\r\n\r\ngroup cheobservationcheb14s2de46(source src, target tgt) {\r\n src -> 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-cheb14s2de46";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B14S2.DE46' "code-cheb14s2de46";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'CHE.B14S2.DE43' then {\r\n itm1.item first as item where (linkId = 'CHE.B14S2.DE46') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'CHE.B14S2.DE46' -> tgt.status = 'final', tgt.value = true "6174d2b1";\r\n } "b8a53423";\r\n } "674b3d37";\r\n } "20c182dd";\r\n } "2a5bd70e";\r\n}\r\n\r\ngroup cheobservationcheb14s2de39t(source src, target tgt) {\r\n src -> 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-cheobservationcheb14s2de39t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B14S2.DE39' "code-cheobservationcheb14s2de39t";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup cheobservationcheb14s2de39f(source src, target tgt) {\r\n src -> 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-cheobservationcheb14s2de39f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B14S2.DE39' "code-cheobservationcheb14s2de39f";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup cheobservationcheb14s2de40t(source src, target tgt) {\r\n src -> 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-cheobservationcheb14s2de40t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B14S2.DE40' "code-cheobservationcheb14s2de40t";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup cheobservationcheb14s2de40f(source src, target tgt) {\r\n src -> 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-cheobservationcheb14s2de40f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B14S2.DE40' "code-cheobservationcheb14s2de40f";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup cheobservationcheb14s2de41t(source src, target tgt) {\r\n src -> 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-cheobservationcheb14s2de41t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B14S2.DE41' "code-cheobservationcheb14s2de41t";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup cheobservationcheb14s2de41f(source src, target tgt) {\r\n src -> 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-cheobservationcheb14s2de41f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B14S2.DE41' "code-cheobservationcheb14s2de41f";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup cheobservationcheb14s2de42t(source src, target tgt) {\r\n src -> 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-cheobservationcheb14s2de42t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B14S2.DE42' "code-cheobservationcheb14s2de42t";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup cheobservationcheb14s2de42f(source src, target tgt) {\r\n src -> 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-cheobservationcheb14s2de42f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B14S2.DE42' "code-cheobservationcheb14s2de42f";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup cheobservationcheb15s2de01(source src, target tgt) {\r\n src -> 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-cheb15s2de01";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B15S2.DE01' "code-cheb15s2de01";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'CHE.B15S2.DE01') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'none' -> tgt.status = 'cancelled' "8ab1d7a5";\r\n val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";\r\n } "4ca9082e";\r\n } "7c587a4b";\r\n } "c368427f";\r\n}\r\n\r\ngroup cheobservationcheb15s2de05(source src, target tgt) {\r\n src -> 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-cheb15s2de05";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B15S2.DE05' "code-cheb15s2de05";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'CHE.B15S2.DE05') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'none' -> tgt.status = 'cancelled' "8ab1d7a5";\r\n val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";\r\n } "4ca9082e";\r\n } "7c587a4b";\r\n } "6f2995df";\r\n}\r\n\r\ngroup cheobservationcheb16s2de01(source src, target tgt) {\r\n src -> 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-cheb16s2de01";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B16S2.DE01' "code-cheb16s2de01";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'CHE.B16S2.DE01') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb16s2de01";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb16s2de01";\r\n } "bdab9370";\r\n } "864949e9";\r\n}\r\n\r\n</pre></div>"
},
"url" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/che.b10-16.signs.2m.p",
"version" : "0.1.0",
"name" : "che.b10-16.signs.2m.p",
"status" : "active",
"date" : "2023-10-04T12:32:21+00:00",
"publisher" : "WHO",
"contact" : [
{
"name" : "WHO",
"telecom" : [
{
"system" : "url",
"value" : "http://who.int"
}
]
}
],
"structure" : [
{
"url" : "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse",
"mode" : "source",
"alias" : "'questionnaireResponse'"
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/Bundle",
"mode" : "target",
"alias" : "'Bundle'"
},
{
"url" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/observation",
"mode" : "target",
"alias" : "'Observation'"
},
{
"url" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation",
"mode" : "produced",
"alias" : "'CHE Observation'"
}
],
"group" : [
{
"name" : "bundletrans",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"type" : "questionnaireResponse",
"mode" : "source"
},
{
"name" : "bundle",
"type" : "Bundle",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "type",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "type",
"transform" : "copy",
"parameter" : [
{
"valueString" : "batch"
}
]
}
]
},
{
"name" : "e5d16814",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'cought_difficulty'"
}
],
"rule" : [
{
"name" : "fc59465c",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B10S2.DE03') and answer.exists()"
}
],
"rule" : [
{
"name" : "ccc7345c",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "e4e82dc3",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "a3121769",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"contextType" : "variable",
"transform" : "copy",
"parameter" : [
{
"valueId" : "tgt"
}
]
}
],
"dependent" : [
{
"name" : "cheobservationcheb10s2de03",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "4d4fa5b7",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'cought_difficulty'"
}
],
"rule" : [
{
"name" : "bb5f6628",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B10S2.DE04') and answer.exists()"
}
],
"rule" : [
{
"name" : "4d708b4e",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "1e206187",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "12726a73",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"contextType" : "variable",
"transform" : "copy",
"parameter" : [
{
"valueId" : "tgt"
}
]
}
],
"dependent" : [
{
"name" : "cheobservationcheb10s2de04",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "c3f24b2e",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'cought_difficulty'"
}
],
"rule" : [
{
"name" : "9820da17",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B10S2.DE05') and answer.exists()"
}
],
"rule" : [
{
"name" : "e837b337",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "0aeccb4c",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "4b9c9224",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"contextType" : "variable",
"transform" : "copy",
"parameter" : [
{
"valueId" : "tgt"
}
]
}
],
"dependent" : [
{
"name" : "cheobservationcheb10s2de05",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "4ab9192b",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'cought_difficulty'"
}
],
"rule" : [
{
"name" : "cdc5f28e",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B10S2.DE06') and answer.exists()"
}
],
"rule" : [
{
"name" : "25285fbe",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "57a50c8d",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "ab109b3b",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"contextType" : "variable",
"transform" : "copy",
"parameter" : [
{
"valueId" : "tgt"
}
]
}
],
"dependent" : [
{
"name" : "cheobservationcheb10s2de06",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "92e71e71",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'cought_difficulty'"
}
],
"rule" : [
{
"name" : "2a324f43",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B10S2.DE07') and answer.exists()"
}
],
"rule" : [
{
"name" : "5ec854e1",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "a13863d4",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "6a6e462c",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"contextType" : "variable",
"transform" : "copy",
"parameter" : [
{
"valueId" : "tgt"
}
]
}
],
"dependent" : [
{
"name" : "cheobservationcheb10s2de07",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "aabb7fda",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'cought_difficulty'"
}
],
"rule" : [
{
"name" : "7dd85f19",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B10S2.DE08') and answer.exists()"
}
],
"rule" : [
{
"name" : "60edbce0",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "d48930cc",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "95d2cc63",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"contextType" : "variable",
"transform" : "copy",
"parameter" : [
{
"valueId" : "tgt"
}
]
}
],
"dependent" : [
{
"name" : "cheobservationcheb10s2de08",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "b48899e4",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'cought_difficulty'"
}
],
"rule" : [
{
"name" : "34886c11",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B10S2.DE09') and answer.exists()"
}
],
"rule" : [
{
"name" : "584bb51b",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "0f63b370",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "56e0c618",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"contextType" : "variable",
"transform" : "copy",
"parameter" : [
{
"valueId" : "tgt"
}
]
}
],
"dependent" : [
{
"name" : "cheobservationcheb10s2de09",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "196805dd",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B11S2.DE01') and answer.exists()"
}
],
"rule" : [
{
"name" : "12706fb4",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "b6f8c15d",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "e78be8e9",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"contextType" : "variable",
"transform" : "copy",
"parameter" : [
{
"valueId" : "tgt"
}
]
}
],
"dependent" : [
{
"name" : "cheobservationcheb11s2de01",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
},
{
"name" : "8f208c49",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B11S2.DE02') and answer.exists()"
}
],
"rule" : [
{
"name" : "d2a5739c",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "864ab13a",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "233f732a",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"contextType" : "variable",
"transform" : "copy",
"parameter" : [
{
"valueId" : "tgt"
}
]
}
],
"dependent" : [
{
"name" : "cheobservationcheb11s2de02",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
},
{
"name" : "676c63aa",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B11S2.DE06') and answer.exists()"
}
],
"rule" : [
{
"name" : "6bf6b2e4",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "143c44d0",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "e8e15f56",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"contextType" : "variable",
"transform" : "copy",
"parameter" : [
{
"valueId" : "tgt"
}
]
}
],
"dependent" : [
{
"name" : "cheobservationcheb11s2de06",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
},
{
"name" : "9a76cbc7",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B12S2.DE01') and answer.exists()"
}
],
"rule" : [
{
"name" : "ce58f29a",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "bf07356f",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "9135622f",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"contextType" : "variable",
"transform" : "copy",
"parameter" : [
{
"valueId" : "tgt"
}
]
}
],
"dependent" : [
{
"name" : "cheobservationcheb12s2de01",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
},
{
"name" : "6c1ec8e7",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B12S2.DE02') and answer.exists()"
}
],
"rule" : [
{
"name" : "a824242a",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "8ea6d745",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "1b1bf04d",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"contextType" : "variable",
"transform" : "copy",
"parameter" : [
{
"valueId" : "tgt"
}
]
}
],
"dependent" : [
{
"name" : "cheobservationcheb12s2de02",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
},
{
"name" : "a9e5d569",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B12S2.DE03') and answer.exists()"
}
],
"rule" : [
{
"name" : "058ccab8",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "1553a24f",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "81ee5a51",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"contextType" : "variable",
"transform" : "copy",
"parameter" : [
{
"valueId" : "tgt"
}
]
}
],
"dependent" : [
{
"name" : "cheobservationcheb12s2de03",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
},
{
"name" : "fbc5f12a",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B12S2.DE05') and answer.exists()"
}
],
"rule" : [
{
"name" : "d94b4c6f",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "9d30433e",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "e35b2ce0",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"contextType" : "variable",
"transform" : "copy",
"parameter" : [
{
"valueId" : "tgt"
}
]
}
],
"dependent" : [
{
"name" : "cheobservationcheb12s2de05",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
},
{
"name" : "f909293c",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B13S2.DE01') and answer.exists()"
}
],
"rule" : [
{
"name" : "7f824586",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "65fe53f6",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "a3dd6e3c",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"contextType" : "variable",
"transform" : "copy",
"parameter" : [
{
"valueId" : "tgt"
}
]
}
],
"dependent" : [
{
"name" : "cheobservationcheb13s2de01",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
},
{
"name" : "4a1f0e05",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B13S2.DE02') and answer.exists()"
}
],
"rule" : [
{
"name" : "293fb33c",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "05119853",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "680332d4",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"contextType" : "variable",
"transform" : "copy",
"parameter" : [
{
"valueId" : "tgt"
}
]
}
],
"dependent" : [
{
"name" : "cheobservationcheb13s2de02",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
},
{
"name" : "b34e18da",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B13S2.DE03') and answer.exists()"
}
],
"rule" : [
{
"name" : "82f46f41",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "d077d65d",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "0d34b650",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"contextType" : "variable",
"transform" : "copy",
"parameter" : [
{
"valueId" : "tgt"
}
]
}
],
"dependent" : [
{
"name" : "cheobservationcheb13s2de03",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
},
{
"name" : "6d73aa66",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE01') and answer.exists()"
}
],
"rule" : [
{
"name" : "d2d701c3",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "f5eee0d6",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "f67e1d1e",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"contextType" : "variable",
"transform" : "copy",
"parameter" : [
{
"valueId" : "tgt"
}
]
}
],
"dependent" : [
{
"name" : "cheobservationcheb14s2de01",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
},
{
"name" : "da4cbe94",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE02') and answer.exists()"
}
],
"rule" : [
{
"name" : "1e7e8586",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "d5bdc17e",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "d2a34da0",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"contextType" : "variable",
"transform" : "copy",
"parameter" : [
{
"valueId" : "tgt"
}
]
}
],
"dependent" : [
{
"name" : "cheobservationcheb14s2de02",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
},
{
"name" : "4876aa02",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE03') and answer.exists()"
}
],
"rule" : [
{
"name" : "58a7d9ce",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "ada8a30b",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "afbf6dfc",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"contextType" : "variable",
"transform" : "copy",
"parameter" : [
{
"valueId" : "tgt"
}
]
}
],
"dependent" : [
{
"name" : "cheobservationcheb14s2de03",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
},
{
"name" : "c1f8eba4",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE04') and answer.exists()"
}
],
"rule" : [
{
"name" : "b7ae7464",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "84576f4c",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "d931de40",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"contextType" : "variable",
"transform" : "copy",
"parameter" : [
{
"valueId" : "tgt"
}
]
}
],
"dependent" : [
{
"name" : "cheobservationcheb14s2de04",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
},
{
"name" : "7f699109",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE05') and answer.exists()"
}
],
"rule" : [
{
"name" : "561b23b7",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "4fd085e6",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "2c27e645",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"contextType" : "variable",
"transform" : "copy",
"parameter" : [
{
"valueId" : "tgt"
}
]
}
],
"dependent" : [
{
"name" : "cheobservationcheb14s2de05",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
},
{
"name" : "b704a158",
"source" : [
{
"context" : "src",
"condition" : "src.item.where(linkId = 'CHE.B14S2.DE06').answer.where(value.code = 'CHE.B14S2.DE07')"
}
],
"rule" : [
{
"name" : "cb30cd2f",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE06') and answer.exists()"
}
],
"rule" : [
{
"name" : "63793fad",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "c59e7aeb",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "a70fa063",
"source" : [
{
"context" : "src"
}
],
"dependent" : [
{
"name" : "cheobservationcheb14s2de07t",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "9f7ea995",
"source" : [
{
"context" : "src",
"condition" : "src.item.where(linkId = 'CHE.B14S2.DE06').exists() and src.item.where(linkId = 'CHE.B14S2.DE06').answer.where(value.code = 'CHE.B14S2.DE07').empty()"
}
],
"rule" : [
{
"name" : "aa78f8ce",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE06') and answer.exists()"
}
],
"rule" : [
{
"name" : "b34ff0e4",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "40563b74",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "6160ac55",
"source" : [
{
"context" : "src"
}
],
"dependent" : [
{
"name" : "cheobservationcheb14s2de07f",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "f71b8189",
"source" : [
{
"context" : "src",
"condition" : "src.item.where(linkId = 'CHE.B14S2.DE06').answer.where(value.code = 'CHE.B14S2.DE08')"
}
],
"rule" : [
{
"name" : "bf832823",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE06') and answer.exists()"
}
],
"rule" : [
{
"name" : "2d6d5812",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "6c9dfd70",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "7d23edb9",
"source" : [
{
"context" : "src"
}
],
"dependent" : [
{
"name" : "cheobservationcheb14s2de08t",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "86ef6deb",
"source" : [
{
"context" : "src",
"condition" : "src.item.where(linkId = 'CHE.B14S2.DE06').exists() and src.item.where(linkId = 'CHE.B14S2.DE06').answer.where(value.code = 'CHE.B14S2.DE08').empty()"
}
],
"rule" : [
{
"name" : "66356287",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE06') and answer.exists()"
}
],
"rule" : [
{
"name" : "a04f0e1f",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "cf8657d2",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "e7499185",
"source" : [
{
"context" : "src"
}
],
"dependent" : [
{
"name" : "cheobservationcheb14s2de08f",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "fa4d49d9",
"source" : [
{
"context" : "src",
"condition" : "src.item.where(linkId = 'CHE.B14S2.DE06').answer.where(value.code = 'CHE.B14S2.DE09')"
}
],
"rule" : [
{
"name" : "dd8ce1c7",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE06') and answer.exists()"
}
],
"rule" : [
{
"name" : "87a2c607",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "59e146db",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "5de89547",
"source" : [
{
"context" : "src"
}
],
"dependent" : [
{
"name" : "cheobservationcheb14s2de09t",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "c92bdf9f",
"source" : [
{
"context" : "src",
"condition" : "src.item.where(linkId = 'CHE.B14S2.DE06').exists() and src.item.where(linkId = 'CHE.B14S2.DE06').answer.where(value.code = 'CHE.B14S2.DE09').empty()"
}
],
"rule" : [
{
"name" : "3e9b92bd",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE06') and answer.exists()"
}
],
"rule" : [
{
"name" : "b3ea33b1",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "e051ab43",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "cf532f71",
"source" : [
{
"context" : "src"
}
],
"dependent" : [
{
"name" : "cheobservationcheb14s2de09f",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "18029a3e",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE10') and answer.exists()"
}
],
"rule" : [
{
"name" : "697ccfc3",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "104c51b0",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "451a05a2",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"contextType" : "variable",
"transform" : "copy",
"parameter" : [
{
"valueId" : "tgt"
}
]
}
],
"dependent" : [
{
"name" : "cheobservationcheb14s2de10",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
},
{
"name" : "c0cee43d",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE11') and answer.exists()"
}
],
"rule" : [
{
"name" : "741e4f3a",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "9106c3cd",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "fd57f88b",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"contextType" : "variable",
"transform" : "copy",
"parameter" : [
{
"valueId" : "tgt"
}
]
}
],
"dependent" : [
{
"name" : "cheobservationcheb14s2de11",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
},
{
"name" : "e685d30a",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE11A') and answer.exists()"
}
],
"rule" : [
{
"name" : "9ca7d2e0",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "907e904c",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "f953aba0",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"contextType" : "variable",
"transform" : "copy",
"parameter" : [
{
"valueId" : "tgt"
}
]
}
],
"dependent" : [
{
"name" : "cheobservationcheb14s2de11a",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
},
{
"name" : "a8ce40d4",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE012') and answer.exists()"
}
],
"rule" : [
{
"name" : "328afba1",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "579ba6a1",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "008f1388",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"contextType" : "variable",
"transform" : "copy",
"parameter" : [
{
"valueId" : "tgt"
}
]
}
],
"dependent" : [
{
"name" : "cheobservationcheb14s2de012",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
},
{
"name" : "5022f5b3",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'CHE.B14S2.DE13'"
}
],
"rule" : [
{
"name" : "c648daf1",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE14') and answer.exists()"
}
],
"rule" : [
{
"name" : "849511d5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "c984d708",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "d8a27ed8",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"contextType" : "variable",
"transform" : "copy",
"parameter" : [
{
"valueId" : "tgt"
}
]
}
],
"dependent" : [
{
"name" : "cheobservationcheb14s2de14",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "e942530d",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'CHE.B14S2.DE13'"
}
],
"rule" : [
{
"name" : "79008e21",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE15') and answer.exists()"
}
],
"rule" : [
{
"name" : "277056b9",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "1ebd7c1d",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "06c44747",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"contextType" : "variable",
"transform" : "copy",
"parameter" : [
{
"valueId" : "tgt"
}
]
}
],
"dependent" : [
{
"name" : "cheobservationcheb14s2de15",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "68cc6612",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'CHE.B14S2.DE13'"
}
],
"rule" : [
{
"name" : "25d97a1e",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE16') and answer.exists()"
}
],
"rule" : [
{
"name" : "2bc887e7",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "10a43a24",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "5e21e5de",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"contextType" : "variable",
"transform" : "copy",
"parameter" : [
{
"valueId" : "tgt"
}
]
}
],
"dependent" : [
{
"name" : "cheobservationcheb14s2de16",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "a9de2b75",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'CHE.B14S2.DE13'"
}
],
"rule" : [
{
"name" : "efd53e0f",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE17') and answer.exists()"
}
],
"rule" : [
{
"name" : "271fa5d7",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "0e42c26b",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "4e32087b",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"contextType" : "variable",
"transform" : "copy",
"parameter" : [
{
"valueId" : "tgt"
}
]
}
],
"dependent" : [
{
"name" : "cheobservationcheb14s2de17",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "1115b12f",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'CHE.B14S2.DE13'"
}
],
"rule" : [
{
"name" : "69fac502",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE19') and answer.exists()"
}
],
"rule" : [
{
"name" : "94c5130e",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "0bc665bb",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "c22b8141",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"contextType" : "variable",
"transform" : "copy",
"parameter" : [
{
"valueId" : "tgt"
}
]
}
],
"dependent" : [
{
"name" : "cheobservationcheb14s2de19",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "48a20f87",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'CHE.B14S2.DE13'"
}
],
"rule" : [
{
"name" : "8c60ee58",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE20') and answer.exists()"
}
],
"rule" : [
{
"name" : "b43fef3b",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "3b7c1658",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "8932862f",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"contextType" : "variable",
"transform" : "copy",
"parameter" : [
{
"valueId" : "tgt"
}
]
}
],
"dependent" : [
{
"name" : "cheobservationcheb14s2de20",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "024d60ff",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'CHE.B14S2.DE13'"
}
],
"rule" : [
{
"name" : "db05c5d5",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE23') and answer.exists()"
}
],
"rule" : [
{
"name" : "c4dd7711",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "fdda7798",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "7113a51f",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"contextType" : "variable",
"transform" : "copy",
"parameter" : [
{
"valueId" : "tgt"
}
]
}
],
"dependent" : [
{
"name" : "cheobservationcheb14s2de23",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "ae402ca3",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'CHE.B14S2.DE13'"
}
],
"rule" : [
{
"name" : "ebf4a6da",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE24') and answer.exists()"
}
],
"rule" : [
{
"name" : "2d029a29",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "145a48f6",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "f8322d67",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"contextType" : "variable",
"transform" : "copy",
"parameter" : [
{
"valueId" : "tgt"
}
]
}
],
"dependent" : [
{
"name" : "cheobservationcheb14s2de24",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "8f0d5b43",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'CHE.B14S2.DE13'"
}
],
"rule" : [
{
"name" : "b41a0646",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE25') and answer.exists()"
}
],
"rule" : [
{
"name" : "9fbf564f",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "b1ff5512",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "45d07795",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"contextType" : "variable",
"transform" : "copy",
"parameter" : [
{
"valueId" : "tgt"
}
]
}
],
"dependent" : [
{
"name" : "cheobservationcheb14s2de25",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "510cf766",
"source" : [
{
"context" : "src",
"condition" : "src.item.where(linkId = 'CHE.B14S2.DE26').answer.where(value.code = 'CHE.B14S2.DE27')"
}
],
"rule" : [
{
"name" : "7bed4bf8",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'CHE.B14S2.DE13'"
}
],
"rule" : [
{
"name" : "8c812460",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE26') and answer.exists()"
}
],
"rule" : [
{
"name" : "324c47b7",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "e9f4ebb1",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "be4e0b60",
"source" : [
{
"context" : "src"
}
],
"dependent" : [
{
"name" : "cheobservationcheb14s2de26cheb14s2de27t",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "b487a855",
"source" : [
{
"context" : "src",
"condition" : "src.item.where(linkId = 'CHE.B14S2.DE26').exists() and src.item.where(linkId = 'CHE.B14S2.DE26').answer.where(value.code = 'CHE.B14S2.DE27').empty()"
}
],
"rule" : [
{
"name" : "3afba5e7",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'CHE.B14S2.DE13'"
}
],
"rule" : [
{
"name" : "538610a2",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE26') and answer.exists()"
}
],
"rule" : [
{
"name" : "1b910bf2",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "277a3784",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "d04eb1a3",
"source" : [
{
"context" : "src"
}
],
"dependent" : [
{
"name" : "cheobservationcheb14s2de26cheb14s2de27f",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "d83b694e",
"source" : [
{
"context" : "src",
"condition" : "src.item.where(linkId = 'CHE.B14S2.DE26').answer.where(value.code = 'CHE.B14S2.DE28')"
}
],
"rule" : [
{
"name" : "0c4da54c",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'CHE.B14S2.DE13'"
}
],
"rule" : [
{
"name" : "d238ec7f",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE26') and answer.exists()"
}
],
"rule" : [
{
"name" : "2b564d88",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "702e6884",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "1a7082ed",
"source" : [
{
"context" : "src"
}
],
"dependent" : [
{
"name" : "cheobservationcheb14s2de26cheb14s2de28t",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "ad601afb",
"source" : [
{
"context" : "src",
"condition" : "src.item.where(linkId = 'CHE.B14S2.DE26').exists() and src.item.where(linkId = 'CHE.B14S2.DE26').answer.where(value.code = 'CHE.B14S2.DE28').empty()"
}
],
"rule" : [
{
"name" : "23b74abe",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'CHE.B14S2.DE13'"
}
],
"rule" : [
{
"name" : "81ceef74",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE26') and answer.exists()"
}
],
"rule" : [
{
"name" : "9ffd47db",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "9360ee27",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "99ca6943",
"source" : [
{
"context" : "src"
}
],
"dependent" : [
{
"name" : "cheobservationcheb14s2de26cheb14s2de28f",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "aeb3c216",
"source" : [
{
"context" : "src",
"condition" : "src.item.where(linkId = 'CHE.B14S2.DE26').answer.where(value.code = 'CHE.B14S2.DE29')"
}
],
"rule" : [
{
"name" : "7c215c60",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'CHE.B14S2.DE13'"
}
],
"rule" : [
{
"name" : "f812bd55",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE26') and answer.exists()"
}
],
"rule" : [
{
"name" : "f79a18a9",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "19ef0f0a",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "da408d9d",
"source" : [
{
"context" : "src"
}
],
"dependent" : [
{
"name" : "cheobservationcheb14s2de26cheb14s2de29t",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "0572916b",
"source" : [
{
"context" : "src",
"condition" : "src.item.where(linkId = 'CHE.B14S2.DE26').exists() and src.item.where(linkId = 'CHE.B14S2.DE26').answer.where(value.code = 'CHE.B14S2.DE29').empty()"
}
],
"rule" : [
{
"name" : "195f01b1",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'CHE.B14S2.DE13'"
}
],
"rule" : [
{
"name" : "e083fd1f",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE26') and answer.exists()"
}
],
"rule" : [
{
"name" : "cc7d9ee1",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "ff23a53e",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "3d40c3ae",
"source" : [
{
"context" : "src"
}
],
"dependent" : [
{
"name" : "cheobservationcheb14s2de26cheb14s2de29f",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "b22c448c",
"source" : [
{
"context" : "src",
"condition" : "src.item.where(linkId = 'CHE.B14S2.DE26').answer.where(value.code = 'CHE.B14S2.DE30')"
}
],
"rule" : [
{
"name" : "4a0e050b",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'CHE.B14S2.DE13'"
}
],
"rule" : [
{
"name" : "ebdfdaa2",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE26') and answer.exists()"
}
],
"rule" : [
{
"name" : "4ead07a3",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "d74a8bf3",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "9e0f2588",
"source" : [
{
"context" : "src"
}
],
"dependent" : [
{
"name" : "cheobservationcheb14s2de26cheb14s2de30t",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "880166e4",
"source" : [
{
"context" : "src",
"condition" : "src.item.where(linkId = 'CHE.B14S2.DE26').exists() and src.item.where(linkId = 'CHE.B14S2.DE26').answer.where(value.code = 'CHE.B14S2.DE30').empty()"
}
],
"rule" : [
{
"name" : "a1e1a27d",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'CHE.B14S2.DE13'"
}
],
"rule" : [
{
"name" : "9d5ba213",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE26') and answer.exists()"
}
],
"rule" : [
{
"name" : "404ec535",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "279c085f",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "9e612cf0",
"source" : [
{
"context" : "src"
}
],
"dependent" : [
{
"name" : "cheobservationcheb14s2de26cheb14s2de30f",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "458fd390",
"source" : [
{
"context" : "src",
"condition" : "src.item.where(linkId = 'CHE.B14S2.DE26').answer.where(value.code = 'CHE.B14S2.DE30a')"
}
],
"rule" : [
{
"name" : "40d4a8e1",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'CHE.B14S2.DE13'"
}
],
"rule" : [
{
"name" : "47ec35aa",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE26') and answer.exists()"
}
],
"rule" : [
{
"name" : "7f0a9fb0",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "6354fdca",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "2025ce0a",
"source" : [
{
"context" : "src"
}
],
"dependent" : [
{
"name" : "cheobservationcheb14s2de26cheb14s2de30at",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "279f742e",
"source" : [
{
"context" : "src",
"condition" : "src.item.where(linkId = 'CHE.B14S2.DE26').exists() and src.item.where(linkId = 'CHE.B14S2.DE26').answer.where(value.code = 'CHE.B14S2.DE30a').empty()"
}
],
"rule" : [
{
"name" : "9c2b28ef",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'CHE.B14S2.DE13'"
}
],
"rule" : [
{
"name" : "08ae97a2",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE26') and answer.exists()"
}
],
"rule" : [
{
"name" : "12fcdcfc",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "1cbe77e0",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "10068f81",
"source" : [
{
"context" : "src"
}
],
"dependent" : [
{
"name" : "cheobservationcheb14s2de26cheb14s2de30af",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "d8fddb62",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'CHE.B14S2.DE13'"
}
],
"rule" : [
{
"name" : "7532f152",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE31') and answer.exists()"
}
],
"rule" : [
{
"name" : "7b9cf0fd",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "fba7f254",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "4dd5967d",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"contextType" : "variable",
"transform" : "copy",
"parameter" : [
{
"valueId" : "tgt"
}
]
}
],
"dependent" : [
{
"name" : "cheobservationcheb14s2de31",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "af025e66",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'CHE.B14S2.DE13'"
}
],
"rule" : [
{
"name" : "cbba5ba4",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE32') and answer.exists()"
}
],
"rule" : [
{
"name" : "00619899",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "1d3b8c01",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "987cc780",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"contextType" : "variable",
"transform" : "copy",
"parameter" : [
{
"valueId" : "tgt"
}
]
}
],
"dependent" : [
{
"name" : "cheobservationcheb14s2de32",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "ff219239",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'CHE.B14S2.DE13'"
}
],
"rule" : [
{
"name" : "9298cf98",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE33') and answer.exists()"
}
],
"rule" : [
{
"name" : "a2c9ebd8",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "80e526c3",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "618273e3",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"contextType" : "variable",
"transform" : "copy",
"parameter" : [
{
"valueId" : "tgt"
}
]
}
],
"dependent" : [
{
"name" : "cheobservationcheb14s2de33",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "3132c753",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'CHE.B14S2.DE13'"
}
],
"rule" : [
{
"name" : "1fa8bb60",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE34') and answer.exists()"
}
],
"rule" : [
{
"name" : "8853e3aa",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "2ec1c43c",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "cc24fb80",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"contextType" : "variable",
"transform" : "copy",
"parameter" : [
{
"valueId" : "tgt"
}
]
}
],
"dependent" : [
{
"name" : "cheobservationcheb14s2de34",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "690f9c2a",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'CHE.B14S2.DE13'"
}
],
"rule" : [
{
"name" : "4bfbe729",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE35') and answer.exists()"
}
],
"rule" : [
{
"name" : "072c37e5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "538fc0b5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "b3b9b6b8",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"contextType" : "variable",
"transform" : "copy",
"parameter" : [
{
"valueId" : "tgt"
}
]
}
],
"dependent" : [
{
"name" : "cheobservationcheb14s2de35",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "e45c8b36",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'CHE.B14S2.DE13'"
}
],
"rule" : [
{
"name" : "683b2da9",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE36') and answer.exists()"
}
],
"rule" : [
{
"name" : "68a4caac",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "de413593",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "8e6f1ad3",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"contextType" : "variable",
"transform" : "copy",
"parameter" : [
{
"valueId" : "tgt"
}
]
}
],
"dependent" : [
{
"name" : "cheobservationcheb14s2de36",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "79e278cd",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'CHE.B14S2.DE13'"
}
],
"rule" : [
{
"name" : "8e114ec3",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE37') and answer.exists()"
}
],
"rule" : [
{
"name" : "ae0772e9",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "d7500f73",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "fa9a37a4",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"contextType" : "variable",
"transform" : "copy",
"parameter" : [
{
"valueId" : "tgt"
}
]
}
],
"dependent" : [
{
"name" : "cheobservationcheb14s2de37",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "e2179f22",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'CHE.B14S2.DE43'"
}
],
"rule" : [
{
"name" : "0633fa02",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE44') and answer.exists()"
}
],
"rule" : [
{
"name" : "0ed64bfa",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "27ff2c7c",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "dd7db2b3",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"contextType" : "variable",
"transform" : "copy",
"parameter" : [
{
"valueId" : "tgt"
}
]
}
],
"dependent" : [
{
"name" : "cheobservationcheb14s2de44",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "badb9b0f",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'CHE.B14S2.DE43'"
}
],
"rule" : [
{
"name" : "08752eec",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE45') and answer.exists()"
}
],
"rule" : [
{
"name" : "99252a72",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "eefeb2de",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "5179e4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"contextType" : "variable",
"transform" : "copy",
"parameter" : [
{
"valueId" : "tgt"
}
]
}
],
"dependent" : [
{
"name" : "cheobservationcheb14s2de45",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "8c5ef602",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'CHE.B14S2.DE43'"
}
],
"rule" : [
{
"name" : "c3d2d0b5",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE46') and answer.exists()"
}
],
"rule" : [
{
"name" : "12138513",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "1efe4e54",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "472516db",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"contextType" : "variable",
"transform" : "copy",
"parameter" : [
{
"valueId" : "tgt"
}
]
}
],
"dependent" : [
{
"name" : "cheobservationcheb14s2de46",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "12a2e747",
"source" : [
{
"context" : "src",
"condition" : "src.item.where(linkId = 'CHE.B14S2.DE38').answer.where(value.code = 'CHE.B14S2.DE39')"
}
],
"rule" : [
{
"name" : "bd8c72f1",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE38') and answer.exists()"
}
],
"rule" : [
{
"name" : "4884aee5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "b5c4af76",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "8ff47031",
"source" : [
{
"context" : "src"
}
],
"dependent" : [
{
"name" : "cheobservationcheb14s2de39t",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "1b32ca5d",
"source" : [
{
"context" : "src",
"condition" : "src.item.where(linkId = 'CHE.B14S2.DE38').exists() and src.item.where(linkId = 'CHE.B14S2.DE38').answer.where(value.code = 'CHE.B14S2.DE39').empty()"
}
],
"rule" : [
{
"name" : "407c392c",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE38') and answer.exists()"
}
],
"rule" : [
{
"name" : "804f12bb",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "785b121a",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "6104c4bd",
"source" : [
{
"context" : "src"
}
],
"dependent" : [
{
"name" : "cheobservationcheb14s2de39f",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "95a181ae",
"source" : [
{
"context" : "src",
"condition" : "src.item.where(linkId = 'CHE.B14S2.DE38').answer.where(value.code = 'CHE.B14S2.DE40')"
}
],
"rule" : [
{
"name" : "c46cbfc2",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE38') and answer.exists()"
}
],
"rule" : [
{
"name" : "233e72f5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "3653da4a",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "63172721",
"source" : [
{
"context" : "src"
}
],
"dependent" : [
{
"name" : "cheobservationcheb14s2de40t",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "7af5d83b",
"source" : [
{
"context" : "src",
"condition" : "src.item.where(linkId = 'CHE.B14S2.DE38').exists() and src.item.where(linkId = 'CHE.B14S2.DE38').answer.where(value.code = 'CHE.B14S2.DE40').empty()"
}
],
"rule" : [
{
"name" : "087c0d2f",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE38') and answer.exists()"
}
],
"rule" : [
{
"name" : "d8dfec03",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "23add157",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "178efd53",
"source" : [
{
"context" : "src"
}
],
"dependent" : [
{
"name" : "cheobservationcheb14s2de40f",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "5690e0c0",
"source" : [
{
"context" : "src",
"condition" : "src.item.where(linkId = 'CHE.B14S2.DE38').answer.where(value.code = 'CHE.B14S2.DE41')"
}
],
"rule" : [
{
"name" : "d02acfea",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE38') and answer.exists()"
}
],
"rule" : [
{
"name" : "ddd14862",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "f167b9ac",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "60b3c0d7",
"source" : [
{
"context" : "src"
}
],
"dependent" : [
{
"name" : "cheobservationcheb14s2de41t",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "dc3d7a5c",
"source" : [
{
"context" : "src",
"condition" : "src.item.where(linkId = 'CHE.B14S2.DE38').exists() and src.item.where(linkId = 'CHE.B14S2.DE38').answer.where(value.code = 'CHE.B14S2.DE41').empty()"
}
],
"rule" : [
{
"name" : "a7f4be77",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE38') and answer.exists()"
}
],
"rule" : [
{
"name" : "d53e0826",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "740c34d6",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "3f994678",
"source" : [
{
"context" : "src"
}
],
"dependent" : [
{
"name" : "cheobservationcheb14s2de41f",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "d5021b3e",
"source" : [
{
"context" : "src",
"condition" : "src.item.where(linkId = 'CHE.B14S2.DE38').answer.where(value.code = 'CHE.B14S2.DE42')"
}
],
"rule" : [
{
"name" : "5f0b1aa5",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE38') and answer.exists()"
}
],
"rule" : [
{
"name" : "eb04e570",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "8ce3e09a",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "158c2ebd",
"source" : [
{
"context" : "src"
}
],
"dependent" : [
{
"name" : "cheobservationcheb14s2de42t",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "48e2630f",
"source" : [
{
"context" : "src",
"condition" : "src.item.where(linkId = 'CHE.B14S2.DE38').exists() and src.item.where(linkId = 'CHE.B14S2.DE38').answer.where(value.code = 'CHE.B14S2.DE42').empty()"
}
],
"rule" : [
{
"name" : "4c8c24fd",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE38') and answer.exists()"
}
],
"rule" : [
{
"name" : "2a701124",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "35bd055d",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "72ecb9fa",
"source" : [
{
"context" : "src"
}
],
"dependent" : [
{
"name" : "cheobservationcheb14s2de42f",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "7e9736bb",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B15S2.DE01') and answer.exists()"
}
],
"rule" : [
{
"name" : "9d33e3ff",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "031f1439",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "8c85ce6a",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"contextType" : "variable",
"transform" : "copy",
"parameter" : [
{
"valueId" : "tgt"
}
]
}
],
"dependent" : [
{
"name" : "cheobservationcheb15s2de01",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
},
{
"name" : "22a2462d",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B15S2.DE05') and answer.exists()"
}
],
"rule" : [
{
"name" : "efc29f91",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "03f0b26d",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "a8fc884a",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"contextType" : "variable",
"transform" : "copy",
"parameter" : [
{
"valueId" : "tgt"
}
]
}
],
"dependent" : [
{
"name" : "cheobservationcheb15s2de05",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
},
{
"name" : "82d4f193",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B16S2.DE01') and answer.exists()"
}
],
"rule" : [
{
"name" : "eb6fab32",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "c972eb7c",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "dc9976f9",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"contextType" : "variable",
"transform" : "copy",
"parameter" : [
{
"valueId" : "tgt"
}
]
}
],
"dependent" : [
{
"name" : "cheobservationcheb16s2de01",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb10s2de03",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheb10s2de03",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheb10s2de03",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B10S2.DE03"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "a1a59c1c",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'cought_difficulty'"
}
],
"rule" : [
{
"name" : "3643892e",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B10S2.DE03') and answer.exists()"
}
],
"rule" : [
{
"name" : "bdab9370",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "a"
}
],
"rule" : [
{
"name" : "final-cheb10s2de03",
"source" : [
{
"context" : "a",
"condition" : "a.value = true"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : true
}
]
}
]
},
{
"name" : "notfound-cheb10s2de03",
"source" : [
{
"context" : "a",
"condition" : "a.value = false"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "cancelled"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : false
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb10s2de04",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheb10s2de04",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheb10s2de04",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B10S2.DE04"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "671db70c",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'cought_difficulty'"
}
],
"rule" : [
{
"name" : "ae563f8e",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B10S2.DE04') and answer.exists()"
}
],
"rule" : [
{
"name" : "bdab9370",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "a"
}
],
"rule" : [
{
"name" : "final-cheb10s2de04",
"source" : [
{
"context" : "a",
"condition" : "a.value = true"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : true
}
]
}
]
},
{
"name" : "notfound-cheb10s2de04",
"source" : [
{
"context" : "a",
"condition" : "a.value = false"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "cancelled"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : false
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb10s2de05",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheb10s2de05",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheb10s2de05",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B10S2.DE05"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "65b6d289",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'cought_difficulty'"
}
],
"rule" : [
{
"name" : "3247b1e7",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B10S2.DE05') and answer.exists()"
}
],
"rule" : [
{
"name" : "bdab9370",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "a"
}
],
"rule" : [
{
"name" : "final-cheb10s2de05",
"source" : [
{
"context" : "a",
"condition" : "a.value = true"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : true
}
]
}
]
},
{
"name" : "notfound-cheb10s2de05",
"source" : [
{
"context" : "a",
"condition" : "a.value = false"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "cancelled"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : false
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb10s2de06",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheb10s2de06",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheb10s2de06",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B10S2.DE06"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "cf6f5fac",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'cought_difficulty'"
}
],
"rule" : [
{
"name" : "594fd043",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B10S2.DE06') and answer.exists()"
}
],
"rule" : [
{
"name" : "bdab9370",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "a"
}
],
"rule" : [
{
"name" : "final-cheb10s2de06",
"source" : [
{
"context" : "a",
"condition" : "a.value = true"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : true
}
]
}
]
},
{
"name" : "notfound-cheb10s2de06",
"source" : [
{
"context" : "a",
"condition" : "a.value = false"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "cancelled"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : false
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb10s2de07",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheb10s2de07",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheb10s2de07",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B10S2.DE07"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "33638b4d",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'cought_difficulty'"
}
],
"rule" : [
{
"name" : "725863c7",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B10S2.DE07') and answer.exists()"
}
],
"rule" : [
{
"name" : "bdab9370",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "a"
}
],
"rule" : [
{
"name" : "final-cheb10s2de07",
"source" : [
{
"context" : "a",
"condition" : "a.value = true"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : true
}
]
}
]
},
{
"name" : "notfound-cheb10s2de07",
"source" : [
{
"context" : "a",
"condition" : "a.value = false"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "cancelled"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : false
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb10s2de08",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheb10s2de08",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheb10s2de08",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B10S2.DE08"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "390bb223",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'cought_difficulty'"
}
],
"rule" : [
{
"name" : "7fc374e0",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B10S2.DE08') and answer.exists()"
}
],
"rule" : [
{
"name" : "d40466ff",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "a"
}
],
"rule" : [
{
"name" : "afa0ccc0",
"source" : [
{
"context" : "a",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb10s2de09",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheb10s2de09",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheb10s2de09",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B10S2.DE09"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "c96afa29",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'cought_difficulty'"
}
],
"rule" : [
{
"name" : "39bc21fa",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B10S2.DE09') and answer.exists()"
}
],
"rule" : [
{
"name" : "eb220f01",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "a"
}
],
"rule" : [
{
"name" : "938e1cf7",
"source" : [
{
"context" : "a",
"element" : "value",
"variable" : "val"
}
],
"rule" : [
{
"name" : "92ce5bab",
"source" : [
{
"context" : "val",
"condition" : "val.code = 'CHE.B10S2.DE09'"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : true
}
]
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb11s2de01",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheb11s2de01",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheb11s2de01",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B11S2.DE01"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "a31aa2b6",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B11S2.DE01') and answer.exists()"
}
],
"rule" : [
{
"name" : "bdab9370",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "a"
}
],
"rule" : [
{
"name" : "final-cheb11s2de01",
"source" : [
{
"context" : "a",
"condition" : "a.value = true"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : true
}
]
}
]
},
{
"name" : "notfound-cheb11s2de01",
"source" : [
{
"context" : "a",
"condition" : "a.value = false"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "cancelled"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : false
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb11s2de02",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheb11s2de02",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheb11s2de02",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B11S2.DE02"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "ecb0a4ef",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B11S2.DE02') and answer.exists()"
}
],
"rule" : [
{
"name" : "7c587a4b",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "a"
}
],
"rule" : [
{
"name" : "4ca9082e",
"source" : [
{
"context" : "a",
"element" : "value",
"variable" : "val"
}
],
"rule" : [
{
"name" : "8ab1d7a5",
"source" : [
{
"context" : "val",
"condition" : "val.code = 'none'"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "cancelled"
}
]
}
]
},
{
"name" : "a1050460",
"source" : [
{
"context" : "val",
"condition" : "val.code != 'none'"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"variable" : "cc",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "cc",
"contextType" : "variable",
"element" : "coding",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb11s2de06",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheb11s2de06",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheb11s2de06",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B11S2.DE06"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "06af4931",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B11S2.DE06') and answer.exists()"
}
],
"rule" : [
{
"name" : "bdab9370",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "a"
}
],
"rule" : [
{
"name" : "final-cheb11s2de06",
"source" : [
{
"context" : "a",
"condition" : "a.value = true"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : true
}
]
}
]
},
{
"name" : "notfound-cheb11s2de06",
"source" : [
{
"context" : "a",
"condition" : "a.value = false"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "cancelled"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : false
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb12s2de01",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheb12s2de01",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheb12s2de01",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B12S2.DE01"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "10525414",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B12S2.DE01') and answer.exists()"
}
],
"rule" : [
{
"name" : "bdab9370",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "a"
}
],
"rule" : [
{
"name" : "final-cheb12s2de01",
"source" : [
{
"context" : "a",
"condition" : "a.value = true"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : true
}
]
}
]
},
{
"name" : "notfound-cheb12s2de01",
"source" : [
{
"context" : "a",
"condition" : "a.value = false"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "cancelled"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : false
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb12s2de02",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheb12s2de02",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheb12s2de02",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B12S2.DE02"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "d589f606",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B12S2.DE02') and answer.exists()"
}
],
"rule" : [
{
"name" : "bdab9370",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "a"
}
],
"rule" : [
{
"name" : "final-cheb12s2de02",
"source" : [
{
"context" : "a",
"condition" : "a.value = true"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : true
}
]
}
]
},
{
"name" : "notfound-cheb12s2de02",
"source" : [
{
"context" : "a",
"condition" : "a.value = false"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "cancelled"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : false
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb12s2de03",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheb12s2de03",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheb12s2de03",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B12S2.DE03"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "632d71c9",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B12S2.DE03') and answer.exists()"
}
],
"rule" : [
{
"name" : "bdab9370",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "a"
}
],
"rule" : [
{
"name" : "final-cheb12s2de03",
"source" : [
{
"context" : "a",
"condition" : "a.value = true"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : true
}
]
}
]
},
{
"name" : "notfound-cheb12s2de03",
"source" : [
{
"context" : "a",
"condition" : "a.value = false"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "cancelled"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : false
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb12s2de05",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheb12s2de05",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheb12s2de05",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B12S2.DE05"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "71db10fc",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B12S2.DE05') and answer.exists()"
}
],
"rule" : [
{
"name" : "bdab9370",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "a"
}
],
"rule" : [
{
"name" : "final-cheb12s2de05",
"source" : [
{
"context" : "a",
"condition" : "a.value = true"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : true
}
]
}
]
},
{
"name" : "notfound-cheb12s2de05",
"source" : [
{
"context" : "a",
"condition" : "a.value = false"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "cancelled"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : false
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb13s2de01",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheb13s2de01",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheb13s2de01",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B13S2.DE01"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "d090e850",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B13S2.DE01') and answer.exists()"
}
],
"rule" : [
{
"name" : "bdab9370",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "a"
}
],
"rule" : [
{
"name" : "final-cheb13s2de01",
"source" : [
{
"context" : "a",
"condition" : "a.value = true"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : true
}
]
}
]
},
{
"name" : "notfound-cheb13s2de01",
"source" : [
{
"context" : "a",
"condition" : "a.value = false"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "cancelled"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : false
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb13s2de02",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheb13s2de02",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheb13s2de02",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B13S2.DE02"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "316c78a3",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B13S2.DE02') and answer.exists()"
}
],
"rule" : [
{
"name" : "bdab9370",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "a"
}
],
"rule" : [
{
"name" : "final-cheb13s2de02",
"source" : [
{
"context" : "a",
"condition" : "a.value = true"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : true
}
]
}
]
},
{
"name" : "notfound-cheb13s2de02",
"source" : [
{
"context" : "a",
"condition" : "a.value = false"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "cancelled"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : false
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb13s2de03",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheb13s2de03",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheb13s2de03",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B13S2.DE03"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "9d66829c",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B13S2.DE03') and answer.exists()"
}
],
"rule" : [
{
"name" : "7c587a4b",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "a"
}
],
"rule" : [
{
"name" : "4ca9082e",
"source" : [
{
"context" : "a",
"element" : "value",
"variable" : "val"
}
],
"rule" : [
{
"name" : "8ab1d7a5",
"source" : [
{
"context" : "val",
"condition" : "val.code = 'none'"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "cancelled"
}
]
}
]
},
{
"name" : "a1050460",
"source" : [
{
"context" : "val",
"condition" : "val.code != 'none'"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"variable" : "cc",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "cc",
"contextType" : "variable",
"element" : "coding",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb14s2de01",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheb14s2de01",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheb14s2de01",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B14S2.DE01"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "4e097293",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE01') and answer.exists()"
}
],
"rule" : [
{
"name" : "bdab9370",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "a"
}
],
"rule" : [
{
"name" : "final-cheb14s2de01",
"source" : [
{
"context" : "a",
"condition" : "a.value = true"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : true
}
]
}
]
},
{
"name" : "notfound-cheb14s2de01",
"source" : [
{
"context" : "a",
"condition" : "a.value = false"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "cancelled"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : false
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb14s2de02",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheb14s2de02",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheb14s2de02",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B14S2.DE02"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "52ed8da2",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE02') and answer.exists()"
}
],
"rule" : [
{
"name" : "bdab9370",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "a"
}
],
"rule" : [
{
"name" : "final-cheb14s2de02",
"source" : [
{
"context" : "a",
"condition" : "a.value = true"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : true
}
]
}
]
},
{
"name" : "notfound-cheb14s2de02",
"source" : [
{
"context" : "a",
"condition" : "a.value = false"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "cancelled"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : false
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb14s2de03",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheb14s2de03",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheb14s2de03",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B14S2.DE03"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "bb2fbd60",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE03') and answer.exists()"
}
],
"rule" : [
{
"name" : "bdab9370",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "a"
}
],
"rule" : [
{
"name" : "final-cheb14s2de03",
"source" : [
{
"context" : "a",
"condition" : "a.value = true"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : true
}
]
}
]
},
{
"name" : "notfound-cheb14s2de03",
"source" : [
{
"context" : "a",
"condition" : "a.value = false"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "cancelled"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : false
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb14s2de04",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheb14s2de04",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheb14s2de04",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B14S2.DE04"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "05ad93a6",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE04') and answer.exists()"
}
],
"rule" : [
{
"name" : "bdab9370",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "a"
}
],
"rule" : [
{
"name" : "final-cheb14s2de04",
"source" : [
{
"context" : "a",
"condition" : "a.value = true"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : true
}
]
}
]
},
{
"name" : "notfound-cheb14s2de04",
"source" : [
{
"context" : "a",
"condition" : "a.value = false"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "cancelled"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : false
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb14s2de05",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheb14s2de05",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheb14s2de05",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B14S2.DE05"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "66401790",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE05') and answer.exists()"
}
],
"rule" : [
{
"name" : "bdab9370",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "a"
}
],
"rule" : [
{
"name" : "final-cheb14s2de05",
"source" : [
{
"context" : "a",
"condition" : "a.value = true"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : true
}
]
}
]
},
{
"name" : "notfound-cheb14s2de05",
"source" : [
{
"context" : "a",
"condition" : "a.value = false"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "cancelled"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : false
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb14s2de07t",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheobservationcheb14s2de07t",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheobservationcheb14s2de07t",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B14S2.DE07"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "e9d639e1",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : true
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb14s2de07f",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheobservationcheb14s2de07f",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheobservationcheb14s2de07f",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B14S2.DE07"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "f21d6e36",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "cancelled"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : false
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb14s2de08t",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheobservationcheb14s2de08t",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheobservationcheb14s2de08t",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B14S2.DE08"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "e9d639e1",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : true
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb14s2de08f",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheobservationcheb14s2de08f",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheobservationcheb14s2de08f",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B14S2.DE08"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "f21d6e36",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "cancelled"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : false
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb14s2de09t",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheobservationcheb14s2de09t",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheobservationcheb14s2de09t",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B14S2.DE09"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "e9d639e1",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : true
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb14s2de09f",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheobservationcheb14s2de09f",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheobservationcheb14s2de09f",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B14S2.DE09"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "f21d6e36",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "cancelled"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : false
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb14s2de10",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheb14s2de10",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheb14s2de10",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B14S2.DE10"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "45094cde",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE10') and answer.exists()"
}
],
"rule" : [
{
"name" : "bdab9370",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "a"
}
],
"rule" : [
{
"name" : "final-cheb14s2de10",
"source" : [
{
"context" : "a",
"condition" : "a.value = true"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : true
}
]
}
]
},
{
"name" : "notfound-cheb14s2de10",
"source" : [
{
"context" : "a",
"condition" : "a.value = false"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "cancelled"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : false
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb14s2de11",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheb14s2de11",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheb14s2de11",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B14S2.DE11"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "3ff0fc37",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE11') and answer.exists()"
}
],
"rule" : [
{
"name" : "bdab9370",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "a"
}
],
"rule" : [
{
"name" : "final-cheb14s2de11",
"source" : [
{
"context" : "a",
"condition" : "a.value = true"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : true
}
]
}
]
},
{
"name" : "notfound-cheb14s2de11",
"source" : [
{
"context" : "a",
"condition" : "a.value = false"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "cancelled"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : false
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb14s2de11a",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheb14s2de11a",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheb14s2de11a",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B14S2.DE11A"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "84d53423",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE11A') and answer.exists()"
}
],
"rule" : [
{
"name" : "bdab9370",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "a"
}
],
"rule" : [
{
"name" : "final-cheb14s2de11a",
"source" : [
{
"context" : "a",
"condition" : "a.value = true"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : true
}
]
}
]
},
{
"name" : "notfound-cheb14s2de11a",
"source" : [
{
"context" : "a",
"condition" : "a.value = false"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "cancelled"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : false
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb14s2de012",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheb14s2de012",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheb14s2de012",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B14S2.DE012"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "62463681",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE012') and answer.exists()"
}
],
"rule" : [
{
"name" : "bdab9370",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "a"
}
],
"rule" : [
{
"name" : "final-cheb14s2de012",
"source" : [
{
"context" : "a",
"condition" : "a.value = true"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : true
}
]
}
]
},
{
"name" : "notfound-cheb14s2de012",
"source" : [
{
"context" : "a",
"condition" : "a.value = false"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "cancelled"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : false
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb14s2de14",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheb14s2de14",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheb14s2de14",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B14S2.DE14"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "2006dfba",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'CHE.B14S2.DE13'"
}
],
"rule" : [
{
"name" : "5af19059",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE14') and answer.exists()"
}
],
"rule" : [
{
"name" : "bdab9370",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "a"
}
],
"rule" : [
{
"name" : "final-cheb14s2de14",
"source" : [
{
"context" : "a",
"condition" : "a.value = true"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : true
}
]
}
]
},
{
"name" : "notfound-cheb14s2de14",
"source" : [
{
"context" : "a",
"condition" : "a.value = false"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "cancelled"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : false
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb14s2de15",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheb14s2de15",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheb14s2de15",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B14S2.DE15"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "a57c496c",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'CHE.B14S2.DE13'"
}
],
"rule" : [
{
"name" : "39218419",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE15') and answer.exists()"
}
],
"rule" : [
{
"name" : "bdab9370",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "a"
}
],
"rule" : [
{
"name" : "final-cheb14s2de15",
"source" : [
{
"context" : "a",
"condition" : "a.value = true"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : true
}
]
}
]
},
{
"name" : "notfound-cheb14s2de15",
"source" : [
{
"context" : "a",
"condition" : "a.value = false"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "cancelled"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : false
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb14s2de16",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheb14s2de16",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheb14s2de16",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B14S2.DE16"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "0722a638",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'CHE.B14S2.DE13'"
}
],
"rule" : [
{
"name" : "450cff64",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE16') and answer.exists()"
}
],
"rule" : [
{
"name" : "bdab9370",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "a"
}
],
"rule" : [
{
"name" : "final-cheb14s2de16",
"source" : [
{
"context" : "a",
"condition" : "a.value = true"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : true
}
]
}
]
},
{
"name" : "notfound-cheb14s2de16",
"source" : [
{
"context" : "a",
"condition" : "a.value = false"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "cancelled"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : false
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb14s2de17",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheb14s2de17",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheb14s2de17",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B14S2.DE17"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "1909815c",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'CHE.B14S2.DE13'"
}
],
"rule" : [
{
"name" : "897dc3be",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE17') and answer.exists()"
}
],
"rule" : [
{
"name" : "bdab9370",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "a"
}
],
"rule" : [
{
"name" : "final-cheb14s2de17",
"source" : [
{
"context" : "a",
"condition" : "a.value = true"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : true
}
]
}
]
},
{
"name" : "notfound-cheb14s2de17",
"source" : [
{
"context" : "a",
"condition" : "a.value = false"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "cancelled"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : false
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb14s2de19",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheb14s2de19",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheb14s2de19",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B14S2.DE19"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "8ca1952a",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'CHE.B14S2.DE13'"
}
],
"rule" : [
{
"name" : "f72f1788",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE19') and answer.exists()"
}
],
"rule" : [
{
"name" : "bdab9370",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "a"
}
],
"rule" : [
{
"name" : "final-cheb14s2de19",
"source" : [
{
"context" : "a",
"condition" : "a.value = true"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : true
}
]
}
]
},
{
"name" : "notfound-cheb14s2de19",
"source" : [
{
"context" : "a",
"condition" : "a.value = false"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "cancelled"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : false
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb14s2de20",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheb14s2de20",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheb14s2de20",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B14S2.DE20"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "923e59ee",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'CHE.B14S2.DE13'"
}
],
"rule" : [
{
"name" : "4a2edb0e",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE20') and answer.exists()"
}
],
"rule" : [
{
"name" : "bdab9370",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "a"
}
],
"rule" : [
{
"name" : "final-cheb14s2de20",
"source" : [
{
"context" : "a",
"condition" : "a.value = true"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : true
}
]
}
]
},
{
"name" : "notfound-cheb14s2de20",
"source" : [
{
"context" : "a",
"condition" : "a.value = false"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "cancelled"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : false
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb14s2de23",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheb14s2de23",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheb14s2de23",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B14S2.DE23"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "13801842",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'CHE.B14S2.DE13'"
}
],
"rule" : [
{
"name" : "608a4005",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE23') and answer.exists()"
}
],
"rule" : [
{
"name" : "bdab9370",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "a"
}
],
"rule" : [
{
"name" : "final-cheb14s2de23",
"source" : [
{
"context" : "a",
"condition" : "a.value = true"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : true
}
]
}
]
},
{
"name" : "notfound-cheb14s2de23",
"source" : [
{
"context" : "a",
"condition" : "a.value = false"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "cancelled"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : false
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb14s2de24",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheb14s2de24",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheb14s2de24",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B14S2.DE24"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "60767175",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'CHE.B14S2.DE13'"
}
],
"rule" : [
{
"name" : "25c8bf22",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE24') and answer.exists()"
}
],
"rule" : [
{
"name" : "bdab9370",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "a"
}
],
"rule" : [
{
"name" : "final-cheb14s2de24",
"source" : [
{
"context" : "a",
"condition" : "a.value = true"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : true
}
]
}
]
},
{
"name" : "notfound-cheb14s2de24",
"source" : [
{
"context" : "a",
"condition" : "a.value = false"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "cancelled"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : false
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb14s2de25",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheb14s2de25",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheb14s2de25",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B14S2.DE25"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "3c40004e",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'CHE.B14S2.DE13'"
}
],
"rule" : [
{
"name" : "db85fa52",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE25') and answer.exists()"
}
],
"rule" : [
{
"name" : "bdab9370",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "a"
}
],
"rule" : [
{
"name" : "final-cheb14s2de25",
"source" : [
{
"context" : "a",
"condition" : "a.value = true"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : true
}
]
}
]
},
{
"name" : "notfound-cheb14s2de25",
"source" : [
{
"context" : "a",
"condition" : "a.value = false"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "cancelled"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : false
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb14s2de26cheb14s2de27t",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheobservationcheb14s2de26cheb14s2de27t",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheobservationcheb14s2de26cheb14s2de27t",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B14S2.DE26&CHE.B14S2.DE27"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "e9d639e1",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : true
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb14s2de26cheb14s2de27f",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheobservationcheb14s2de26cheb14s2de27f",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheobservationcheb14s2de26cheb14s2de27f",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B14S2.DE26&CHE.B14S2.DE27"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "f21d6e36",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "cancelled"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : false
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb14s2de26cheb14s2de28t",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheobservationcheb14s2de26cheb14s2de28t",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheobservationcheb14s2de26cheb14s2de28t",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B14S2.DE26&CHE.B14S2.DE28"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "e9d639e1",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : true
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb14s2de26cheb14s2de28f",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheobservationcheb14s2de26cheb14s2de28f",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheobservationcheb14s2de26cheb14s2de28f",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B14S2.DE26&CHE.B14S2.DE28"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "f21d6e36",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "cancelled"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : false
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb14s2de26cheb14s2de29t",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheobservationcheb14s2de26cheb14s2de29t",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheobservationcheb14s2de26cheb14s2de29t",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B14S2.DE26&CHE.B14S2.DE29"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "e9d639e1",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : true
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb14s2de26cheb14s2de29f",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheobservationcheb14s2de26cheb14s2de29f",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheobservationcheb14s2de26cheb14s2de29f",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B14S2.DE26&CHE.B14S2.DE29"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "f21d6e36",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "cancelled"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : false
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb14s2de26cheb14s2de30t",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheobservationcheb14s2de26cheb14s2de30t",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheobservationcheb14s2de26cheb14s2de30t",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B14S2.DE26&CHE.B14S2.DE30"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "e9d639e1",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : true
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb14s2de26cheb14s2de30f",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheobservationcheb14s2de26cheb14s2de30f",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheobservationcheb14s2de26cheb14s2de30f",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B14S2.DE26&CHE.B14S2.DE30"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "f21d6e36",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "cancelled"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : false
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb14s2de26cheb14s2de30at",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheobservationcheb14s2de26cheb14s2de30at",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheobservationcheb14s2de26cheb14s2de30at",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B14S2.DE26&CHE.B14S2.DE30a"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "e9d639e1",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : true
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb14s2de26cheb14s2de30af",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheobservationcheb14s2de26cheb14s2de30af",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheobservationcheb14s2de26cheb14s2de30af",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B14S2.DE26&CHE.B14S2.DE30a"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "f21d6e36",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "cancelled"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : false
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb14s2de31",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheb14s2de31",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheb14s2de31",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B14S2.DE31"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "aa637ba6",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'CHE.B14S2.DE13'"
}
],
"rule" : [
{
"name" : "055fc452",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE31') and answer.exists()"
}
],
"rule" : [
{
"name" : "bdab9370",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "a"
}
],
"rule" : [
{
"name" : "final-cheb14s2de31",
"source" : [
{
"context" : "a",
"condition" : "a.value = true"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : true
}
]
}
]
},
{
"name" : "notfound-cheb14s2de31",
"source" : [
{
"context" : "a",
"condition" : "a.value = false"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "cancelled"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : false
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb14s2de32",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheb14s2de32",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheb14s2de32",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B14S2.DE32"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "c083af79",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'CHE.B14S2.DE13'"
}
],
"rule" : [
{
"name" : "17a0f55a",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE32') and answer.exists()"
}
],
"rule" : [
{
"name" : "bdab9370",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "a"
}
],
"rule" : [
{
"name" : "final-cheb14s2de32",
"source" : [
{
"context" : "a",
"condition" : "a.value = true"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : true
}
]
}
]
},
{
"name" : "notfound-cheb14s2de32",
"source" : [
{
"context" : "a",
"condition" : "a.value = false"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "cancelled"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : false
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb14s2de33",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheb14s2de33",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheb14s2de33",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B14S2.DE33"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "4e4788c5",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'CHE.B14S2.DE13'"
}
],
"rule" : [
{
"name" : "e4745a04",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE33') and answer.exists()"
}
],
"rule" : [
{
"name" : "bdab9370",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "a"
}
],
"rule" : [
{
"name" : "final-cheb14s2de33",
"source" : [
{
"context" : "a",
"condition" : "a.value = true"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : true
}
]
}
]
},
{
"name" : "notfound-cheb14s2de33",
"source" : [
{
"context" : "a",
"condition" : "a.value = false"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "cancelled"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : false
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb14s2de34",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheb14s2de34",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheb14s2de34",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B14S2.DE34"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "5cd616a6",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'CHE.B14S2.DE13'"
}
],
"rule" : [
{
"name" : "de0bbf97",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE34') and answer.exists()"
}
],
"rule" : [
{
"name" : "bdab9370",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "a"
}
],
"rule" : [
{
"name" : "final-cheb14s2de34",
"source" : [
{
"context" : "a",
"condition" : "a.value = true"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : true
}
]
}
]
},
{
"name" : "notfound-cheb14s2de34",
"source" : [
{
"context" : "a",
"condition" : "a.value = false"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "cancelled"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : false
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb14s2de35",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheb14s2de35",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheb14s2de35",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B14S2.DE35"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "f58c353f",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'CHE.B14S2.DE13'"
}
],
"rule" : [
{
"name" : "638d4331",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE35') and answer.exists()"
}
],
"rule" : [
{
"name" : "bdab9370",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "a"
}
],
"rule" : [
{
"name" : "final-cheb14s2de35",
"source" : [
{
"context" : "a",
"condition" : "a.value = true"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : true
}
]
}
]
},
{
"name" : "notfound-cheb14s2de35",
"source" : [
{
"context" : "a",
"condition" : "a.value = false"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "cancelled"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : false
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb14s2de36",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheb14s2de36",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheb14s2de36",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B14S2.DE36"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "0936cbf6",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'CHE.B14S2.DE13'"
}
],
"rule" : [
{
"name" : "cbbe5815",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE36') and answer.exists()"
}
],
"rule" : [
{
"name" : "bdab9370",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "a"
}
],
"rule" : [
{
"name" : "final-cheb14s2de36",
"source" : [
{
"context" : "a",
"condition" : "a.value = true"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : true
}
]
}
]
},
{
"name" : "notfound-cheb14s2de36",
"source" : [
{
"context" : "a",
"condition" : "a.value = false"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "cancelled"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : false
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb14s2de37",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheb14s2de37",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheb14s2de37",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B14S2.DE37"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "5682102f",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'CHE.B14S2.DE13'"
}
],
"rule" : [
{
"name" : "b86995dc",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE37') and answer.exists()"
}
],
"rule" : [
{
"name" : "bdab9370",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "a"
}
],
"rule" : [
{
"name" : "final-cheb14s2de37",
"source" : [
{
"context" : "a",
"condition" : "a.value = true"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : true
}
]
}
]
},
{
"name" : "notfound-cheb14s2de37",
"source" : [
{
"context" : "a",
"condition" : "a.value = false"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "cancelled"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : false
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb14s2de44",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheb14s2de44",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheb14s2de44",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B14S2.DE44"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "53079171",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'CHE.B14S2.DE43'"
}
],
"rule" : [
{
"name" : "bf7248e5",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE44') and answer.exists()"
}
],
"rule" : [
{
"name" : "6e03d90e",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "a"
}
],
"rule" : [
{
"name" : "0179b73a",
"source" : [
{
"context" : "a",
"element" : "value",
"variable" : "val"
}
],
"rule" : [
{
"name" : "0b6db5a4",
"source" : [
{
"context" : "val",
"condition" : "val.code = 'CHE.B14S2.DE44'"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : true
}
]
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb14s2de45",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheb14s2de45",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheb14s2de45",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B14S2.DE45"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "28d2f74b",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'CHE.B14S2.DE43'"
}
],
"rule" : [
{
"name" : "dc5a7e6f",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE45') and answer.exists()"
}
],
"rule" : [
{
"name" : "474bfa7e",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "a"
}
],
"rule" : [
{
"name" : "cfa88a12",
"source" : [
{
"context" : "a",
"element" : "value",
"variable" : "val"
}
],
"rule" : [
{
"name" : "e757280e",
"source" : [
{
"context" : "val",
"condition" : "val.code = 'CHE.B14S2.DE45'"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : true
}
]
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb14s2de46",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheb14s2de46",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheb14s2de46",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B14S2.DE46"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "2a5bd70e",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'CHE.B14S2.DE43'"
}
],
"rule" : [
{
"name" : "20c182dd",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B14S2.DE46') and answer.exists()"
}
],
"rule" : [
{
"name" : "674b3d37",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "a"
}
],
"rule" : [
{
"name" : "b8a53423",
"source" : [
{
"context" : "a",
"element" : "value",
"variable" : "val"
}
],
"rule" : [
{
"name" : "6174d2b1",
"source" : [
{
"context" : "val",
"condition" : "val.code = 'CHE.B14S2.DE46'"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : true
}
]
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb14s2de39t",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheobservationcheb14s2de39t",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheobservationcheb14s2de39t",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B14S2.DE39"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "e9d639e1",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : true
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb14s2de39f",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheobservationcheb14s2de39f",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheobservationcheb14s2de39f",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B14S2.DE39"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "f21d6e36",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "cancelled"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : false
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb14s2de40t",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheobservationcheb14s2de40t",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheobservationcheb14s2de40t",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B14S2.DE40"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "e9d639e1",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : true
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb14s2de40f",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheobservationcheb14s2de40f",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheobservationcheb14s2de40f",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B14S2.DE40"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "f21d6e36",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "cancelled"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : false
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb14s2de41t",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheobservationcheb14s2de41t",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheobservationcheb14s2de41t",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B14S2.DE41"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "e9d639e1",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : true
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb14s2de41f",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheobservationcheb14s2de41f",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheobservationcheb14s2de41f",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B14S2.DE41"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "f21d6e36",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "cancelled"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : false
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb14s2de42t",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheobservationcheb14s2de42t",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheobservationcheb14s2de42t",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B14S2.DE42"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "e9d639e1",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : true
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb14s2de42f",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheobservationcheb14s2de42f",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheobservationcheb14s2de42f",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B14S2.DE42"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "f21d6e36",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "cancelled"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : false
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb15s2de01",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheb15s2de01",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheb15s2de01",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B15S2.DE01"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "c368427f",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B15S2.DE01') and answer.exists()"
}
],
"rule" : [
{
"name" : "7c587a4b",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "a"
}
],
"rule" : [
{
"name" : "4ca9082e",
"source" : [
{
"context" : "a",
"element" : "value",
"variable" : "val"
}
],
"rule" : [
{
"name" : "8ab1d7a5",
"source" : [
{
"context" : "val",
"condition" : "val.code = 'none'"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "cancelled"
}
]
}
]
},
{
"name" : "a1050460",
"source" : [
{
"context" : "val",
"condition" : "val.code != 'none'"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"variable" : "cc",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "cc",
"contextType" : "variable",
"element" : "coding",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb15s2de05",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheb15s2de05",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheb15s2de05",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B15S2.DE05"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "6f2995df",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B15S2.DE05') and answer.exists()"
}
],
"rule" : [
{
"name" : "7c587a4b",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "a"
}
],
"rule" : [
{
"name" : "4ca9082e",
"source" : [
{
"context" : "a",
"element" : "value",
"variable" : "val"
}
],
"rule" : [
{
"name" : "8ab1d7a5",
"source" : [
{
"context" : "val",
"condition" : "val.code = 'none'"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "cancelled"
}
]
}
]
},
{
"name" : "a1050460",
"source" : [
{
"context" : "val",
"condition" : "val.code != 'none'"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"variable" : "cc",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "cc",
"contextType" : "variable",
"element" : "coding",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb16s2de01",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheb16s2de01",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheb16s2de01",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B16S2.DE01"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "864949e9",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B16S2.DE01') and answer.exists()"
}
],
"rule" : [
{
"name" : "bdab9370",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "a"
}
],
"rule" : [
{
"name" : "final-cheb16s2de01",
"source" : [
{
"context" : "a",
"condition" : "a.value = true"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : true
}
]
}
]
},
{
"name" : "notfound-cheb16s2de01",
"source" : [
{
"context" : "a",
"condition" : "a.value = false"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "cancelled"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : false
}
]
}
]
}
]
}
]
}
]
}
]
}
IG © 2023+ WHO. Package smart-ig-che-cds#0.1.0 based on FHIR 4.0.1. Generated 2023-10-04
Links: Table of Contents |
QA Report
| Version History | License