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

: che.b10-16.signs.2m.p - JSON Representation

Active as of 2023-10-04

Raw json | Download


{
  "resourceType" : "StructureMap",
  "id" : "che.b10-16.signs.2m.p",
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><pre>map &quot;https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/che.b10-16.signs.2m.p&quot; = &quot;che.b10-16.signs.2m.p&quot;\r\n\r\n\r\nuses &quot;http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse&quot; alias 'questionnaireResponse' as source\r\nuses &quot;http://hl7.org/fhir/StructureDefinition/Bundle&quot; alias 'Bundle' as target\r\nuses &quot;https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/observation&quot; alias 'Observation' as target\r\nuses &quot;https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation&quot; alias 'CHE Observation' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n  src -&gt; bundle.id = uuid() &quot;id&quot;;\r\n  src -&gt; bundle.type = 'batch' &quot;type&quot;;\r\n  src.item first as itm1 where linkId = 'cought_difficulty' then {\r\n    itm1.item first as item where (linkId = 'CHE.B10S2.DE03') and answer.exists() then {\r\n      src -&gt; bundle.entry as entry then {\r\n        src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n        src -&gt; entry.resource = create('Observation') as tgt then {\r\n          src -&gt; tgt then cheobservationcheb10s2de03(src, tgt) &quot;a3121769&quot;;\r\n        } &quot;e4e82dc3&quot;;\r\n      } &quot;ccc7345c&quot;;\r\n    } &quot;fc59465c&quot;;\r\n  } &quot;e5d16814&quot;;\r\n  src.item first as itm1 where linkId = 'cought_difficulty' then {\r\n    itm1.item first as item where (linkId = 'CHE.B10S2.DE04') and answer.exists() then {\r\n      src -&gt; bundle.entry as entry then {\r\n        src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n        src -&gt; entry.resource = create('Observation') as tgt then {\r\n          src -&gt; tgt then cheobservationcheb10s2de04(src, tgt) &quot;12726a73&quot;;\r\n        } &quot;1e206187&quot;;\r\n      } &quot;4d708b4e&quot;;\r\n    } &quot;bb5f6628&quot;;\r\n  } &quot;4d4fa5b7&quot;;\r\n  src.item first as itm1 where linkId = 'cought_difficulty' then {\r\n    itm1.item first as item where (linkId = 'CHE.B10S2.DE05') and answer.exists() then {\r\n      src -&gt; bundle.entry as entry then {\r\n        src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n        src -&gt; entry.resource = create('Observation') as tgt then {\r\n          src -&gt; tgt then cheobservationcheb10s2de05(src, tgt) &quot;4b9c9224&quot;;\r\n        } &quot;0aeccb4c&quot;;\r\n      } &quot;e837b337&quot;;\r\n    } &quot;9820da17&quot;;\r\n  } &quot;c3f24b2e&quot;;\r\n  src.item first as itm1 where linkId = 'cought_difficulty' then {\r\n    itm1.item first as item where (linkId = 'CHE.B10S2.DE06') and answer.exists() then {\r\n      src -&gt; bundle.entry as entry then {\r\n        src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n        src -&gt; entry.resource = create('Observation') as tgt then {\r\n          src -&gt; tgt then cheobservationcheb10s2de06(src, tgt) &quot;ab109b3b&quot;;\r\n        } &quot;57a50c8d&quot;;\r\n      } &quot;25285fbe&quot;;\r\n    } &quot;cdc5f28e&quot;;\r\n  } &quot;4ab9192b&quot;;\r\n  src.item first as itm1 where linkId = 'cought_difficulty' then {\r\n    itm1.item first as item where (linkId = 'CHE.B10S2.DE07') and answer.exists() then {\r\n      src -&gt; bundle.entry as entry then {\r\n        src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n        src -&gt; entry.resource = create('Observation') as tgt then {\r\n          src -&gt; tgt then cheobservationcheb10s2de07(src, tgt) &quot;6a6e462c&quot;;\r\n        } &quot;a13863d4&quot;;\r\n      } &quot;5ec854e1&quot;;\r\n    } &quot;2a324f43&quot;;\r\n  } &quot;92e71e71&quot;;\r\n  src.item first as itm1 where linkId = 'cought_difficulty' then {\r\n    itm1.item first as item where (linkId = 'CHE.B10S2.DE08') and answer.exists() then {\r\n      src -&gt; bundle.entry as entry then {\r\n        src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n        src -&gt; entry.resource = create('Observation') as tgt then {\r\n          src -&gt; tgt then cheobservationcheb10s2de08(src, tgt) &quot;95d2cc63&quot;;\r\n        } &quot;d48930cc&quot;;\r\n      } &quot;60edbce0&quot;;\r\n    } &quot;7dd85f19&quot;;\r\n  } &quot;aabb7fda&quot;;\r\n  src.item first as itm1 where linkId = 'cought_difficulty' then {\r\n    itm1.item first as item where (linkId = 'CHE.B10S2.DE09') and answer.exists() then {\r\n      src -&gt; bundle.entry as entry then {\r\n        src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n        src -&gt; entry.resource = create('Observation') as tgt then {\r\n          src -&gt; tgt then cheobservationcheb10s2de09(src, tgt) &quot;56e0c618&quot;;\r\n        } &quot;0f63b370&quot;;\r\n      } &quot;584bb51b&quot;;\r\n    } &quot;34886c11&quot;;\r\n  } &quot;b48899e4&quot;;\r\n  src.item first as item where (linkId = 'CHE.B11S2.DE01') and answer.exists() then {\r\n    src -&gt; bundle.entry as entry then {\r\n      src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n      src -&gt; entry.resource = create('Observation') as tgt then {\r\n        src -&gt; tgt then cheobservationcheb11s2de01(src, tgt) &quot;e78be8e9&quot;;\r\n      } &quot;b6f8c15d&quot;;\r\n    } &quot;12706fb4&quot;;\r\n  } &quot;196805dd&quot;;\r\n  src.item first as item where (linkId = 'CHE.B11S2.DE02') and answer.exists() then {\r\n    src -&gt; bundle.entry as entry then {\r\n      src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n      src -&gt; entry.resource = create('Observation') as tgt then {\r\n        src -&gt; tgt then cheobservationcheb11s2de02(src, tgt) &quot;233f732a&quot;;\r\n      } &quot;864ab13a&quot;;\r\n    } &quot;d2a5739c&quot;;\r\n  } &quot;8f208c49&quot;;\r\n  src.item first as item where (linkId = 'CHE.B11S2.DE06') and answer.exists() then {\r\n    src -&gt; bundle.entry as entry then {\r\n      src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n      src -&gt; entry.resource = create('Observation') as tgt then {\r\n        src -&gt; tgt then cheobservationcheb11s2de06(src, tgt) &quot;e8e15f56&quot;;\r\n      } &quot;143c44d0&quot;;\r\n    } &quot;6bf6b2e4&quot;;\r\n  } &quot;676c63aa&quot;;\r\n  src.item first as item where (linkId = 'CHE.B12S2.DE01') and answer.exists() then {\r\n    src -&gt; bundle.entry as entry then {\r\n      src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n      src -&gt; entry.resource = create('Observation') as tgt then {\r\n        src -&gt; tgt then cheobservationcheb12s2de01(src, tgt) &quot;9135622f&quot;;\r\n      } &quot;bf07356f&quot;;\r\n    } &quot;ce58f29a&quot;;\r\n  } &quot;9a76cbc7&quot;;\r\n  src.item first as item where (linkId = 'CHE.B12S2.DE02') and answer.exists() then {\r\n    src -&gt; bundle.entry as entry then {\r\n      src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n      src -&gt; entry.resource = create('Observation') as tgt then {\r\n        src -&gt; tgt then cheobservationcheb12s2de02(src, tgt) &quot;1b1bf04d&quot;;\r\n      } &quot;8ea6d745&quot;;\r\n    } &quot;a824242a&quot;;\r\n  } &quot;6c1ec8e7&quot;;\r\n  src.item first as item where (linkId = 'CHE.B12S2.DE03') and answer.exists() then {\r\n    src -&gt; bundle.entry as entry then {\r\n      src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n      src -&gt; entry.resource = create('Observation') as tgt then {\r\n        src -&gt; tgt then cheobservationcheb12s2de03(src, tgt) &quot;81ee5a51&quot;;\r\n      } &quot;1553a24f&quot;;\r\n    } &quot;058ccab8&quot;;\r\n  } &quot;a9e5d569&quot;;\r\n  src.item first as item where (linkId = 'CHE.B12S2.DE05') and answer.exists() then {\r\n    src -&gt; bundle.entry as entry then {\r\n      src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n      src -&gt; entry.resource = create('Observation') as tgt then {\r\n        src -&gt; tgt then cheobservationcheb12s2de05(src, tgt) &quot;e35b2ce0&quot;;\r\n      } &quot;9d30433e&quot;;\r\n    } &quot;d94b4c6f&quot;;\r\n  } &quot;fbc5f12a&quot;;\r\n  src.item first as item where (linkId = 'CHE.B13S2.DE01') and answer.exists() then {\r\n    src -&gt; bundle.entry as entry then {\r\n      src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n      src -&gt; entry.resource = create('Observation') as tgt then {\r\n        src -&gt; tgt then cheobservationcheb13s2de01(src, tgt) &quot;a3dd6e3c&quot;;\r\n      } &quot;65fe53f6&quot;;\r\n    } &quot;7f824586&quot;;\r\n  } &quot;f909293c&quot;;\r\n  src.item first as item where (linkId = 'CHE.B13S2.DE02') and answer.exists() then {\r\n    src -&gt; bundle.entry as entry then {\r\n      src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n      src -&gt; entry.resource = create('Observation') as tgt then {\r\n        src -&gt; tgt then cheobservationcheb13s2de02(src, tgt) &quot;680332d4&quot;;\r\n      } &quot;05119853&quot;;\r\n    } &quot;293fb33c&quot;;\r\n  } &quot;4a1f0e05&quot;;\r\n  src.item first as item where (linkId = 'CHE.B13S2.DE03') and answer.exists() then {\r\n    src -&gt; bundle.entry as entry then {\r\n      src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n      src -&gt; entry.resource = create('Observation') as tgt then {\r\n        src -&gt; tgt then cheobservationcheb13s2de03(src, tgt) &quot;0d34b650&quot;;\r\n      } &quot;d077d65d&quot;;\r\n    } &quot;82f46f41&quot;;\r\n  } &quot;b34e18da&quot;;\r\n  src.item first as item where (linkId = 'CHE.B14S2.DE01') and answer.exists() then {\r\n    src -&gt; bundle.entry as entry then {\r\n      src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n      src -&gt; entry.resource = create('Observation') as tgt then {\r\n        src -&gt; tgt then cheobservationcheb14s2de01(src, tgt) &quot;f67e1d1e&quot;;\r\n      } &quot;f5eee0d6&quot;;\r\n    } &quot;d2d701c3&quot;;\r\n  } &quot;6d73aa66&quot;;\r\n  src.item first as item where (linkId = 'CHE.B14S2.DE02') and answer.exists() then {\r\n    src -&gt; bundle.entry as entry then {\r\n      src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n      src -&gt; entry.resource = create('Observation') as tgt then {\r\n        src -&gt; tgt then cheobservationcheb14s2de02(src, tgt) &quot;d2a34da0&quot;;\r\n      } &quot;d5bdc17e&quot;;\r\n    } &quot;1e7e8586&quot;;\r\n  } &quot;da4cbe94&quot;;\r\n  src.item first as item where (linkId = 'CHE.B14S2.DE03') and answer.exists() then {\r\n    src -&gt; bundle.entry as entry then {\r\n      src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n      src -&gt; entry.resource = create('Observation') as tgt then {\r\n        src -&gt; tgt then cheobservationcheb14s2de03(src, tgt) &quot;afbf6dfc&quot;;\r\n      } &quot;ada8a30b&quot;;\r\n    } &quot;58a7d9ce&quot;;\r\n  } &quot;4876aa02&quot;;\r\n  src.item first as item where (linkId = 'CHE.B14S2.DE04') and answer.exists() then {\r\n    src -&gt; bundle.entry as entry then {\r\n      src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n      src -&gt; entry.resource = create('Observation') as tgt then {\r\n        src -&gt; tgt then cheobservationcheb14s2de04(src, tgt) &quot;d931de40&quot;;\r\n      } &quot;84576f4c&quot;;\r\n    } &quot;b7ae7464&quot;;\r\n  } &quot;c1f8eba4&quot;;\r\n  src.item first as item where (linkId = 'CHE.B14S2.DE05') and answer.exists() then {\r\n    src -&gt; bundle.entry as entry then {\r\n      src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n      src -&gt; entry.resource = create('Observation') as tgt then {\r\n        src -&gt; tgt then cheobservationcheb14s2de05(src, tgt) &quot;2c27e645&quot;;\r\n      } &quot;4fd085e6&quot;;\r\n    } &quot;561b23b7&quot;;\r\n  } &quot;7f699109&quot;;\r\n  src where src.item.where(linkId = 'CHE.B14S2.DE06').answer.where(value.code = 'CHE.B14S2.DE07') then {\r\n    src.item first as item where (linkId = 'CHE.B14S2.DE06') and answer.exists() then {\r\n      src -&gt; bundle.entry as entry then {\r\n        src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n        src -&gt; entry.resource = create('Observation') as tgt then {\r\n          src then cheobservationcheb14s2de07t(src, tgt) &quot;a70fa063&quot;;\r\n        } &quot;c59e7aeb&quot;;\r\n      } &quot;63793fad&quot;;\r\n    } &quot;cb30cd2f&quot;;\r\n  } &quot;b704a158&quot;;\r\n  src where src.item.where(linkId = 'CHE.B14S2.DE06').exists() and src.item.where(linkId = 'CHE.B14S2.DE06').answer.where(value.code = 'CHE.B14S2.DE07').empty() then {\r\n    src.item first as item where (linkId = 'CHE.B14S2.DE06') and answer.exists() then {\r\n      src -&gt; bundle.entry as entry then {\r\n        src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n        src -&gt; entry.resource = create('Observation') as tgt then {\r\n          src then cheobservationcheb14s2de07f(src, tgt) &quot;6160ac55&quot;;\r\n        } &quot;40563b74&quot;;\r\n      } &quot;b34ff0e4&quot;;\r\n    } &quot;aa78f8ce&quot;;\r\n  } &quot;9f7ea995&quot;;\r\n  src where src.item.where(linkId = 'CHE.B14S2.DE06').answer.where(value.code = 'CHE.B14S2.DE08') then {\r\n    src.item first as item where (linkId = 'CHE.B14S2.DE06') and answer.exists() then {\r\n      src -&gt; bundle.entry as entry then {\r\n        src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n        src -&gt; entry.resource = create('Observation') as tgt then {\r\n          src then cheobservationcheb14s2de08t(src, tgt) &quot;7d23edb9&quot;;\r\n        } &quot;6c9dfd70&quot;;\r\n      } &quot;2d6d5812&quot;;\r\n    } &quot;bf832823&quot;;\r\n  } &quot;f71b8189&quot;;\r\n  src where src.item.where(linkId = 'CHE.B14S2.DE06').exists() and src.item.where(linkId = 'CHE.B14S2.DE06').answer.where(value.code = 'CHE.B14S2.DE08').empty() then {\r\n    src.item first as item where (linkId = 'CHE.B14S2.DE06') and answer.exists() then {\r\n      src -&gt; bundle.entry as entry then {\r\n        src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n        src -&gt; entry.resource = create('Observation') as tgt then {\r\n          src then cheobservationcheb14s2de08f(src, tgt) &quot;e7499185&quot;;\r\n        } &quot;cf8657d2&quot;;\r\n      } &quot;a04f0e1f&quot;;\r\n    } &quot;66356287&quot;;\r\n  } &quot;86ef6deb&quot;;\r\n  src where src.item.where(linkId = 'CHE.B14S2.DE06').answer.where(value.code = 'CHE.B14S2.DE09') then {\r\n    src.item first as item where (linkId = 'CHE.B14S2.DE06') and answer.exists() then {\r\n      src -&gt; bundle.entry as entry then {\r\n        src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n        src -&gt; entry.resource = create('Observation') as tgt then {\r\n          src then cheobservationcheb14s2de09t(src, tgt) &quot;5de89547&quot;;\r\n        } &quot;59e146db&quot;;\r\n      } &quot;87a2c607&quot;;\r\n    } &quot;dd8ce1c7&quot;;\r\n  } &quot;fa4d49d9&quot;;\r\n  src where src.item.where(linkId = 'CHE.B14S2.DE06').exists() and src.item.where(linkId = 'CHE.B14S2.DE06').answer.where(value.code = 'CHE.B14S2.DE09').empty() then {\r\n    src.item first as item where (linkId = 'CHE.B14S2.DE06') and answer.exists() then {\r\n      src -&gt; bundle.entry as entry then {\r\n        src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n        src -&gt; entry.resource = create('Observation') as tgt then {\r\n          src then cheobservationcheb14s2de09f(src, tgt) &quot;cf532f71&quot;;\r\n        } &quot;e051ab43&quot;;\r\n      } &quot;b3ea33b1&quot;;\r\n    } &quot;3e9b92bd&quot;;\r\n  } &quot;c92bdf9f&quot;;\r\n  src.item first as item where (linkId = 'CHE.B14S2.DE10') and answer.exists() then {\r\n    src -&gt; bundle.entry as entry then {\r\n      src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n      src -&gt; entry.resource = create('Observation') as tgt then {\r\n        src -&gt; tgt then cheobservationcheb14s2de10(src, tgt) &quot;451a05a2&quot;;\r\n      } &quot;104c51b0&quot;;\r\n    } &quot;697ccfc3&quot;;\r\n  } &quot;18029a3e&quot;;\r\n  src.item first as item where (linkId = 'CHE.B14S2.DE11') and answer.exists() then {\r\n    src -&gt; bundle.entry as entry then {\r\n      src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n      src -&gt; entry.resource = create('Observation') as tgt then {\r\n        src -&gt; tgt then cheobservationcheb14s2de11(src, tgt) &quot;fd57f88b&quot;;\r\n      } &quot;9106c3cd&quot;;\r\n    } &quot;741e4f3a&quot;;\r\n  } &quot;c0cee43d&quot;;\r\n  src.item first as item where (linkId = 'CHE.B14S2.DE11A') and answer.exists() then {\r\n    src -&gt; bundle.entry as entry then {\r\n      src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n      src -&gt; entry.resource = create('Observation') as tgt then {\r\n        src -&gt; tgt then cheobservationcheb14s2de11a(src, tgt) &quot;f953aba0&quot;;\r\n      } &quot;907e904c&quot;;\r\n    } &quot;9ca7d2e0&quot;;\r\n  } &quot;e685d30a&quot;;\r\n  src.item first as item where (linkId = 'CHE.B14S2.DE012') and answer.exists() then {\r\n    src -&gt; bundle.entry as entry then {\r\n      src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n      src -&gt; entry.resource = create('Observation') as tgt then {\r\n        src -&gt; tgt then cheobservationcheb14s2de012(src, tgt) &quot;008f1388&quot;;\r\n      } &quot;579ba6a1&quot;;\r\n    } &quot;328afba1&quot;;\r\n  } &quot;a8ce40d4&quot;;\r\n  src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n    itm1.item first as item where (linkId = 'CHE.B14S2.DE14') and answer.exists() then {\r\n      src -&gt; bundle.entry as entry then {\r\n        src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n        src -&gt; entry.resource = create('Observation') as tgt then {\r\n          src -&gt; tgt then cheobservationcheb14s2de14(src, tgt) &quot;d8a27ed8&quot;;\r\n        } &quot;c984d708&quot;;\r\n      } &quot;849511d5&quot;;\r\n    } &quot;c648daf1&quot;;\r\n  } &quot;5022f5b3&quot;;\r\n  src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n    itm1.item first as item where (linkId = 'CHE.B14S2.DE15') and answer.exists() then {\r\n      src -&gt; bundle.entry as entry then {\r\n        src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n        src -&gt; entry.resource = create('Observation') as tgt then {\r\n          src -&gt; tgt then cheobservationcheb14s2de15(src, tgt) &quot;06c44747&quot;;\r\n        } &quot;1ebd7c1d&quot;;\r\n      } &quot;277056b9&quot;;\r\n    } &quot;79008e21&quot;;\r\n  } &quot;e942530d&quot;;\r\n  src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n    itm1.item first as item where (linkId = 'CHE.B14S2.DE16') and answer.exists() then {\r\n      src -&gt; bundle.entry as entry then {\r\n        src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n        src -&gt; entry.resource = create('Observation') as tgt then {\r\n          src -&gt; tgt then cheobservationcheb14s2de16(src, tgt) &quot;5e21e5de&quot;;\r\n        } &quot;10a43a24&quot;;\r\n      } &quot;2bc887e7&quot;;\r\n    } &quot;25d97a1e&quot;;\r\n  } &quot;68cc6612&quot;;\r\n  src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n    itm1.item first as item where (linkId = 'CHE.B14S2.DE17') and answer.exists() then {\r\n      src -&gt; bundle.entry as entry then {\r\n        src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n        src -&gt; entry.resource = create('Observation') as tgt then {\r\n          src -&gt; tgt then cheobservationcheb14s2de17(src, tgt) &quot;4e32087b&quot;;\r\n        } &quot;0e42c26b&quot;;\r\n      } &quot;271fa5d7&quot;;\r\n    } &quot;efd53e0f&quot;;\r\n  } &quot;a9de2b75&quot;;\r\n  src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n    itm1.item first as item where (linkId = 'CHE.B14S2.DE19') and answer.exists() then {\r\n      src -&gt; bundle.entry as entry then {\r\n        src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n        src -&gt; entry.resource = create('Observation') as tgt then {\r\n          src -&gt; tgt then cheobservationcheb14s2de19(src, tgt) &quot;c22b8141&quot;;\r\n        } &quot;0bc665bb&quot;;\r\n      } &quot;94c5130e&quot;;\r\n    } &quot;69fac502&quot;;\r\n  } &quot;1115b12f&quot;;\r\n  src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n    itm1.item first as item where (linkId = 'CHE.B14S2.DE20') and answer.exists() then {\r\n      src -&gt; bundle.entry as entry then {\r\n        src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n        src -&gt; entry.resource = create('Observation') as tgt then {\r\n          src -&gt; tgt then cheobservationcheb14s2de20(src, tgt) &quot;8932862f&quot;;\r\n        } &quot;3b7c1658&quot;;\r\n      } &quot;b43fef3b&quot;;\r\n    } &quot;8c60ee58&quot;;\r\n  } &quot;48a20f87&quot;;\r\n  src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n    itm1.item first as item where (linkId = 'CHE.B14S2.DE23') and answer.exists() then {\r\n      src -&gt; bundle.entry as entry then {\r\n        src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n        src -&gt; entry.resource = create('Observation') as tgt then {\r\n          src -&gt; tgt then cheobservationcheb14s2de23(src, tgt) &quot;7113a51f&quot;;\r\n        } &quot;fdda7798&quot;;\r\n      } &quot;c4dd7711&quot;;\r\n    } &quot;db05c5d5&quot;;\r\n  } &quot;024d60ff&quot;;\r\n  src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n    itm1.item first as item where (linkId = 'CHE.B14S2.DE24') and answer.exists() then {\r\n      src -&gt; bundle.entry as entry then {\r\n        src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n        src -&gt; entry.resource = create('Observation') as tgt then {\r\n          src -&gt; tgt then cheobservationcheb14s2de24(src, tgt) &quot;f8322d67&quot;;\r\n        } &quot;145a48f6&quot;;\r\n      } &quot;2d029a29&quot;;\r\n    } &quot;ebf4a6da&quot;;\r\n  } &quot;ae402ca3&quot;;\r\n  src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n    itm1.item first as item where (linkId = 'CHE.B14S2.DE25') and answer.exists() then {\r\n      src -&gt; bundle.entry as entry then {\r\n        src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n        src -&gt; entry.resource = create('Observation') as tgt then {\r\n          src -&gt; tgt then cheobservationcheb14s2de25(src, tgt) &quot;45d07795&quot;;\r\n        } &quot;b1ff5512&quot;;\r\n      } &quot;9fbf564f&quot;;\r\n    } &quot;b41a0646&quot;;\r\n  } &quot;8f0d5b43&quot;;\r\n  src where src.item.where(linkId = 'CHE.B14S2.DE26').answer.where(value.code = 'CHE.B14S2.DE27') then {\r\n    src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n      itm1.item first as item where (linkId = 'CHE.B14S2.DE26') and answer.exists() then {\r\n        src -&gt; bundle.entry as entry then {\r\n          src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n          src -&gt; entry.resource = create('Observation') as tgt then {\r\n            src then cheobservationcheb14s2de26cheb14s2de27t(src, tgt) &quot;be4e0b60&quot;;\r\n          } &quot;e9f4ebb1&quot;;\r\n        } &quot;324c47b7&quot;;\r\n      } &quot;8c812460&quot;;\r\n    } &quot;7bed4bf8&quot;;\r\n  } &quot;510cf766&quot;;\r\n  src where src.item.where(linkId = 'CHE.B14S2.DE26').exists() and src.item.where(linkId = 'CHE.B14S2.DE26').answer.where(value.code = 'CHE.B14S2.DE27').empty() then {\r\n    src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n      itm1.item first as item where (linkId = 'CHE.B14S2.DE26') and answer.exists() then {\r\n        src -&gt; bundle.entry as entry then {\r\n          src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n          src -&gt; entry.resource = create('Observation') as tgt then {\r\n            src then cheobservationcheb14s2de26cheb14s2de27f(src, tgt) &quot;d04eb1a3&quot;;\r\n          } &quot;277a3784&quot;;\r\n        } &quot;1b910bf2&quot;;\r\n      } &quot;538610a2&quot;;\r\n    } &quot;3afba5e7&quot;;\r\n  } &quot;b487a855&quot;;\r\n  src where src.item.where(linkId = 'CHE.B14S2.DE26').answer.where(value.code = 'CHE.B14S2.DE28') then {\r\n    src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n      itm1.item first as item where (linkId = 'CHE.B14S2.DE26') and answer.exists() then {\r\n        src -&gt; bundle.entry as entry then {\r\n          src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n          src -&gt; entry.resource = create('Observation') as tgt then {\r\n            src then cheobservationcheb14s2de26cheb14s2de28t(src, tgt) &quot;1a7082ed&quot;;\r\n          } &quot;702e6884&quot;;\r\n        } &quot;2b564d88&quot;;\r\n      } &quot;d238ec7f&quot;;\r\n    } &quot;0c4da54c&quot;;\r\n  } &quot;d83b694e&quot;;\r\n  src where src.item.where(linkId = 'CHE.B14S2.DE26').exists() and src.item.where(linkId = 'CHE.B14S2.DE26').answer.where(value.code = 'CHE.B14S2.DE28').empty() then {\r\n    src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n      itm1.item first as item where (linkId = 'CHE.B14S2.DE26') and answer.exists() then {\r\n        src -&gt; bundle.entry as entry then {\r\n          src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n          src -&gt; entry.resource = create('Observation') as tgt then {\r\n            src then cheobservationcheb14s2de26cheb14s2de28f(src, tgt) &quot;99ca6943&quot;;\r\n          } &quot;9360ee27&quot;;\r\n        } &quot;9ffd47db&quot;;\r\n      } &quot;81ceef74&quot;;\r\n    } &quot;23b74abe&quot;;\r\n  } &quot;ad601afb&quot;;\r\n  src where src.item.where(linkId = 'CHE.B14S2.DE26').answer.where(value.code = 'CHE.B14S2.DE29') then {\r\n    src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n      itm1.item first as item where (linkId = 'CHE.B14S2.DE26') and answer.exists() then {\r\n        src -&gt; bundle.entry as entry then {\r\n          src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n          src -&gt; entry.resource = create('Observation') as tgt then {\r\n            src then cheobservationcheb14s2de26cheb14s2de29t(src, tgt) &quot;da408d9d&quot;;\r\n          } &quot;19ef0f0a&quot;;\r\n        } &quot;f79a18a9&quot;;\r\n      } &quot;f812bd55&quot;;\r\n    } &quot;7c215c60&quot;;\r\n  } &quot;aeb3c216&quot;;\r\n  src where src.item.where(linkId = 'CHE.B14S2.DE26').exists() and src.item.where(linkId = 'CHE.B14S2.DE26').answer.where(value.code = 'CHE.B14S2.DE29').empty() then {\r\n    src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n      itm1.item first as item where (linkId = 'CHE.B14S2.DE26') and answer.exists() then {\r\n        src -&gt; bundle.entry as entry then {\r\n          src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n          src -&gt; entry.resource = create('Observation') as tgt then {\r\n            src then cheobservationcheb14s2de26cheb14s2de29f(src, tgt) &quot;3d40c3ae&quot;;\r\n          } &quot;ff23a53e&quot;;\r\n        } &quot;cc7d9ee1&quot;;\r\n      } &quot;e083fd1f&quot;;\r\n    } &quot;195f01b1&quot;;\r\n  } &quot;0572916b&quot;;\r\n  src where src.item.where(linkId = 'CHE.B14S2.DE26').answer.where(value.code = 'CHE.B14S2.DE30') then {\r\n    src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n      itm1.item first as item where (linkId = 'CHE.B14S2.DE26') and answer.exists() then {\r\n        src -&gt; bundle.entry as entry then {\r\n          src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n          src -&gt; entry.resource = create('Observation') as tgt then {\r\n            src then cheobservationcheb14s2de26cheb14s2de30t(src, tgt) &quot;9e0f2588&quot;;\r\n          } &quot;d74a8bf3&quot;;\r\n        } &quot;4ead07a3&quot;;\r\n      } &quot;ebdfdaa2&quot;;\r\n    } &quot;4a0e050b&quot;;\r\n  } &quot;b22c448c&quot;;\r\n  src where src.item.where(linkId = 'CHE.B14S2.DE26').exists() and src.item.where(linkId = 'CHE.B14S2.DE26').answer.where(value.code = 'CHE.B14S2.DE30').empty() then {\r\n    src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n      itm1.item first as item where (linkId = 'CHE.B14S2.DE26') and answer.exists() then {\r\n        src -&gt; bundle.entry as entry then {\r\n          src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n          src -&gt; entry.resource = create('Observation') as tgt then {\r\n            src then cheobservationcheb14s2de26cheb14s2de30f(src, tgt) &quot;9e612cf0&quot;;\r\n          } &quot;279c085f&quot;;\r\n        } &quot;404ec535&quot;;\r\n      } &quot;9d5ba213&quot;;\r\n    } &quot;a1e1a27d&quot;;\r\n  } &quot;880166e4&quot;;\r\n  src where src.item.where(linkId = 'CHE.B14S2.DE26').answer.where(value.code = 'CHE.B14S2.DE30a') then {\r\n    src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n      itm1.item first as item where (linkId = 'CHE.B14S2.DE26') and answer.exists() then {\r\n        src -&gt; bundle.entry as entry then {\r\n          src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n          src -&gt; entry.resource = create('Observation') as tgt then {\r\n            src then cheobservationcheb14s2de26cheb14s2de30at(src, tgt) &quot;2025ce0a&quot;;\r\n          } &quot;6354fdca&quot;;\r\n        } &quot;7f0a9fb0&quot;;\r\n      } &quot;47ec35aa&quot;;\r\n    } &quot;40d4a8e1&quot;;\r\n  } &quot;458fd390&quot;;\r\n  src where src.item.where(linkId = 'CHE.B14S2.DE26').exists() and src.item.where(linkId = 'CHE.B14S2.DE26').answer.where(value.code = 'CHE.B14S2.DE30a').empty() then {\r\n    src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n      itm1.item first as item where (linkId = 'CHE.B14S2.DE26') and answer.exists() then {\r\n        src -&gt; bundle.entry as entry then {\r\n          src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n          src -&gt; entry.resource = create('Observation') as tgt then {\r\n            src then cheobservationcheb14s2de26cheb14s2de30af(src, tgt) &quot;10068f81&quot;;\r\n          } &quot;1cbe77e0&quot;;\r\n        } &quot;12fcdcfc&quot;;\r\n      } &quot;08ae97a2&quot;;\r\n    } &quot;9c2b28ef&quot;;\r\n  } &quot;279f742e&quot;;\r\n  src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n    itm1.item first as item where (linkId = 'CHE.B14S2.DE31') and answer.exists() then {\r\n      src -&gt; bundle.entry as entry then {\r\n        src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n        src -&gt; entry.resource = create('Observation') as tgt then {\r\n          src -&gt; tgt then cheobservationcheb14s2de31(src, tgt) &quot;4dd5967d&quot;;\r\n        } &quot;fba7f254&quot;;\r\n      } &quot;7b9cf0fd&quot;;\r\n    } &quot;7532f152&quot;;\r\n  } &quot;d8fddb62&quot;;\r\n  src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n    itm1.item first as item where (linkId = 'CHE.B14S2.DE32') and answer.exists() then {\r\n      src -&gt; bundle.entry as entry then {\r\n        src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n        src -&gt; entry.resource = create('Observation') as tgt then {\r\n          src -&gt; tgt then cheobservationcheb14s2de32(src, tgt) &quot;987cc780&quot;;\r\n        } &quot;1d3b8c01&quot;;\r\n      } &quot;00619899&quot;;\r\n    } &quot;cbba5ba4&quot;;\r\n  } &quot;af025e66&quot;;\r\n  src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n    itm1.item first as item where (linkId = 'CHE.B14S2.DE33') and answer.exists() then {\r\n      src -&gt; bundle.entry as entry then {\r\n        src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n        src -&gt; entry.resource = create('Observation') as tgt then {\r\n          src -&gt; tgt then cheobservationcheb14s2de33(src, tgt) &quot;618273e3&quot;;\r\n        } &quot;80e526c3&quot;;\r\n      } &quot;a2c9ebd8&quot;;\r\n    } &quot;9298cf98&quot;;\r\n  } &quot;ff219239&quot;;\r\n  src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n    itm1.item first as item where (linkId = 'CHE.B14S2.DE34') and answer.exists() then {\r\n      src -&gt; bundle.entry as entry then {\r\n        src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n        src -&gt; entry.resource = create('Observation') as tgt then {\r\n          src -&gt; tgt then cheobservationcheb14s2de34(src, tgt) &quot;cc24fb80&quot;;\r\n        } &quot;2ec1c43c&quot;;\r\n      } &quot;8853e3aa&quot;;\r\n    } &quot;1fa8bb60&quot;;\r\n  } &quot;3132c753&quot;;\r\n  src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n    itm1.item first as item where (linkId = 'CHE.B14S2.DE35') and answer.exists() then {\r\n      src -&gt; bundle.entry as entry then {\r\n        src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n        src -&gt; entry.resource = create('Observation') as tgt then {\r\n          src -&gt; tgt then cheobservationcheb14s2de35(src, tgt) &quot;b3b9b6b8&quot;;\r\n        } &quot;538fc0b5&quot;;\r\n      } &quot;072c37e5&quot;;\r\n    } &quot;4bfbe729&quot;;\r\n  } &quot;690f9c2a&quot;;\r\n  src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n    itm1.item first as item where (linkId = 'CHE.B14S2.DE36') and answer.exists() then {\r\n      src -&gt; bundle.entry as entry then {\r\n        src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n        src -&gt; entry.resource = create('Observation') as tgt then {\r\n          src -&gt; tgt then cheobservationcheb14s2de36(src, tgt) &quot;8e6f1ad3&quot;;\r\n        } &quot;de413593&quot;;\r\n      } &quot;68a4caac&quot;;\r\n    } &quot;683b2da9&quot;;\r\n  } &quot;e45c8b36&quot;;\r\n  src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n    itm1.item first as item where (linkId = 'CHE.B14S2.DE37') and answer.exists() then {\r\n      src -&gt; bundle.entry as entry then {\r\n        src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n        src -&gt; entry.resource = create('Observation') as tgt then {\r\n          src -&gt; tgt then cheobservationcheb14s2de37(src, tgt) &quot;fa9a37a4&quot;;\r\n        } &quot;d7500f73&quot;;\r\n      } &quot;ae0772e9&quot;;\r\n    } &quot;8e114ec3&quot;;\r\n  } &quot;79e278cd&quot;;\r\n  src.item first as itm1 where linkId = 'CHE.B14S2.DE43' then {\r\n    itm1.item first as item where (linkId = 'CHE.B14S2.DE44') and answer.exists() then {\r\n      src -&gt; bundle.entry as entry then {\r\n        src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n        src -&gt; entry.resource = create('Observation') as tgt then {\r\n          src -&gt; tgt then cheobservationcheb14s2de44(src, tgt) &quot;dd7db2b3&quot;;\r\n        } &quot;27ff2c7c&quot;;\r\n      } &quot;0ed64bfa&quot;;\r\n    } &quot;0633fa02&quot;;\r\n  } &quot;e2179f22&quot;;\r\n  src.item first as itm1 where linkId = 'CHE.B14S2.DE43' then {\r\n    itm1.item first as item where (linkId = 'CHE.B14S2.DE45') and answer.exists() then {\r\n      src -&gt; bundle.entry as entry then {\r\n        src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n        src -&gt; entry.resource = create('Observation') as tgt then {\r\n          src -&gt; tgt then cheobservationcheb14s2de45(src, tgt) &quot;5179e4c5&quot;;\r\n        } &quot;eefeb2de&quot;;\r\n      } &quot;99252a72&quot;;\r\n    } &quot;08752eec&quot;;\r\n  } &quot;badb9b0f&quot;;\r\n  src.item first as itm1 where linkId = 'CHE.B14S2.DE43' then {\r\n    itm1.item first as item where (linkId = 'CHE.B14S2.DE46') and answer.exists() then {\r\n      src -&gt; bundle.entry as entry then {\r\n        src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n        src -&gt; entry.resource = create('Observation') as tgt then {\r\n          src -&gt; tgt then cheobservationcheb14s2de46(src, tgt) &quot;472516db&quot;;\r\n        } &quot;1efe4e54&quot;;\r\n      } &quot;12138513&quot;;\r\n    } &quot;c3d2d0b5&quot;;\r\n  } &quot;8c5ef602&quot;;\r\n  src where src.item.where(linkId = 'CHE.B14S2.DE38').answer.where(value.code = 'CHE.B14S2.DE39') then {\r\n    src.item first as item where (linkId = 'CHE.B14S2.DE38') and answer.exists() then {\r\n      src -&gt; bundle.entry as entry then {\r\n        src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n        src -&gt; entry.resource = create('Observation') as tgt then {\r\n          src then cheobservationcheb14s2de39t(src, tgt) &quot;8ff47031&quot;;\r\n        } &quot;b5c4af76&quot;;\r\n      } &quot;4884aee5&quot;;\r\n    } &quot;bd8c72f1&quot;;\r\n  } &quot;12a2e747&quot;;\r\n  src where src.item.where(linkId = 'CHE.B14S2.DE38').exists() and src.item.where(linkId = 'CHE.B14S2.DE38').answer.where(value.code = 'CHE.B14S2.DE39').empty() then {\r\n    src.item first as item where (linkId = 'CHE.B14S2.DE38') and answer.exists() then {\r\n      src -&gt; bundle.entry as entry then {\r\n        src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n        src -&gt; entry.resource = create('Observation') as tgt then {\r\n          src then cheobservationcheb14s2de39f(src, tgt) &quot;6104c4bd&quot;;\r\n        } &quot;785b121a&quot;;\r\n      } &quot;804f12bb&quot;;\r\n    } &quot;407c392c&quot;;\r\n  } &quot;1b32ca5d&quot;;\r\n  src where src.item.where(linkId = 'CHE.B14S2.DE38').answer.where(value.code = 'CHE.B14S2.DE40') then {\r\n    src.item first as item where (linkId = 'CHE.B14S2.DE38') and answer.exists() then {\r\n      src -&gt; bundle.entry as entry then {\r\n        src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n        src -&gt; entry.resource = create('Observation') as tgt then {\r\n          src then cheobservationcheb14s2de40t(src, tgt) &quot;63172721&quot;;\r\n        } &quot;3653da4a&quot;;\r\n      } &quot;233e72f5&quot;;\r\n    } &quot;c46cbfc2&quot;;\r\n  } &quot;95a181ae&quot;;\r\n  src where src.item.where(linkId = 'CHE.B14S2.DE38').exists() and src.item.where(linkId = 'CHE.B14S2.DE38').answer.where(value.code = 'CHE.B14S2.DE40').empty() then {\r\n    src.item first as item where (linkId = 'CHE.B14S2.DE38') and answer.exists() then {\r\n      src -&gt; bundle.entry as entry then {\r\n        src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n        src -&gt; entry.resource = create('Observation') as tgt then {\r\n          src then cheobservationcheb14s2de40f(src, tgt) &quot;178efd53&quot;;\r\n        } &quot;23add157&quot;;\r\n      } &quot;d8dfec03&quot;;\r\n    } &quot;087c0d2f&quot;;\r\n  } &quot;7af5d83b&quot;;\r\n  src where src.item.where(linkId = 'CHE.B14S2.DE38').answer.where(value.code = 'CHE.B14S2.DE41') then {\r\n    src.item first as item where (linkId = 'CHE.B14S2.DE38') and answer.exists() then {\r\n      src -&gt; bundle.entry as entry then {\r\n        src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n        src -&gt; entry.resource = create('Observation') as tgt then {\r\n          src then cheobservationcheb14s2de41t(src, tgt) &quot;60b3c0d7&quot;;\r\n        } &quot;f167b9ac&quot;;\r\n      } &quot;ddd14862&quot;;\r\n    } &quot;d02acfea&quot;;\r\n  } &quot;5690e0c0&quot;;\r\n  src where src.item.where(linkId = 'CHE.B14S2.DE38').exists() and src.item.where(linkId = 'CHE.B14S2.DE38').answer.where(value.code = 'CHE.B14S2.DE41').empty() then {\r\n    src.item first as item where (linkId = 'CHE.B14S2.DE38') and answer.exists() then {\r\n      src -&gt; bundle.entry as entry then {\r\n        src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n        src -&gt; entry.resource = create('Observation') as tgt then {\r\n          src then cheobservationcheb14s2de41f(src, tgt) &quot;3f994678&quot;;\r\n        } &quot;740c34d6&quot;;\r\n      } &quot;d53e0826&quot;;\r\n    } &quot;a7f4be77&quot;;\r\n  } &quot;dc3d7a5c&quot;;\r\n  src where src.item.where(linkId = 'CHE.B14S2.DE38').answer.where(value.code = 'CHE.B14S2.DE42') then {\r\n    src.item first as item where (linkId = 'CHE.B14S2.DE38') and answer.exists() then {\r\n      src -&gt; bundle.entry as entry then {\r\n        src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n        src -&gt; entry.resource = create('Observation') as tgt then {\r\n          src then cheobservationcheb14s2de42t(src, tgt) &quot;158c2ebd&quot;;\r\n        } &quot;8ce3e09a&quot;;\r\n      } &quot;eb04e570&quot;;\r\n    } &quot;5f0b1aa5&quot;;\r\n  } &quot;d5021b3e&quot;;\r\n  src where src.item.where(linkId = 'CHE.B14S2.DE38').exists() and src.item.where(linkId = 'CHE.B14S2.DE38').answer.where(value.code = 'CHE.B14S2.DE42').empty() then {\r\n    src.item first as item where (linkId = 'CHE.B14S2.DE38') and answer.exists() then {\r\n      src -&gt; bundle.entry as entry then {\r\n        src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n        src -&gt; entry.resource = create('Observation') as tgt then {\r\n          src then cheobservationcheb14s2de42f(src, tgt) &quot;72ecb9fa&quot;;\r\n        } &quot;35bd055d&quot;;\r\n      } &quot;2a701124&quot;;\r\n    } &quot;4c8c24fd&quot;;\r\n  } &quot;48e2630f&quot;;\r\n  src.item first as item where (linkId = 'CHE.B15S2.DE01') and answer.exists() then {\r\n    src -&gt; bundle.entry as entry then {\r\n      src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n      src -&gt; entry.resource = create('Observation') as tgt then {\r\n        src -&gt; tgt then cheobservationcheb15s2de01(src, tgt) &quot;8c85ce6a&quot;;\r\n      } &quot;031f1439&quot;;\r\n    } &quot;9d33e3ff&quot;;\r\n  } &quot;7e9736bb&quot;;\r\n  src.item first as item where (linkId = 'CHE.B15S2.DE05') and answer.exists() then {\r\n    src -&gt; bundle.entry as entry then {\r\n      src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n      src -&gt; entry.resource = create('Observation') as tgt then {\r\n        src -&gt; tgt then cheobservationcheb15s2de05(src, tgt) &quot;a8fc884a&quot;;\r\n      } &quot;03f0b26d&quot;;\r\n    } &quot;efc29f91&quot;;\r\n  } &quot;22a2462d&quot;;\r\n  src.item first as item where (linkId = 'CHE.B16S2.DE01') and answer.exists() then {\r\n    src -&gt; bundle.entry as entry then {\r\n      src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/Observation/', uuid) &quot;b50ac4c5&quot;;\r\n      src -&gt; entry.resource = create('Observation') as tgt then {\r\n        src -&gt; tgt then cheobservationcheb16s2de01(src, tgt) &quot;dc9976f9&quot;;\r\n      } &quot;c972eb7c&quot;;\r\n    } &quot;eb6fab32&quot;;\r\n  } &quot;82d4f193&quot;;\r\n}\r\n\r\ngroup cheobservationcheb10s2de03(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheb10s2de03&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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' &quot;code-cheb10s2de03&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src.item first as itm1 where linkId = 'cought_difficulty' then {\r\n    itm1.item first as item where (linkId = 'CHE.B10S2.DE03') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true -&gt;  tgt.status = 'final',  tgt.value = true &quot;final-cheb10s2de03&quot;;\r\n        a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;notfound-cheb10s2de03&quot;;\r\n      } &quot;bdab9370&quot;;\r\n    } &quot;3643892e&quot;;\r\n  } &quot;a1a59c1c&quot;;\r\n}\r\n\r\ngroup cheobservationcheb10s2de04(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheb10s2de04&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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' &quot;code-cheb10s2de04&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src.item first as itm1 where linkId = 'cought_difficulty' then {\r\n    itm1.item first as item where (linkId = 'CHE.B10S2.DE04') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true -&gt;  tgt.status = 'final',  tgt.value = true &quot;final-cheb10s2de04&quot;;\r\n        a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;notfound-cheb10s2de04&quot;;\r\n      } &quot;bdab9370&quot;;\r\n    } &quot;ae563f8e&quot;;\r\n  } &quot;671db70c&quot;;\r\n}\r\n\r\ngroup cheobservationcheb10s2de05(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheb10s2de05&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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' &quot;code-cheb10s2de05&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src.item first as itm1 where linkId = 'cought_difficulty' then {\r\n    itm1.item first as item where (linkId = 'CHE.B10S2.DE05') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true -&gt;  tgt.status = 'final',  tgt.value = true &quot;final-cheb10s2de05&quot;;\r\n        a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;notfound-cheb10s2de05&quot;;\r\n      } &quot;bdab9370&quot;;\r\n    } &quot;3247b1e7&quot;;\r\n  } &quot;65b6d289&quot;;\r\n}\r\n\r\ngroup cheobservationcheb10s2de06(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheb10s2de06&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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' &quot;code-cheb10s2de06&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src.item first as itm1 where linkId = 'cought_difficulty' then {\r\n    itm1.item first as item where (linkId = 'CHE.B10S2.DE06') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true -&gt;  tgt.status = 'final',  tgt.value = true &quot;final-cheb10s2de06&quot;;\r\n        a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;notfound-cheb10s2de06&quot;;\r\n      } &quot;bdab9370&quot;;\r\n    } &quot;594fd043&quot;;\r\n  } &quot;cf6f5fac&quot;;\r\n}\r\n\r\ngroup cheobservationcheb10s2de07(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheb10s2de07&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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' &quot;code-cheb10s2de07&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src.item first as itm1 where linkId = 'cought_difficulty' then {\r\n    itm1.item first as item where (linkId = 'CHE.B10S2.DE07') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true -&gt;  tgt.status = 'final',  tgt.value = true &quot;final-cheb10s2de07&quot;;\r\n        a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;notfound-cheb10s2de07&quot;;\r\n      } &quot;bdab9370&quot;;\r\n    } &quot;725863c7&quot;;\r\n  } &quot;33638b4d&quot;;\r\n}\r\n\r\ngroup cheobservationcheb10s2de08(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheb10s2de08&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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' &quot;code-cheb10s2de08&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src.item first as itm1 where linkId = 'cought_difficulty' then {\r\n    itm1.item first as item where (linkId = 'CHE.B10S2.DE08') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val -&gt;  tgt.value = val,  tgt.status = 'final' &quot;afa0ccc0&quot;;\r\n      } &quot;d40466ff&quot;;\r\n    } &quot;7fc374e0&quot;;\r\n  } &quot;390bb223&quot;;\r\n}\r\n\r\ngroup cheobservationcheb10s2de09(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheb10s2de09&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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' &quot;code-cheb10s2de09&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src.item first as itm1 where linkId = 'cought_difficulty' then {\r\n    itm1.item first as item where (linkId = 'CHE.B10S2.DE09') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val then {\r\n          val where val.code = 'CHE.B10S2.DE09' -&gt;  tgt.status = 'final',  tgt.value = true &quot;92ce5bab&quot;;\r\n        } &quot;938e1cf7&quot;;\r\n      } &quot;eb220f01&quot;;\r\n    } &quot;39bc21fa&quot;;\r\n  } &quot;c96afa29&quot;;\r\n}\r\n\r\ngroup cheobservationcheb11s2de01(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheb11s2de01&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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' &quot;code-cheb11s2de01&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src.item first as item where (linkId = 'CHE.B11S2.DE01') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true -&gt;  tgt.status = 'final',  tgt.value = true &quot;final-cheb11s2de01&quot;;\r\n      a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;notfound-cheb11s2de01&quot;;\r\n    } &quot;bdab9370&quot;;\r\n  } &quot;a31aa2b6&quot;;\r\n}\r\n\r\ngroup cheobservationcheb11s2de02(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheb11s2de02&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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' &quot;code-cheb11s2de02&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src.item first as item where (linkId = 'CHE.B11S2.DE02') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'none' -&gt; tgt.status = 'cancelled' &quot;8ab1d7a5&quot;;\r\n        val where val.code != 'none' -&gt;  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' &quot;a1050460&quot;;\r\n      } &quot;4ca9082e&quot;;\r\n    } &quot;7c587a4b&quot;;\r\n  } &quot;ecb0a4ef&quot;;\r\n}\r\n\r\ngroup cheobservationcheb11s2de06(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheb11s2de06&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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' &quot;code-cheb11s2de06&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src.item first as item where (linkId = 'CHE.B11S2.DE06') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true -&gt;  tgt.status = 'final',  tgt.value = true &quot;final-cheb11s2de06&quot;;\r\n      a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;notfound-cheb11s2de06&quot;;\r\n    } &quot;bdab9370&quot;;\r\n  } &quot;06af4931&quot;;\r\n}\r\n\r\ngroup cheobservationcheb12s2de01(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheb12s2de01&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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' &quot;code-cheb12s2de01&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src.item first as item where (linkId = 'CHE.B12S2.DE01') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true -&gt;  tgt.status = 'final',  tgt.value = true &quot;final-cheb12s2de01&quot;;\r\n      a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;notfound-cheb12s2de01&quot;;\r\n    } &quot;bdab9370&quot;;\r\n  } &quot;10525414&quot;;\r\n}\r\n\r\ngroup cheobservationcheb12s2de02(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheb12s2de02&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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' &quot;code-cheb12s2de02&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src.item first as item where (linkId = 'CHE.B12S2.DE02') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true -&gt;  tgt.status = 'final',  tgt.value = true &quot;final-cheb12s2de02&quot;;\r\n      a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;notfound-cheb12s2de02&quot;;\r\n    } &quot;bdab9370&quot;;\r\n  } &quot;d589f606&quot;;\r\n}\r\n\r\ngroup cheobservationcheb12s2de03(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheb12s2de03&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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' &quot;code-cheb12s2de03&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src.item first as item where (linkId = 'CHE.B12S2.DE03') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true -&gt;  tgt.status = 'final',  tgt.value = true &quot;final-cheb12s2de03&quot;;\r\n      a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;notfound-cheb12s2de03&quot;;\r\n    } &quot;bdab9370&quot;;\r\n  } &quot;632d71c9&quot;;\r\n}\r\n\r\ngroup cheobservationcheb12s2de05(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheb12s2de05&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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' &quot;code-cheb12s2de05&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src.item first as item where (linkId = 'CHE.B12S2.DE05') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true -&gt;  tgt.status = 'final',  tgt.value = true &quot;final-cheb12s2de05&quot;;\r\n      a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;notfound-cheb12s2de05&quot;;\r\n    } &quot;bdab9370&quot;;\r\n  } &quot;71db10fc&quot;;\r\n}\r\n\r\ngroup cheobservationcheb13s2de01(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheb13s2de01&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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' &quot;code-cheb13s2de01&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src.item first as item where (linkId = 'CHE.B13S2.DE01') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true -&gt;  tgt.status = 'final',  tgt.value = true &quot;final-cheb13s2de01&quot;;\r\n      a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;notfound-cheb13s2de01&quot;;\r\n    } &quot;bdab9370&quot;;\r\n  } &quot;d090e850&quot;;\r\n}\r\n\r\ngroup cheobservationcheb13s2de02(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheb13s2de02&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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' &quot;code-cheb13s2de02&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src.item first as item where (linkId = 'CHE.B13S2.DE02') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true -&gt;  tgt.status = 'final',  tgt.value = true &quot;final-cheb13s2de02&quot;;\r\n      a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;notfound-cheb13s2de02&quot;;\r\n    } &quot;bdab9370&quot;;\r\n  } &quot;316c78a3&quot;;\r\n}\r\n\r\ngroup cheobservationcheb13s2de03(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheb13s2de03&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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' &quot;code-cheb13s2de03&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src.item first as item where (linkId = 'CHE.B13S2.DE03') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'none' -&gt; tgt.status = 'cancelled' &quot;8ab1d7a5&quot;;\r\n        val where val.code != 'none' -&gt;  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' &quot;a1050460&quot;;\r\n      } &quot;4ca9082e&quot;;\r\n    } &quot;7c587a4b&quot;;\r\n  } &quot;9d66829c&quot;;\r\n}\r\n\r\ngroup cheobservationcheb14s2de01(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheb14s2de01&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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' &quot;code-cheb14s2de01&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src.item first as item where (linkId = 'CHE.B14S2.DE01') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true -&gt;  tgt.status = 'final',  tgt.value = true &quot;final-cheb14s2de01&quot;;\r\n      a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;notfound-cheb14s2de01&quot;;\r\n    } &quot;bdab9370&quot;;\r\n  } &quot;4e097293&quot;;\r\n}\r\n\r\ngroup cheobservationcheb14s2de02(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheb14s2de02&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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' &quot;code-cheb14s2de02&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src.item first as item where (linkId = 'CHE.B14S2.DE02') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true -&gt;  tgt.status = 'final',  tgt.value = true &quot;final-cheb14s2de02&quot;;\r\n      a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;notfound-cheb14s2de02&quot;;\r\n    } &quot;bdab9370&quot;;\r\n  } &quot;52ed8da2&quot;;\r\n}\r\n\r\ngroup cheobservationcheb14s2de03(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheb14s2de03&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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' &quot;code-cheb14s2de03&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src.item first as item where (linkId = 'CHE.B14S2.DE03') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true -&gt;  tgt.status = 'final',  tgt.value = true &quot;final-cheb14s2de03&quot;;\r\n      a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;notfound-cheb14s2de03&quot;;\r\n    } &quot;bdab9370&quot;;\r\n  } &quot;bb2fbd60&quot;;\r\n}\r\n\r\ngroup cheobservationcheb14s2de04(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheb14s2de04&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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' &quot;code-cheb14s2de04&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src.item first as item where (linkId = 'CHE.B14S2.DE04') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true -&gt;  tgt.status = 'final',  tgt.value = true &quot;final-cheb14s2de04&quot;;\r\n      a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;notfound-cheb14s2de04&quot;;\r\n    } &quot;bdab9370&quot;;\r\n  } &quot;05ad93a6&quot;;\r\n}\r\n\r\ngroup cheobservationcheb14s2de05(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheb14s2de05&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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' &quot;code-cheb14s2de05&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src.item first as item where (linkId = 'CHE.B14S2.DE05') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true -&gt;  tgt.status = 'final',  tgt.value = true &quot;final-cheb14s2de05&quot;;\r\n      a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;notfound-cheb14s2de05&quot;;\r\n    } &quot;bdab9370&quot;;\r\n  } &quot;66401790&quot;;\r\n}\r\n\r\ngroup cheobservationcheb14s2de07t(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheobservationcheb14s2de07t&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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' &quot;code-cheobservationcheb14s2de07t&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src -&gt;  tgt.status = 'final',  tgt.value = true &quot;e9d639e1&quot;;\r\n}\r\n\r\ngroup cheobservationcheb14s2de07f(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheobservationcheb14s2de07f&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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' &quot;code-cheobservationcheb14s2de07f&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;f21d6e36&quot;;\r\n}\r\n\r\ngroup cheobservationcheb14s2de08t(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheobservationcheb14s2de08t&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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' &quot;code-cheobservationcheb14s2de08t&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src -&gt;  tgt.status = 'final',  tgt.value = true &quot;e9d639e1&quot;;\r\n}\r\n\r\ngroup cheobservationcheb14s2de08f(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheobservationcheb14s2de08f&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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' &quot;code-cheobservationcheb14s2de08f&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;f21d6e36&quot;;\r\n}\r\n\r\ngroup cheobservationcheb14s2de09t(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheobservationcheb14s2de09t&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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' &quot;code-cheobservationcheb14s2de09t&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src -&gt;  tgt.status = 'final',  tgt.value = true &quot;e9d639e1&quot;;\r\n}\r\n\r\ngroup cheobservationcheb14s2de09f(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheobservationcheb14s2de09f&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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' &quot;code-cheobservationcheb14s2de09f&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;f21d6e36&quot;;\r\n}\r\n\r\ngroup cheobservationcheb14s2de10(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheb14s2de10&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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' &quot;code-cheb14s2de10&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src.item first as item where (linkId = 'CHE.B14S2.DE10') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true -&gt;  tgt.status = 'final',  tgt.value = true &quot;final-cheb14s2de10&quot;;\r\n      a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;notfound-cheb14s2de10&quot;;\r\n    } &quot;bdab9370&quot;;\r\n  } &quot;45094cde&quot;;\r\n}\r\n\r\ngroup cheobservationcheb14s2de11(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheb14s2de11&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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' &quot;code-cheb14s2de11&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src.item first as item where (linkId = 'CHE.B14S2.DE11') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true -&gt;  tgt.status = 'final',  tgt.value = true &quot;final-cheb14s2de11&quot;;\r\n      a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;notfound-cheb14s2de11&quot;;\r\n    } &quot;bdab9370&quot;;\r\n  } &quot;3ff0fc37&quot;;\r\n}\r\n\r\ngroup cheobservationcheb14s2de11a(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheb14s2de11a&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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' &quot;code-cheb14s2de11a&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src.item first as item where (linkId = 'CHE.B14S2.DE11A') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true -&gt;  tgt.status = 'final',  tgt.value = true &quot;final-cheb14s2de11a&quot;;\r\n      a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;notfound-cheb14s2de11a&quot;;\r\n    } &quot;bdab9370&quot;;\r\n  } &quot;84d53423&quot;;\r\n}\r\n\r\ngroup cheobservationcheb14s2de012(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheb14s2de012&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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' &quot;code-cheb14s2de012&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src.item first as item where (linkId = 'CHE.B14S2.DE012') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true -&gt;  tgt.status = 'final',  tgt.value = true &quot;final-cheb14s2de012&quot;;\r\n      a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;notfound-cheb14s2de012&quot;;\r\n    } &quot;bdab9370&quot;;\r\n  } &quot;62463681&quot;;\r\n}\r\n\r\ngroup cheobservationcheb14s2de14(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheb14s2de14&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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' &quot;code-cheb14s2de14&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n    itm1.item first as item where (linkId = 'CHE.B14S2.DE14') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true -&gt;  tgt.status = 'final',  tgt.value = true &quot;final-cheb14s2de14&quot;;\r\n        a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;notfound-cheb14s2de14&quot;;\r\n      } &quot;bdab9370&quot;;\r\n    } &quot;5af19059&quot;;\r\n  } &quot;2006dfba&quot;;\r\n}\r\n\r\ngroup cheobservationcheb14s2de15(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheb14s2de15&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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' &quot;code-cheb14s2de15&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n    itm1.item first as item where (linkId = 'CHE.B14S2.DE15') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true -&gt;  tgt.status = 'final',  tgt.value = true &quot;final-cheb14s2de15&quot;;\r\n        a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;notfound-cheb14s2de15&quot;;\r\n      } &quot;bdab9370&quot;;\r\n    } &quot;39218419&quot;;\r\n  } &quot;a57c496c&quot;;\r\n}\r\n\r\ngroup cheobservationcheb14s2de16(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheb14s2de16&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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' &quot;code-cheb14s2de16&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n    itm1.item first as item where (linkId = 'CHE.B14S2.DE16') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true -&gt;  tgt.status = 'final',  tgt.value = true &quot;final-cheb14s2de16&quot;;\r\n        a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;notfound-cheb14s2de16&quot;;\r\n      } &quot;bdab9370&quot;;\r\n    } &quot;450cff64&quot;;\r\n  } &quot;0722a638&quot;;\r\n}\r\n\r\ngroup cheobservationcheb14s2de17(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheb14s2de17&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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' &quot;code-cheb14s2de17&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n    itm1.item first as item where (linkId = 'CHE.B14S2.DE17') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true -&gt;  tgt.status = 'final',  tgt.value = true &quot;final-cheb14s2de17&quot;;\r\n        a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;notfound-cheb14s2de17&quot;;\r\n      } &quot;bdab9370&quot;;\r\n    } &quot;897dc3be&quot;;\r\n  } &quot;1909815c&quot;;\r\n}\r\n\r\ngroup cheobservationcheb14s2de19(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheb14s2de19&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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' &quot;code-cheb14s2de19&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n    itm1.item first as item where (linkId = 'CHE.B14S2.DE19') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true -&gt;  tgt.status = 'final',  tgt.value = true &quot;final-cheb14s2de19&quot;;\r\n        a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;notfound-cheb14s2de19&quot;;\r\n      } &quot;bdab9370&quot;;\r\n    } &quot;f72f1788&quot;;\r\n  } &quot;8ca1952a&quot;;\r\n}\r\n\r\ngroup cheobservationcheb14s2de20(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheb14s2de20&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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' &quot;code-cheb14s2de20&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n    itm1.item first as item where (linkId = 'CHE.B14S2.DE20') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true -&gt;  tgt.status = 'final',  tgt.value = true &quot;final-cheb14s2de20&quot;;\r\n        a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;notfound-cheb14s2de20&quot;;\r\n      } &quot;bdab9370&quot;;\r\n    } &quot;4a2edb0e&quot;;\r\n  } &quot;923e59ee&quot;;\r\n}\r\n\r\ngroup cheobservationcheb14s2de23(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheb14s2de23&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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' &quot;code-cheb14s2de23&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n    itm1.item first as item where (linkId = 'CHE.B14S2.DE23') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true -&gt;  tgt.status = 'final',  tgt.value = true &quot;final-cheb14s2de23&quot;;\r\n        a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;notfound-cheb14s2de23&quot;;\r\n      } &quot;bdab9370&quot;;\r\n    } &quot;608a4005&quot;;\r\n  } &quot;13801842&quot;;\r\n}\r\n\r\ngroup cheobservationcheb14s2de24(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheb14s2de24&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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' &quot;code-cheb14s2de24&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n    itm1.item first as item where (linkId = 'CHE.B14S2.DE24') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true -&gt;  tgt.status = 'final',  tgt.value = true &quot;final-cheb14s2de24&quot;;\r\n        a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;notfound-cheb14s2de24&quot;;\r\n      } &quot;bdab9370&quot;;\r\n    } &quot;25c8bf22&quot;;\r\n  } &quot;60767175&quot;;\r\n}\r\n\r\ngroup cheobservationcheb14s2de25(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheb14s2de25&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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' &quot;code-cheb14s2de25&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n    itm1.item first as item where (linkId = 'CHE.B14S2.DE25') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true -&gt;  tgt.status = 'final',  tgt.value = true &quot;final-cheb14s2de25&quot;;\r\n        a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;notfound-cheb14s2de25&quot;;\r\n      } &quot;bdab9370&quot;;\r\n    } &quot;db85fa52&quot;;\r\n  } &quot;3c40004e&quot;;\r\n}\r\n\r\ngroup cheobservationcheb14s2de26cheb14s2de27t(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheobservationcheb14s2de26cheb14s2de27t&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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&amp;CHE.B14S2.DE27' &quot;code-cheobservationcheb14s2de26cheb14s2de27t&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src -&gt;  tgt.status = 'final',  tgt.value = true &quot;e9d639e1&quot;;\r\n}\r\n\r\ngroup cheobservationcheb14s2de26cheb14s2de27f(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheobservationcheb14s2de26cheb14s2de27f&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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&amp;CHE.B14S2.DE27' &quot;code-cheobservationcheb14s2de26cheb14s2de27f&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;f21d6e36&quot;;\r\n}\r\n\r\ngroup cheobservationcheb14s2de26cheb14s2de28t(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheobservationcheb14s2de26cheb14s2de28t&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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&amp;CHE.B14S2.DE28' &quot;code-cheobservationcheb14s2de26cheb14s2de28t&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src -&gt;  tgt.status = 'final',  tgt.value = true &quot;e9d639e1&quot;;\r\n}\r\n\r\ngroup cheobservationcheb14s2de26cheb14s2de28f(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheobservationcheb14s2de26cheb14s2de28f&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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&amp;CHE.B14S2.DE28' &quot;code-cheobservationcheb14s2de26cheb14s2de28f&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;f21d6e36&quot;;\r\n}\r\n\r\ngroup cheobservationcheb14s2de26cheb14s2de29t(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheobservationcheb14s2de26cheb14s2de29t&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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&amp;CHE.B14S2.DE29' &quot;code-cheobservationcheb14s2de26cheb14s2de29t&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src -&gt;  tgt.status = 'final',  tgt.value = true &quot;e9d639e1&quot;;\r\n}\r\n\r\ngroup cheobservationcheb14s2de26cheb14s2de29f(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheobservationcheb14s2de26cheb14s2de29f&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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&amp;CHE.B14S2.DE29' &quot;code-cheobservationcheb14s2de26cheb14s2de29f&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;f21d6e36&quot;;\r\n}\r\n\r\ngroup cheobservationcheb14s2de26cheb14s2de30t(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheobservationcheb14s2de26cheb14s2de30t&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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&amp;CHE.B14S2.DE30' &quot;code-cheobservationcheb14s2de26cheb14s2de30t&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src -&gt;  tgt.status = 'final',  tgt.value = true &quot;e9d639e1&quot;;\r\n}\r\n\r\ngroup cheobservationcheb14s2de26cheb14s2de30f(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheobservationcheb14s2de26cheb14s2de30f&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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&amp;CHE.B14S2.DE30' &quot;code-cheobservationcheb14s2de26cheb14s2de30f&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;f21d6e36&quot;;\r\n}\r\n\r\ngroup cheobservationcheb14s2de26cheb14s2de30at(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheobservationcheb14s2de26cheb14s2de30at&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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&amp;CHE.B14S2.DE30a' &quot;code-cheobservationcheb14s2de26cheb14s2de30at&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src -&gt;  tgt.status = 'final',  tgt.value = true &quot;e9d639e1&quot;;\r\n}\r\n\r\ngroup cheobservationcheb14s2de26cheb14s2de30af(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheobservationcheb14s2de26cheb14s2de30af&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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&amp;CHE.B14S2.DE30a' &quot;code-cheobservationcheb14s2de26cheb14s2de30af&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;f21d6e36&quot;;\r\n}\r\n\r\ngroup cheobservationcheb14s2de31(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheb14s2de31&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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' &quot;code-cheb14s2de31&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n    itm1.item first as item where (linkId = 'CHE.B14S2.DE31') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true -&gt;  tgt.status = 'final',  tgt.value = true &quot;final-cheb14s2de31&quot;;\r\n        a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;notfound-cheb14s2de31&quot;;\r\n      } &quot;bdab9370&quot;;\r\n    } &quot;055fc452&quot;;\r\n  } &quot;aa637ba6&quot;;\r\n}\r\n\r\ngroup cheobservationcheb14s2de32(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheb14s2de32&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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' &quot;code-cheb14s2de32&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n    itm1.item first as item where (linkId = 'CHE.B14S2.DE32') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true -&gt;  tgt.status = 'final',  tgt.value = true &quot;final-cheb14s2de32&quot;;\r\n        a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;notfound-cheb14s2de32&quot;;\r\n      } &quot;bdab9370&quot;;\r\n    } &quot;17a0f55a&quot;;\r\n  } &quot;c083af79&quot;;\r\n}\r\n\r\ngroup cheobservationcheb14s2de33(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheb14s2de33&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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' &quot;code-cheb14s2de33&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n    itm1.item first as item where (linkId = 'CHE.B14S2.DE33') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true -&gt;  tgt.status = 'final',  tgt.value = true &quot;final-cheb14s2de33&quot;;\r\n        a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;notfound-cheb14s2de33&quot;;\r\n      } &quot;bdab9370&quot;;\r\n    } &quot;e4745a04&quot;;\r\n  } &quot;4e4788c5&quot;;\r\n}\r\n\r\ngroup cheobservationcheb14s2de34(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheb14s2de34&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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' &quot;code-cheb14s2de34&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n    itm1.item first as item where (linkId = 'CHE.B14S2.DE34') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true -&gt;  tgt.status = 'final',  tgt.value = true &quot;final-cheb14s2de34&quot;;\r\n        a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;notfound-cheb14s2de34&quot;;\r\n      } &quot;bdab9370&quot;;\r\n    } &quot;de0bbf97&quot;;\r\n  } &quot;5cd616a6&quot;;\r\n}\r\n\r\ngroup cheobservationcheb14s2de35(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheb14s2de35&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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' &quot;code-cheb14s2de35&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n    itm1.item first as item where (linkId = 'CHE.B14S2.DE35') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true -&gt;  tgt.status = 'final',  tgt.value = true &quot;final-cheb14s2de35&quot;;\r\n        a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;notfound-cheb14s2de35&quot;;\r\n      } &quot;bdab9370&quot;;\r\n    } &quot;638d4331&quot;;\r\n  } &quot;f58c353f&quot;;\r\n}\r\n\r\ngroup cheobservationcheb14s2de36(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheb14s2de36&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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' &quot;code-cheb14s2de36&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n    itm1.item first as item where (linkId = 'CHE.B14S2.DE36') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true -&gt;  tgt.status = 'final',  tgt.value = true &quot;final-cheb14s2de36&quot;;\r\n        a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;notfound-cheb14s2de36&quot;;\r\n      } &quot;bdab9370&quot;;\r\n    } &quot;cbbe5815&quot;;\r\n  } &quot;0936cbf6&quot;;\r\n}\r\n\r\ngroup cheobservationcheb14s2de37(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheb14s2de37&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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' &quot;code-cheb14s2de37&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src.item first as itm1 where linkId = 'CHE.B14S2.DE13' then {\r\n    itm1.item first as item where (linkId = 'CHE.B14S2.DE37') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a where a.value = true -&gt;  tgt.status = 'final',  tgt.value = true &quot;final-cheb14s2de37&quot;;\r\n        a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;notfound-cheb14s2de37&quot;;\r\n      } &quot;bdab9370&quot;;\r\n    } &quot;b86995dc&quot;;\r\n  } &quot;5682102f&quot;;\r\n}\r\n\r\ngroup cheobservationcheb14s2de44(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheb14s2de44&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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' &quot;code-cheb14s2de44&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src.item first as itm1 where linkId = 'CHE.B14S2.DE43' then {\r\n    itm1.item first as item where (linkId = 'CHE.B14S2.DE44') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val then {\r\n          val where val.code = 'CHE.B14S2.DE44' -&gt;  tgt.status = 'final',  tgt.value = true &quot;0b6db5a4&quot;;\r\n        } &quot;0179b73a&quot;;\r\n      } &quot;6e03d90e&quot;;\r\n    } &quot;bf7248e5&quot;;\r\n  } &quot;53079171&quot;;\r\n}\r\n\r\ngroup cheobservationcheb14s2de45(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheb14s2de45&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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' &quot;code-cheb14s2de45&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src.item first as itm1 where linkId = 'CHE.B14S2.DE43' then {\r\n    itm1.item first as item where (linkId = 'CHE.B14S2.DE45') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val then {\r\n          val where val.code = 'CHE.B14S2.DE45' -&gt;  tgt.status = 'final',  tgt.value = true &quot;e757280e&quot;;\r\n        } &quot;cfa88a12&quot;;\r\n      } &quot;474bfa7e&quot;;\r\n    } &quot;dc5a7e6f&quot;;\r\n  } &quot;28d2f74b&quot;;\r\n}\r\n\r\ngroup cheobservationcheb14s2de46(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheb14s2de46&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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' &quot;code-cheb14s2de46&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src.item first as itm1 where linkId = 'CHE.B14S2.DE43' then {\r\n    itm1.item first as item where (linkId = 'CHE.B14S2.DE46') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val then {\r\n          val where val.code = 'CHE.B14S2.DE46' -&gt;  tgt.status = 'final',  tgt.value = true &quot;6174d2b1&quot;;\r\n        } &quot;b8a53423&quot;;\r\n      } &quot;674b3d37&quot;;\r\n    } &quot;20c182dd&quot;;\r\n  } &quot;2a5bd70e&quot;;\r\n}\r\n\r\ngroup cheobservationcheb14s2de39t(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheobservationcheb14s2de39t&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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' &quot;code-cheobservationcheb14s2de39t&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src -&gt;  tgt.status = 'final',  tgt.value = true &quot;e9d639e1&quot;;\r\n}\r\n\r\ngroup cheobservationcheb14s2de39f(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheobservationcheb14s2de39f&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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' &quot;code-cheobservationcheb14s2de39f&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;f21d6e36&quot;;\r\n}\r\n\r\ngroup cheobservationcheb14s2de40t(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheobservationcheb14s2de40t&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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' &quot;code-cheobservationcheb14s2de40t&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src -&gt;  tgt.status = 'final',  tgt.value = true &quot;e9d639e1&quot;;\r\n}\r\n\r\ngroup cheobservationcheb14s2de40f(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheobservationcheb14s2de40f&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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' &quot;code-cheobservationcheb14s2de40f&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;f21d6e36&quot;;\r\n}\r\n\r\ngroup cheobservationcheb14s2de41t(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheobservationcheb14s2de41t&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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' &quot;code-cheobservationcheb14s2de41t&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src -&gt;  tgt.status = 'final',  tgt.value = true &quot;e9d639e1&quot;;\r\n}\r\n\r\ngroup cheobservationcheb14s2de41f(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheobservationcheb14s2de41f&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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' &quot;code-cheobservationcheb14s2de41f&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;f21d6e36&quot;;\r\n}\r\n\r\ngroup cheobservationcheb14s2de42t(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheobservationcheb14s2de42t&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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' &quot;code-cheobservationcheb14s2de42t&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src -&gt;  tgt.status = 'final',  tgt.value = true &quot;e9d639e1&quot;;\r\n}\r\n\r\ngroup cheobservationcheb14s2de42f(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheobservationcheb14s2de42f&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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' &quot;code-cheobservationcheb14s2de42f&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;f21d6e36&quot;;\r\n}\r\n\r\ngroup cheobservationcheb15s2de01(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheb15s2de01&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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' &quot;code-cheb15s2de01&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src.item first as item where (linkId = 'CHE.B15S2.DE01') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'none' -&gt; tgt.status = 'cancelled' &quot;8ab1d7a5&quot;;\r\n        val where val.code != 'none' -&gt;  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' &quot;a1050460&quot;;\r\n      } &quot;4ca9082e&quot;;\r\n    } &quot;7c587a4b&quot;;\r\n  } &quot;c368427f&quot;;\r\n}\r\n\r\ngroup cheobservationcheb15s2de05(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheb15s2de05&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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' &quot;code-cheb15s2de05&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src.item first as item where (linkId = 'CHE.B15S2.DE05') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val then {\r\n        val where val.code = 'none' -&gt; tgt.status = 'cancelled' &quot;8ab1d7a5&quot;;\r\n        val where val.code != 'none' -&gt;  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' &quot;a1050460&quot;;\r\n      } &quot;4ca9082e&quot;;\r\n    } &quot;7c587a4b&quot;;\r\n  } &quot;6f2995df&quot;;\r\n}\r\n\r\ngroup cheobservationcheb16s2de01(source src, target tgt) {\r\n  src -&gt;  tgt.identifier = create('Identifier') as CodeID,  CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type',  CodeID.use = 'official',  CodeID.value = 'uuid',  CodeID.id = uuid() &quot;id-cheb16s2de01&quot;;\r\n  src.encounter as encounter -&gt; tgt.encounter = encounter &quot;35bc6b82&quot;;\r\n  src.subject as subject -&gt;  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' &quot;code-cheb16s2de01&quot;;\r\n  src.item as itemtimestamp where linkId = 'timestamp' then {\r\n    itemtimestamp.answer first as atimestamp then {\r\n      atimestamp.value as val -&gt; tgt.issued = val &quot;5af77f2c&quot;;\r\n    } &quot;7f22f29f&quot;;\r\n  } &quot;aae7a11d&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;patient&quot;;\r\n  src.item first as item where (linkId = 'CHE.B16S2.DE01') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a where a.value = true -&gt;  tgt.status = 'final',  tgt.value = true &quot;final-cheb16s2de01&quot;;\r\n      a where a.value = false -&gt;  tgt.status = 'cancelled',  tgt.value = false &quot;notfound-cheb16s2de01&quot;;\r\n    } &quot;bdab9370&quot;;\r\n  } &quot;864949e9&quot;;\r\n}\r\n\r\n</pre></div>"
  },
  "url" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/che.b10-16.signs.2m.p",
  "version" : "0.1.0",
  "name" : "che.b10-16.signs.2m.p",
  "status" : "active",
  "date" : "2023-10-04T12:32:21+00:00",
  "publisher" : "WHO",
  "contact" : [
    {
      "name" : "WHO",
      "telecom" : [
        {
          "system" : "url",
          "value" : "http://who.int"
        }
      ]
    }
  ],
  "structure" : [
    {
      "url" : "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse",
      "mode" : "source",
      "alias" : "'questionnaireResponse'"
    },
    {
      "url" : "http://hl7.org/fhir/StructureDefinition/Bundle",
      "mode" : "target",
      "alias" : "'Bundle'"
    },
    {
      "url" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/observation",
      "mode" : "target",
      "alias" : "'Observation'"
    },
    {
      "url" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation",
      "mode" : "produced",
      "alias" : "'CHE Observation'"
    }
  ],
  "group" : [
    {
      "name" : "bundletrans",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "type" : "questionnaireResponse",
          "mode" : "source"
        },
        {
          "name" : "bundle",
          "type" : "Bundle",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "bundle",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "type",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "bundle",
              "contextType" : "variable",
              "element" : "type",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "batch"
                }
              ]
            }
          ]
        },
        {
          "name" : "e5d16814",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "itm1",
              "condition" : "linkId = 'cought_difficulty'"
            }
          ],
          "rule" : [
            {
              "name" : "fc59465c",
              "source" : [
                {
                  "context" : "itm1",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'CHE.B10S2.DE03') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "ccc7345c",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "bundle",
                      "contextType" : "variable",
                      "element" : "entry",
                      "variable" : "entry"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "b50ac4c5",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "request",
                          "variable" : "request"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "method",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "POST"
                            }
                          ]
                        },
                        {
                          "contextType" : "variable",
                          "variable" : "uuid",
                          "transform" : "uuid"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "url",
                          "transform" : "append",
                          "parameter" : [
                            {
                              "valueString" : "/Observation/"
                            },
                            {
                              "valueId" : "uuid"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "e4e82dc3",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "resource",
                          "variable" : "tgt",
                          "transform" : "create",
                          "parameter" : [
                            {
                              "valueString" : "Observation"
                            }
                          ]
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "a3121769",
                          "source" : [
                            {
                              "context" : "src"
                            }
                          ],
                          "target" : [
                            {
                              "contextType" : "variable",
                              "transform" : "copy",
                              "parameter" : [
                                {
                                  "valueId" : "tgt"
                                }
                              ]
                            }
                          ],
                          "dependent" : [
                            {
                              "name" : "cheobservationcheb10s2de03",
                              "variable" : [
                                "src",
                                "tgt"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "4d4fa5b7",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "itm1",
              "condition" : "linkId = 'cought_difficulty'"
            }
          ],
          "rule" : [
            {
              "name" : "bb5f6628",
              "source" : [
                {
                  "context" : "itm1",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'CHE.B10S2.DE04') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "4d708b4e",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "bundle",
                      "contextType" : "variable",
                      "element" : "entry",
                      "variable" : "entry"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "b50ac4c5",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "request",
                          "variable" : "request"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "method",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "POST"
                            }
                          ]
                        },
                        {
                          "contextType" : "variable",
                          "variable" : "uuid",
                          "transform" : "uuid"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "url",
                          "transform" : "append",
                          "parameter" : [
                            {
                              "valueString" : "/Observation/"
                            },
                            {
                              "valueId" : "uuid"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "1e206187",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "resource",
                          "variable" : "tgt",
                          "transform" : "create",
                          "parameter" : [
                            {
                              "valueString" : "Observation"
                            }
                          ]
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "12726a73",
                          "source" : [
                            {
                              "context" : "src"
                            }
                          ],
                          "target" : [
                            {
                              "contextType" : "variable",
                              "transform" : "copy",
                              "parameter" : [
                                {
                                  "valueId" : "tgt"
                                }
                              ]
                            }
                          ],
                          "dependent" : [
                            {
                              "name" : "cheobservationcheb10s2de04",
                              "variable" : [
                                "src",
                                "tgt"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "c3f24b2e",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "itm1",
              "condition" : "linkId = 'cought_difficulty'"
            }
          ],
          "rule" : [
            {
              "name" : "9820da17",
              "source" : [
                {
                  "context" : "itm1",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'CHE.B10S2.DE05') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "e837b337",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "bundle",
                      "contextType" : "variable",
                      "element" : "entry",
                      "variable" : "entry"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "b50ac4c5",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "request",
                          "variable" : "request"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "method",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "POST"
                            }
                          ]
                        },
                        {
                          "contextType" : "variable",
                          "variable" : "uuid",
                          "transform" : "uuid"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "url",
                          "transform" : "append",
                          "parameter" : [
                            {
                              "valueString" : "/Observation/"
                            },
                            {
                              "valueId" : "uuid"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "0aeccb4c",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "resource",
                          "variable" : "tgt",
                          "transform" : "create",
                          "parameter" : [
                            {
                              "valueString" : "Observation"
                            }
                          ]
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "4b9c9224",
                          "source" : [
                            {
                              "context" : "src"
                            }
                          ],
                          "target" : [
                            {
                              "contextType" : "variable",
                              "transform" : "copy",
                              "parameter" : [
                                {
                                  "valueId" : "tgt"
                                }
                              ]
                            }
                          ],
                          "dependent" : [
                            {
                              "name" : "cheobservationcheb10s2de05",
                              "variable" : [
                                "src",
                                "tgt"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "4ab9192b",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "itm1",
              "condition" : "linkId = 'cought_difficulty'"
            }
          ],
          "rule" : [
            {
              "name" : "cdc5f28e",
              "source" : [
                {
                  "context" : "itm1",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'CHE.B10S2.DE06') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "25285fbe",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "bundle",
                      "contextType" : "variable",
                      "element" : "entry",
                      "variable" : "entry"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "b50ac4c5",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "request",
                          "variable" : "request"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "method",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "POST"
                            }
                          ]
                        },
                        {
                          "contextType" : "variable",
                          "variable" : "uuid",
                          "transform" : "uuid"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "url",
                          "transform" : "append",
                          "parameter" : [
                            {
                              "valueString" : "/Observation/"
                            },
                            {
                              "valueId" : "uuid"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "57a50c8d",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "resource",
                          "variable" : "tgt",
                          "transform" : "create",
                          "parameter" : [
                            {
                              "valueString" : "Observation"
                            }
                          ]
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "ab109b3b",
                          "source" : [
                            {
                              "context" : "src"
                            }
                          ],
                          "target" : [
                            {
                              "contextType" : "variable",
                              "transform" : "copy",
                              "parameter" : [
                                {
                                  "valueId" : "tgt"
                                }
                              ]
                            }
                          ],
                          "dependent" : [
                            {
                              "name" : "cheobservationcheb10s2de06",
                              "variable" : [
                                "src",
                                "tgt"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "92e71e71",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "itm1",
              "condition" : "linkId = 'cought_difficulty'"
            }
          ],
          "rule" : [
            {
              "name" : "2a324f43",
              "source" : [
                {
                  "context" : "itm1",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'CHE.B10S2.DE07') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "5ec854e1",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "bundle",
                      "contextType" : "variable",
                      "element" : "entry",
                      "variable" : "entry"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "b50ac4c5",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "request",
                          "variable" : "request"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "method",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "POST"
                            }
                          ]
                        },
                        {
                          "contextType" : "variable",
                          "variable" : "uuid",
                          "transform" : "uuid"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "url",
                          "transform" : "append",
                          "parameter" : [
                            {
                              "valueString" : "/Observation/"
                            },
                            {
                              "valueId" : "uuid"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "a13863d4",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "resource",
                          "variable" : "tgt",
                          "transform" : "create",
                          "parameter" : [
                            {
                              "valueString" : "Observation"
                            }
                          ]
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "6a6e462c",
                          "source" : [
                            {
                              "context" : "src"
                            }
                          ],
                          "target" : [
                            {
                              "contextType" : "variable",
                              "transform" : "copy",
                              "parameter" : [
                                {
                                  "valueId" : "tgt"
                                }
                              ]
                            }
                          ],
                          "dependent" : [
                            {
                              "name" : "cheobservationcheb10s2de07",
                              "variable" : [
                                "src",
                                "tgt"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "aabb7fda",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "itm1",
              "condition" : "linkId = 'cought_difficulty'"
            }
          ],
          "rule" : [
            {
              "name" : "7dd85f19",
              "source" : [
                {
                  "context" : "itm1",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'CHE.B10S2.DE08') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "60edbce0",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "bundle",
                      "contextType" : "variable",
                      "element" : "entry",
                      "variable" : "entry"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "b50ac4c5",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "request",
                          "variable" : "request"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "method",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "POST"
                            }
                          ]
                        },
                        {
                          "contextType" : "variable",
                          "variable" : "uuid",
                          "transform" : "uuid"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "url",
                          "transform" : "append",
                          "parameter" : [
                            {
                              "valueString" : "/Observation/"
                            },
                            {
                              "valueId" : "uuid"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "d48930cc",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "resource",
                          "variable" : "tgt",
                          "transform" : "create",
                          "parameter" : [
                            {
                              "valueString" : "Observation"
                            }
                          ]
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "95d2cc63",
                          "source" : [
                            {
                              "context" : "src"
                            }
                          ],
                          "target" : [
                            {
                              "contextType" : "variable",
                              "transform" : "copy",
                              "parameter" : [
                                {
                                  "valueId" : "tgt"
                                }
                              ]
                            }
                          ],
                          "dependent" : [
                            {
                              "name" : "cheobservationcheb10s2de08",
                              "variable" : [
                                "src",
                                "tgt"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "b48899e4",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "itm1",
              "condition" : "linkId = 'cought_difficulty'"
            }
          ],
          "rule" : [
            {
              "name" : "34886c11",
              "source" : [
                {
                  "context" : "itm1",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'CHE.B10S2.DE09') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "584bb51b",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "bundle",
                      "contextType" : "variable",
                      "element" : "entry",
                      "variable" : "entry"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "b50ac4c5",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "request",
                          "variable" : "request"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "method",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "POST"
                            }
                          ]
                        },
                        {
                          "contextType" : "variable",
                          "variable" : "uuid",
                          "transform" : "uuid"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "url",
                          "transform" : "append",
                          "parameter" : [
                            {
                              "valueString" : "/Observation/"
                            },
                            {
                              "valueId" : "uuid"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "0f63b370",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "resource",
                          "variable" : "tgt",
                          "transform" : "create",
                          "parameter" : [
                            {
                              "valueString" : "Observation"
                            }
                          ]
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "56e0c618",
                          "source" : [
                            {
                              "context" : "src"
                            }
                          ],
                          "target" : [
                            {
                              "contextType" : "variable",
                              "transform" : "copy",
                              "parameter" : [
                                {
                                  "valueId" : "tgt"
                                }
                              ]
                            }
                          ],
                          "dependent" : [
                            {
                              "name" : "cheobservationcheb10s2de09",
                              "variable" : [
                                "src",
                                "tgt"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "196805dd",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "item",
              "condition" : "(linkId = 'CHE.B11S2.DE01') and answer.exists()"
            }
          ],
          "rule" : [
            {
              "name" : "12706fb4",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "bundle",
                  "contextType" : "variable",
                  "element" : "entry",
                  "variable" : "entry"
                }
              ],
              "rule" : [
                {
                  "name" : "b50ac4c5",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "entry",
                      "contextType" : "variable",
                      "element" : "request",
                      "variable" : "request"
                    },
                    {
                      "context" : "request",
                      "contextType" : "variable",
                      "element" : "method",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "POST"
                        }
                      ]
                    },
                    {
                      "contextType" : "variable",
                      "variable" : "uuid",
                      "transform" : "uuid"
                    },
                    {
                      "context" : "request",
                      "contextType" : "variable",
                      "element" : "url",
                      "transform" : "append",
                      "parameter" : [
                        {
                          "valueString" : "/Observation/"
                        },
                        {
                          "valueId" : "uuid"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "b6f8c15d",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "entry",
                      "contextType" : "variable",
                      "element" : "resource",
                      "variable" : "tgt",
                      "transform" : "create",
                      "parameter" : [
                        {
                          "valueString" : "Observation"
                        }
                      ]
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "e78be8e9",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "contextType" : "variable",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueId" : "tgt"
                            }
                          ]
                        }
                      ],
                      "dependent" : [
                        {
                          "name" : "cheobservationcheb11s2de01",
                          "variable" : [
                            "src",
                            "tgt"
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "8f208c49",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "item",
              "condition" : "(linkId = 'CHE.B11S2.DE02') and answer.exists()"
            }
          ],
          "rule" : [
            {
              "name" : "d2a5739c",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "bundle",
                  "contextType" : "variable",
                  "element" : "entry",
                  "variable" : "entry"
                }
              ],
              "rule" : [
                {
                  "name" : "b50ac4c5",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "entry",
                      "contextType" : "variable",
                      "element" : "request",
                      "variable" : "request"
                    },
                    {
                      "context" : "request",
                      "contextType" : "variable",
                      "element" : "method",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "POST"
                        }
                      ]
                    },
                    {
                      "contextType" : "variable",
                      "variable" : "uuid",
                      "transform" : "uuid"
                    },
                    {
                      "context" : "request",
                      "contextType" : "variable",
                      "element" : "url",
                      "transform" : "append",
                      "parameter" : [
                        {
                          "valueString" : "/Observation/"
                        },
                        {
                          "valueId" : "uuid"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "864ab13a",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "entry",
                      "contextType" : "variable",
                      "element" : "resource",
                      "variable" : "tgt",
                      "transform" : "create",
                      "parameter" : [
                        {
                          "valueString" : "Observation"
                        }
                      ]
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "233f732a",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "contextType" : "variable",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueId" : "tgt"
                            }
                          ]
                        }
                      ],
                      "dependent" : [
                        {
                          "name" : "cheobservationcheb11s2de02",
                          "variable" : [
                            "src",
                            "tgt"
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "676c63aa",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "item",
              "condition" : "(linkId = 'CHE.B11S2.DE06') and answer.exists()"
            }
          ],
          "rule" : [
            {
              "name" : "6bf6b2e4",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "bundle",
                  "contextType" : "variable",
                  "element" : "entry",
                  "variable" : "entry"
                }
              ],
              "rule" : [
                {
                  "name" : "b50ac4c5",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "entry",
                      "contextType" : "variable",
                      "element" : "request",
                      "variable" : "request"
                    },
                    {
                      "context" : "request",
                      "contextType" : "variable",
                      "element" : "method",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "POST"
                        }
                      ]
                    },
                    {
                      "contextType" : "variable",
                      "variable" : "uuid",
                      "transform" : "uuid"
                    },
                    {
                      "context" : "request",
                      "contextType" : "variable",
                      "element" : "url",
                      "transform" : "append",
                      "parameter" : [
                        {
                          "valueString" : "/Observation/"
                        },
                        {
                          "valueId" : "uuid"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "143c44d0",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "entry",
                      "contextType" : "variable",
                      "element" : "resource",
                      "variable" : "tgt",
                      "transform" : "create",
                      "parameter" : [
                        {
                          "valueString" : "Observation"
                        }
                      ]
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "e8e15f56",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "contextType" : "variable",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueId" : "tgt"
                            }
                          ]
                        }
                      ],
                      "dependent" : [
                        {
                          "name" : "cheobservationcheb11s2de06",
                          "variable" : [
                            "src",
                            "tgt"
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "9a76cbc7",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "item",
              "condition" : "(linkId = 'CHE.B12S2.DE01') and answer.exists()"
            }
          ],
          "rule" : [
            {
              "name" : "ce58f29a",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "bundle",
                  "contextType" : "variable",
                  "element" : "entry",
                  "variable" : "entry"
                }
              ],
              "rule" : [
                {
                  "name" : "b50ac4c5",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "entry",
                      "contextType" : "variable",
                      "element" : "request",
                      "variable" : "request"
                    },
                    {
                      "context" : "request",
                      "contextType" : "variable",
                      "element" : "method",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "POST"
                        }
                      ]
                    },
                    {
                      "contextType" : "variable",
                      "variable" : "uuid",
                      "transform" : "uuid"
                    },
                    {
                      "context" : "request",
                      "contextType" : "variable",
                      "element" : "url",
                      "transform" : "append",
                      "parameter" : [
                        {
                          "valueString" : "/Observation/"
                        },
                        {
                          "valueId" : "uuid"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "bf07356f",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "entry",
                      "contextType" : "variable",
                      "element" : "resource",
                      "variable" : "tgt",
                      "transform" : "create",
                      "parameter" : [
                        {
                          "valueString" : "Observation"
                        }
                      ]
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "9135622f",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "contextType" : "variable",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueId" : "tgt"
                            }
                          ]
                        }
                      ],
                      "dependent" : [
                        {
                          "name" : "cheobservationcheb12s2de01",
                          "variable" : [
                            "src",
                            "tgt"
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "6c1ec8e7",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "item",
              "condition" : "(linkId = 'CHE.B12S2.DE02') and answer.exists()"
            }
          ],
          "rule" : [
            {
              "name" : "a824242a",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "bundle",
                  "contextType" : "variable",
                  "element" : "entry",
                  "variable" : "entry"
                }
              ],
              "rule" : [
                {
                  "name" : "b50ac4c5",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "entry",
                      "contextType" : "variable",
                      "element" : "request",
                      "variable" : "request"
                    },
                    {
                      "context" : "request",
                      "contextType" : "variable",
                      "element" : "method",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "POST"
                        }
                      ]
                    },
                    {
                      "contextType" : "variable",
                      "variable" : "uuid",
                      "transform" : "uuid"
                    },
                    {
                      "context" : "request",
                      "contextType" : "variable",
                      "element" : "url",
                      "transform" : "append",
                      "parameter" : [
                        {
                          "valueString" : "/Observation/"
                        },
                        {
                          "valueId" : "uuid"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "8ea6d745",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "entry",
                      "contextType" : "variable",
                      "element" : "resource",
                      "variable" : "tgt",
                      "transform" : "create",
                      "parameter" : [
                        {
                          "valueString" : "Observation"
                        }
                      ]
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "1b1bf04d",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "contextType" : "variable",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueId" : "tgt"
                            }
                          ]
                        }
                      ],
                      "dependent" : [
                        {
                          "name" : "cheobservationcheb12s2de02",
                          "variable" : [
                            "src",
                            "tgt"
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "a9e5d569",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "item",
              "condition" : "(linkId = 'CHE.B12S2.DE03') and answer.exists()"
            }
          ],
          "rule" : [
            {
              "name" : "058ccab8",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "bundle",
                  "contextType" : "variable",
                  "element" : "entry",
                  "variable" : "entry"
                }
              ],
              "rule" : [
                {
                  "name" : "b50ac4c5",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "entry",
                      "contextType" : "variable",
                      "element" : "request",
                      "variable" : "request"
                    },
                    {
                      "context" : "request",
                      "contextType" : "variable",
                      "element" : "method",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "POST"
                        }
                      ]
                    },
                    {
                      "contextType" : "variable",
                      "variable" : "uuid",
                      "transform" : "uuid"
                    },
                    {
                      "context" : "request",
                      "contextType" : "variable",
                      "element" : "url",
                      "transform" : "append",
                      "parameter" : [
                        {
                          "valueString" : "/Observation/"
                        },
                        {
                          "valueId" : "uuid"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "1553a24f",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "entry",
                      "contextType" : "variable",
                      "element" : "resource",
                      "variable" : "tgt",
                      "transform" : "create",
                      "parameter" : [
                        {
                          "valueString" : "Observation"
                        }
                      ]
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "81ee5a51",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "contextType" : "variable",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueId" : "tgt"
                            }
                          ]
                        }
                      ],
                      "dependent" : [
                        {
                          "name" : "cheobservationcheb12s2de03",
                          "variable" : [
                            "src",
                            "tgt"
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "fbc5f12a",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "item",
              "condition" : "(linkId = 'CHE.B12S2.DE05') and answer.exists()"
            }
          ],
          "rule" : [
            {
              "name" : "d94b4c6f",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "bundle",
                  "contextType" : "variable",
                  "element" : "entry",
                  "variable" : "entry"
                }
              ],
              "rule" : [
                {
                  "name" : "b50ac4c5",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "entry",
                      "contextType" : "variable",
                      "element" : "request",
                      "variable" : "request"
                    },
                    {
                      "context" : "request",
                      "contextType" : "variable",
                      "element" : "method",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "POST"
                        }
                      ]
                    },
                    {
                      "contextType" : "variable",
                      "variable" : "uuid",
                      "transform" : "uuid"
                    },
                    {
                      "context" : "request",
                      "contextType" : "variable",
                      "element" : "url",
                      "transform" : "append",
                      "parameter" : [
                        {
                          "valueString" : "/Observation/"
                        },
                        {
                          "valueId" : "uuid"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "9d30433e",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "entry",
                      "contextType" : "variable",
                      "element" : "resource",
                      "variable" : "tgt",
                      "transform" : "create",
                      "parameter" : [
                        {
                          "valueString" : "Observation"
                        }
                      ]
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "e35b2ce0",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "contextType" : "variable",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueId" : "tgt"
                            }
                          ]
                        }
                      ],
                      "dependent" : [
                        {
                          "name" : "cheobservationcheb12s2de05",
                          "variable" : [
                            "src",
                            "tgt"
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "f909293c",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "item",
              "condition" : "(linkId = 'CHE.B13S2.DE01') and answer.exists()"
            }
          ],
          "rule" : [
            {
              "name" : "7f824586",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "bundle",
                  "contextType" : "variable",
                  "element" : "entry",
                  "variable" : "entry"
                }
              ],
              "rule" : [
                {
                  "name" : "b50ac4c5",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "entry",
                      "contextType" : "variable",
                      "element" : "request",
                      "variable" : "request"
                    },
                    {
                      "context" : "request",
                      "contextType" : "variable",
                      "element" : "method",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "POST"
                        }
                      ]
                    },
                    {
                      "contextType" : "variable",
                      "variable" : "uuid",
                      "transform" : "uuid"
                    },
                    {
                      "context" : "request",
                      "contextType" : "variable",
                      "element" : "url",
                      "transform" : "append",
                      "parameter" : [
                        {
                          "valueString" : "/Observation/"
                        },
                        {
                          "valueId" : "uuid"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "65fe53f6",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "entry",
                      "contextType" : "variable",
                      "element" : "resource",
                      "variable" : "tgt",
                      "transform" : "create",
                      "parameter" : [
                        {
                          "valueString" : "Observation"
                        }
                      ]
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "a3dd6e3c",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "contextType" : "variable",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueId" : "tgt"
                            }
                          ]
                        }
                      ],
                      "dependent" : [
                        {
                          "name" : "cheobservationcheb13s2de01",
                          "variable" : [
                            "src",
                            "tgt"
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "4a1f0e05",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "item",
              "condition" : "(linkId = 'CHE.B13S2.DE02') and answer.exists()"
            }
          ],
          "rule" : [
            {
              "name" : "293fb33c",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "bundle",
                  "contextType" : "variable",
                  "element" : "entry",
                  "variable" : "entry"
                }
              ],
              "rule" : [
                {
                  "name" : "b50ac4c5",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "entry",
                      "contextType" : "variable",
                      "element" : "request",
                      "variable" : "request"
                    },
                    {
                      "context" : "request",
                      "contextType" : "variable",
                      "element" : "method",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "POST"
                        }
                      ]
                    },
                    {
                      "contextType" : "variable",
                      "variable" : "uuid",
                      "transform" : "uuid"
                    },
                    {
                      "context" : "request",
                      "contextType" : "variable",
                      "element" : "url",
                      "transform" : "append",
                      "parameter" : [
                        {
                          "valueString" : "/Observation/"
                        },
                        {
                          "valueId" : "uuid"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "05119853",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "entry",
                      "contextType" : "variable",
                      "element" : "resource",
                      "variable" : "tgt",
                      "transform" : "create",
                      "parameter" : [
                        {
                          "valueString" : "Observation"
                        }
                      ]
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "680332d4",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "contextType" : "variable",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueId" : "tgt"
                            }
                          ]
                        }
                      ],
                      "dependent" : [
                        {
                          "name" : "cheobservationcheb13s2de02",
                          "variable" : [
                            "src",
                            "tgt"
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "b34e18da",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "item",
              "condition" : "(linkId = 'CHE.B13S2.DE03') and answer.exists()"
            }
          ],
          "rule" : [
            {
              "name" : "82f46f41",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "bundle",
                  "contextType" : "variable",
                  "element" : "entry",
                  "variable" : "entry"
                }
              ],
              "rule" : [
                {
                  "name" : "b50ac4c5",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "entry",
                      "contextType" : "variable",
                      "element" : "request",
                      "variable" : "request"
                    },
                    {
                      "context" : "request",
                      "contextType" : "variable",
                      "element" : "method",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "POST"
                        }
                      ]
                    },
                    {
                      "contextType" : "variable",
                      "variable" : "uuid",
                      "transform" : "uuid"
                    },
                    {
                      "context" : "request",
                      "contextType" : "variable",
                      "element" : "url",
                      "transform" : "append",
                      "parameter" : [
                        {
                          "valueString" : "/Observation/"
                        },
                        {
                          "valueId" : "uuid"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "d077d65d",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "entry",
                      "contextType" : "variable",
                      "element" : "resource",
                      "variable" : "tgt",
                      "transform" : "create",
                      "parameter" : [
                        {
                          "valueString" : "Observation"
                        }
                      ]
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "0d34b650",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "contextType" : "variable",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueId" : "tgt"
                            }
                          ]
                        }
                      ],
                      "dependent" : [
                        {
                          "name" : "cheobservationcheb13s2de03",
                          "variable" : [
                            "src",
                            "tgt"
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "6d73aa66",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "item",
              "condition" : "(linkId = 'CHE.B14S2.DE01') and answer.exists()"
            }
          ],
          "rule" : [
            {
              "name" : "d2d701c3",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "bundle",
                  "contextType" : "variable",
                  "element" : "entry",
                  "variable" : "entry"
                }
              ],
              "rule" : [
                {
                  "name" : "b50ac4c5",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "entry",
                      "contextType" : "variable",
                      "element" : "request",
                      "variable" : "request"
                    },
                    {
                      "context" : "request",
                      "contextType" : "variable",
                      "element" : "method",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "POST"
                        }
                      ]
                    },
                    {
                      "contextType" : "variable",
                      "variable" : "uuid",
                      "transform" : "uuid"
                    },
                    {
                      "context" : "request",
                      "contextType" : "variable",
                      "element" : "url",
                      "transform" : "append",
                      "parameter" : [
                        {
                          "valueString" : "/Observation/"
                        },
                        {
                          "valueId" : "uuid"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "f5eee0d6",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "entry",
                      "contextType" : "variable",
                      "element" : "resource",
                      "variable" : "tgt",
                      "transform" : "create",
                      "parameter" : [
                        {
                          "valueString" : "Observation"
                        }
                      ]
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "f67e1d1e",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "contextType" : "variable",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueId" : "tgt"
                            }
                          ]
                        }
                      ],
                      "dependent" : [
                        {
                          "name" : "cheobservationcheb14s2de01",
                          "variable" : [
                            "src",
                            "tgt"
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "da4cbe94",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "item",
              "condition" : "(linkId = 'CHE.B14S2.DE02') and answer.exists()"
            }
          ],
          "rule" : [
            {
              "name" : "1e7e8586",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "bundle",
                  "contextType" : "variable",
                  "element" : "entry",
                  "variable" : "entry"
                }
              ],
              "rule" : [
                {
                  "name" : "b50ac4c5",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "entry",
                      "contextType" : "variable",
                      "element" : "request",
                      "variable" : "request"
                    },
                    {
                      "context" : "request",
                      "contextType" : "variable",
                      "element" : "method",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "POST"
                        }
                      ]
                    },
                    {
                      "contextType" : "variable",
                      "variable" : "uuid",
                      "transform" : "uuid"
                    },
                    {
                      "context" : "request",
                      "contextType" : "variable",
                      "element" : "url",
                      "transform" : "append",
                      "parameter" : [
                        {
                          "valueString" : "/Observation/"
                        },
                        {
                          "valueId" : "uuid"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "d5bdc17e",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "entry",
                      "contextType" : "variable",
                      "element" : "resource",
                      "variable" : "tgt",
                      "transform" : "create",
                      "parameter" : [
                        {
                          "valueString" : "Observation"
                        }
                      ]
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "d2a34da0",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "contextType" : "variable",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueId" : "tgt"
                            }
                          ]
                        }
                      ],
                      "dependent" : [
                        {
                          "name" : "cheobservationcheb14s2de02",
                          "variable" : [
                            "src",
                            "tgt"
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "4876aa02",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "item",
              "condition" : "(linkId = 'CHE.B14S2.DE03') and answer.exists()"
            }
          ],
          "rule" : [
            {
              "name" : "58a7d9ce",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "bundle",
                  "contextType" : "variable",
                  "element" : "entry",
                  "variable" : "entry"
                }
              ],
              "rule" : [
                {
                  "name" : "b50ac4c5",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "entry",
                      "contextType" : "variable",
                      "element" : "request",
                      "variable" : "request"
                    },
                    {
                      "context" : "request",
                      "contextType" : "variable",
                      "element" : "method",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "POST"
                        }
                      ]
                    },
                    {
                      "contextType" : "variable",
                      "variable" : "uuid",
                      "transform" : "uuid"
                    },
                    {
                      "context" : "request",
                      "contextType" : "variable",
                      "element" : "url",
                      "transform" : "append",
                      "parameter" : [
                        {
                          "valueString" : "/Observation/"
                        },
                        {
                          "valueId" : "uuid"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "ada8a30b",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "entry",
                      "contextType" : "variable",
                      "element" : "resource",
                      "variable" : "tgt",
                      "transform" : "create",
                      "parameter" : [
                        {
                          "valueString" : "Observation"
                        }
                      ]
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "afbf6dfc",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "contextType" : "variable",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueId" : "tgt"
                            }
                          ]
                        }
                      ],
                      "dependent" : [
                        {
                          "name" : "cheobservationcheb14s2de03",
                          "variable" : [
                            "src",
                            "tgt"
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "c1f8eba4",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "item",
              "condition" : "(linkId = 'CHE.B14S2.DE04') and answer.exists()"
            }
          ],
          "rule" : [
            {
              "name" : "b7ae7464",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "bundle",
                  "contextType" : "variable",
                  "element" : "entry",
                  "variable" : "entry"
                }
              ],
              "rule" : [
                {
                  "name" : "b50ac4c5",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "entry",
                      "contextType" : "variable",
                      "element" : "request",
                      "variable" : "request"
                    },
                    {
                      "context" : "request",
                      "contextType" : "variable",
                      "element" : "method",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "POST"
                        }
                      ]
                    },
                    {
                      "contextType" : "variable",
                      "variable" : "uuid",
                      "transform" : "uuid"
                    },
                    {
                      "context" : "request",
                      "contextType" : "variable",
                      "element" : "url",
                      "transform" : "append",
                      "parameter" : [
                        {
                          "valueString" : "/Observation/"
                        },
                        {
                          "valueId" : "uuid"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "84576f4c",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "entry",
                      "contextType" : "variable",
                      "element" : "resource",
                      "variable" : "tgt",
                      "transform" : "create",
                      "parameter" : [
                        {
                          "valueString" : "Observation"
                        }
                      ]
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "d931de40",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "contextType" : "variable",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueId" : "tgt"
                            }
                          ]
                        }
                      ],
                      "dependent" : [
                        {
                          "name" : "cheobservationcheb14s2de04",
                          "variable" : [
                            "src",
                            "tgt"
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "7f699109",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "item",
              "condition" : "(linkId = 'CHE.B14S2.DE05') and answer.exists()"
            }
          ],
          "rule" : [
            {
              "name" : "561b23b7",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "bundle",
                  "contextType" : "variable",
                  "element" : "entry",
                  "variable" : "entry"
                }
              ],
              "rule" : [
                {
                  "name" : "b50ac4c5",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "entry",
                      "contextType" : "variable",
                      "element" : "request",
                      "variable" : "request"
                    },
                    {
                      "context" : "request",
                      "contextType" : "variable",
                      "element" : "method",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "POST"
                        }
                      ]
                    },
                    {
                      "contextType" : "variable",
                      "variable" : "uuid",
                      "transform" : "uuid"
                    },
                    {
                      "context" : "request",
                      "contextType" : "variable",
                      "element" : "url",
                      "transform" : "append",
                      "parameter" : [
                        {
                          "valueString" : "/Observation/"
                        },
                        {
                          "valueId" : "uuid"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "4fd085e6",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "entry",
                      "contextType" : "variable",
                      "element" : "resource",
                      "variable" : "tgt",
                      "transform" : "create",
                      "parameter" : [
                        {
                          "valueString" : "Observation"
                        }
                      ]
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "2c27e645",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "contextType" : "variable",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueId" : "tgt"
                            }
                          ]
                        }
                      ],
                      "dependent" : [
                        {
                          "name" : "cheobservationcheb14s2de05",
                          "variable" : [
                            "src",
                            "tgt"
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "b704a158",
          "source" : [
            {
              "context" : "src",
              "condition" : "src.item.where(linkId = 'CHE.B14S2.DE06').answer.where(value.code = 'CHE.B14S2.DE07')"
            }
          ],
          "rule" : [
            {
              "name" : "cb30cd2f",
              "source" : [
                {
                  "context" : "src",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'CHE.B14S2.DE06') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "63793fad",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "bundle",
                      "contextType" : "variable",
                      "element" : "entry",
                      "variable" : "entry"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "b50ac4c5",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "request",
                          "variable" : "request"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "method",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "POST"
                            }
                          ]
                        },
                        {
                          "contextType" : "variable",
                          "variable" : "uuid",
                          "transform" : "uuid"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "url",
                          "transform" : "append",
                          "parameter" : [
                            {
                              "valueString" : "/Observation/"
                            },
                            {
                              "valueId" : "uuid"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "c59e7aeb",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "resource",
                          "variable" : "tgt",
                          "transform" : "create",
                          "parameter" : [
                            {
                              "valueString" : "Observation"
                            }
                          ]
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "a70fa063",
                          "source" : [
                            {
                              "context" : "src"
                            }
                          ],
                          "dependent" : [
                            {
                              "name" : "cheobservationcheb14s2de07t",
                              "variable" : [
                                "src",
                                "tgt"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "9f7ea995",
          "source" : [
            {
              "context" : "src",
              "condition" : "src.item.where(linkId = 'CHE.B14S2.DE06').exists() and src.item.where(linkId = 'CHE.B14S2.DE06').answer.where(value.code = 'CHE.B14S2.DE07').empty()"
            }
          ],
          "rule" : [
            {
              "name" : "aa78f8ce",
              "source" : [
                {
                  "context" : "src",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'CHE.B14S2.DE06') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "b34ff0e4",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "bundle",
                      "contextType" : "variable",
                      "element" : "entry",
                      "variable" : "entry"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "b50ac4c5",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "request",
                          "variable" : "request"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "method",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "POST"
                            }
                          ]
                        },
                        {
                          "contextType" : "variable",
                          "variable" : "uuid",
                          "transform" : "uuid"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "url",
                          "transform" : "append",
                          "parameter" : [
                            {
                              "valueString" : "/Observation/"
                            },
                            {
                              "valueId" : "uuid"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "40563b74",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "resource",
                          "variable" : "tgt",
                          "transform" : "create",
                          "parameter" : [
                            {
                              "valueString" : "Observation"
                            }
                          ]
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "6160ac55",
                          "source" : [
                            {
                              "context" : "src"
                            }
                          ],
                          "dependent" : [
                            {
                              "name" : "cheobservationcheb14s2de07f",
                              "variable" : [
                                "src",
                                "tgt"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "f71b8189",
          "source" : [
            {
              "context" : "src",
              "condition" : "src.item.where(linkId = 'CHE.B14S2.DE06').answer.where(value.code = 'CHE.B14S2.DE08')"
            }
          ],
          "rule" : [
            {
              "name" : "bf832823",
              "source" : [
                {
                  "context" : "src",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'CHE.B14S2.DE06') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "2d6d5812",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "bundle",
                      "contextType" : "variable",
                      "element" : "entry",
                      "variable" : "entry"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "b50ac4c5",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "request",
                          "variable" : "request"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "method",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "POST"
                            }
                          ]
                        },
                        {
                          "contextType" : "variable",
                          "variable" : "uuid",
                          "transform" : "uuid"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "url",
                          "transform" : "append",
                          "parameter" : [
                            {
                              "valueString" : "/Observation/"
                            },
                            {
                              "valueId" : "uuid"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "6c9dfd70",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "resource",
                          "variable" : "tgt",
                          "transform" : "create",
                          "parameter" : [
                            {
                              "valueString" : "Observation"
                            }
                          ]
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "7d23edb9",
                          "source" : [
                            {
                              "context" : "src"
                            }
                          ],
                          "dependent" : [
                            {
                              "name" : "cheobservationcheb14s2de08t",
                              "variable" : [
                                "src",
                                "tgt"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "86ef6deb",
          "source" : [
            {
              "context" : "src",
              "condition" : "src.item.where(linkId = 'CHE.B14S2.DE06').exists() and src.item.where(linkId = 'CHE.B14S2.DE06').answer.where(value.code = 'CHE.B14S2.DE08').empty()"
            }
          ],
          "rule" : [
            {
              "name" : "66356287",
              "source" : [
                {
                  "context" : "src",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'CHE.B14S2.DE06') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "a04f0e1f",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "bundle",
                      "contextType" : "variable",
                      "element" : "entry",
                      "variable" : "entry"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "b50ac4c5",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "request",
                          "variable" : "request"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "method",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "POST"
                            }
                          ]
                        },
                        {
                          "contextType" : "variable",
                          "variable" : "uuid",
                          "transform" : "uuid"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "url",
                          "transform" : "append",
                          "parameter" : [
                            {
                              "valueString" : "/Observation/"
                            },
                            {
                              "valueId" : "uuid"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "cf8657d2",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "resource",
                          "variable" : "tgt",
                          "transform" : "create",
                          "parameter" : [
                            {
                              "valueString" : "Observation"
                            }
                          ]
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "e7499185",
                          "source" : [
                            {
                              "context" : "src"
                            }
                          ],
                          "dependent" : [
                            {
                              "name" : "cheobservationcheb14s2de08f",
                              "variable" : [
                                "src",
                                "tgt"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "fa4d49d9",
          "source" : [
            {
              "context" : "src",
              "condition" : "src.item.where(linkId = 'CHE.B14S2.DE06').answer.where(value.code = 'CHE.B14S2.DE09')"
            }
          ],
          "rule" : [
            {
              "name" : "dd8ce1c7",
              "source" : [
                {
                  "context" : "src",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'CHE.B14S2.DE06') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "87a2c607",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "bundle",
                      "contextType" : "variable",
                      "element" : "entry",
                      "variable" : "entry"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "b50ac4c5",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "request",
                          "variable" : "request"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "method",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "POST"
                            }
                          ]
                        },
                        {
                          "contextType" : "variable",
                          "variable" : "uuid",
                          "transform" : "uuid"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "url",
                          "transform" : "append",
                          "parameter" : [
                            {
                              "valueString" : "/Observation/"
                            },
                            {
                              "valueId" : "uuid"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "59e146db",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "resource",
                          "variable" : "tgt",
                          "transform" : "create",
                          "parameter" : [
                            {
                              "valueString" : "Observation"
                            }
                          ]
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "5de89547",
                          "source" : [
                            {
                              "context" : "src"
                            }
                          ],
                          "dependent" : [
                            {
                              "name" : "cheobservationcheb14s2de09t",
                              "variable" : [
                                "src",
                                "tgt"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "c92bdf9f",
          "source" : [
            {
              "context" : "src",
              "condition" : "src.item.where(linkId = 'CHE.B14S2.DE06').exists() and src.item.where(linkId = 'CHE.B14S2.DE06').answer.where(value.code = 'CHE.B14S2.DE09').empty()"
            }
          ],
          "rule" : [
            {
              "name" : "3e9b92bd",
              "source" : [
                {
                  "context" : "src",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'CHE.B14S2.DE06') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "b3ea33b1",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "bundle",
                      "contextType" : "variable",
                      "element" : "entry",
                      "variable" : "entry"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "b50ac4c5",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "request",
                          "variable" : "request"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "method",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "POST"
                            }
                          ]
                        },
                        {
                          "contextType" : "variable",
                          "variable" : "uuid",
                          "transform" : "uuid"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "url",
                          "transform" : "append",
                          "parameter" : [
                            {
                              "valueString" : "/Observation/"
                            },
                            {
                              "valueId" : "uuid"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "e051ab43",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "resource",
                          "variable" : "tgt",
                          "transform" : "create",
                          "parameter" : [
                            {
                              "valueString" : "Observation"
                            }
                          ]
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "cf532f71",
                          "source" : [
                            {
                              "context" : "src"
                            }
                          ],
                          "dependent" : [
                            {
                              "name" : "cheobservationcheb14s2de09f",
                              "variable" : [
                                "src",
                                "tgt"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "18029a3e",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "item",
              "condition" : "(linkId = 'CHE.B14S2.DE10') and answer.exists()"
            }
          ],
          "rule" : [
            {
              "name" : "697ccfc3",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "bundle",
                  "contextType" : "variable",
                  "element" : "entry",
                  "variable" : "entry"
                }
              ],
              "rule" : [
                {
                  "name" : "b50ac4c5",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "entry",
                      "contextType" : "variable",
                      "element" : "request",
                      "variable" : "request"
                    },
                    {
                      "context" : "request",
                      "contextType" : "variable",
                      "element" : "method",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "POST"
                        }
                      ]
                    },
                    {
                      "contextType" : "variable",
                      "variable" : "uuid",
                      "transform" : "uuid"
                    },
                    {
                      "context" : "request",
                      "contextType" : "variable",
                      "element" : "url",
                      "transform" : "append",
                      "parameter" : [
                        {
                          "valueString" : "/Observation/"
                        },
                        {
                          "valueId" : "uuid"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "104c51b0",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "entry",
                      "contextType" : "variable",
                      "element" : "resource",
                      "variable" : "tgt",
                      "transform" : "create",
                      "parameter" : [
                        {
                          "valueString" : "Observation"
                        }
                      ]
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "451a05a2",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "contextType" : "variable",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueId" : "tgt"
                            }
                          ]
                        }
                      ],
                      "dependent" : [
                        {
                          "name" : "cheobservationcheb14s2de10",
                          "variable" : [
                            "src",
                            "tgt"
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "c0cee43d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "item",
              "condition" : "(linkId = 'CHE.B14S2.DE11') and answer.exists()"
            }
          ],
          "rule" : [
            {
              "name" : "741e4f3a",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "bundle",
                  "contextType" : "variable",
                  "element" : "entry",
                  "variable" : "entry"
                }
              ],
              "rule" : [
                {
                  "name" : "b50ac4c5",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "entry",
                      "contextType" : "variable",
                      "element" : "request",
                      "variable" : "request"
                    },
                    {
                      "context" : "request",
                      "contextType" : "variable",
                      "element" : "method",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "POST"
                        }
                      ]
                    },
                    {
                      "contextType" : "variable",
                      "variable" : "uuid",
                      "transform" : "uuid"
                    },
                    {
                      "context" : "request",
                      "contextType" : "variable",
                      "element" : "url",
                      "transform" : "append",
                      "parameter" : [
                        {
                          "valueString" : "/Observation/"
                        },
                        {
                          "valueId" : "uuid"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "9106c3cd",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "entry",
                      "contextType" : "variable",
                      "element" : "resource",
                      "variable" : "tgt",
                      "transform" : "create",
                      "parameter" : [
                        {
                          "valueString" : "Observation"
                        }
                      ]
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "fd57f88b",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "contextType" : "variable",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueId" : "tgt"
                            }
                          ]
                        }
                      ],
                      "dependent" : [
                        {
                          "name" : "cheobservationcheb14s2de11",
                          "variable" : [
                            "src",
                            "tgt"
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "e685d30a",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "item",
              "condition" : "(linkId = 'CHE.B14S2.DE11A') and answer.exists()"
            }
          ],
          "rule" : [
            {
              "name" : "9ca7d2e0",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "bundle",
                  "contextType" : "variable",
                  "element" : "entry",
                  "variable" : "entry"
                }
              ],
              "rule" : [
                {
                  "name" : "b50ac4c5",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "entry",
                      "contextType" : "variable",
                      "element" : "request",
                      "variable" : "request"
                    },
                    {
                      "context" : "request",
                      "contextType" : "variable",
                      "element" : "method",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "POST"
                        }
                      ]
                    },
                    {
                      "contextType" : "variable",
                      "variable" : "uuid",
                      "transform" : "uuid"
                    },
                    {
                      "context" : "request",
                      "contextType" : "variable",
                      "element" : "url",
                      "transform" : "append",
                      "parameter" : [
                        {
                          "valueString" : "/Observation/"
                        },
                        {
                          "valueId" : "uuid"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "907e904c",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "entry",
                      "contextType" : "variable",
                      "element" : "resource",
                      "variable" : "tgt",
                      "transform" : "create",
                      "parameter" : [
                        {
                          "valueString" : "Observation"
                        }
                      ]
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "f953aba0",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "contextType" : "variable",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueId" : "tgt"
                            }
                          ]
                        }
                      ],
                      "dependent" : [
                        {
                          "name" : "cheobservationcheb14s2de11a",
                          "variable" : [
                            "src",
                            "tgt"
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "a8ce40d4",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "item",
              "condition" : "(linkId = 'CHE.B14S2.DE012') and answer.exists()"
            }
          ],
          "rule" : [
            {
              "name" : "328afba1",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "bundle",
                  "contextType" : "variable",
                  "element" : "entry",
                  "variable" : "entry"
                }
              ],
              "rule" : [
                {
                  "name" : "b50ac4c5",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "entry",
                      "contextType" : "variable",
                      "element" : "request",
                      "variable" : "request"
                    },
                    {
                      "context" : "request",
                      "contextType" : "variable",
                      "element" : "method",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "POST"
                        }
                      ]
                    },
                    {
                      "contextType" : "variable",
                      "variable" : "uuid",
                      "transform" : "uuid"
                    },
                    {
                      "context" : "request",
                      "contextType" : "variable",
                      "element" : "url",
                      "transform" : "append",
                      "parameter" : [
                        {
                          "valueString" : "/Observation/"
                        },
                        {
                          "valueId" : "uuid"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "579ba6a1",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "entry",
                      "contextType" : "variable",
                      "element" : "resource",
                      "variable" : "tgt",
                      "transform" : "create",
                      "parameter" : [
                        {
                          "valueString" : "Observation"
                        }
                      ]
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "008f1388",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "contextType" : "variable",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueId" : "tgt"
                            }
                          ]
                        }
                      ],
                      "dependent" : [
                        {
                          "name" : "cheobservationcheb14s2de012",
                          "variable" : [
                            "src",
                            "tgt"
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "5022f5b3",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "itm1",
              "condition" : "linkId = 'CHE.B14S2.DE13'"
            }
          ],
          "rule" : [
            {
              "name" : "c648daf1",
              "source" : [
                {
                  "context" : "itm1",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'CHE.B14S2.DE14') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "849511d5",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "bundle",
                      "contextType" : "variable",
                      "element" : "entry",
                      "variable" : "entry"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "b50ac4c5",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "request",
                          "variable" : "request"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "method",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "POST"
                            }
                          ]
                        },
                        {
                          "contextType" : "variable",
                          "variable" : "uuid",
                          "transform" : "uuid"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "url",
                          "transform" : "append",
                          "parameter" : [
                            {
                              "valueString" : "/Observation/"
                            },
                            {
                              "valueId" : "uuid"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "c984d708",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "resource",
                          "variable" : "tgt",
                          "transform" : "create",
                          "parameter" : [
                            {
                              "valueString" : "Observation"
                            }
                          ]
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "d8a27ed8",
                          "source" : [
                            {
                              "context" : "src"
                            }
                          ],
                          "target" : [
                            {
                              "contextType" : "variable",
                              "transform" : "copy",
                              "parameter" : [
                                {
                                  "valueId" : "tgt"
                                }
                              ]
                            }
                          ],
                          "dependent" : [
                            {
                              "name" : "cheobservationcheb14s2de14",
                              "variable" : [
                                "src",
                                "tgt"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "e942530d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "itm1",
              "condition" : "linkId = 'CHE.B14S2.DE13'"
            }
          ],
          "rule" : [
            {
              "name" : "79008e21",
              "source" : [
                {
                  "context" : "itm1",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'CHE.B14S2.DE15') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "277056b9",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "bundle",
                      "contextType" : "variable",
                      "element" : "entry",
                      "variable" : "entry"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "b50ac4c5",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "request",
                          "variable" : "request"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "method",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "POST"
                            }
                          ]
                        },
                        {
                          "contextType" : "variable",
                          "variable" : "uuid",
                          "transform" : "uuid"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "url",
                          "transform" : "append",
                          "parameter" : [
                            {
                              "valueString" : "/Observation/"
                            },
                            {
                              "valueId" : "uuid"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "1ebd7c1d",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "resource",
                          "variable" : "tgt",
                          "transform" : "create",
                          "parameter" : [
                            {
                              "valueString" : "Observation"
                            }
                          ]
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "06c44747",
                          "source" : [
                            {
                              "context" : "src"
                            }
                          ],
                          "target" : [
                            {
                              "contextType" : "variable",
                              "transform" : "copy",
                              "parameter" : [
                                {
                                  "valueId" : "tgt"
                                }
                              ]
                            }
                          ],
                          "dependent" : [
                            {
                              "name" : "cheobservationcheb14s2de15",
                              "variable" : [
                                "src",
                                "tgt"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "68cc6612",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "itm1",
              "condition" : "linkId = 'CHE.B14S2.DE13'"
            }
          ],
          "rule" : [
            {
              "name" : "25d97a1e",
              "source" : [
                {
                  "context" : "itm1",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'CHE.B14S2.DE16') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "2bc887e7",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "bundle",
                      "contextType" : "variable",
                      "element" : "entry",
                      "variable" : "entry"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "b50ac4c5",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "request",
                          "variable" : "request"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "method",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "POST"
                            }
                          ]
                        },
                        {
                          "contextType" : "variable",
                          "variable" : "uuid",
                          "transform" : "uuid"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "url",
                          "transform" : "append",
                          "parameter" : [
                            {
                              "valueString" : "/Observation/"
                            },
                            {
                              "valueId" : "uuid"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "10a43a24",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "resource",
                          "variable" : "tgt",
                          "transform" : "create",
                          "parameter" : [
                            {
                              "valueString" : "Observation"
                            }
                          ]
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "5e21e5de",
                          "source" : [
                            {
                              "context" : "src"
                            }
                          ],
                          "target" : [
                            {
                              "contextType" : "variable",
                              "transform" : "copy",
                              "parameter" : [
                                {
                                  "valueId" : "tgt"
                                }
                              ]
                            }
                          ],
                          "dependent" : [
                            {
                              "name" : "cheobservationcheb14s2de16",
                              "variable" : [
                                "src",
                                "tgt"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "a9de2b75",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "itm1",
              "condition" : "linkId = 'CHE.B14S2.DE13'"
            }
          ],
          "rule" : [
            {
              "name" : "efd53e0f",
              "source" : [
                {
                  "context" : "itm1",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'CHE.B14S2.DE17') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "271fa5d7",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "bundle",
                      "contextType" : "variable",
                      "element" : "entry",
                      "variable" : "entry"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "b50ac4c5",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "request",
                          "variable" : "request"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "method",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "POST"
                            }
                          ]
                        },
                        {
                          "contextType" : "variable",
                          "variable" : "uuid",
                          "transform" : "uuid"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "url",
                          "transform" : "append",
                          "parameter" : [
                            {
                              "valueString" : "/Observation/"
                            },
                            {
                              "valueId" : "uuid"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "0e42c26b",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "resource",
                          "variable" : "tgt",
                          "transform" : "create",
                          "parameter" : [
                            {
                              "valueString" : "Observation"
                            }
                          ]
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "4e32087b",
                          "source" : [
                            {
                              "context" : "src"
                            }
                          ],
                          "target" : [
                            {
                              "contextType" : "variable",
                              "transform" : "copy",
                              "parameter" : [
                                {
                                  "valueId" : "tgt"
                                }
                              ]
                            }
                          ],
                          "dependent" : [
                            {
                              "name" : "cheobservationcheb14s2de17",
                              "variable" : [
                                "src",
                                "tgt"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "1115b12f",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "itm1",
              "condition" : "linkId = 'CHE.B14S2.DE13'"
            }
          ],
          "rule" : [
            {
              "name" : "69fac502",
              "source" : [
                {
                  "context" : "itm1",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'CHE.B14S2.DE19') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "94c5130e",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "bundle",
                      "contextType" : "variable",
                      "element" : "entry",
                      "variable" : "entry"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "b50ac4c5",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "request",
                          "variable" : "request"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "method",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "POST"
                            }
                          ]
                        },
                        {
                          "contextType" : "variable",
                          "variable" : "uuid",
                          "transform" : "uuid"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "url",
                          "transform" : "append",
                          "parameter" : [
                            {
                              "valueString" : "/Observation/"
                            },
                            {
                              "valueId" : "uuid"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "0bc665bb",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "resource",
                          "variable" : "tgt",
                          "transform" : "create",
                          "parameter" : [
                            {
                              "valueString" : "Observation"
                            }
                          ]
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "c22b8141",
                          "source" : [
                            {
                              "context" : "src"
                            }
                          ],
                          "target" : [
                            {
                              "contextType" : "variable",
                              "transform" : "copy",
                              "parameter" : [
                                {
                                  "valueId" : "tgt"
                                }
                              ]
                            }
                          ],
                          "dependent" : [
                            {
                              "name" : "cheobservationcheb14s2de19",
                              "variable" : [
                                "src",
                                "tgt"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "48a20f87",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "itm1",
              "condition" : "linkId = 'CHE.B14S2.DE13'"
            }
          ],
          "rule" : [
            {
              "name" : "8c60ee58",
              "source" : [
                {
                  "context" : "itm1",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'CHE.B14S2.DE20') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "b43fef3b",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "bundle",
                      "contextType" : "variable",
                      "element" : "entry",
                      "variable" : "entry"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "b50ac4c5",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "request",
                          "variable" : "request"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "method",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "POST"
                            }
                          ]
                        },
                        {
                          "contextType" : "variable",
                          "variable" : "uuid",
                          "transform" : "uuid"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "url",
                          "transform" : "append",
                          "parameter" : [
                            {
                              "valueString" : "/Observation/"
                            },
                            {
                              "valueId" : "uuid"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "3b7c1658",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "resource",
                          "variable" : "tgt",
                          "transform" : "create",
                          "parameter" : [
                            {
                              "valueString" : "Observation"
                            }
                          ]
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "8932862f",
                          "source" : [
                            {
                              "context" : "src"
                            }
                          ],
                          "target" : [
                            {
                              "contextType" : "variable",
                              "transform" : "copy",
                              "parameter" : [
                                {
                                  "valueId" : "tgt"
                                }
                              ]
                            }
                          ],
                          "dependent" : [
                            {
                              "name" : "cheobservationcheb14s2de20",
                              "variable" : [
                                "src",
                                "tgt"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "024d60ff",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "itm1",
              "condition" : "linkId = 'CHE.B14S2.DE13'"
            }
          ],
          "rule" : [
            {
              "name" : "db05c5d5",
              "source" : [
                {
                  "context" : "itm1",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'CHE.B14S2.DE23') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "c4dd7711",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "bundle",
                      "contextType" : "variable",
                      "element" : "entry",
                      "variable" : "entry"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "b50ac4c5",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "request",
                          "variable" : "request"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "method",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "POST"
                            }
                          ]
                        },
                        {
                          "contextType" : "variable",
                          "variable" : "uuid",
                          "transform" : "uuid"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "url",
                          "transform" : "append",
                          "parameter" : [
                            {
                              "valueString" : "/Observation/"
                            },
                            {
                              "valueId" : "uuid"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "fdda7798",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "resource",
                          "variable" : "tgt",
                          "transform" : "create",
                          "parameter" : [
                            {
                              "valueString" : "Observation"
                            }
                          ]
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "7113a51f",
                          "source" : [
                            {
                              "context" : "src"
                            }
                          ],
                          "target" : [
                            {
                              "contextType" : "variable",
                              "transform" : "copy",
                              "parameter" : [
                                {
                                  "valueId" : "tgt"
                                }
                              ]
                            }
                          ],
                          "dependent" : [
                            {
                              "name" : "cheobservationcheb14s2de23",
                              "variable" : [
                                "src",
                                "tgt"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "ae402ca3",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "itm1",
              "condition" : "linkId = 'CHE.B14S2.DE13'"
            }
          ],
          "rule" : [
            {
              "name" : "ebf4a6da",
              "source" : [
                {
                  "context" : "itm1",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'CHE.B14S2.DE24') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "2d029a29",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "bundle",
                      "contextType" : "variable",
                      "element" : "entry",
                      "variable" : "entry"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "b50ac4c5",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "request",
                          "variable" : "request"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "method",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "POST"
                            }
                          ]
                        },
                        {
                          "contextType" : "variable",
                          "variable" : "uuid",
                          "transform" : "uuid"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "url",
                          "transform" : "append",
                          "parameter" : [
                            {
                              "valueString" : "/Observation/"
                            },
                            {
                              "valueId" : "uuid"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "145a48f6",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "resource",
                          "variable" : "tgt",
                          "transform" : "create",
                          "parameter" : [
                            {
                              "valueString" : "Observation"
                            }
                          ]
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "f8322d67",
                          "source" : [
                            {
                              "context" : "src"
                            }
                          ],
                          "target" : [
                            {
                              "contextType" : "variable",
                              "transform" : "copy",
                              "parameter" : [
                                {
                                  "valueId" : "tgt"
                                }
                              ]
                            }
                          ],
                          "dependent" : [
                            {
                              "name" : "cheobservationcheb14s2de24",
                              "variable" : [
                                "src",
                                "tgt"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "8f0d5b43",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "itm1",
              "condition" : "linkId = 'CHE.B14S2.DE13'"
            }
          ],
          "rule" : [
            {
              "name" : "b41a0646",
              "source" : [
                {
                  "context" : "itm1",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'CHE.B14S2.DE25') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "9fbf564f",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "bundle",
                      "contextType" : "variable",
                      "element" : "entry",
                      "variable" : "entry"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "b50ac4c5",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "request",
                          "variable" : "request"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "method",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "POST"
                            }
                          ]
                        },
                        {
                          "contextType" : "variable",
                          "variable" : "uuid",
                          "transform" : "uuid"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "url",
                          "transform" : "append",
                          "parameter" : [
                            {
                              "valueString" : "/Observation/"
                            },
                            {
                              "valueId" : "uuid"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "b1ff5512",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "resource",
                          "variable" : "tgt",
                          "transform" : "create",
                          "parameter" : [
                            {
                              "valueString" : "Observation"
                            }
                          ]
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "45d07795",
                          "source" : [
                            {
                              "context" : "src"
                            }
                          ],
                          "target" : [
                            {
                              "contextType" : "variable",
                              "transform" : "copy",
                              "parameter" : [
                                {
                                  "valueId" : "tgt"
                                }
                              ]
                            }
                          ],
                          "dependent" : [
                            {
                              "name" : "cheobservationcheb14s2de25",
                              "variable" : [
                                "src",
                                "tgt"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "510cf766",
          "source" : [
            {
              "context" : "src",
              "condition" : "src.item.where(linkId = 'CHE.B14S2.DE26').answer.where(value.code = 'CHE.B14S2.DE27')"
            }
          ],
          "rule" : [
            {
              "name" : "7bed4bf8",
              "source" : [
                {
                  "context" : "src",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "itm1",
                  "condition" : "linkId = 'CHE.B14S2.DE13'"
                }
              ],
              "rule" : [
                {
                  "name" : "8c812460",
                  "source" : [
                    {
                      "context" : "itm1",
                      "element" : "item",
                      "listMode" : "first",
                      "variable" : "item",
                      "condition" : "(linkId = 'CHE.B14S2.DE26') and answer.exists()"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "324c47b7",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "bundle",
                          "contextType" : "variable",
                          "element" : "entry",
                          "variable" : "entry"
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "b50ac4c5",
                          "source" : [
                            {
                              "context" : "src"
                            }
                          ],
                          "target" : [
                            {
                              "context" : "entry",
                              "contextType" : "variable",
                              "element" : "request",
                              "variable" : "request"
                            },
                            {
                              "context" : "request",
                              "contextType" : "variable",
                              "element" : "method",
                              "transform" : "copy",
                              "parameter" : [
                                {
                                  "valueString" : "POST"
                                }
                              ]
                            },
                            {
                              "contextType" : "variable",
                              "variable" : "uuid",
                              "transform" : "uuid"
                            },
                            {
                              "context" : "request",
                              "contextType" : "variable",
                              "element" : "url",
                              "transform" : "append",
                              "parameter" : [
                                {
                                  "valueString" : "/Observation/"
                                },
                                {
                                  "valueId" : "uuid"
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "name" : "e9f4ebb1",
                          "source" : [
                            {
                              "context" : "src"
                            }
                          ],
                          "target" : [
                            {
                              "context" : "entry",
                              "contextType" : "variable",
                              "element" : "resource",
                              "variable" : "tgt",
                              "transform" : "create",
                              "parameter" : [
                                {
                                  "valueString" : "Observation"
                                }
                              ]
                            }
                          ],
                          "rule" : [
                            {
                              "name" : "be4e0b60",
                              "source" : [
                                {
                                  "context" : "src"
                                }
                              ],
                              "dependent" : [
                                {
                                  "name" : "cheobservationcheb14s2de26cheb14s2de27t",
                                  "variable" : [
                                    "src",
                                    "tgt"
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "b487a855",
          "source" : [
            {
              "context" : "src",
              "condition" : "src.item.where(linkId = 'CHE.B14S2.DE26').exists() and src.item.where(linkId = 'CHE.B14S2.DE26').answer.where(value.code = 'CHE.B14S2.DE27').empty()"
            }
          ],
          "rule" : [
            {
              "name" : "3afba5e7",
              "source" : [
                {
                  "context" : "src",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "itm1",
                  "condition" : "linkId = 'CHE.B14S2.DE13'"
                }
              ],
              "rule" : [
                {
                  "name" : "538610a2",
                  "source" : [
                    {
                      "context" : "itm1",
                      "element" : "item",
                      "listMode" : "first",
                      "variable" : "item",
                      "condition" : "(linkId = 'CHE.B14S2.DE26') and answer.exists()"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "1b910bf2",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "bundle",
                          "contextType" : "variable",
                          "element" : "entry",
                          "variable" : "entry"
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "b50ac4c5",
                          "source" : [
                            {
                              "context" : "src"
                            }
                          ],
                          "target" : [
                            {
                              "context" : "entry",
                              "contextType" : "variable",
                              "element" : "request",
                              "variable" : "request"
                            },
                            {
                              "context" : "request",
                              "contextType" : "variable",
                              "element" : "method",
                              "transform" : "copy",
                              "parameter" : [
                                {
                                  "valueString" : "POST"
                                }
                              ]
                            },
                            {
                              "contextType" : "variable",
                              "variable" : "uuid",
                              "transform" : "uuid"
                            },
                            {
                              "context" : "request",
                              "contextType" : "variable",
                              "element" : "url",
                              "transform" : "append",
                              "parameter" : [
                                {
                                  "valueString" : "/Observation/"
                                },
                                {
                                  "valueId" : "uuid"
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "name" : "277a3784",
                          "source" : [
                            {
                              "context" : "src"
                            }
                          ],
                          "target" : [
                            {
                              "context" : "entry",
                              "contextType" : "variable",
                              "element" : "resource",
                              "variable" : "tgt",
                              "transform" : "create",
                              "parameter" : [
                                {
                                  "valueString" : "Observation"
                                }
                              ]
                            }
                          ],
                          "rule" : [
                            {
                              "name" : "d04eb1a3",
                              "source" : [
                                {
                                  "context" : "src"
                                }
                              ],
                              "dependent" : [
                                {
                                  "name" : "cheobservationcheb14s2de26cheb14s2de27f",
                                  "variable" : [
                                    "src",
                                    "tgt"
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "d83b694e",
          "source" : [
            {
              "context" : "src",
              "condition" : "src.item.where(linkId = 'CHE.B14S2.DE26').answer.where(value.code = 'CHE.B14S2.DE28')"
            }
          ],
          "rule" : [
            {
              "name" : "0c4da54c",
              "source" : [
                {
                  "context" : "src",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "itm1",
                  "condition" : "linkId = 'CHE.B14S2.DE13'"
                }
              ],
              "rule" : [
                {
                  "name" : "d238ec7f",
                  "source" : [
                    {
                      "context" : "itm1",
                      "element" : "item",
                      "listMode" : "first",
                      "variable" : "item",
                      "condition" : "(linkId = 'CHE.B14S2.DE26') and answer.exists()"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "2b564d88",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "bundle",
                          "contextType" : "variable",
                          "element" : "entry",
                          "variable" : "entry"
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "b50ac4c5",
                          "source" : [
                            {
                              "context" : "src"
                            }
                          ],
                          "target" : [
                            {
                              "context" : "entry",
                              "contextType" : "variable",
                              "element" : "request",
                              "variable" : "request"
                            },
                            {
                              "context" : "request",
                              "contextType" : "variable",
                              "element" : "method",
                              "transform" : "copy",
                              "parameter" : [
                                {
                                  "valueString" : "POST"
                                }
                              ]
                            },
                            {
                              "contextType" : "variable",
                              "variable" : "uuid",
                              "transform" : "uuid"
                            },
                            {
                              "context" : "request",
                              "contextType" : "variable",
                              "element" : "url",
                              "transform" : "append",
                              "parameter" : [
                                {
                                  "valueString" : "/Observation/"
                                },
                                {
                                  "valueId" : "uuid"
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "name" : "702e6884",
                          "source" : [
                            {
                              "context" : "src"
                            }
                          ],
                          "target" : [
                            {
                              "context" : "entry",
                              "contextType" : "variable",
                              "element" : "resource",
                              "variable" : "tgt",
                              "transform" : "create",
                              "parameter" : [
                                {
                                  "valueString" : "Observation"
                                }
                              ]
                            }
                          ],
                          "rule" : [
                            {
                              "name" : "1a7082ed",
                              "source" : [
                                {
                                  "context" : "src"
                                }
                              ],
                              "dependent" : [
                                {
                                  "name" : "cheobservationcheb14s2de26cheb14s2de28t",
                                  "variable" : [
                                    "src",
                                    "tgt"
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "ad601afb",
          "source" : [
            {
              "context" : "src",
              "condition" : "src.item.where(linkId = 'CHE.B14S2.DE26').exists() and src.item.where(linkId = 'CHE.B14S2.DE26').answer.where(value.code = 'CHE.B14S2.DE28').empty()"
            }
          ],
          "rule" : [
            {
              "name" : "23b74abe",
              "source" : [
                {
                  "context" : "src",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "itm1",
                  "condition" : "linkId = 'CHE.B14S2.DE13'"
                }
              ],
              "rule" : [
                {
                  "name" : "81ceef74",
                  "source" : [
                    {
                      "context" : "itm1",
                      "element" : "item",
                      "listMode" : "first",
                      "variable" : "item",
                      "condition" : "(linkId = 'CHE.B14S2.DE26') and answer.exists()"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "9ffd47db",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "bundle",
                          "contextType" : "variable",
                          "element" : "entry",
                          "variable" : "entry"
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "b50ac4c5",
                          "source" : [
                            {
                              "context" : "src"
                            }
                          ],
                          "target" : [
                            {
                              "context" : "entry",
                              "contextType" : "variable",
                              "element" : "request",
                              "variable" : "request"
                            },
                            {
                              "context" : "request",
                              "contextType" : "variable",
                              "element" : "method",
                              "transform" : "copy",
                              "parameter" : [
                                {
                                  "valueString" : "POST"
                                }
                              ]
                            },
                            {
                              "contextType" : "variable",
                              "variable" : "uuid",
                              "transform" : "uuid"
                            },
                            {
                              "context" : "request",
                              "contextType" : "variable",
                              "element" : "url",
                              "transform" : "append",
                              "parameter" : [
                                {
                                  "valueString" : "/Observation/"
                                },
                                {
                                  "valueId" : "uuid"
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "name" : "9360ee27",
                          "source" : [
                            {
                              "context" : "src"
                            }
                          ],
                          "target" : [
                            {
                              "context" : "entry",
                              "contextType" : "variable",
                              "element" : "resource",
                              "variable" : "tgt",
                              "transform" : "create",
                              "parameter" : [
                                {
                                  "valueString" : "Observation"
                                }
                              ]
                            }
                          ],
                          "rule" : [
                            {
                              "name" : "99ca6943",
                              "source" : [
                                {
                                  "context" : "src"
                                }
                              ],
                              "dependent" : [
                                {
                                  "name" : "cheobservationcheb14s2de26cheb14s2de28f",
                                  "variable" : [
                                    "src",
                                    "tgt"
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "aeb3c216",
          "source" : [
            {
              "context" : "src",
              "condition" : "src.item.where(linkId = 'CHE.B14S2.DE26').answer.where(value.code = 'CHE.B14S2.DE29')"
            }
          ],
          "rule" : [
            {
              "name" : "7c215c60",
              "source" : [
                {
                  "context" : "src",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "itm1",
                  "condition" : "linkId = 'CHE.B14S2.DE13'"
                }
              ],
              "rule" : [
                {
                  "name" : "f812bd55",
                  "source" : [
                    {
                      "context" : "itm1",
                      "element" : "item",
                      "listMode" : "first",
                      "variable" : "item",
                      "condition" : "(linkId = 'CHE.B14S2.DE26') and answer.exists()"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "f79a18a9",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "bundle",
                          "contextType" : "variable",
                          "element" : "entry",
                          "variable" : "entry"
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "b50ac4c5",
                          "source" : [
                            {
                              "context" : "src"
                            }
                          ],
                          "target" : [
                            {
                              "context" : "entry",
                              "contextType" : "variable",
                              "element" : "request",
                              "variable" : "request"
                            },
                            {
                              "context" : "request",
                              "contextType" : "variable",
                              "element" : "method",
                              "transform" : "copy",
                              "parameter" : [
                                {
                                  "valueString" : "POST"
                                }
                              ]
                            },
                            {
                              "contextType" : "variable",
                              "variable" : "uuid",
                              "transform" : "uuid"
                            },
                            {
                              "context" : "request",
                              "contextType" : "variable",
                              "element" : "url",
                              "transform" : "append",
                              "parameter" : [
                                {
                                  "valueString" : "/Observation/"
                                },
                                {
                                  "valueId" : "uuid"
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "name" : "19ef0f0a",
                          "source" : [
                            {
                              "context" : "src"
                            }
                          ],
                          "target" : [
                            {
                              "context" : "entry",
                              "contextType" : "variable",
                              "element" : "resource",
                              "variable" : "tgt",
                              "transform" : "create",
                              "parameter" : [
                                {
                                  "valueString" : "Observation"
                                }
                              ]
                            }
                          ],
                          "rule" : [
                            {
                              "name" : "da408d9d",
                              "source" : [
                                {
                                  "context" : "src"
                                }
                              ],
                              "dependent" : [
                                {
                                  "name" : "cheobservationcheb14s2de26cheb14s2de29t",
                                  "variable" : [
                                    "src",
                                    "tgt"
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "0572916b",
          "source" : [
            {
              "context" : "src",
              "condition" : "src.item.where(linkId = 'CHE.B14S2.DE26').exists() and src.item.where(linkId = 'CHE.B14S2.DE26').answer.where(value.code = 'CHE.B14S2.DE29').empty()"
            }
          ],
          "rule" : [
            {
              "name" : "195f01b1",
              "source" : [
                {
                  "context" : "src",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "itm1",
                  "condition" : "linkId = 'CHE.B14S2.DE13'"
                }
              ],
              "rule" : [
                {
                  "name" : "e083fd1f",
                  "source" : [
                    {
                      "context" : "itm1",
                      "element" : "item",
                      "listMode" : "first",
                      "variable" : "item",
                      "condition" : "(linkId = 'CHE.B14S2.DE26') and answer.exists()"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "cc7d9ee1",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "bundle",
                          "contextType" : "variable",
                          "element" : "entry",
                          "variable" : "entry"
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "b50ac4c5",
                          "source" : [
                            {
                              "context" : "src"
                            }
                          ],
                          "target" : [
                            {
                              "context" : "entry",
                              "contextType" : "variable",
                              "element" : "request",
                              "variable" : "request"
                            },
                            {
                              "context" : "request",
                              "contextType" : "variable",
                              "element" : "method",
                              "transform" : "copy",
                              "parameter" : [
                                {
                                  "valueString" : "POST"
                                }
                              ]
                            },
                            {
                              "contextType" : "variable",
                              "variable" : "uuid",
                              "transform" : "uuid"
                            },
                            {
                              "context" : "request",
                              "contextType" : "variable",
                              "element" : "url",
                              "transform" : "append",
                              "parameter" : [
                                {
                                  "valueString" : "/Observation/"
                                },
                                {
                                  "valueId" : "uuid"
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "name" : "ff23a53e",
                          "source" : [
                            {
                              "context" : "src"
                            }
                          ],
                          "target" : [
                            {
                              "context" : "entry",
                              "contextType" : "variable",
                              "element" : "resource",
                              "variable" : "tgt",
                              "transform" : "create",
                              "parameter" : [
                                {
                                  "valueString" : "Observation"
                                }
                              ]
                            }
                          ],
                          "rule" : [
                            {
                              "name" : "3d40c3ae",
                              "source" : [
                                {
                                  "context" : "src"
                                }
                              ],
                              "dependent" : [
                                {
                                  "name" : "cheobservationcheb14s2de26cheb14s2de29f",
                                  "variable" : [
                                    "src",
                                    "tgt"
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "b22c448c",
          "source" : [
            {
              "context" : "src",
              "condition" : "src.item.where(linkId = 'CHE.B14S2.DE26').answer.where(value.code = 'CHE.B14S2.DE30')"
            }
          ],
          "rule" : [
            {
              "name" : "4a0e050b",
              "source" : [
                {
                  "context" : "src",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "itm1",
                  "condition" : "linkId = 'CHE.B14S2.DE13'"
                }
              ],
              "rule" : [
                {
                  "name" : "ebdfdaa2",
                  "source" : [
                    {
                      "context" : "itm1",
                      "element" : "item",
                      "listMode" : "first",
                      "variable" : "item",
                      "condition" : "(linkId = 'CHE.B14S2.DE26') and answer.exists()"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "4ead07a3",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "bundle",
                          "contextType" : "variable",
                          "element" : "entry",
                          "variable" : "entry"
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "b50ac4c5",
                          "source" : [
                            {
                              "context" : "src"
                            }
                          ],
                          "target" : [
                            {
                              "context" : "entry",
                              "contextType" : "variable",
                              "element" : "request",
                              "variable" : "request"
                            },
                            {
                              "context" : "request",
                              "contextType" : "variable",
                              "element" : "method",
                              "transform" : "copy",
                              "parameter" : [
                                {
                                  "valueString" : "POST"
                                }
                              ]
                            },
                            {
                              "contextType" : "variable",
                              "variable" : "uuid",
                              "transform" : "uuid"
                            },
                            {
                              "context" : "request",
                              "contextType" : "variable",
                              "element" : "url",
                              "transform" : "append",
                              "parameter" : [
                                {
                                  "valueString" : "/Observation/"
                                },
                                {
                                  "valueId" : "uuid"
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "name" : "d74a8bf3",
                          "source" : [
                            {
                              "context" : "src"
                            }
                          ],
                          "target" : [
                            {
                              "context" : "entry",
                              "contextType" : "variable",
                              "element" : "resource",
                              "variable" : "tgt",
                              "transform" : "create",
                              "parameter" : [
                                {
                                  "valueString" : "Observation"
                                }
                              ]
                            }
                          ],
                          "rule" : [
                            {
                              "name" : "9e0f2588",
                              "source" : [
                                {
                                  "context" : "src"
                                }
                              ],
                              "dependent" : [
                                {
                                  "name" : "cheobservationcheb14s2de26cheb14s2de30t",
                                  "variable" : [
                                    "src",
                                    "tgt"
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "880166e4",
          "source" : [
            {
              "context" : "src",
              "condition" : "src.item.where(linkId = 'CHE.B14S2.DE26').exists() and src.item.where(linkId = 'CHE.B14S2.DE26').answer.where(value.code = 'CHE.B14S2.DE30').empty()"
            }
          ],
          "rule" : [
            {
              "name" : "a1e1a27d",
              "source" : [
                {
                  "context" : "src",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "itm1",
                  "condition" : "linkId = 'CHE.B14S2.DE13'"
                }
              ],
              "rule" : [
                {
                  "name" : "9d5ba213",
                  "source" : [
                    {
                      "context" : "itm1",
                      "element" : "item",
                      "listMode" : "first",
                      "variable" : "item",
                      "condition" : "(linkId = 'CHE.B14S2.DE26') and answer.exists()"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "404ec535",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "bundle",
                          "contextType" : "variable",
                          "element" : "entry",
                          "variable" : "entry"
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "b50ac4c5",
                          "source" : [
                            {
                              "context" : "src"
                            }
                          ],
                          "target" : [
                            {
                              "context" : "entry",
                              "contextType" : "variable",
                              "element" : "request",
                              "variable" : "request"
                            },
                            {
                              "context" : "request",
                              "contextType" : "variable",
                              "element" : "method",
                              "transform" : "copy",
                              "parameter" : [
                                {
                                  "valueString" : "POST"
                                }
                              ]
                            },
                            {
                              "contextType" : "variable",
                              "variable" : "uuid",
                              "transform" : "uuid"
                            },
                            {
                              "context" : "request",
                              "contextType" : "variable",
                              "element" : "url",
                              "transform" : "append",
                              "parameter" : [
                                {
                                  "valueString" : "/Observation/"
                                },
                                {
                                  "valueId" : "uuid"
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "name" : "279c085f",
                          "source" : [
                            {
                              "context" : "src"
                            }
                          ],
                          "target" : [
                            {
                              "context" : "entry",
                              "contextType" : "variable",
                              "element" : "resource",
                              "variable" : "tgt",
                              "transform" : "create",
                              "parameter" : [
                                {
                                  "valueString" : "Observation"
                                }
                              ]
                            }
                          ],
                          "rule" : [
                            {
                              "name" : "9e612cf0",
                              "source" : [
                                {
                                  "context" : "src"
                                }
                              ],
                              "dependent" : [
                                {
                                  "name" : "cheobservationcheb14s2de26cheb14s2de30f",
                                  "variable" : [
                                    "src",
                                    "tgt"
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "458fd390",
          "source" : [
            {
              "context" : "src",
              "condition" : "src.item.where(linkId = 'CHE.B14S2.DE26').answer.where(value.code = 'CHE.B14S2.DE30a')"
            }
          ],
          "rule" : [
            {
              "name" : "40d4a8e1",
              "source" : [
                {
                  "context" : "src",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "itm1",
                  "condition" : "linkId = 'CHE.B14S2.DE13'"
                }
              ],
              "rule" : [
                {
                  "name" : "47ec35aa",
                  "source" : [
                    {
                      "context" : "itm1",
                      "element" : "item",
                      "listMode" : "first",
                      "variable" : "item",
                      "condition" : "(linkId = 'CHE.B14S2.DE26') and answer.exists()"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "7f0a9fb0",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "bundle",
                          "contextType" : "variable",
                          "element" : "entry",
                          "variable" : "entry"
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "b50ac4c5",
                          "source" : [
                            {
                              "context" : "src"
                            }
                          ],
                          "target" : [
                            {
                              "context" : "entry",
                              "contextType" : "variable",
                              "element" : "request",
                              "variable" : "request"
                            },
                            {
                              "context" : "request",
                              "contextType" : "variable",
                              "element" : "method",
                              "transform" : "copy",
                              "parameter" : [
                                {
                                  "valueString" : "POST"
                                }
                              ]
                            },
                            {
                              "contextType" : "variable",
                              "variable" : "uuid",
                              "transform" : "uuid"
                            },
                            {
                              "context" : "request",
                              "contextType" : "variable",
                              "element" : "url",
                              "transform" : "append",
                              "parameter" : [
                                {
                                  "valueString" : "/Observation/"
                                },
                                {
                                  "valueId" : "uuid"
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "name" : "6354fdca",
                          "source" : [
                            {
                              "context" : "src"
                            }
                          ],
                          "target" : [
                            {
                              "context" : "entry",
                              "contextType" : "variable",
                              "element" : "resource",
                              "variable" : "tgt",
                              "transform" : "create",
                              "parameter" : [
                                {
                                  "valueString" : "Observation"
                                }
                              ]
                            }
                          ],
                          "rule" : [
                            {
                              "name" : "2025ce0a",
                              "source" : [
                                {
                                  "context" : "src"
                                }
                              ],
                              "dependent" : [
                                {
                                  "name" : "cheobservationcheb14s2de26cheb14s2de30at",
                                  "variable" : [
                                    "src",
                                    "tgt"
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "279f742e",
          "source" : [
            {
              "context" : "src",
              "condition" : "src.item.where(linkId = 'CHE.B14S2.DE26').exists() and src.item.where(linkId = 'CHE.B14S2.DE26').answer.where(value.code = 'CHE.B14S2.DE30a').empty()"
            }
          ],
          "rule" : [
            {
              "name" : "9c2b28ef",
              "source" : [
                {
                  "context" : "src",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "itm1",
                  "condition" : "linkId = 'CHE.B14S2.DE13'"
                }
              ],
              "rule" : [
                {
                  "name" : "08ae97a2",
                  "source" : [
                    {
                      "context" : "itm1",
                      "element" : "item",
                      "listMode" : "first",
                      "variable" : "item",
                      "condition" : "(linkId = 'CHE.B14S2.DE26') and answer.exists()"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "12fcdcfc",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "bundle",
                          "contextType" : "variable",
                          "element" : "entry",
                          "variable" : "entry"
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "b50ac4c5",
                          "source" : [
                            {
                              "context" : "src"
                            }
                          ],
                          "target" : [
                            {
                              "context" : "entry",
                              "contextType" : "variable",
                              "element" : "request",
                              "variable" : "request"
                            },
                            {
                              "context" : "request",
                              "contextType" : "variable",
                              "element" : "method",
                              "transform" : "copy",
                              "parameter" : [
                                {
                                  "valueString" : "POST"
                                }
                              ]
                            },
                            {
                              "contextType" : "variable",
                              "variable" : "uuid",
                              "transform" : "uuid"
                            },
                            {
                              "context" : "request",
                              "contextType" : "variable",
                              "element" : "url",
                              "transform" : "append",
                              "parameter" : [
                                {
                                  "valueString" : "/Observation/"
                                },
                                {
                                  "valueId" : "uuid"
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "name" : "1cbe77e0",
                          "source" : [
                            {
                              "context" : "src"
                            }
                          ],
                          "target" : [
                            {
                              "context" : "entry",
                              "contextType" : "variable",
                              "element" : "resource",
                              "variable" : "tgt",
                              "transform" : "create",
                              "parameter" : [
                                {
                                  "valueString" : "Observation"
                                }
                              ]
                            }
                          ],
                          "rule" : [
                            {
                              "name" : "10068f81",
                              "source" : [
                                {
                                  "context" : "src"
                                }
                              ],
                              "dependent" : [
                                {
                                  "name" : "cheobservationcheb14s2de26cheb14s2de30af",
                                  "variable" : [
                                    "src",
                                    "tgt"
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "d8fddb62",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "itm1",
              "condition" : "linkId = 'CHE.B14S2.DE13'"
            }
          ],
          "rule" : [
            {
              "name" : "7532f152",
              "source" : [
                {
                  "context" : "itm1",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'CHE.B14S2.DE31') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "7b9cf0fd",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "bundle",
                      "contextType" : "variable",
                      "element" : "entry",
                      "variable" : "entry"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "b50ac4c5",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "request",
                          "variable" : "request"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "method",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "POST"
                            }
                          ]
                        },
                        {
                          "contextType" : "variable",
                          "variable" : "uuid",
                          "transform" : "uuid"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "url",
                          "transform" : "append",
                          "parameter" : [
                            {
                              "valueString" : "/Observation/"
                            },
                            {
                              "valueId" : "uuid"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "fba7f254",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "resource",
                          "variable" : "tgt",
                          "transform" : "create",
                          "parameter" : [
                            {
                              "valueString" : "Observation"
                            }
                          ]
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "4dd5967d",
                          "source" : [
                            {
                              "context" : "src"
                            }
                          ],
                          "target" : [
                            {
                              "contextType" : "variable",
                              "transform" : "copy",
                              "parameter" : [
                                {
                                  "valueId" : "tgt"
                                }
                              ]
                            }
                          ],
                          "dependent" : [
                            {
                              "name" : "cheobservationcheb14s2de31",
                              "variable" : [
                                "src",
                                "tgt"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "af025e66",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "itm1",
              "condition" : "linkId = 'CHE.B14S2.DE13'"
            }
          ],
          "rule" : [
            {
              "name" : "cbba5ba4",
              "source" : [
                {
                  "context" : "itm1",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'CHE.B14S2.DE32') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "00619899",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "bundle",
                      "contextType" : "variable",
                      "element" : "entry",
                      "variable" : "entry"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "b50ac4c5",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "request",
                          "variable" : "request"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "method",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "POST"
                            }
                          ]
                        },
                        {
                          "contextType" : "variable",
                          "variable" : "uuid",
                          "transform" : "uuid"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "url",
                          "transform" : "append",
                          "parameter" : [
                            {
                              "valueString" : "/Observation/"
                            },
                            {
                              "valueId" : "uuid"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "1d3b8c01",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "resource",
                          "variable" : "tgt",
                          "transform" : "create",
                          "parameter" : [
                            {
                              "valueString" : "Observation"
                            }
                          ]
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "987cc780",
                          "source" : [
                            {
                              "context" : "src"
                            }
                          ],
                          "target" : [
                            {
                              "contextType" : "variable",
                              "transform" : "copy",
                              "parameter" : [
                                {
                                  "valueId" : "tgt"
                                }
                              ]
                            }
                          ],
                          "dependent" : [
                            {
                              "name" : "cheobservationcheb14s2de32",
                              "variable" : [
                                "src",
                                "tgt"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "ff219239",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "itm1",
              "condition" : "linkId = 'CHE.B14S2.DE13'"
            }
          ],
          "rule" : [
            {
              "name" : "9298cf98",
              "source" : [
                {
                  "context" : "itm1",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'CHE.B14S2.DE33') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "a2c9ebd8",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "bundle",
                      "contextType" : "variable",
                      "element" : "entry",
                      "variable" : "entry"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "b50ac4c5",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "request",
                          "variable" : "request"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "method",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "POST"
                            }
                          ]
                        },
                        {
                          "contextType" : "variable",
                          "variable" : "uuid",
                          "transform" : "uuid"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "url",
                          "transform" : "append",
                          "parameter" : [
                            {
                              "valueString" : "/Observation/"
                            },
                            {
                              "valueId" : "uuid"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "80e526c3",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "resource",
                          "variable" : "tgt",
                          "transform" : "create",
                          "parameter" : [
                            {
                              "valueString" : "Observation"
                            }
                          ]
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "618273e3",
                          "source" : [
                            {
                              "context" : "src"
                            }
                          ],
                          "target" : [
                            {
                              "contextType" : "variable",
                              "transform" : "copy",
                              "parameter" : [
                                {
                                  "valueId" : "tgt"
                                }
                              ]
                            }
                          ],
                          "dependent" : [
                            {
                              "name" : "cheobservationcheb14s2de33",
                              "variable" : [
                                "src",
                                "tgt"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "3132c753",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "itm1",
              "condition" : "linkId = 'CHE.B14S2.DE13'"
            }
          ],
          "rule" : [
            {
              "name" : "1fa8bb60",
              "source" : [
                {
                  "context" : "itm1",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'CHE.B14S2.DE34') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "8853e3aa",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "bundle",
                      "contextType" : "variable",
                      "element" : "entry",
                      "variable" : "entry"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "b50ac4c5",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "request",
                          "variable" : "request"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "method",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "POST"
                            }
                          ]
                        },
                        {
                          "contextType" : "variable",
                          "variable" : "uuid",
                          "transform" : "uuid"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "url",
                          "transform" : "append",
                          "parameter" : [
                            {
                              "valueString" : "/Observation/"
                            },
                            {
                              "valueId" : "uuid"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "2ec1c43c",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "resource",
                          "variable" : "tgt",
                          "transform" : "create",
                          "parameter" : [
                            {
                              "valueString" : "Observation"
                            }
                          ]
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "cc24fb80",
                          "source" : [
                            {
                              "context" : "src"
                            }
                          ],
                          "target" : [
                            {
                              "contextType" : "variable",
                              "transform" : "copy",
                              "parameter" : [
                                {
                                  "valueId" : "tgt"
                                }
                              ]
                            }
                          ],
                          "dependent" : [
                            {
                              "name" : "cheobservationcheb14s2de34",
                              "variable" : [
                                "src",
                                "tgt"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "690f9c2a",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "itm1",
              "condition" : "linkId = 'CHE.B14S2.DE13'"
            }
          ],
          "rule" : [
            {
              "name" : "4bfbe729",
              "source" : [
                {
                  "context" : "itm1",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'CHE.B14S2.DE35') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "072c37e5",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "bundle",
                      "contextType" : "variable",
                      "element" : "entry",
                      "variable" : "entry"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "b50ac4c5",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "request",
                          "variable" : "request"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "method",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "POST"
                            }
                          ]
                        },
                        {
                          "contextType" : "variable",
                          "variable" : "uuid",
                          "transform" : "uuid"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "url",
                          "transform" : "append",
                          "parameter" : [
                            {
                              "valueString" : "/Observation/"
                            },
                            {
                              "valueId" : "uuid"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "538fc0b5",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "resource",
                          "variable" : "tgt",
                          "transform" : "create",
                          "parameter" : [
                            {
                              "valueString" : "Observation"
                            }
                          ]
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "b3b9b6b8",
                          "source" : [
                            {
                              "context" : "src"
                            }
                          ],
                          "target" : [
                            {
                              "contextType" : "variable",
                              "transform" : "copy",
                              "parameter" : [
                                {
                                  "valueId" : "tgt"
                                }
                              ]
                            }
                          ],
                          "dependent" : [
                            {
                              "name" : "cheobservationcheb14s2de35",
                              "variable" : [
                                "src",
                                "tgt"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "e45c8b36",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "itm1",
              "condition" : "linkId = 'CHE.B14S2.DE13'"
            }
          ],
          "rule" : [
            {
              "name" : "683b2da9",
              "source" : [
                {
                  "context" : "itm1",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'CHE.B14S2.DE36') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "68a4caac",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "bundle",
                      "contextType" : "variable",
                      "element" : "entry",
                      "variable" : "entry"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "b50ac4c5",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "request",
                          "variable" : "request"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "method",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "POST"
                            }
                          ]
                        },
                        {
                          "contextType" : "variable",
                          "variable" : "uuid",
                          "transform" : "uuid"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "url",
                          "transform" : "append",
                          "parameter" : [
                            {
                              "valueString" : "/Observation/"
                            },
                            {
                              "valueId" : "uuid"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "de413593",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "resource",
                          "variable" : "tgt",
                          "transform" : "create",
                          "parameter" : [
                            {
                              "valueString" : "Observation"
                            }
                          ]
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "8e6f1ad3",
                          "source" : [
                            {
                              "context" : "src"
                            }
                          ],
                          "target" : [
                            {
                              "contextType" : "variable",
                              "transform" : "copy",
                              "parameter" : [
                                {
                                  "valueId" : "tgt"
                                }
                              ]
                            }
                          ],
                          "dependent" : [
                            {
                              "name" : "cheobservationcheb14s2de36",
                              "variable" : [
                                "src",
                                "tgt"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "79e278cd",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "itm1",
              "condition" : "linkId = 'CHE.B14S2.DE13'"
            }
          ],
          "rule" : [
            {
              "name" : "8e114ec3",
              "source" : [
                {
                  "context" : "itm1",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'CHE.B14S2.DE37') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "ae0772e9",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "bundle",
                      "contextType" : "variable",
                      "element" : "entry",
                      "variable" : "entry"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "b50ac4c5",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "request",
                          "variable" : "request"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "method",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "POST"
                            }
                          ]
                        },
                        {
                          "contextType" : "variable",
                          "variable" : "uuid",
                          "transform" : "uuid"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "url",
                          "transform" : "append",
                          "parameter" : [
                            {
                              "valueString" : "/Observation/"
                            },
                            {
                              "valueId" : "uuid"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "d7500f73",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "resource",
                          "variable" : "tgt",
                          "transform" : "create",
                          "parameter" : [
                            {
                              "valueString" : "Observation"
                            }
                          ]
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "fa9a37a4",
                          "source" : [
                            {
                              "context" : "src"
                            }
                          ],
                          "target" : [
                            {
                              "contextType" : "variable",
                              "transform" : "copy",
                              "parameter" : [
                                {
                                  "valueId" : "tgt"
                                }
                              ]
                            }
                          ],
                          "dependent" : [
                            {
                              "name" : "cheobservationcheb14s2de37",
                              "variable" : [
                                "src",
                                "tgt"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "e2179f22",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "itm1",
              "condition" : "linkId = 'CHE.B14S2.DE43'"
            }
          ],
          "rule" : [
            {
              "name" : "0633fa02",
              "source" : [
                {
                  "context" : "itm1",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'CHE.B14S2.DE44') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "0ed64bfa",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "bundle",
                      "contextType" : "variable",
                      "element" : "entry",
                      "variable" : "entry"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "b50ac4c5",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "request",
                          "variable" : "request"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "method",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "POST"
                            }
                          ]
                        },
                        {
                          "contextType" : "variable",
                          "variable" : "uuid",
                          "transform" : "uuid"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "url",
                          "transform" : "append",
                          "parameter" : [
                            {
                              "valueString" : "/Observation/"
                            },
                            {
                              "valueId" : "uuid"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "27ff2c7c",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "resource",
                          "variable" : "tgt",
                          "transform" : "create",
                          "parameter" : [
                            {
                              "valueString" : "Observation"
                            }
                          ]
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "dd7db2b3",
                          "source" : [
                            {
                              "context" : "src"
                            }
                          ],
                          "target" : [
                            {
                              "contextType" : "variable",
                              "transform" : "copy",
                              "parameter" : [
                                {
                                  "valueId" : "tgt"
                                }
                              ]
                            }
                          ],
                          "dependent" : [
                            {
                              "name" : "cheobservationcheb14s2de44",
                              "variable" : [
                                "src",
                                "tgt"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "badb9b0f",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "itm1",
              "condition" : "linkId = 'CHE.B14S2.DE43'"
            }
          ],
          "rule" : [
            {
              "name" : "08752eec",
              "source" : [
                {
                  "context" : "itm1",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'CHE.B14S2.DE45') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "99252a72",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "bundle",
                      "contextType" : "variable",
                      "element" : "entry",
                      "variable" : "entry"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "b50ac4c5",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "request",
                          "variable" : "request"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "method",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "POST"
                            }
                          ]
                        },
                        {
                          "contextType" : "variable",
                          "variable" : "uuid",
                          "transform" : "uuid"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "url",
                          "transform" : "append",
                          "parameter" : [
                            {
                              "valueString" : "/Observation/"
                            },
                            {
                              "valueId" : "uuid"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "eefeb2de",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "resource",
                          "variable" : "tgt",
                          "transform" : "create",
                          "parameter" : [
                            {
                              "valueString" : "Observation"
                            }
                          ]
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "5179e4c5",
                          "source" : [
                            {
                              "context" : "src"
                            }
                          ],
                          "target" : [
                            {
                              "contextType" : "variable",
                              "transform" : "copy",
                              "parameter" : [
                                {
                                  "valueId" : "tgt"
                                }
                              ]
                            }
                          ],
                          "dependent" : [
                            {
                              "name" : "cheobservationcheb14s2de45",
                              "variable" : [
                                "src",
                                "tgt"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "8c5ef602",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "itm1",
              "condition" : "linkId = 'CHE.B14S2.DE43'"
            }
          ],
          "rule" : [
            {
              "name" : "c3d2d0b5",
              "source" : [
                {
                  "context" : "itm1",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'CHE.B14S2.DE46') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "12138513",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "bundle",
                      "contextType" : "variable",
                      "element" : "entry",
                      "variable" : "entry"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "b50ac4c5",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "request",
                          "variable" : "request"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "method",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "POST"
                            }
                          ]
                        },
                        {
                          "contextType" : "variable",
                          "variable" : "uuid",
                          "transform" : "uuid"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "url",
                          "transform" : "append",
                          "parameter" : [
                            {
                              "valueString" : "/Observation/"
                            },
                            {
                              "valueId" : "uuid"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "1efe4e54",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "resource",
                          "variable" : "tgt",
                          "transform" : "create",
                          "parameter" : [
                            {
                              "valueString" : "Observation"
                            }
                          ]
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "472516db",
                          "source" : [
                            {
                              "context" : "src"
                            }
                          ],
                          "target" : [
                            {
                              "contextType" : "variable",
                              "transform" : "copy",
                              "parameter" : [
                                {
                                  "valueId" : "tgt"
                                }
                              ]
                            }
                          ],
                          "dependent" : [
                            {
                              "name" : "cheobservationcheb14s2de46",
                              "variable" : [
                                "src",
                                "tgt"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "12a2e747",
          "source" : [
            {
              "context" : "src",
              "condition" : "src.item.where(linkId = 'CHE.B14S2.DE38').answer.where(value.code = 'CHE.B14S2.DE39')"
            }
          ],
          "rule" : [
            {
              "name" : "bd8c72f1",
              "source" : [
                {
                  "context" : "src",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'CHE.B14S2.DE38') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "4884aee5",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "bundle",
                      "contextType" : "variable",
                      "element" : "entry",
                      "variable" : "entry"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "b50ac4c5",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "request",
                          "variable" : "request"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "method",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "POST"
                            }
                          ]
                        },
                        {
                          "contextType" : "variable",
                          "variable" : "uuid",
                          "transform" : "uuid"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "url",
                          "transform" : "append",
                          "parameter" : [
                            {
                              "valueString" : "/Observation/"
                            },
                            {
                              "valueId" : "uuid"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "b5c4af76",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "resource",
                          "variable" : "tgt",
                          "transform" : "create",
                          "parameter" : [
                            {
                              "valueString" : "Observation"
                            }
                          ]
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "8ff47031",
                          "source" : [
                            {
                              "context" : "src"
                            }
                          ],
                          "dependent" : [
                            {
                              "name" : "cheobservationcheb14s2de39t",
                              "variable" : [
                                "src",
                                "tgt"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "1b32ca5d",
          "source" : [
            {
              "context" : "src",
              "condition" : "src.item.where(linkId = 'CHE.B14S2.DE38').exists() and src.item.where(linkId = 'CHE.B14S2.DE38').answer.where(value.code = 'CHE.B14S2.DE39').empty()"
            }
          ],
          "rule" : [
            {
              "name" : "407c392c",
              "source" : [
                {
                  "context" : "src",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'CHE.B14S2.DE38') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "804f12bb",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "bundle",
                      "contextType" : "variable",
                      "element" : "entry",
                      "variable" : "entry"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "b50ac4c5",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "request",
                          "variable" : "request"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "method",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "POST"
                            }
                          ]
                        },
                        {
                          "contextType" : "variable",
                          "variable" : "uuid",
                          "transform" : "uuid"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "url",
                          "transform" : "append",
                          "parameter" : [
                            {
                              "valueString" : "/Observation/"
                            },
                            {
                              "valueId" : "uuid"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "785b121a",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "resource",
                          "variable" : "tgt",
                          "transform" : "create",
                          "parameter" : [
                            {
                              "valueString" : "Observation"
                            }
                          ]
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "6104c4bd",
                          "source" : [
                            {
                              "context" : "src"
                            }
                          ],
                          "dependent" : [
                            {
                              "name" : "cheobservationcheb14s2de39f",
                              "variable" : [
                                "src",
                                "tgt"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "95a181ae",
          "source" : [
            {
              "context" : "src",
              "condition" : "src.item.where(linkId = 'CHE.B14S2.DE38').answer.where(value.code = 'CHE.B14S2.DE40')"
            }
          ],
          "rule" : [
            {
              "name" : "c46cbfc2",
              "source" : [
                {
                  "context" : "src",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'CHE.B14S2.DE38') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "233e72f5",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "bundle",
                      "contextType" : "variable",
                      "element" : "entry",
                      "variable" : "entry"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "b50ac4c5",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "request",
                          "variable" : "request"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "method",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "POST"
                            }
                          ]
                        },
                        {
                          "contextType" : "variable",
                          "variable" : "uuid",
                          "transform" : "uuid"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "url",
                          "transform" : "append",
                          "parameter" : [
                            {
                              "valueString" : "/Observation/"
                            },
                            {
                              "valueId" : "uuid"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "3653da4a",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "resource",
                          "variable" : "tgt",
                          "transform" : "create",
                          "parameter" : [
                            {
                              "valueString" : "Observation"
                            }
                          ]
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "63172721",
                          "source" : [
                            {
                              "context" : "src"
                            }
                          ],
                          "dependent" : [
                            {
                              "name" : "cheobservationcheb14s2de40t",
                              "variable" : [
                                "src",
                                "tgt"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "7af5d83b",
          "source" : [
            {
              "context" : "src",
              "condition" : "src.item.where(linkId = 'CHE.B14S2.DE38').exists() and src.item.where(linkId = 'CHE.B14S2.DE38').answer.where(value.code = 'CHE.B14S2.DE40').empty()"
            }
          ],
          "rule" : [
            {
              "name" : "087c0d2f",
              "source" : [
                {
                  "context" : "src",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'CHE.B14S2.DE38') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "d8dfec03",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "bundle",
                      "contextType" : "variable",
                      "element" : "entry",
                      "variable" : "entry"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "b50ac4c5",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "request",
                          "variable" : "request"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "method",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "POST"
                            }
                          ]
                        },
                        {
                          "contextType" : "variable",
                          "variable" : "uuid",
                          "transform" : "uuid"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "url",
                          "transform" : "append",
                          "parameter" : [
                            {
                              "valueString" : "/Observation/"
                            },
                            {
                              "valueId" : "uuid"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "23add157",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "resource",
                          "variable" : "tgt",
                          "transform" : "create",
                          "parameter" : [
                            {
                              "valueString" : "Observation"
                            }
                          ]
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "178efd53",
                          "source" : [
                            {
                              "context" : "src"
                            }
                          ],
                          "dependent" : [
                            {
                              "name" : "cheobservationcheb14s2de40f",
                              "variable" : [
                                "src",
                                "tgt"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "5690e0c0",
          "source" : [
            {
              "context" : "src",
              "condition" : "src.item.where(linkId = 'CHE.B14S2.DE38').answer.where(value.code = 'CHE.B14S2.DE41')"
            }
          ],
          "rule" : [
            {
              "name" : "d02acfea",
              "source" : [
                {
                  "context" : "src",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'CHE.B14S2.DE38') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "ddd14862",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "bundle",
                      "contextType" : "variable",
                      "element" : "entry",
                      "variable" : "entry"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "b50ac4c5",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "request",
                          "variable" : "request"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "method",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "POST"
                            }
                          ]
                        },
                        {
                          "contextType" : "variable",
                          "variable" : "uuid",
                          "transform" : "uuid"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "url",
                          "transform" : "append",
                          "parameter" : [
                            {
                              "valueString" : "/Observation/"
                            },
                            {
                              "valueId" : "uuid"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "f167b9ac",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "resource",
                          "variable" : "tgt",
                          "transform" : "create",
                          "parameter" : [
                            {
                              "valueString" : "Observation"
                            }
                          ]
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "60b3c0d7",
                          "source" : [
                            {
                              "context" : "src"
                            }
                          ],
                          "dependent" : [
                            {
                              "name" : "cheobservationcheb14s2de41t",
                              "variable" : [
                                "src",
                                "tgt"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "dc3d7a5c",
          "source" : [
            {
              "context" : "src",
              "condition" : "src.item.where(linkId = 'CHE.B14S2.DE38').exists() and src.item.where(linkId = 'CHE.B14S2.DE38').answer.where(value.code = 'CHE.B14S2.DE41').empty()"
            }
          ],
          "rule" : [
            {
              "name" : "a7f4be77",
              "source" : [
                {
                  "context" : "src",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'CHE.B14S2.DE38') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "d53e0826",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "bundle",
                      "contextType" : "variable",
                      "element" : "entry",
                      "variable" : "entry"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "b50ac4c5",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "request",
                          "variable" : "request"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "method",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "POST"
                            }
                          ]
                        },
                        {
                          "contextType" : "variable",
                          "variable" : "uuid",
                          "transform" : "uuid"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "url",
                          "transform" : "append",
                          "parameter" : [
                            {
                              "valueString" : "/Observation/"
                            },
                            {
                              "valueId" : "uuid"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "740c34d6",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "resource",
                          "variable" : "tgt",
                          "transform" : "create",
                          "parameter" : [
                            {
                              "valueString" : "Observation"
                            }
                          ]
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "3f994678",
                          "source" : [
                            {
                              "context" : "src"
                            }
                          ],
                          "dependent" : [
                            {
                              "name" : "cheobservationcheb14s2de41f",
                              "variable" : [
                                "src",
                                "tgt"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "d5021b3e",
          "source" : [
            {
              "context" : "src",
              "condition" : "src.item.where(linkId = 'CHE.B14S2.DE38').answer.where(value.code = 'CHE.B14S2.DE42')"
            }
          ],
          "rule" : [
            {
              "name" : "5f0b1aa5",
              "source" : [
                {
                  "context" : "src",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'CHE.B14S2.DE38') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "eb04e570",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "bundle",
                      "contextType" : "variable",
                      "element" : "entry",
                      "variable" : "entry"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "b50ac4c5",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "request",
                          "variable" : "request"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "method",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "POST"
                            }
                          ]
                        },
                        {
                          "contextType" : "variable",
                          "variable" : "uuid",
                          "transform" : "uuid"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "url",
                          "transform" : "append",
                          "parameter" : [
                            {
                              "valueString" : "/Observation/"
                            },
                            {
                              "valueId" : "uuid"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "8ce3e09a",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "resource",
                          "variable" : "tgt",
                          "transform" : "create",
                          "parameter" : [
                            {
                              "valueString" : "Observation"
                            }
                          ]
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "158c2ebd",
                          "source" : [
                            {
                              "context" : "src"
                            }
                          ],
                          "dependent" : [
                            {
                              "name" : "cheobservationcheb14s2de42t",
                              "variable" : [
                                "src",
                                "tgt"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "48e2630f",
          "source" : [
            {
              "context" : "src",
              "condition" : "src.item.where(linkId = 'CHE.B14S2.DE38').exists() and src.item.where(linkId = 'CHE.B14S2.DE38').answer.where(value.code = 'CHE.B14S2.DE42').empty()"
            }
          ],
          "rule" : [
            {
              "name" : "4c8c24fd",
              "source" : [
                {
                  "context" : "src",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'CHE.B14S2.DE38') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "2a701124",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "bundle",
                      "contextType" : "variable",
                      "element" : "entry",
                      "variable" : "entry"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "b50ac4c5",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "request",
                          "variable" : "request"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "method",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "POST"
                            }
                          ]
                        },
                        {
                          "contextType" : "variable",
                          "variable" : "uuid",
                          "transform" : "uuid"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "url",
                          "transform" : "append",
                          "parameter" : [
                            {
                              "valueString" : "/Observation/"
                            },
                            {
                              "valueId" : "uuid"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "35bd055d",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "resource",
                          "variable" : "tgt",
                          "transform" : "create",
                          "parameter" : [
                            {
                              "valueString" : "Observation"
                            }
                          ]
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "72ecb9fa",
                          "source" : [
                            {
                              "context" : "src"
                            }
                          ],
                          "dependent" : [
                            {
                              "name" : "cheobservationcheb14s2de42f",
                              "variable" : [
                                "src",
                                "tgt"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "7e9736bb",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "item",
              "condition" : "(linkId = 'CHE.B15S2.DE01') and answer.exists()"
            }
          ],
          "rule" : [
            {
              "name" : "9d33e3ff",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "bundle",
                  "contextType" : "variable",
                  "element" : "entry",
                  "variable" : "entry"
                }
              ],
              "rule" : [
                {
                  "name" : "b50ac4c5",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "entry",
                      "contextType" : "variable",
                      "element" : "request",
                      "variable" : "request"
                    },
                    {
                      "context" : "request",
                      "contextType" : "variable",
                      "element" : "method",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "POST"
                        }
                      ]
                    },
                    {
                      "contextType" : "variable",
                      "variable" : "uuid",
                      "transform" : "uuid"
                    },
                    {
                      "context" : "request",
                      "contextType" : "variable",
                      "element" : "url",
                      "transform" : "append",
                      "parameter" : [
                        {
                          "valueString" : "/Observation/"
                        },
                        {
                          "valueId" : "uuid"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "031f1439",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "entry",
                      "contextType" : "variable",
                      "element" : "resource",
                      "variable" : "tgt",
                      "transform" : "create",
                      "parameter" : [
                        {
                          "valueString" : "Observation"
                        }
                      ]
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "8c85ce6a",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "contextType" : "variable",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueId" : "tgt"
                            }
                          ]
                        }
                      ],
                      "dependent" : [
                        {
                          "name" : "cheobservationcheb15s2de01",
                          "variable" : [
                            "src",
                            "tgt"
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "22a2462d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "item",
              "condition" : "(linkId = 'CHE.B15S2.DE05') and answer.exists()"
            }
          ],
          "rule" : [
            {
              "name" : "efc29f91",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "bundle",
                  "contextType" : "variable",
                  "element" : "entry",
                  "variable" : "entry"
                }
              ],
              "rule" : [
                {
                  "name" : "b50ac4c5",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "entry",
                      "contextType" : "variable",
                      "element" : "request",
                      "variable" : "request"
                    },
                    {
                      "context" : "request",
                      "contextType" : "variable",
                      "element" : "method",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "POST"
                        }
                      ]
                    },
                    {
                      "contextType" : "variable",
                      "variable" : "uuid",
                      "transform" : "uuid"
                    },
                    {
                      "context" : "request",
                      "contextType" : "variable",
                      "element" : "url",
                      "transform" : "append",
                      "parameter" : [
                        {
                          "valueString" : "/Observation/"
                        },
                        {
                          "valueId" : "uuid"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "03f0b26d",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "entry",
                      "contextType" : "variable",
                      "element" : "resource",
                      "variable" : "tgt",
                      "transform" : "create",
                      "parameter" : [
                        {
                          "valueString" : "Observation"
                        }
                      ]
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "a8fc884a",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "contextType" : "variable",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueId" : "tgt"
                            }
                          ]
                        }
                      ],
                      "dependent" : [
                        {
                          "name" : "cheobservationcheb15s2de05",
                          "variable" : [
                            "src",
                            "tgt"
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "82d4f193",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "item",
              "condition" : "(linkId = 'CHE.B16S2.DE01') and answer.exists()"
            }
          ],
          "rule" : [
            {
              "name" : "eb6fab32",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "bundle",
                  "contextType" : "variable",
                  "element" : "entry",
                  "variable" : "entry"
                }
              ],
              "rule" : [
                {
                  "name" : "b50ac4c5",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "entry",
                      "contextType" : "variable",
                      "element" : "request",
                      "variable" : "request"
                    },
                    {
                      "context" : "request",
                      "contextType" : "variable",
                      "element" : "method",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "POST"
                        }
                      ]
                    },
                    {
                      "contextType" : "variable",
                      "variable" : "uuid",
                      "transform" : "uuid"
                    },
                    {
                      "context" : "request",
                      "contextType" : "variable",
                      "element" : "url",
                      "transform" : "append",
                      "parameter" : [
                        {
                          "valueString" : "/Observation/"
                        },
                        {
                          "valueId" : "uuid"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "c972eb7c",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "entry",
                      "contextType" : "variable",
                      "element" : "resource",
                      "variable" : "tgt",
                      "transform" : "create",
                      "parameter" : [
                        {
                          "valueString" : "Observation"
                        }
                      ]
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "dc9976f9",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "contextType" : "variable",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueId" : "tgt"
                            }
                          ]
                        }
                      ],
                      "dependent" : [
                        {
                          "name" : "cheobservationcheb16s2de01",
                          "variable" : [
                            "src",
                            "tgt"
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb10s2de03",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheb10s2de03",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheb10s2de03",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B10S2.DE03"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "a1a59c1c",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "itm1",
              "condition" : "linkId = 'cought_difficulty'"
            }
          ],
          "rule" : [
            {
              "name" : "3643892e",
              "source" : [
                {
                  "context" : "itm1",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'CHE.B10S2.DE03') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "bdab9370",
                  "source" : [
                    {
                      "context" : "item",
                      "element" : "answer",
                      "listMode" : "first",
                      "variable" : "a"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "final-cheb10s2de03",
                      "source" : [
                        {
                          "context" : "a",
                          "condition" : "a.value = true"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "status",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "final"
                            }
                          ]
                        },
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "value",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueBoolean" : true
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "notfound-cheb10s2de03",
                      "source" : [
                        {
                          "context" : "a",
                          "condition" : "a.value = false"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "status",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "cancelled"
                            }
                          ]
                        },
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "value",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueBoolean" : false
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb10s2de04",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheb10s2de04",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheb10s2de04",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B10S2.DE04"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "671db70c",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "itm1",
              "condition" : "linkId = 'cought_difficulty'"
            }
          ],
          "rule" : [
            {
              "name" : "ae563f8e",
              "source" : [
                {
                  "context" : "itm1",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'CHE.B10S2.DE04') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "bdab9370",
                  "source" : [
                    {
                      "context" : "item",
                      "element" : "answer",
                      "listMode" : "first",
                      "variable" : "a"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "final-cheb10s2de04",
                      "source" : [
                        {
                          "context" : "a",
                          "condition" : "a.value = true"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "status",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "final"
                            }
                          ]
                        },
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "value",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueBoolean" : true
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "notfound-cheb10s2de04",
                      "source" : [
                        {
                          "context" : "a",
                          "condition" : "a.value = false"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "status",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "cancelled"
                            }
                          ]
                        },
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "value",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueBoolean" : false
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb10s2de05",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheb10s2de05",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheb10s2de05",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B10S2.DE05"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "65b6d289",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "itm1",
              "condition" : "linkId = 'cought_difficulty'"
            }
          ],
          "rule" : [
            {
              "name" : "3247b1e7",
              "source" : [
                {
                  "context" : "itm1",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'CHE.B10S2.DE05') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "bdab9370",
                  "source" : [
                    {
                      "context" : "item",
                      "element" : "answer",
                      "listMode" : "first",
                      "variable" : "a"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "final-cheb10s2de05",
                      "source" : [
                        {
                          "context" : "a",
                          "condition" : "a.value = true"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "status",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "final"
                            }
                          ]
                        },
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "value",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueBoolean" : true
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "notfound-cheb10s2de05",
                      "source" : [
                        {
                          "context" : "a",
                          "condition" : "a.value = false"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "status",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "cancelled"
                            }
                          ]
                        },
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "value",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueBoolean" : false
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb10s2de06",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheb10s2de06",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheb10s2de06",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B10S2.DE06"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "cf6f5fac",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "itm1",
              "condition" : "linkId = 'cought_difficulty'"
            }
          ],
          "rule" : [
            {
              "name" : "594fd043",
              "source" : [
                {
                  "context" : "itm1",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'CHE.B10S2.DE06') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "bdab9370",
                  "source" : [
                    {
                      "context" : "item",
                      "element" : "answer",
                      "listMode" : "first",
                      "variable" : "a"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "final-cheb10s2de06",
                      "source" : [
                        {
                          "context" : "a",
                          "condition" : "a.value = true"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "status",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "final"
                            }
                          ]
                        },
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "value",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueBoolean" : true
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "notfound-cheb10s2de06",
                      "source" : [
                        {
                          "context" : "a",
                          "condition" : "a.value = false"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "status",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "cancelled"
                            }
                          ]
                        },
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "value",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueBoolean" : false
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb10s2de07",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheb10s2de07",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheb10s2de07",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B10S2.DE07"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "33638b4d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "itm1",
              "condition" : "linkId = 'cought_difficulty'"
            }
          ],
          "rule" : [
            {
              "name" : "725863c7",
              "source" : [
                {
                  "context" : "itm1",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'CHE.B10S2.DE07') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "bdab9370",
                  "source" : [
                    {
                      "context" : "item",
                      "element" : "answer",
                      "listMode" : "first",
                      "variable" : "a"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "final-cheb10s2de07",
                      "source" : [
                        {
                          "context" : "a",
                          "condition" : "a.value = true"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "status",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "final"
                            }
                          ]
                        },
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "value",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueBoolean" : true
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "notfound-cheb10s2de07",
                      "source" : [
                        {
                          "context" : "a",
                          "condition" : "a.value = false"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "status",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "cancelled"
                            }
                          ]
                        },
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "value",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueBoolean" : false
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb10s2de08",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheb10s2de08",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheb10s2de08",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B10S2.DE08"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "390bb223",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "itm1",
              "condition" : "linkId = 'cought_difficulty'"
            }
          ],
          "rule" : [
            {
              "name" : "7fc374e0",
              "source" : [
                {
                  "context" : "itm1",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'CHE.B10S2.DE08') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "d40466ff",
                  "source" : [
                    {
                      "context" : "item",
                      "element" : "answer",
                      "listMode" : "first",
                      "variable" : "a"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "afa0ccc0",
                      "source" : [
                        {
                          "context" : "a",
                          "element" : "value",
                          "variable" : "val"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "value",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueId" : "val"
                            }
                          ]
                        },
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "status",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "final"
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb10s2de09",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheb10s2de09",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheb10s2de09",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B10S2.DE09"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "c96afa29",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "itm1",
              "condition" : "linkId = 'cought_difficulty'"
            }
          ],
          "rule" : [
            {
              "name" : "39bc21fa",
              "source" : [
                {
                  "context" : "itm1",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'CHE.B10S2.DE09') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "eb220f01",
                  "source" : [
                    {
                      "context" : "item",
                      "element" : "answer",
                      "listMode" : "first",
                      "variable" : "a"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "938e1cf7",
                      "source" : [
                        {
                          "context" : "a",
                          "element" : "value",
                          "variable" : "val"
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "92ce5bab",
                          "source" : [
                            {
                              "context" : "val",
                              "condition" : "val.code = 'CHE.B10S2.DE09'"
                            }
                          ],
                          "target" : [
                            {
                              "context" : "tgt",
                              "contextType" : "variable",
                              "element" : "status",
                              "transform" : "copy",
                              "parameter" : [
                                {
                                  "valueString" : "final"
                                }
                              ]
                            },
                            {
                              "context" : "tgt",
                              "contextType" : "variable",
                              "element" : "value",
                              "transform" : "copy",
                              "parameter" : [
                                {
                                  "valueBoolean" : true
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb11s2de01",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheb11s2de01",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheb11s2de01",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B11S2.DE01"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "a31aa2b6",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "item",
              "condition" : "(linkId = 'CHE.B11S2.DE01') and answer.exists()"
            }
          ],
          "rule" : [
            {
              "name" : "bdab9370",
              "source" : [
                {
                  "context" : "item",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "a"
                }
              ],
              "rule" : [
                {
                  "name" : "final-cheb11s2de01",
                  "source" : [
                    {
                      "context" : "a",
                      "condition" : "a.value = true"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "status",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "final"
                        }
                      ]
                    },
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "value",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueBoolean" : true
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "notfound-cheb11s2de01",
                  "source" : [
                    {
                      "context" : "a",
                      "condition" : "a.value = false"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "status",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "cancelled"
                        }
                      ]
                    },
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "value",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueBoolean" : false
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb11s2de02",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheb11s2de02",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheb11s2de02",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B11S2.DE02"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "ecb0a4ef",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "item",
              "condition" : "(linkId = 'CHE.B11S2.DE02') and answer.exists()"
            }
          ],
          "rule" : [
            {
              "name" : "7c587a4b",
              "source" : [
                {
                  "context" : "item",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "a"
                }
              ],
              "rule" : [
                {
                  "name" : "4ca9082e",
                  "source" : [
                    {
                      "context" : "a",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "8ab1d7a5",
                      "source" : [
                        {
                          "context" : "val",
                          "condition" : "val.code = 'none'"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "status",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "cancelled"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "a1050460",
                      "source" : [
                        {
                          "context" : "val",
                          "condition" : "val.code != 'none'"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "value",
                          "variable" : "cc",
                          "transform" : "create",
                          "parameter" : [
                            {
                              "valueString" : "CodeableConcept"
                            }
                          ]
                        },
                        {
                          "context" : "cc",
                          "contextType" : "variable",
                          "element" : "coding",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueId" : "val"
                            }
                          ]
                        },
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "status",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "final"
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb11s2de06",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheb11s2de06",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheb11s2de06",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B11S2.DE06"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "06af4931",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "item",
              "condition" : "(linkId = 'CHE.B11S2.DE06') and answer.exists()"
            }
          ],
          "rule" : [
            {
              "name" : "bdab9370",
              "source" : [
                {
                  "context" : "item",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "a"
                }
              ],
              "rule" : [
                {
                  "name" : "final-cheb11s2de06",
                  "source" : [
                    {
                      "context" : "a",
                      "condition" : "a.value = true"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "status",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "final"
                        }
                      ]
                    },
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "value",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueBoolean" : true
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "notfound-cheb11s2de06",
                  "source" : [
                    {
                      "context" : "a",
                      "condition" : "a.value = false"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "status",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "cancelled"
                        }
                      ]
                    },
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "value",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueBoolean" : false
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb12s2de01",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheb12s2de01",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheb12s2de01",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B12S2.DE01"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "10525414",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "item",
              "condition" : "(linkId = 'CHE.B12S2.DE01') and answer.exists()"
            }
          ],
          "rule" : [
            {
              "name" : "bdab9370",
              "source" : [
                {
                  "context" : "item",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "a"
                }
              ],
              "rule" : [
                {
                  "name" : "final-cheb12s2de01",
                  "source" : [
                    {
                      "context" : "a",
                      "condition" : "a.value = true"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "status",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "final"
                        }
                      ]
                    },
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "value",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueBoolean" : true
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "notfound-cheb12s2de01",
                  "source" : [
                    {
                      "context" : "a",
                      "condition" : "a.value = false"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "status",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "cancelled"
                        }
                      ]
                    },
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "value",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueBoolean" : false
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb12s2de02",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheb12s2de02",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheb12s2de02",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B12S2.DE02"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "d589f606",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "item",
              "condition" : "(linkId = 'CHE.B12S2.DE02') and answer.exists()"
            }
          ],
          "rule" : [
            {
              "name" : "bdab9370",
              "source" : [
                {
                  "context" : "item",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "a"
                }
              ],
              "rule" : [
                {
                  "name" : "final-cheb12s2de02",
                  "source" : [
                    {
                      "context" : "a",
                      "condition" : "a.value = true"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "status",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "final"
                        }
                      ]
                    },
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "value",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueBoolean" : true
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "notfound-cheb12s2de02",
                  "source" : [
                    {
                      "context" : "a",
                      "condition" : "a.value = false"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "status",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "cancelled"
                        }
                      ]
                    },
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "value",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueBoolean" : false
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb12s2de03",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheb12s2de03",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheb12s2de03",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B12S2.DE03"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "632d71c9",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "item",
              "condition" : "(linkId = 'CHE.B12S2.DE03') and answer.exists()"
            }
          ],
          "rule" : [
            {
              "name" : "bdab9370",
              "source" : [
                {
                  "context" : "item",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "a"
                }
              ],
              "rule" : [
                {
                  "name" : "final-cheb12s2de03",
                  "source" : [
                    {
                      "context" : "a",
                      "condition" : "a.value = true"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "status",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "final"
                        }
                      ]
                    },
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "value",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueBoolean" : true
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "notfound-cheb12s2de03",
                  "source" : [
                    {
                      "context" : "a",
                      "condition" : "a.value = false"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "status",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "cancelled"
                        }
                      ]
                    },
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "value",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueBoolean" : false
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb12s2de05",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheb12s2de05",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheb12s2de05",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B12S2.DE05"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "71db10fc",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "item",
              "condition" : "(linkId = 'CHE.B12S2.DE05') and answer.exists()"
            }
          ],
          "rule" : [
            {
              "name" : "bdab9370",
              "source" : [
                {
                  "context" : "item",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "a"
                }
              ],
              "rule" : [
                {
                  "name" : "final-cheb12s2de05",
                  "source" : [
                    {
                      "context" : "a",
                      "condition" : "a.value = true"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "status",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "final"
                        }
                      ]
                    },
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "value",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueBoolean" : true
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "notfound-cheb12s2de05",
                  "source" : [
                    {
                      "context" : "a",
                      "condition" : "a.value = false"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "status",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "cancelled"
                        }
                      ]
                    },
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "value",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueBoolean" : false
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb13s2de01",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheb13s2de01",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheb13s2de01",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B13S2.DE01"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "d090e850",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "item",
              "condition" : "(linkId = 'CHE.B13S2.DE01') and answer.exists()"
            }
          ],
          "rule" : [
            {
              "name" : "bdab9370",
              "source" : [
                {
                  "context" : "item",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "a"
                }
              ],
              "rule" : [
                {
                  "name" : "final-cheb13s2de01",
                  "source" : [
                    {
                      "context" : "a",
                      "condition" : "a.value = true"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "status",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "final"
                        }
                      ]
                    },
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "value",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueBoolean" : true
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "notfound-cheb13s2de01",
                  "source" : [
                    {
                      "context" : "a",
                      "condition" : "a.value = false"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "status",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "cancelled"
                        }
                      ]
                    },
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "value",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueBoolean" : false
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb13s2de02",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheb13s2de02",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheb13s2de02",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B13S2.DE02"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "316c78a3",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "item",
              "condition" : "(linkId = 'CHE.B13S2.DE02') and answer.exists()"
            }
          ],
          "rule" : [
            {
              "name" : "bdab9370",
              "source" : [
                {
                  "context" : "item",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "a"
                }
              ],
              "rule" : [
                {
                  "name" : "final-cheb13s2de02",
                  "source" : [
                    {
                      "context" : "a",
                      "condition" : "a.value = true"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "status",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "final"
                        }
                      ]
                    },
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "value",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueBoolean" : true
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "notfound-cheb13s2de02",
                  "source" : [
                    {
                      "context" : "a",
                      "condition" : "a.value = false"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "status",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "cancelled"
                        }
                      ]
                    },
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "value",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueBoolean" : false
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb13s2de03",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheb13s2de03",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheb13s2de03",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B13S2.DE03"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "9d66829c",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "item",
              "condition" : "(linkId = 'CHE.B13S2.DE03') and answer.exists()"
            }
          ],
          "rule" : [
            {
              "name" : "7c587a4b",
              "source" : [
                {
                  "context" : "item",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "a"
                }
              ],
              "rule" : [
                {
                  "name" : "4ca9082e",
                  "source" : [
                    {
                      "context" : "a",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "8ab1d7a5",
                      "source" : [
                        {
                          "context" : "val",
                          "condition" : "val.code = 'none'"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "status",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "cancelled"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "a1050460",
                      "source" : [
                        {
                          "context" : "val",
                          "condition" : "val.code != 'none'"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "value",
                          "variable" : "cc",
                          "transform" : "create",
                          "parameter" : [
                            {
                              "valueString" : "CodeableConcept"
                            }
                          ]
                        },
                        {
                          "context" : "cc",
                          "contextType" : "variable",
                          "element" : "coding",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueId" : "val"
                            }
                          ]
                        },
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "status",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "final"
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb14s2de01",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheb14s2de01",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheb14s2de01",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B14S2.DE01"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "4e097293",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "item",
              "condition" : "(linkId = 'CHE.B14S2.DE01') and answer.exists()"
            }
          ],
          "rule" : [
            {
              "name" : "bdab9370",
              "source" : [
                {
                  "context" : "item",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "a"
                }
              ],
              "rule" : [
                {
                  "name" : "final-cheb14s2de01",
                  "source" : [
                    {
                      "context" : "a",
                      "condition" : "a.value = true"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "status",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "final"
                        }
                      ]
                    },
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "value",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueBoolean" : true
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "notfound-cheb14s2de01",
                  "source" : [
                    {
                      "context" : "a",
                      "condition" : "a.value = false"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "status",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "cancelled"
                        }
                      ]
                    },
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "value",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueBoolean" : false
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb14s2de02",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheb14s2de02",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheb14s2de02",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B14S2.DE02"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "52ed8da2",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "item",
              "condition" : "(linkId = 'CHE.B14S2.DE02') and answer.exists()"
            }
          ],
          "rule" : [
            {
              "name" : "bdab9370",
              "source" : [
                {
                  "context" : "item",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "a"
                }
              ],
              "rule" : [
                {
                  "name" : "final-cheb14s2de02",
                  "source" : [
                    {
                      "context" : "a",
                      "condition" : "a.value = true"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "status",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "final"
                        }
                      ]
                    },
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "value",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueBoolean" : true
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "notfound-cheb14s2de02",
                  "source" : [
                    {
                      "context" : "a",
                      "condition" : "a.value = false"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "status",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "cancelled"
                        }
                      ]
                    },
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "value",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueBoolean" : false
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb14s2de03",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheb14s2de03",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheb14s2de03",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B14S2.DE03"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "bb2fbd60",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "item",
              "condition" : "(linkId = 'CHE.B14S2.DE03') and answer.exists()"
            }
          ],
          "rule" : [
            {
              "name" : "bdab9370",
              "source" : [
                {
                  "context" : "item",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "a"
                }
              ],
              "rule" : [
                {
                  "name" : "final-cheb14s2de03",
                  "source" : [
                    {
                      "context" : "a",
                      "condition" : "a.value = true"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "status",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "final"
                        }
                      ]
                    },
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "value",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueBoolean" : true
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "notfound-cheb14s2de03",
                  "source" : [
                    {
                      "context" : "a",
                      "condition" : "a.value = false"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "status",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "cancelled"
                        }
                      ]
                    },
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "value",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueBoolean" : false
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb14s2de04",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheb14s2de04",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheb14s2de04",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B14S2.DE04"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "05ad93a6",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "item",
              "condition" : "(linkId = 'CHE.B14S2.DE04') and answer.exists()"
            }
          ],
          "rule" : [
            {
              "name" : "bdab9370",
              "source" : [
                {
                  "context" : "item",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "a"
                }
              ],
              "rule" : [
                {
                  "name" : "final-cheb14s2de04",
                  "source" : [
                    {
                      "context" : "a",
                      "condition" : "a.value = true"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "status",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "final"
                        }
                      ]
                    },
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "value",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueBoolean" : true
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "notfound-cheb14s2de04",
                  "source" : [
                    {
                      "context" : "a",
                      "condition" : "a.value = false"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "status",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "cancelled"
                        }
                      ]
                    },
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "value",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueBoolean" : false
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb14s2de05",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheb14s2de05",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheb14s2de05",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B14S2.DE05"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "66401790",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "item",
              "condition" : "(linkId = 'CHE.B14S2.DE05') and answer.exists()"
            }
          ],
          "rule" : [
            {
              "name" : "bdab9370",
              "source" : [
                {
                  "context" : "item",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "a"
                }
              ],
              "rule" : [
                {
                  "name" : "final-cheb14s2de05",
                  "source" : [
                    {
                      "context" : "a",
                      "condition" : "a.value = true"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "status",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "final"
                        }
                      ]
                    },
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "value",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueBoolean" : true
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "notfound-cheb14s2de05",
                  "source" : [
                    {
                      "context" : "a",
                      "condition" : "a.value = false"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "status",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "cancelled"
                        }
                      ]
                    },
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "value",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueBoolean" : false
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb14s2de07t",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheobservationcheb14s2de07t",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheobservationcheb14s2de07t",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B14S2.DE07"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "e9d639e1",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "status",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "final"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueBoolean" : true
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb14s2de07f",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheobservationcheb14s2de07f",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheobservationcheb14s2de07f",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B14S2.DE07"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "f21d6e36",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "status",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "cancelled"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueBoolean" : false
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb14s2de08t",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheobservationcheb14s2de08t",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheobservationcheb14s2de08t",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B14S2.DE08"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "e9d639e1",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "status",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "final"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueBoolean" : true
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb14s2de08f",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheobservationcheb14s2de08f",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheobservationcheb14s2de08f",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B14S2.DE08"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "f21d6e36",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "status",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "cancelled"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueBoolean" : false
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb14s2de09t",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheobservationcheb14s2de09t",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheobservationcheb14s2de09t",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B14S2.DE09"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "e9d639e1",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "status",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "final"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueBoolean" : true
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb14s2de09f",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheobservationcheb14s2de09f",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheobservationcheb14s2de09f",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B14S2.DE09"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "f21d6e36",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "status",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "cancelled"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueBoolean" : false
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb14s2de10",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheb14s2de10",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheb14s2de10",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B14S2.DE10"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "45094cde",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "item",
              "condition" : "(linkId = 'CHE.B14S2.DE10') and answer.exists()"
            }
          ],
          "rule" : [
            {
              "name" : "bdab9370",
              "source" : [
                {
                  "context" : "item",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "a"
                }
              ],
              "rule" : [
                {
                  "name" : "final-cheb14s2de10",
                  "source" : [
                    {
                      "context" : "a",
                      "condition" : "a.value = true"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "status",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "final"
                        }
                      ]
                    },
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "value",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueBoolean" : true
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "notfound-cheb14s2de10",
                  "source" : [
                    {
                      "context" : "a",
                      "condition" : "a.value = false"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "status",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "cancelled"
                        }
                      ]
                    },
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "value",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueBoolean" : false
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb14s2de11",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheb14s2de11",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheb14s2de11",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B14S2.DE11"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "3ff0fc37",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "item",
              "condition" : "(linkId = 'CHE.B14S2.DE11') and answer.exists()"
            }
          ],
          "rule" : [
            {
              "name" : "bdab9370",
              "source" : [
                {
                  "context" : "item",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "a"
                }
              ],
              "rule" : [
                {
                  "name" : "final-cheb14s2de11",
                  "source" : [
                    {
                      "context" : "a",
                      "condition" : "a.value = true"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "status",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "final"
                        }
                      ]
                    },
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "value",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueBoolean" : true
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "notfound-cheb14s2de11",
                  "source" : [
                    {
                      "context" : "a",
                      "condition" : "a.value = false"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "status",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "cancelled"
                        }
                      ]
                    },
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "value",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueBoolean" : false
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb14s2de11a",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheb14s2de11a",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheb14s2de11a",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B14S2.DE11A"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "84d53423",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "item",
              "condition" : "(linkId = 'CHE.B14S2.DE11A') and answer.exists()"
            }
          ],
          "rule" : [
            {
              "name" : "bdab9370",
              "source" : [
                {
                  "context" : "item",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "a"
                }
              ],
              "rule" : [
                {
                  "name" : "final-cheb14s2de11a",
                  "source" : [
                    {
                      "context" : "a",
                      "condition" : "a.value = true"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "status",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "final"
                        }
                      ]
                    },
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "value",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueBoolean" : true
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "notfound-cheb14s2de11a",
                  "source" : [
                    {
                      "context" : "a",
                      "condition" : "a.value = false"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "status",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "cancelled"
                        }
                      ]
                    },
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "value",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueBoolean" : false
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb14s2de012",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheb14s2de012",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheb14s2de012",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B14S2.DE012"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "62463681",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "item",
              "condition" : "(linkId = 'CHE.B14S2.DE012') and answer.exists()"
            }
          ],
          "rule" : [
            {
              "name" : "bdab9370",
              "source" : [
                {
                  "context" : "item",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "a"
                }
              ],
              "rule" : [
                {
                  "name" : "final-cheb14s2de012",
                  "source" : [
                    {
                      "context" : "a",
                      "condition" : "a.value = true"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "status",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "final"
                        }
                      ]
                    },
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "value",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueBoolean" : true
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "notfound-cheb14s2de012",
                  "source" : [
                    {
                      "context" : "a",
                      "condition" : "a.value = false"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "status",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "cancelled"
                        }
                      ]
                    },
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "value",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueBoolean" : false
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb14s2de14",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheb14s2de14",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheb14s2de14",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B14S2.DE14"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "2006dfba",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "itm1",
              "condition" : "linkId = 'CHE.B14S2.DE13'"
            }
          ],
          "rule" : [
            {
              "name" : "5af19059",
              "source" : [
                {
                  "context" : "itm1",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'CHE.B14S2.DE14') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "bdab9370",
                  "source" : [
                    {
                      "context" : "item",
                      "element" : "answer",
                      "listMode" : "first",
                      "variable" : "a"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "final-cheb14s2de14",
                      "source" : [
                        {
                          "context" : "a",
                          "condition" : "a.value = true"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "status",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "final"
                            }
                          ]
                        },
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "value",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueBoolean" : true
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "notfound-cheb14s2de14",
                      "source" : [
                        {
                          "context" : "a",
                          "condition" : "a.value = false"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "status",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "cancelled"
                            }
                          ]
                        },
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "value",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueBoolean" : false
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb14s2de15",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheb14s2de15",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheb14s2de15",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B14S2.DE15"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "a57c496c",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "itm1",
              "condition" : "linkId = 'CHE.B14S2.DE13'"
            }
          ],
          "rule" : [
            {
              "name" : "39218419",
              "source" : [
                {
                  "context" : "itm1",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'CHE.B14S2.DE15') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "bdab9370",
                  "source" : [
                    {
                      "context" : "item",
                      "element" : "answer",
                      "listMode" : "first",
                      "variable" : "a"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "final-cheb14s2de15",
                      "source" : [
                        {
                          "context" : "a",
                          "condition" : "a.value = true"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "status",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "final"
                            }
                          ]
                        },
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "value",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueBoolean" : true
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "notfound-cheb14s2de15",
                      "source" : [
                        {
                          "context" : "a",
                          "condition" : "a.value = false"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "status",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "cancelled"
                            }
                          ]
                        },
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "value",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueBoolean" : false
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb14s2de16",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheb14s2de16",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheb14s2de16",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B14S2.DE16"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "0722a638",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "itm1",
              "condition" : "linkId = 'CHE.B14S2.DE13'"
            }
          ],
          "rule" : [
            {
              "name" : "450cff64",
              "source" : [
                {
                  "context" : "itm1",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'CHE.B14S2.DE16') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "bdab9370",
                  "source" : [
                    {
                      "context" : "item",
                      "element" : "answer",
                      "listMode" : "first",
                      "variable" : "a"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "final-cheb14s2de16",
                      "source" : [
                        {
                          "context" : "a",
                          "condition" : "a.value = true"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "status",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "final"
                            }
                          ]
                        },
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "value",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueBoolean" : true
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "notfound-cheb14s2de16",
                      "source" : [
                        {
                          "context" : "a",
                          "condition" : "a.value = false"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "status",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "cancelled"
                            }
                          ]
                        },
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "value",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueBoolean" : false
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb14s2de17",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheb14s2de17",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheb14s2de17",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B14S2.DE17"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "1909815c",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "itm1",
              "condition" : "linkId = 'CHE.B14S2.DE13'"
            }
          ],
          "rule" : [
            {
              "name" : "897dc3be",
              "source" : [
                {
                  "context" : "itm1",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'CHE.B14S2.DE17') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "bdab9370",
                  "source" : [
                    {
                      "context" : "item",
                      "element" : "answer",
                      "listMode" : "first",
                      "variable" : "a"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "final-cheb14s2de17",
                      "source" : [
                        {
                          "context" : "a",
                          "condition" : "a.value = true"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "status",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "final"
                            }
                          ]
                        },
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "value",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueBoolean" : true
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "notfound-cheb14s2de17",
                      "source" : [
                        {
                          "context" : "a",
                          "condition" : "a.value = false"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "status",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "cancelled"
                            }
                          ]
                        },
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "value",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueBoolean" : false
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb14s2de19",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheb14s2de19",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheb14s2de19",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B14S2.DE19"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "8ca1952a",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "itm1",
              "condition" : "linkId = 'CHE.B14S2.DE13'"
            }
          ],
          "rule" : [
            {
              "name" : "f72f1788",
              "source" : [
                {
                  "context" : "itm1",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'CHE.B14S2.DE19') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "bdab9370",
                  "source" : [
                    {
                      "context" : "item",
                      "element" : "answer",
                      "listMode" : "first",
                      "variable" : "a"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "final-cheb14s2de19",
                      "source" : [
                        {
                          "context" : "a",
                          "condition" : "a.value = true"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "status",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "final"
                            }
                          ]
                        },
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "value",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueBoolean" : true
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "notfound-cheb14s2de19",
                      "source" : [
                        {
                          "context" : "a",
                          "condition" : "a.value = false"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "status",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "cancelled"
                            }
                          ]
                        },
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "value",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueBoolean" : false
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb14s2de20",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheb14s2de20",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheb14s2de20",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B14S2.DE20"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "923e59ee",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "itm1",
              "condition" : "linkId = 'CHE.B14S2.DE13'"
            }
          ],
          "rule" : [
            {
              "name" : "4a2edb0e",
              "source" : [
                {
                  "context" : "itm1",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'CHE.B14S2.DE20') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "bdab9370",
                  "source" : [
                    {
                      "context" : "item",
                      "element" : "answer",
                      "listMode" : "first",
                      "variable" : "a"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "final-cheb14s2de20",
                      "source" : [
                        {
                          "context" : "a",
                          "condition" : "a.value = true"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "status",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "final"
                            }
                          ]
                        },
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "value",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueBoolean" : true
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "notfound-cheb14s2de20",
                      "source" : [
                        {
                          "context" : "a",
                          "condition" : "a.value = false"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "status",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "cancelled"
                            }
                          ]
                        },
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "value",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueBoolean" : false
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb14s2de23",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheb14s2de23",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheb14s2de23",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B14S2.DE23"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "13801842",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "itm1",
              "condition" : "linkId = 'CHE.B14S2.DE13'"
            }
          ],
          "rule" : [
            {
              "name" : "608a4005",
              "source" : [
                {
                  "context" : "itm1",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'CHE.B14S2.DE23') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "bdab9370",
                  "source" : [
                    {
                      "context" : "item",
                      "element" : "answer",
                      "listMode" : "first",
                      "variable" : "a"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "final-cheb14s2de23",
                      "source" : [
                        {
                          "context" : "a",
                          "condition" : "a.value = true"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "status",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "final"
                            }
                          ]
                        },
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "value",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueBoolean" : true
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "notfound-cheb14s2de23",
                      "source" : [
                        {
                          "context" : "a",
                          "condition" : "a.value = false"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "status",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "cancelled"
                            }
                          ]
                        },
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "value",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueBoolean" : false
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb14s2de24",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheb14s2de24",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheb14s2de24",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B14S2.DE24"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "60767175",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "itm1",
              "condition" : "linkId = 'CHE.B14S2.DE13'"
            }
          ],
          "rule" : [
            {
              "name" : "25c8bf22",
              "source" : [
                {
                  "context" : "itm1",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'CHE.B14S2.DE24') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "bdab9370",
                  "source" : [
                    {
                      "context" : "item",
                      "element" : "answer",
                      "listMode" : "first",
                      "variable" : "a"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "final-cheb14s2de24",
                      "source" : [
                        {
                          "context" : "a",
                          "condition" : "a.value = true"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "status",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "final"
                            }
                          ]
                        },
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "value",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueBoolean" : true
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "notfound-cheb14s2de24",
                      "source" : [
                        {
                          "context" : "a",
                          "condition" : "a.value = false"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "status",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "cancelled"
                            }
                          ]
                        },
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "value",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueBoolean" : false
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb14s2de25",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheb14s2de25",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheb14s2de25",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B14S2.DE25"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "3c40004e",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "itm1",
              "condition" : "linkId = 'CHE.B14S2.DE13'"
            }
          ],
          "rule" : [
            {
              "name" : "db85fa52",
              "source" : [
                {
                  "context" : "itm1",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'CHE.B14S2.DE25') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "bdab9370",
                  "source" : [
                    {
                      "context" : "item",
                      "element" : "answer",
                      "listMode" : "first",
                      "variable" : "a"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "final-cheb14s2de25",
                      "source" : [
                        {
                          "context" : "a",
                          "condition" : "a.value = true"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "status",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "final"
                            }
                          ]
                        },
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "value",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueBoolean" : true
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "notfound-cheb14s2de25",
                      "source" : [
                        {
                          "context" : "a",
                          "condition" : "a.value = false"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "status",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "cancelled"
                            }
                          ]
                        },
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "value",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueBoolean" : false
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb14s2de26cheb14s2de27t",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheobservationcheb14s2de26cheb14s2de27t",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheobservationcheb14s2de26cheb14s2de27t",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B14S2.DE26&CHE.B14S2.DE27"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "e9d639e1",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "status",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "final"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueBoolean" : true
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb14s2de26cheb14s2de27f",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheobservationcheb14s2de26cheb14s2de27f",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheobservationcheb14s2de26cheb14s2de27f",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B14S2.DE26&CHE.B14S2.DE27"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "f21d6e36",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "status",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "cancelled"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueBoolean" : false
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb14s2de26cheb14s2de28t",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheobservationcheb14s2de26cheb14s2de28t",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheobservationcheb14s2de26cheb14s2de28t",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B14S2.DE26&CHE.B14S2.DE28"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "e9d639e1",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "status",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "final"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueBoolean" : true
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb14s2de26cheb14s2de28f",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheobservationcheb14s2de26cheb14s2de28f",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheobservationcheb14s2de26cheb14s2de28f",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B14S2.DE26&CHE.B14S2.DE28"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "f21d6e36",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "status",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "cancelled"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueBoolean" : false
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb14s2de26cheb14s2de29t",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheobservationcheb14s2de26cheb14s2de29t",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheobservationcheb14s2de26cheb14s2de29t",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B14S2.DE26&CHE.B14S2.DE29"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "e9d639e1",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "status",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "final"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueBoolean" : true
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb14s2de26cheb14s2de29f",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheobservationcheb14s2de26cheb14s2de29f",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheobservationcheb14s2de26cheb14s2de29f",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B14S2.DE26&CHE.B14S2.DE29"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "f21d6e36",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "status",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "cancelled"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueBoolean" : false
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb14s2de26cheb14s2de30t",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheobservationcheb14s2de26cheb14s2de30t",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheobservationcheb14s2de26cheb14s2de30t",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B14S2.DE26&CHE.B14S2.DE30"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "e9d639e1",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "status",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "final"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueBoolean" : true
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb14s2de26cheb14s2de30f",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheobservationcheb14s2de26cheb14s2de30f",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheobservationcheb14s2de26cheb14s2de30f",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B14S2.DE26&CHE.B14S2.DE30"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "f21d6e36",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "status",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "cancelled"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueBoolean" : false
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb14s2de26cheb14s2de30at",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheobservationcheb14s2de26cheb14s2de30at",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheobservationcheb14s2de26cheb14s2de30at",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B14S2.DE26&CHE.B14S2.DE30a"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "e9d639e1",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "status",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "final"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueBoolean" : true
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb14s2de26cheb14s2de30af",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheobservationcheb14s2de26cheb14s2de30af",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheobservationcheb14s2de26cheb14s2de30af",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B14S2.DE26&CHE.B14S2.DE30a"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "f21d6e36",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "status",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "cancelled"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueBoolean" : false
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb14s2de31",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheb14s2de31",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheb14s2de31",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B14S2.DE31"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "aa637ba6",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "itm1",
              "condition" : "linkId = 'CHE.B14S2.DE13'"
            }
          ],
          "rule" : [
            {
              "name" : "055fc452",
              "source" : [
                {
                  "context" : "itm1",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'CHE.B14S2.DE31') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "bdab9370",
                  "source" : [
                    {
                      "context" : "item",
                      "element" : "answer",
                      "listMode" : "first",
                      "variable" : "a"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "final-cheb14s2de31",
                      "source" : [
                        {
                          "context" : "a",
                          "condition" : "a.value = true"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "status",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "final"
                            }
                          ]
                        },
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "value",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueBoolean" : true
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "notfound-cheb14s2de31",
                      "source" : [
                        {
                          "context" : "a",
                          "condition" : "a.value = false"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "status",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "cancelled"
                            }
                          ]
                        },
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "value",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueBoolean" : false
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb14s2de32",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheb14s2de32",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheb14s2de32",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B14S2.DE32"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "c083af79",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "itm1",
              "condition" : "linkId = 'CHE.B14S2.DE13'"
            }
          ],
          "rule" : [
            {
              "name" : "17a0f55a",
              "source" : [
                {
                  "context" : "itm1",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'CHE.B14S2.DE32') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "bdab9370",
                  "source" : [
                    {
                      "context" : "item",
                      "element" : "answer",
                      "listMode" : "first",
                      "variable" : "a"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "final-cheb14s2de32",
                      "source" : [
                        {
                          "context" : "a",
                          "condition" : "a.value = true"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "status",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "final"
                            }
                          ]
                        },
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "value",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueBoolean" : true
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "notfound-cheb14s2de32",
                      "source" : [
                        {
                          "context" : "a",
                          "condition" : "a.value = false"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "status",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "cancelled"
                            }
                          ]
                        },
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "value",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueBoolean" : false
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb14s2de33",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheb14s2de33",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheb14s2de33",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B14S2.DE33"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "4e4788c5",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "itm1",
              "condition" : "linkId = 'CHE.B14S2.DE13'"
            }
          ],
          "rule" : [
            {
              "name" : "e4745a04",
              "source" : [
                {
                  "context" : "itm1",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'CHE.B14S2.DE33') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "bdab9370",
                  "source" : [
                    {
                      "context" : "item",
                      "element" : "answer",
                      "listMode" : "first",
                      "variable" : "a"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "final-cheb14s2de33",
                      "source" : [
                        {
                          "context" : "a",
                          "condition" : "a.value = true"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "status",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "final"
                            }
                          ]
                        },
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "value",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueBoolean" : true
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "notfound-cheb14s2de33",
                      "source" : [
                        {
                          "context" : "a",
                          "condition" : "a.value = false"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "status",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "cancelled"
                            }
                          ]
                        },
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "value",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueBoolean" : false
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb14s2de34",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheb14s2de34",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheb14s2de34",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B14S2.DE34"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "5cd616a6",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "itm1",
              "condition" : "linkId = 'CHE.B14S2.DE13'"
            }
          ],
          "rule" : [
            {
              "name" : "de0bbf97",
              "source" : [
                {
                  "context" : "itm1",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'CHE.B14S2.DE34') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "bdab9370",
                  "source" : [
                    {
                      "context" : "item",
                      "element" : "answer",
                      "listMode" : "first",
                      "variable" : "a"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "final-cheb14s2de34",
                      "source" : [
                        {
                          "context" : "a",
                          "condition" : "a.value = true"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "status",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "final"
                            }
                          ]
                        },
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "value",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueBoolean" : true
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "notfound-cheb14s2de34",
                      "source" : [
                        {
                          "context" : "a",
                          "condition" : "a.value = false"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "status",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "cancelled"
                            }
                          ]
                        },
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "value",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueBoolean" : false
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb14s2de35",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheb14s2de35",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheb14s2de35",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B14S2.DE35"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "f58c353f",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "itm1",
              "condition" : "linkId = 'CHE.B14S2.DE13'"
            }
          ],
          "rule" : [
            {
              "name" : "638d4331",
              "source" : [
                {
                  "context" : "itm1",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'CHE.B14S2.DE35') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "bdab9370",
                  "source" : [
                    {
                      "context" : "item",
                      "element" : "answer",
                      "listMode" : "first",
                      "variable" : "a"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "final-cheb14s2de35",
                      "source" : [
                        {
                          "context" : "a",
                          "condition" : "a.value = true"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "status",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "final"
                            }
                          ]
                        },
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "value",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueBoolean" : true
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "notfound-cheb14s2de35",
                      "source" : [
                        {
                          "context" : "a",
                          "condition" : "a.value = false"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "status",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "cancelled"
                            }
                          ]
                        },
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "value",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueBoolean" : false
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb14s2de36",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheb14s2de36",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheb14s2de36",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B14S2.DE36"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "0936cbf6",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "itm1",
              "condition" : "linkId = 'CHE.B14S2.DE13'"
            }
          ],
          "rule" : [
            {
              "name" : "cbbe5815",
              "source" : [
                {
                  "context" : "itm1",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'CHE.B14S2.DE36') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "bdab9370",
                  "source" : [
                    {
                      "context" : "item",
                      "element" : "answer",
                      "listMode" : "first",
                      "variable" : "a"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "final-cheb14s2de36",
                      "source" : [
                        {
                          "context" : "a",
                          "condition" : "a.value = true"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "status",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "final"
                            }
                          ]
                        },
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "value",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueBoolean" : true
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "notfound-cheb14s2de36",
                      "source" : [
                        {
                          "context" : "a",
                          "condition" : "a.value = false"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "status",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "cancelled"
                            }
                          ]
                        },
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "value",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueBoolean" : false
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb14s2de37",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheb14s2de37",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheb14s2de37",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B14S2.DE37"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "5682102f",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "itm1",
              "condition" : "linkId = 'CHE.B14S2.DE13'"
            }
          ],
          "rule" : [
            {
              "name" : "b86995dc",
              "source" : [
                {
                  "context" : "itm1",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'CHE.B14S2.DE37') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "bdab9370",
                  "source" : [
                    {
                      "context" : "item",
                      "element" : "answer",
                      "listMode" : "first",
                      "variable" : "a"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "final-cheb14s2de37",
                      "source" : [
                        {
                          "context" : "a",
                          "condition" : "a.value = true"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "status",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "final"
                            }
                          ]
                        },
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "value",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueBoolean" : true
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "notfound-cheb14s2de37",
                      "source" : [
                        {
                          "context" : "a",
                          "condition" : "a.value = false"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "status",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "cancelled"
                            }
                          ]
                        },
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "value",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueBoolean" : false
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb14s2de44",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheb14s2de44",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheb14s2de44",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B14S2.DE44"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "53079171",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "itm1",
              "condition" : "linkId = 'CHE.B14S2.DE43'"
            }
          ],
          "rule" : [
            {
              "name" : "bf7248e5",
              "source" : [
                {
                  "context" : "itm1",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'CHE.B14S2.DE44') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "6e03d90e",
                  "source" : [
                    {
                      "context" : "item",
                      "element" : "answer",
                      "listMode" : "first",
                      "variable" : "a"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "0179b73a",
                      "source" : [
                        {
                          "context" : "a",
                          "element" : "value",
                          "variable" : "val"
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "0b6db5a4",
                          "source" : [
                            {
                              "context" : "val",
                              "condition" : "val.code = 'CHE.B14S2.DE44'"
                            }
                          ],
                          "target" : [
                            {
                              "context" : "tgt",
                              "contextType" : "variable",
                              "element" : "status",
                              "transform" : "copy",
                              "parameter" : [
                                {
                                  "valueString" : "final"
                                }
                              ]
                            },
                            {
                              "context" : "tgt",
                              "contextType" : "variable",
                              "element" : "value",
                              "transform" : "copy",
                              "parameter" : [
                                {
                                  "valueBoolean" : true
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb14s2de45",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheb14s2de45",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheb14s2de45",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B14S2.DE45"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "28d2f74b",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "itm1",
              "condition" : "linkId = 'CHE.B14S2.DE43'"
            }
          ],
          "rule" : [
            {
              "name" : "dc5a7e6f",
              "source" : [
                {
                  "context" : "itm1",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'CHE.B14S2.DE45') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "474bfa7e",
                  "source" : [
                    {
                      "context" : "item",
                      "element" : "answer",
                      "listMode" : "first",
                      "variable" : "a"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "cfa88a12",
                      "source" : [
                        {
                          "context" : "a",
                          "element" : "value",
                          "variable" : "val"
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "e757280e",
                          "source" : [
                            {
                              "context" : "val",
                              "condition" : "val.code = 'CHE.B14S2.DE45'"
                            }
                          ],
                          "target" : [
                            {
                              "context" : "tgt",
                              "contextType" : "variable",
                              "element" : "status",
                              "transform" : "copy",
                              "parameter" : [
                                {
                                  "valueString" : "final"
                                }
                              ]
                            },
                            {
                              "context" : "tgt",
                              "contextType" : "variable",
                              "element" : "value",
                              "transform" : "copy",
                              "parameter" : [
                                {
                                  "valueBoolean" : true
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb14s2de46",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheb14s2de46",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheb14s2de46",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B14S2.DE46"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "2a5bd70e",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "itm1",
              "condition" : "linkId = 'CHE.B14S2.DE43'"
            }
          ],
          "rule" : [
            {
              "name" : "20c182dd",
              "source" : [
                {
                  "context" : "itm1",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'CHE.B14S2.DE46') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "674b3d37",
                  "source" : [
                    {
                      "context" : "item",
                      "element" : "answer",
                      "listMode" : "first",
                      "variable" : "a"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "b8a53423",
                      "source" : [
                        {
                          "context" : "a",
                          "element" : "value",
                          "variable" : "val"
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "6174d2b1",
                          "source" : [
                            {
                              "context" : "val",
                              "condition" : "val.code = 'CHE.B14S2.DE46'"
                            }
                          ],
                          "target" : [
                            {
                              "context" : "tgt",
                              "contextType" : "variable",
                              "element" : "status",
                              "transform" : "copy",
                              "parameter" : [
                                {
                                  "valueString" : "final"
                                }
                              ]
                            },
                            {
                              "context" : "tgt",
                              "contextType" : "variable",
                              "element" : "value",
                              "transform" : "copy",
                              "parameter" : [
                                {
                                  "valueBoolean" : true
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb14s2de39t",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheobservationcheb14s2de39t",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheobservationcheb14s2de39t",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B14S2.DE39"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "e9d639e1",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "status",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "final"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueBoolean" : true
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb14s2de39f",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheobservationcheb14s2de39f",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheobservationcheb14s2de39f",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B14S2.DE39"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "f21d6e36",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "status",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "cancelled"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueBoolean" : false
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb14s2de40t",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheobservationcheb14s2de40t",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheobservationcheb14s2de40t",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B14S2.DE40"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "e9d639e1",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "status",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "final"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueBoolean" : true
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb14s2de40f",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheobservationcheb14s2de40f",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheobservationcheb14s2de40f",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B14S2.DE40"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "f21d6e36",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "status",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "cancelled"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueBoolean" : false
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb14s2de41t",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheobservationcheb14s2de41t",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheobservationcheb14s2de41t",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B14S2.DE41"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "e9d639e1",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "status",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "final"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueBoolean" : true
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb14s2de41f",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheobservationcheb14s2de41f",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheobservationcheb14s2de41f",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B14S2.DE41"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "f21d6e36",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "status",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "cancelled"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueBoolean" : false
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb14s2de42t",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheobservationcheb14s2de42t",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheobservationcheb14s2de42t",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B14S2.DE42"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "e9d639e1",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "status",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "final"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueBoolean" : true
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb14s2de42f",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheobservationcheb14s2de42f",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheobservationcheb14s2de42f",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B14S2.DE42"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "f21d6e36",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "status",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "cancelled"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueBoolean" : false
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb15s2de01",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheb15s2de01",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheb15s2de01",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B15S2.DE01"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "c368427f",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "item",
              "condition" : "(linkId = 'CHE.B15S2.DE01') and answer.exists()"
            }
          ],
          "rule" : [
            {
              "name" : "7c587a4b",
              "source" : [
                {
                  "context" : "item",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "a"
                }
              ],
              "rule" : [
                {
                  "name" : "4ca9082e",
                  "source" : [
                    {
                      "context" : "a",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "8ab1d7a5",
                      "source" : [
                        {
                          "context" : "val",
                          "condition" : "val.code = 'none'"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "status",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "cancelled"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "a1050460",
                      "source" : [
                        {
                          "context" : "val",
                          "condition" : "val.code != 'none'"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "value",
                          "variable" : "cc",
                          "transform" : "create",
                          "parameter" : [
                            {
                              "valueString" : "CodeableConcept"
                            }
                          ]
                        },
                        {
                          "context" : "cc",
                          "contextType" : "variable",
                          "element" : "coding",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueId" : "val"
                            }
                          ]
                        },
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "status",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "final"
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb15s2de05",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheb15s2de05",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheb15s2de05",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B15S2.DE05"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "6f2995df",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "item",
              "condition" : "(linkId = 'CHE.B15S2.DE05') and answer.exists()"
            }
          ],
          "rule" : [
            {
              "name" : "7c587a4b",
              "source" : [
                {
                  "context" : "item",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "a"
                }
              ],
              "rule" : [
                {
                  "name" : "4ca9082e",
                  "source" : [
                    {
                      "context" : "a",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "8ab1d7a5",
                      "source" : [
                        {
                          "context" : "val",
                          "condition" : "val.code = 'none'"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "status",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "cancelled"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "a1050460",
                      "source" : [
                        {
                          "context" : "val",
                          "condition" : "val.code != 'none'"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "value",
                          "variable" : "cc",
                          "transform" : "create",
                          "parameter" : [
                            {
                              "valueString" : "CodeableConcept"
                            }
                          ]
                        },
                        {
                          "context" : "cc",
                          "contextType" : "variable",
                          "element" : "coding",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueId" : "val"
                            }
                          ]
                        },
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "status",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "final"
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cheobservationcheb16s2de01",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id-cheb16s2de01",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "identifier",
              "variable" : "CodeID",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Identifier"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "use",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "official"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "value",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "uuid"
                }
              ]
            },
            {
              "context" : "CodeID",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ]
        },
        {
          "name" : "35bc6b82",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "encounter"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "encounter",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "encounter"
                }
              ]
            }
          ]
        },
        {
          "name" : "code-cheb16s2de01",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            },
            {
              "context" : "newMeta",
              "contextType" : "variable",
              "element" : "profile",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
                }
              ]
            },
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "concept",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "concept",
              "contextType" : "variable",
              "element" : "coding",
              "variable" : "coding",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
                }
              ]
            },
            {
              "context" : "coding",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "CHE.B16S2.DE01"
                }
              ]
            }
          ]
        },
        {
          "name" : "aae7a11d",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "itemtimestamp",
              "condition" : "linkId = 'timestamp'"
            }
          ],
          "rule" : [
            {
              "name" : "7f22f29f",
              "source" : [
                {
                  "context" : "itemtimestamp",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "atimestamp"
                }
              ],
              "rule" : [
                {
                  "name" : "5af77f2c",
                  "source" : [
                    {
                      "context" : "atimestamp",
                      "element" : "value",
                      "variable" : "val"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "issued",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "val"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "subject"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "contextType" : "variable",
              "element" : "subject",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "subject"
                }
              ]
            }
          ]
        },
        {
          "name" : "864949e9",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "listMode" : "first",
              "variable" : "item",
              "condition" : "(linkId = 'CHE.B16S2.DE01') and answer.exists()"
            }
          ],
          "rule" : [
            {
              "name" : "bdab9370",
              "source" : [
                {
                  "context" : "item",
                  "element" : "answer",
                  "listMode" : "first",
                  "variable" : "a"
                }
              ],
              "rule" : [
                {
                  "name" : "final-cheb16s2de01",
                  "source" : [
                    {
                      "context" : "a",
                      "condition" : "a.value = true"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "status",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "final"
                        }
                      ]
                    },
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "value",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueBoolean" : true
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "notfound-cheb16s2de01",
                  "source" : [
                    {
                      "context" : "a",
                      "condition" : "a.value = false"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "status",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "cancelled"
                        }
                      ]
                    },
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "value",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueBoolean" : false
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}