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
| Official URL: https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/che.b10-16.signs.2m.p | Version: 0.1.0 | |||
| Active as of 2023-10-04 | Computable Name: che.b10-16.signs.2m.p | |||
map "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/che.b10-16.signs.2m.p" = "che.b10-16.signs.2m.p"
uses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source
uses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target
uses "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/observation" alias 'Observation' as target
uses "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation" alias 'CHE Observation' as produced
group bundletrans(source src : questionnaireResponse, target bundle : Bundle) {
src -> bundle.id = uuid() "id";
src -> bundle.type = 'batch' "type";
src.item first as itm1 where linkId = 'cought_difficulty' then {
itm1.item first as item where (linkId = 'CHE.B10S2.DE03') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then cheobservationcheb10s2de03(src, tgt) "a3121769";
} "e4e82dc3";
} "ccc7345c";
} "fc59465c";
} "e5d16814";
src.item first as itm1 where linkId = 'cought_difficulty' then {
itm1.item first as item where (linkId = 'CHE.B10S2.DE04') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then cheobservationcheb10s2de04(src, tgt) "12726a73";
} "1e206187";
} "4d708b4e";
} "bb5f6628";
} "4d4fa5b7";
src.item first as itm1 where linkId = 'cought_difficulty' then {
itm1.item first as item where (linkId = 'CHE.B10S2.DE05') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then cheobservationcheb10s2de05(src, tgt) "4b9c9224";
} "0aeccb4c";
} "e837b337";
} "9820da17";
} "c3f24b2e";
src.item first as itm1 where linkId = 'cought_difficulty' then {
itm1.item first as item where (linkId = 'CHE.B10S2.DE06') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then cheobservationcheb10s2de06(src, tgt) "ab109b3b";
} "57a50c8d";
} "25285fbe";
} "cdc5f28e";
} "4ab9192b";
src.item first as itm1 where linkId = 'cought_difficulty' then {
itm1.item first as item where (linkId = 'CHE.B10S2.DE07') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then cheobservationcheb10s2de07(src, tgt) "6a6e462c";
} "a13863d4";
} "5ec854e1";
} "2a324f43";
} "92e71e71";
src.item first as itm1 where linkId = 'cought_difficulty' then {
itm1.item first as item where (linkId = 'CHE.B10S2.DE08') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then cheobservationcheb10s2de08(src, tgt) "95d2cc63";
} "d48930cc";
} "60edbce0";
} "7dd85f19";
} "aabb7fda";
src.item first as itm1 where linkId = 'cought_difficulty' then {
itm1.item first as item where (linkId = 'CHE.B10S2.DE09') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then cheobservationcheb10s2de09(src, tgt) "56e0c618";
} "0f63b370";
} "584bb51b";
} "34886c11";
} "b48899e4";
src.item first as item where (linkId = 'CHE.B11S2.DE01') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then cheobservationcheb11s2de01(src, tgt) "e78be8e9";
} "b6f8c15d";
} "12706fb4";
} "196805dd";
src.item first as item where (linkId = 'CHE.B11S2.DE02') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then cheobservationcheb11s2de02(src, tgt) "233f732a";
} "864ab13a";
} "d2a5739c";
} "8f208c49";
src.item first as item where (linkId = 'CHE.B11S2.DE06') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then cheobservationcheb11s2de06(src, tgt) "e8e15f56";
} "143c44d0";
} "6bf6b2e4";
} "676c63aa";
src.item first as item where (linkId = 'CHE.B12S2.DE01') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then cheobservationcheb12s2de01(src, tgt) "9135622f";
} "bf07356f";
} "ce58f29a";
} "9a76cbc7";
src.item first as item where (linkId = 'CHE.B12S2.DE02') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then cheobservationcheb12s2de02(src, tgt) "1b1bf04d";
} "8ea6d745";
} "a824242a";
} "6c1ec8e7";
src.item first as item where (linkId = 'CHE.B12S2.DE03') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then cheobservationcheb12s2de03(src, tgt) "81ee5a51";
} "1553a24f";
} "058ccab8";
} "a9e5d569";
src.item first as item where (linkId = 'CHE.B12S2.DE05') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then cheobservationcheb12s2de05(src, tgt) "e35b2ce0";
} "9d30433e";
} "d94b4c6f";
} "fbc5f12a";
src.item first as item where (linkId = 'CHE.B13S2.DE01') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then cheobservationcheb13s2de01(src, tgt) "a3dd6e3c";
} "65fe53f6";
} "7f824586";
} "f909293c";
src.item first as item where (linkId = 'CHE.B13S2.DE02') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then cheobservationcheb13s2de02(src, tgt) "680332d4";
} "05119853";
} "293fb33c";
} "4a1f0e05";
src.item first as item where (linkId = 'CHE.B13S2.DE03') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then cheobservationcheb13s2de03(src, tgt) "0d34b650";
} "d077d65d";
} "82f46f41";
} "b34e18da";
src.item first as item where (linkId = 'CHE.B14S2.DE01') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then cheobservationcheb14s2de01(src, tgt) "f67e1d1e";
} "f5eee0d6";
} "d2d701c3";
} "6d73aa66";
src.item first as item where (linkId = 'CHE.B14S2.DE02') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then cheobservationcheb14s2de02(src, tgt) "d2a34da0";
} "d5bdc17e";
} "1e7e8586";
} "da4cbe94";
src.item first as item where (linkId = 'CHE.B14S2.DE03') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then cheobservationcheb14s2de03(src, tgt) "afbf6dfc";
} "ada8a30b";
} "58a7d9ce";
} "4876aa02";
src.item first as item where (linkId = 'CHE.B14S2.DE04') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then cheobservationcheb14s2de04(src, tgt) "d931de40";
} "84576f4c";
} "b7ae7464";
} "c1f8eba4";
src.item first as item where (linkId = 'CHE.B14S2.DE05') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then cheobservationcheb14s2de05(src, tgt) "2c27e645";
} "4fd085e6";
} "561b23b7";
} "7f699109";
src where src.item.where(linkId = 'CHE.B14S2.DE06').answer.where(value.code = 'CHE.B14S2.DE07') then {
src.item first as item where (linkId = 'CHE.B14S2.DE06') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src then cheobservationcheb14s2de07t(src, tgt) "a70fa063";
} "c59e7aeb";
} "63793fad";
} "cb30cd2f";
} "b704a158";
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 {
src.item first as item where (linkId = 'CHE.B14S2.DE06') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src then cheobservationcheb14s2de07f(src, tgt) "6160ac55";
} "40563b74";
} "b34ff0e4";
} "aa78f8ce";
} "9f7ea995";
src where src.item.where(linkId = 'CHE.B14S2.DE06').answer.where(value.code = 'CHE.B14S2.DE08') then {
src.item first as item where (linkId = 'CHE.B14S2.DE06') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src then cheobservationcheb14s2de08t(src, tgt) "7d23edb9";
} "6c9dfd70";
} "2d6d5812";
} "bf832823";
} "f71b8189";
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 {
src.item first as item where (linkId = 'CHE.B14S2.DE06') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src then cheobservationcheb14s2de08f(src, tgt) "e7499185";
} "cf8657d2";
} "a04f0e1f";
} "66356287";
} "86ef6deb";
src where src.item.where(linkId = 'CHE.B14S2.DE06').answer.where(value.code = 'CHE.B14S2.DE09') then {
src.item first as item where (linkId = 'CHE.B14S2.DE06') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src then cheobservationcheb14s2de09t(src, tgt) "5de89547";
} "59e146db";
} "87a2c607";
} "dd8ce1c7";
} "fa4d49d9";
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 {
src.item first as item where (linkId = 'CHE.B14S2.DE06') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src then cheobservationcheb14s2de09f(src, tgt) "cf532f71";
} "e051ab43";
} "b3ea33b1";
} "3e9b92bd";
} "c92bdf9f";
src.item first as item where (linkId = 'CHE.B14S2.DE10') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then cheobservationcheb14s2de10(src, tgt) "451a05a2";
} "104c51b0";
} "697ccfc3";
} "18029a3e";
src.item first as item where (linkId = 'CHE.B14S2.DE11') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then cheobservationcheb14s2de11(src, tgt) "fd57f88b";
} "9106c3cd";
} "741e4f3a";
} "c0cee43d";
src.item first as item where (linkId = 'CHE.B14S2.DE11A') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then cheobservationcheb14s2de11a(src, tgt) "f953aba0";
} "907e904c";
} "9ca7d2e0";
} "e685d30a";
src.item first as item where (linkId = 'CHE.B14S2.DE012') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then cheobservationcheb14s2de012(src, tgt) "008f1388";
} "579ba6a1";
} "328afba1";
} "a8ce40d4";
src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {
itm1.item first as item where (linkId = 'CHE.B14S2.DE14') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then cheobservationcheb14s2de14(src, tgt) "d8a27ed8";
} "c984d708";
} "849511d5";
} "c648daf1";
} "5022f5b3";
src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {
itm1.item first as item where (linkId = 'CHE.B14S2.DE15') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then cheobservationcheb14s2de15(src, tgt) "06c44747";
} "1ebd7c1d";
} "277056b9";
} "79008e21";
} "e942530d";
src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {
itm1.item first as item where (linkId = 'CHE.B14S2.DE16') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then cheobservationcheb14s2de16(src, tgt) "5e21e5de";
} "10a43a24";
} "2bc887e7";
} "25d97a1e";
} "68cc6612";
src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {
itm1.item first as item where (linkId = 'CHE.B14S2.DE17') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then cheobservationcheb14s2de17(src, tgt) "4e32087b";
} "0e42c26b";
} "271fa5d7";
} "efd53e0f";
} "a9de2b75";
src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {
itm1.item first as item where (linkId = 'CHE.B14S2.DE19') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then cheobservationcheb14s2de19(src, tgt) "c22b8141";
} "0bc665bb";
} "94c5130e";
} "69fac502";
} "1115b12f";
src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {
itm1.item first as item where (linkId = 'CHE.B14S2.DE20') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then cheobservationcheb14s2de20(src, tgt) "8932862f";
} "3b7c1658";
} "b43fef3b";
} "8c60ee58";
} "48a20f87";
src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {
itm1.item first as item where (linkId = 'CHE.B14S2.DE23') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then cheobservationcheb14s2de23(src, tgt) "7113a51f";
} "fdda7798";
} "c4dd7711";
} "db05c5d5";
} "024d60ff";
src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {
itm1.item first as item where (linkId = 'CHE.B14S2.DE24') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then cheobservationcheb14s2de24(src, tgt) "f8322d67";
} "145a48f6";
} "2d029a29";
} "ebf4a6da";
} "ae402ca3";
src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {
itm1.item first as item where (linkId = 'CHE.B14S2.DE25') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then cheobservationcheb14s2de25(src, tgt) "45d07795";
} "b1ff5512";
} "9fbf564f";
} "b41a0646";
} "8f0d5b43";
src where src.item.where(linkId = 'CHE.B14S2.DE26').answer.where(value.code = 'CHE.B14S2.DE27') then {
src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {
itm1.item first as item where (linkId = 'CHE.B14S2.DE26') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src then cheobservationcheb14s2de26cheb14s2de27t(src, tgt) "be4e0b60";
} "e9f4ebb1";
} "324c47b7";
} "8c812460";
} "7bed4bf8";
} "510cf766";
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 {
src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {
itm1.item first as item where (linkId = 'CHE.B14S2.DE26') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src then cheobservationcheb14s2de26cheb14s2de27f(src, tgt) "d04eb1a3";
} "277a3784";
} "1b910bf2";
} "538610a2";
} "3afba5e7";
} "b487a855";
src where src.item.where(linkId = 'CHE.B14S2.DE26').answer.where(value.code = 'CHE.B14S2.DE28') then {
src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {
itm1.item first as item where (linkId = 'CHE.B14S2.DE26') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src then cheobservationcheb14s2de26cheb14s2de28t(src, tgt) "1a7082ed";
} "702e6884";
} "2b564d88";
} "d238ec7f";
} "0c4da54c";
} "d83b694e";
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 {
src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {
itm1.item first as item where (linkId = 'CHE.B14S2.DE26') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src then cheobservationcheb14s2de26cheb14s2de28f(src, tgt) "99ca6943";
} "9360ee27";
} "9ffd47db";
} "81ceef74";
} "23b74abe";
} "ad601afb";
src where src.item.where(linkId = 'CHE.B14S2.DE26').answer.where(value.code = 'CHE.B14S2.DE29') then {
src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {
itm1.item first as item where (linkId = 'CHE.B14S2.DE26') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src then cheobservationcheb14s2de26cheb14s2de29t(src, tgt) "da408d9d";
} "19ef0f0a";
} "f79a18a9";
} "f812bd55";
} "7c215c60";
} "aeb3c216";
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 {
src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {
itm1.item first as item where (linkId = 'CHE.B14S2.DE26') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src then cheobservationcheb14s2de26cheb14s2de29f(src, tgt) "3d40c3ae";
} "ff23a53e";
} "cc7d9ee1";
} "e083fd1f";
} "195f01b1";
} "0572916b";
src where src.item.where(linkId = 'CHE.B14S2.DE26').answer.where(value.code = 'CHE.B14S2.DE30') then {
src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {
itm1.item first as item where (linkId = 'CHE.B14S2.DE26') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src then cheobservationcheb14s2de26cheb14s2de30t(src, tgt) "9e0f2588";
} "d74a8bf3";
} "4ead07a3";
} "ebdfdaa2";
} "4a0e050b";
} "b22c448c";
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 {
src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {
itm1.item first as item where (linkId = 'CHE.B14S2.DE26') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src then cheobservationcheb14s2de26cheb14s2de30f(src, tgt) "9e612cf0";
} "279c085f";
} "404ec535";
} "9d5ba213";
} "a1e1a27d";
} "880166e4";
src where src.item.where(linkId = 'CHE.B14S2.DE26').answer.where(value.code = 'CHE.B14S2.DE30a') then {
src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {
itm1.item first as item where (linkId = 'CHE.B14S2.DE26') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src then cheobservationcheb14s2de26cheb14s2de30at(src, tgt) "2025ce0a";
} "6354fdca";
} "7f0a9fb0";
} "47ec35aa";
} "40d4a8e1";
} "458fd390";
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 {
src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {
itm1.item first as item where (linkId = 'CHE.B14S2.DE26') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src then cheobservationcheb14s2de26cheb14s2de30af(src, tgt) "10068f81";
} "1cbe77e0";
} "12fcdcfc";
} "08ae97a2";
} "9c2b28ef";
} "279f742e";
src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {
itm1.item first as item where (linkId = 'CHE.B14S2.DE31') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then cheobservationcheb14s2de31(src, tgt) "4dd5967d";
} "fba7f254";
} "7b9cf0fd";
} "7532f152";
} "d8fddb62";
src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {
itm1.item first as item where (linkId = 'CHE.B14S2.DE32') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then cheobservationcheb14s2de32(src, tgt) "987cc780";
} "1d3b8c01";
} "00619899";
} "cbba5ba4";
} "af025e66";
src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {
itm1.item first as item where (linkId = 'CHE.B14S2.DE33') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then cheobservationcheb14s2de33(src, tgt) "618273e3";
} "80e526c3";
} "a2c9ebd8";
} "9298cf98";
} "ff219239";
src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {
itm1.item first as item where (linkId = 'CHE.B14S2.DE34') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then cheobservationcheb14s2de34(src, tgt) "cc24fb80";
} "2ec1c43c";
} "8853e3aa";
} "1fa8bb60";
} "3132c753";
src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {
itm1.item first as item where (linkId = 'CHE.B14S2.DE35') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then cheobservationcheb14s2de35(src, tgt) "b3b9b6b8";
} "538fc0b5";
} "072c37e5";
} "4bfbe729";
} "690f9c2a";
src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {
itm1.item first as item where (linkId = 'CHE.B14S2.DE36') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then cheobservationcheb14s2de36(src, tgt) "8e6f1ad3";
} "de413593";
} "68a4caac";
} "683b2da9";
} "e45c8b36";
src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {
itm1.item first as item where (linkId = 'CHE.B14S2.DE37') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then cheobservationcheb14s2de37(src, tgt) "fa9a37a4";
} "d7500f73";
} "ae0772e9";
} "8e114ec3";
} "79e278cd";
src.item first as itm1 where linkId = 'CHE.B14S2.DE43' then {
itm1.item first as item where (linkId = 'CHE.B14S2.DE44') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then cheobservationcheb14s2de44(src, tgt) "dd7db2b3";
} "27ff2c7c";
} "0ed64bfa";
} "0633fa02";
} "e2179f22";
src.item first as itm1 where linkId = 'CHE.B14S2.DE43' then {
itm1.item first as item where (linkId = 'CHE.B14S2.DE45') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then cheobservationcheb14s2de45(src, tgt) "5179e4c5";
} "eefeb2de";
} "99252a72";
} "08752eec";
} "badb9b0f";
src.item first as itm1 where linkId = 'CHE.B14S2.DE43' then {
itm1.item first as item where (linkId = 'CHE.B14S2.DE46') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then cheobservationcheb14s2de46(src, tgt) "472516db";
} "1efe4e54";
} "12138513";
} "c3d2d0b5";
} "8c5ef602";
src where src.item.where(linkId = 'CHE.B14S2.DE38').answer.where(value.code = 'CHE.B14S2.DE39') then {
src.item first as item where (linkId = 'CHE.B14S2.DE38') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src then cheobservationcheb14s2de39t(src, tgt) "8ff47031";
} "b5c4af76";
} "4884aee5";
} "bd8c72f1";
} "12a2e747";
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 {
src.item first as item where (linkId = 'CHE.B14S2.DE38') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src then cheobservationcheb14s2de39f(src, tgt) "6104c4bd";
} "785b121a";
} "804f12bb";
} "407c392c";
} "1b32ca5d";
src where src.item.where(linkId = 'CHE.B14S2.DE38').answer.where(value.code = 'CHE.B14S2.DE40') then {
src.item first as item where (linkId = 'CHE.B14S2.DE38') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src then cheobservationcheb14s2de40t(src, tgt) "63172721";
} "3653da4a";
} "233e72f5";
} "c46cbfc2";
} "95a181ae";
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 {
src.item first as item where (linkId = 'CHE.B14S2.DE38') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src then cheobservationcheb14s2de40f(src, tgt) "178efd53";
} "23add157";
} "d8dfec03";
} "087c0d2f";
} "7af5d83b";
src where src.item.where(linkId = 'CHE.B14S2.DE38').answer.where(value.code = 'CHE.B14S2.DE41') then {
src.item first as item where (linkId = 'CHE.B14S2.DE38') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src then cheobservationcheb14s2de41t(src, tgt) "60b3c0d7";
} "f167b9ac";
} "ddd14862";
} "d02acfea";
} "5690e0c0";
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 {
src.item first as item where (linkId = 'CHE.B14S2.DE38') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src then cheobservationcheb14s2de41f(src, tgt) "3f994678";
} "740c34d6";
} "d53e0826";
} "a7f4be77";
} "dc3d7a5c";
src where src.item.where(linkId = 'CHE.B14S2.DE38').answer.where(value.code = 'CHE.B14S2.DE42') then {
src.item first as item where (linkId = 'CHE.B14S2.DE38') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src then cheobservationcheb14s2de42t(src, tgt) "158c2ebd";
} "8ce3e09a";
} "eb04e570";
} "5f0b1aa5";
} "d5021b3e";
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 {
src.item first as item where (linkId = 'CHE.B14S2.DE38') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src then cheobservationcheb14s2de42f(src, tgt) "72ecb9fa";
} "35bd055d";
} "2a701124";
} "4c8c24fd";
} "48e2630f";
src.item first as item where (linkId = 'CHE.B15S2.DE01') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then cheobservationcheb15s2de01(src, tgt) "8c85ce6a";
} "031f1439";
} "9d33e3ff";
} "7e9736bb";
src.item first as item where (linkId = 'CHE.B15S2.DE05') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then cheobservationcheb15s2de05(src, tgt) "a8fc884a";
} "03f0b26d";
} "efc29f91";
} "22a2462d";
src.item first as item where (linkId = 'CHE.B16S2.DE01') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then cheobservationcheb16s2de01(src, tgt) "dc9976f9";
} "c972eb7c";
} "eb6fab32";
} "82d4f193";
}
group cheobservationcheb10s2de03(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as itm1 where linkId = 'cought_difficulty' then {
itm1.item first as item where (linkId = 'CHE.B10S2.DE03') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb10s2de03";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb10s2de03";
} "bdab9370";
} "3643892e";
} "a1a59c1c";
}
group cheobservationcheb10s2de04(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as itm1 where linkId = 'cought_difficulty' then {
itm1.item first as item where (linkId = 'CHE.B10S2.DE04') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb10s2de04";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb10s2de04";
} "bdab9370";
} "ae563f8e";
} "671db70c";
}
group cheobservationcheb10s2de05(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as itm1 where linkId = 'cought_difficulty' then {
itm1.item first as item where (linkId = 'CHE.B10S2.DE05') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb10s2de05";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb10s2de05";
} "bdab9370";
} "3247b1e7";
} "65b6d289";
}
group cheobservationcheb10s2de06(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as itm1 where linkId = 'cought_difficulty' then {
itm1.item first as item where (linkId = 'CHE.B10S2.DE06') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb10s2de06";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb10s2de06";
} "bdab9370";
} "594fd043";
} "cf6f5fac";
}
group cheobservationcheb10s2de07(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as itm1 where linkId = 'cought_difficulty' then {
itm1.item first as item where (linkId = 'CHE.B10S2.DE07') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb10s2de07";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb10s2de07";
} "bdab9370";
} "725863c7";
} "33638b4d";
}
group cheobservationcheb10s2de08(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as itm1 where linkId = 'cought_difficulty' then {
itm1.item first as item where (linkId = 'CHE.B10S2.DE08') and answer.exists() then {
item.answer first as a then {
a.value as val -> tgt.value = val, tgt.status = 'final' "afa0ccc0";
} "d40466ff";
} "7fc374e0";
} "390bb223";
}
group cheobservationcheb10s2de09(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as itm1 where linkId = 'cought_difficulty' then {
itm1.item first as item where (linkId = 'CHE.B10S2.DE09') and answer.exists() then {
item.answer first as a then {
a.value as val then {
val where val.code = 'CHE.B10S2.DE09' -> tgt.status = 'final', tgt.value = true "92ce5bab";
} "938e1cf7";
} "eb220f01";
} "39bc21fa";
} "c96afa29";
}
group cheobservationcheb11s2de01(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as item where (linkId = 'CHE.B11S2.DE01') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb11s2de01";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb11s2de01";
} "bdab9370";
} "a31aa2b6";
}
group cheobservationcheb11s2de02(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as item where (linkId = 'CHE.B11S2.DE02') and answer.exists() then {
item.answer first as a then {
a.value as val then {
val where val.code = 'none' -> tgt.status = 'cancelled' "8ab1d7a5";
val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";
} "4ca9082e";
} "7c587a4b";
} "ecb0a4ef";
}
group cheobservationcheb11s2de06(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as item where (linkId = 'CHE.B11S2.DE06') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb11s2de06";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb11s2de06";
} "bdab9370";
} "06af4931";
}
group cheobservationcheb12s2de01(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as item where (linkId = 'CHE.B12S2.DE01') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb12s2de01";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb12s2de01";
} "bdab9370";
} "10525414";
}
group cheobservationcheb12s2de02(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as item where (linkId = 'CHE.B12S2.DE02') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb12s2de02";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb12s2de02";
} "bdab9370";
} "d589f606";
}
group cheobservationcheb12s2de03(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as item where (linkId = 'CHE.B12S2.DE03') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb12s2de03";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb12s2de03";
} "bdab9370";
} "632d71c9";
}
group cheobservationcheb12s2de05(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as item where (linkId = 'CHE.B12S2.DE05') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb12s2de05";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb12s2de05";
} "bdab9370";
} "71db10fc";
}
group cheobservationcheb13s2de01(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as item where (linkId = 'CHE.B13S2.DE01') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb13s2de01";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb13s2de01";
} "bdab9370";
} "d090e850";
}
group cheobservationcheb13s2de02(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as item where (linkId = 'CHE.B13S2.DE02') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb13s2de02";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb13s2de02";
} "bdab9370";
} "316c78a3";
}
group cheobservationcheb13s2de03(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as item where (linkId = 'CHE.B13S2.DE03') and answer.exists() then {
item.answer first as a then {
a.value as val then {
val where val.code = 'none' -> tgt.status = 'cancelled' "8ab1d7a5";
val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";
} "4ca9082e";
} "7c587a4b";
} "9d66829c";
}
group cheobservationcheb14s2de01(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as item where (linkId = 'CHE.B14S2.DE01') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb14s2de01";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb14s2de01";
} "bdab9370";
} "4e097293";
}
group cheobservationcheb14s2de02(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as item where (linkId = 'CHE.B14S2.DE02') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb14s2de02";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb14s2de02";
} "bdab9370";
} "52ed8da2";
}
group cheobservationcheb14s2de03(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as item where (linkId = 'CHE.B14S2.DE03') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb14s2de03";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb14s2de03";
} "bdab9370";
} "bb2fbd60";
}
group cheobservationcheb14s2de04(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as item where (linkId = 'CHE.B14S2.DE04') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb14s2de04";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb14s2de04";
} "bdab9370";
} "05ad93a6";
}
group cheobservationcheb14s2de05(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as item where (linkId = 'CHE.B14S2.DE05') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb14s2de05";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb14s2de05";
} "bdab9370";
} "66401790";
}
group cheobservationcheb14s2de07t(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src -> tgt.status = 'final', tgt.value = true "e9d639e1";
}
group cheobservationcheb14s2de07f(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";
}
group cheobservationcheb14s2de08t(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src -> tgt.status = 'final', tgt.value = true "e9d639e1";
}
group cheobservationcheb14s2de08f(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";
}
group cheobservationcheb14s2de09t(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src -> tgt.status = 'final', tgt.value = true "e9d639e1";
}
group cheobservationcheb14s2de09f(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";
}
group cheobservationcheb14s2de10(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as item where (linkId = 'CHE.B14S2.DE10') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb14s2de10";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb14s2de10";
} "bdab9370";
} "45094cde";
}
group cheobservationcheb14s2de11(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as item where (linkId = 'CHE.B14S2.DE11') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb14s2de11";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb14s2de11";
} "bdab9370";
} "3ff0fc37";
}
group cheobservationcheb14s2de11a(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as item where (linkId = 'CHE.B14S2.DE11A') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb14s2de11a";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb14s2de11a";
} "bdab9370";
} "84d53423";
}
group cheobservationcheb14s2de012(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as item where (linkId = 'CHE.B14S2.DE012') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb14s2de012";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb14s2de012";
} "bdab9370";
} "62463681";
}
group cheobservationcheb14s2de14(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {
itm1.item first as item where (linkId = 'CHE.B14S2.DE14') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb14s2de14";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb14s2de14";
} "bdab9370";
} "5af19059";
} "2006dfba";
}
group cheobservationcheb14s2de15(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {
itm1.item first as item where (linkId = 'CHE.B14S2.DE15') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb14s2de15";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb14s2de15";
} "bdab9370";
} "39218419";
} "a57c496c";
}
group cheobservationcheb14s2de16(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {
itm1.item first as item where (linkId = 'CHE.B14S2.DE16') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb14s2de16";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb14s2de16";
} "bdab9370";
} "450cff64";
} "0722a638";
}
group cheobservationcheb14s2de17(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {
itm1.item first as item where (linkId = 'CHE.B14S2.DE17') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb14s2de17";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb14s2de17";
} "bdab9370";
} "897dc3be";
} "1909815c";
}
group cheobservationcheb14s2de19(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {
itm1.item first as item where (linkId = 'CHE.B14S2.DE19') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb14s2de19";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb14s2de19";
} "bdab9370";
} "f72f1788";
} "8ca1952a";
}
group cheobservationcheb14s2de20(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {
itm1.item first as item where (linkId = 'CHE.B14S2.DE20') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb14s2de20";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb14s2de20";
} "bdab9370";
} "4a2edb0e";
} "923e59ee";
}
group cheobservationcheb14s2de23(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {
itm1.item first as item where (linkId = 'CHE.B14S2.DE23') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb14s2de23";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb14s2de23";
} "bdab9370";
} "608a4005";
} "13801842";
}
group cheobservationcheb14s2de24(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {
itm1.item first as item where (linkId = 'CHE.B14S2.DE24') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb14s2de24";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb14s2de24";
} "bdab9370";
} "25c8bf22";
} "60767175";
}
group cheobservationcheb14s2de25(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {
itm1.item first as item where (linkId = 'CHE.B14S2.DE25') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb14s2de25";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb14s2de25";
} "bdab9370";
} "db85fa52";
} "3c40004e";
}
group cheobservationcheb14s2de26cheb14s2de27t(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src -> tgt.status = 'final', tgt.value = true "e9d639e1";
}
group cheobservationcheb14s2de26cheb14s2de27f(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";
}
group cheobservationcheb14s2de26cheb14s2de28t(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src -> tgt.status = 'final', tgt.value = true "e9d639e1";
}
group cheobservationcheb14s2de26cheb14s2de28f(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";
}
group cheobservationcheb14s2de26cheb14s2de29t(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src -> tgt.status = 'final', tgt.value = true "e9d639e1";
}
group cheobservationcheb14s2de26cheb14s2de29f(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";
}
group cheobservationcheb14s2de26cheb14s2de30t(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src -> tgt.status = 'final', tgt.value = true "e9d639e1";
}
group cheobservationcheb14s2de26cheb14s2de30f(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";
}
group cheobservationcheb14s2de26cheb14s2de30at(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src -> tgt.status = 'final', tgt.value = true "e9d639e1";
}
group cheobservationcheb14s2de26cheb14s2de30af(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";
}
group cheobservationcheb14s2de31(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {
itm1.item first as item where (linkId = 'CHE.B14S2.DE31') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb14s2de31";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb14s2de31";
} "bdab9370";
} "055fc452";
} "aa637ba6";
}
group cheobservationcheb14s2de32(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {
itm1.item first as item where (linkId = 'CHE.B14S2.DE32') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb14s2de32";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb14s2de32";
} "bdab9370";
} "17a0f55a";
} "c083af79";
}
group cheobservationcheb14s2de33(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {
itm1.item first as item where (linkId = 'CHE.B14S2.DE33') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb14s2de33";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb14s2de33";
} "bdab9370";
} "e4745a04";
} "4e4788c5";
}
group cheobservationcheb14s2de34(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {
itm1.item first as item where (linkId = 'CHE.B14S2.DE34') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb14s2de34";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb14s2de34";
} "bdab9370";
} "de0bbf97";
} "5cd616a6";
}
group cheobservationcheb14s2de35(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {
itm1.item first as item where (linkId = 'CHE.B14S2.DE35') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb14s2de35";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb14s2de35";
} "bdab9370";
} "638d4331";
} "f58c353f";
}
group cheobservationcheb14s2de36(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {
itm1.item first as item where (linkId = 'CHE.B14S2.DE36') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb14s2de36";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb14s2de36";
} "bdab9370";
} "cbbe5815";
} "0936cbf6";
}
group cheobservationcheb14s2de37(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {
itm1.item first as item where (linkId = 'CHE.B14S2.DE37') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb14s2de37";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb14s2de37";
} "bdab9370";
} "b86995dc";
} "5682102f";
}
group cheobservationcheb14s2de44(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as itm1 where linkId = 'CHE.B14S2.DE43' then {
itm1.item first as item where (linkId = 'CHE.B14S2.DE44') and answer.exists() then {
item.answer first as a then {
a.value as val then {
val where val.code = 'CHE.B14S2.DE44' -> tgt.status = 'final', tgt.value = true "0b6db5a4";
} "0179b73a";
} "6e03d90e";
} "bf7248e5";
} "53079171";
}
group cheobservationcheb14s2de45(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as itm1 where linkId = 'CHE.B14S2.DE43' then {
itm1.item first as item where (linkId = 'CHE.B14S2.DE45') and answer.exists() then {
item.answer first as a then {
a.value as val then {
val where val.code = 'CHE.B14S2.DE45' -> tgt.status = 'final', tgt.value = true "e757280e";
} "cfa88a12";
} "474bfa7e";
} "dc5a7e6f";
} "28d2f74b";
}
group cheobservationcheb14s2de46(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as itm1 where linkId = 'CHE.B14S2.DE43' then {
itm1.item first as item where (linkId = 'CHE.B14S2.DE46') and answer.exists() then {
item.answer first as a then {
a.value as val then {
val where val.code = 'CHE.B14S2.DE46' -> tgt.status = 'final', tgt.value = true "6174d2b1";
} "b8a53423";
} "674b3d37";
} "20c182dd";
} "2a5bd70e";
}
group cheobservationcheb14s2de39t(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src -> tgt.status = 'final', tgt.value = true "e9d639e1";
}
group cheobservationcheb14s2de39f(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";
}
group cheobservationcheb14s2de40t(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src -> tgt.status = 'final', tgt.value = true "e9d639e1";
}
group cheobservationcheb14s2de40f(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";
}
group cheobservationcheb14s2de41t(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src -> tgt.status = 'final', tgt.value = true "e9d639e1";
}
group cheobservationcheb14s2de41f(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";
}
group cheobservationcheb14s2de42t(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src -> tgt.status = 'final', tgt.value = true "e9d639e1";
}
group cheobservationcheb14s2de42f(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";
}
group cheobservationcheb15s2de01(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as item where (linkId = 'CHE.B15S2.DE01') and answer.exists() then {
item.answer first as a then {
a.value as val then {
val where val.code = 'none' -> tgt.status = 'cancelled' "8ab1d7a5";
val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";
} "4ca9082e";
} "7c587a4b";
} "c368427f";
}
group cheobservationcheb15s2de05(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as item where (linkId = 'CHE.B15S2.DE05') and answer.exists() then {
item.answer first as a then {
a.value as val then {
val where val.code = 'none' -> tgt.status = 'cancelled' "8ab1d7a5";
val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";
} "4ca9082e";
} "7c587a4b";
} "6f2995df";
}
group cheobservationcheb16s2de01(source src, target tgt) {
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";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
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";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as item where (linkId = 'CHE.B16S2.DE01') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb16s2de01";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb16s2de01";
} "bdab9370";
} "864949e9";
}