Health New Zealand Te Whatu Ora Shared Care FHIR API
0.4.4 - release

Health New Zealand Te Whatu Ora Shared Care FHIR API - Local Development build (v0.4.4) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

## Resource Profile: CMSCommunication - TTL Profile

Active as of 2025-12-11

TTL representation of the CMSCommunication resource profile.

Raw ttl | Download

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

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

     a fhir:StructureDefinition ;
      fhir:nodeRole fhir:treeRoot ;
      fhir:id [ fhir:v "CMSCommunication"] ; #
      fhir:text [
    fhir:status [ fhir:v "extensions" ] ;
    fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: StructureDefinition CMSCommunication</b></p><a name=\"CMSCommunication\"> </a><a name=\"hcCMSCommunication\"> </a><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border: 0px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top;\"><tr style=\"border: 1px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top\"><th style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px\" class=\"hierarchy\"><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"The logical name of the element\">Name</a></th><th style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px\" class=\"hierarchy\"><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"Information about the use of the element\">Flags</a></th><th style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px\" class=\"hierarchy\"><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"Minimum and Maximum # of times the element can appear in the instance\">Card.</a></th><th style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px; width: 100px\" class=\"hierarchy\"><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"Reference to the type of the element\">Type</a></th><th style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px\" class=\"hierarchy\"><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"Additional information about the element\">Description &amp; Constraints</a><span style=\"float: right\"><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"Legend for this format\"><img src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC\" alt=\"doco\" style=\"background-color: inherit\"/></a></span></th></tr><tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_resource.png\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Resource\" class=\"hierarchy\"/> <a href=\"StructureDefinition-CMSCommunication-definitions.html#Communication\">Communication</a><a name=\"Communication\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">0</span><span style=\"opacity: 0.5\">..</span><span style=\"opacity: 0.5\">*</span></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R4/communication.html\">Communication</a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">A record of information transmitted from a sender to a receiver</span></td></tr>#xD;\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck11.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_element.gif\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Element\" class=\"hierarchy\"/> <a href=\"StructureDefinition-CMSCommunication-definitions.html#Communication.meta\">meta</a><a name=\"Communication.meta\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/></tr>#xD;\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck100.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vline.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin_end.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_element.gif\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Element\" class=\"hierarchy\"/> <a href=\"StructureDefinition-CMSCommunication-definitions.html#Communication.meta.profile\">profile</a><a name=\"Communication.meta.profile\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">1..1</td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R4/references.html\">canonical</a>(<a style=\"opacity: 0.5; opacity: 0.5\" href=\"http://hl7.org/fhir/R4/structuredefinition.html\">StructureDefinition</a>)</td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">Profiles this resource claims to conform to</span></td></tr>#xD;\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_element.gif\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Element\" class=\"hierarchy\"/> <span style=\"text-decoration:line-through\">contained</span><a name=\"Communication.contained\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"text-decoration:line-through\"/><span style=\"text-decoration:line-through\">0</span><span style=\"text-decoration:line-through\">..</span><span style=\"text-decoration:line-through\">0</span></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/></tr>#xD;\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck13.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_extension_simple.png\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Simple Extension\" class=\"hierarchy\"/> <a href=\"StructureDefinition-CMSCommunication-definitions.html#Communication.extension\">Slices for extension</a><a name=\"Communication.extension\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">2..<span style=\"opacity: 0.5\">*</span></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a style=\"opacity: 0.5; opacity: 0.5\" href=\"http://hl7.org/fhir/R4/extensibility.html#Extension\">Extension</a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">Extension</span><br/><span style=\"font-weight:bold\">Slice: </span>Unordered, Open by value:url</td></tr>#xD;\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck134.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vline.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin_slicer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_slice_item.png\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Slice Item\" class=\"hierarchy\"/> <a href=\"StructureDefinition-CMSCommunication-definitions.html#Communication.extension:Campaign\" title=\"Extension URL = https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/hnz-campaign-extension\">extension:Campaign</a><a name=\"Communication.extension.2\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">0..1</td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">(Complex)</td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">Campaign details</span><br/><span style=\"font-weight:bold\">URL: </span><a href=\"StructureDefinition-hnz-campaign-extension.html\">https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/hnz-campaign-extension</a></td></tr>#xD;\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck134.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vline.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin_slicer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_slice_item.png\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Slice Item\" class=\"hierarchy\"/> <a href=\"StructureDefinition-CMSCommunication-definitions.html#Communication.extension:ContactPoint\" title=\"Extension URL = https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/hnz-contact-point-extension\">extension:ContactPoint</a><a name=\"Communication.extension.3\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">1..1</td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">(Complex)</td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">Send to and from communication to contact points</span><br/><span style=\"font-weight:bold\">URL: </span><a href=\"StructureDefinition-hnz-contact-point-extension.html\">https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/hnz-contact-point-extension</a></td></tr>#xD;\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck134.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vline.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin_slicer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_slice_item.png\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Slice Item\" class=\"hierarchy\"/> <a href=\"StructureDefinition-CMSCommunication-definitions.html#Communication.extension:CallbackUrl\" title=\"Extension URL = https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/hnz-system-callback-url-extension\">extension:CallbackUrl</a><a name=\"Communication.extension.4\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">0..1</td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R4/datatypes.html#url\">url</a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">Callback Url</span><br/><span style=\"font-weight:bold\">URL: </span><a href=\"StructureDefinition-hnz-system-callback-url-extension.html\">https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/hnz-system-callback-url-extension</a></td></tr>#xD;\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck134.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vline.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin_slicer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_slice_item.png\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Slice Item\" class=\"hierarchy\"/> <a href=\"StructureDefinition-CMSCommunication-definitions.html#Communication.extension:StatusDateTime\" title=\"Extension URL = https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/hnz-status-date-time-extension\">extension:StatusDateTime</a><a name=\"Communication.extension.5\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">1..1</td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R4/datatypes.html#dateTime\">dateTime</a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">Status DateTime</span><br/><span style=\"font-weight:bold\">URL: </span><a href=\"StructureDefinition-hnz-status-date-time-extension.html\">https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/hnz-status-date-time-extension</a></td></tr>#xD;\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck124.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vline.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin_end_slicer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_slice_item.png\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Slice Item\" class=\"hierarchy\"/> <a href=\"StructureDefinition-CMSCommunication-definitions.html#Communication.extension:Reply\" title=\"Extension URL = https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/hnz-system-reply-extension\">extension:Reply</a><a name=\"Communication.extension.6\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">0..1</td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">(Complex)</td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">For sms reply</span><br/><span style=\"font-weight:bold\">URL: </span><a href=\"StructureDefinition-hnz-system-reply-extension.html\">https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/hnz-system-reply-extension</a></td></tr>#xD;\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck11.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_element.gif\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Element\" class=\"hierarchy\"/> <a href=\"StructureDefinition-CMSCommunication-definitions.html#Communication.identifier\">identifier</a><a name=\"Communication.identifier\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">1..<span style=\"opacity: 0.5\">*</span></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a style=\"opacity: 0.5; opacity: 0.5\" href=\"http://hl7.org/fhir/R4/datatypes.html#Identifier\">Identifier</a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">Unique identifier</span></td></tr>#xD;\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck110.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vline.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_element.gif\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Element\" class=\"hierarchy\"/> <a href=\"StructureDefinition-CMSCommunication-definitions.html#Communication.identifier.use\">use</a><a name=\"Communication.identifier.use\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">1..<span style=\"opacity: 0.5\">1</span></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a style=\"opacity: 0.5; opacity: 0.5\" href=\"http://hl7.org/fhir/R4/datatypes.html#code\">code</a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">usual | official | temp | secondary | old (If known)</span></td></tr>#xD;\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck110.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vline.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_element.gif\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Element\" class=\"hierarchy\"/> <a href=\"StructureDefinition-CMSCommunication-definitions.html#Communication.identifier.system\">system</a><a name=\"Communication.identifier.system\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">1..<span style=\"opacity: 0.5\">1</span></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a style=\"opacity: 0.5; opacity: 0.5\" href=\"http://hl7.org/fhir/R4/datatypes.html#uri\">uri</a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">The namespace for the identifier value</span></td></tr>#xD;\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck100.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vline.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin_end.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_element.gif\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Element\" class=\"hierarchy\"/> <a href=\"StructureDefinition-CMSCommunication-definitions.html#Communication.identifier.value\">value</a><a name=\"Communication.identifier.value\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">1..<span style=\"opacity: 0.5\">1</span></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a style=\"opacity: 0.5; opacity: 0.5\" href=\"http://hl7.org/fhir/R4/datatypes.html#string\">string</a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">The value that is unique</span></td></tr>#xD;\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_element.gif\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Element\" class=\"hierarchy\"/> <a href=\"StructureDefinition-CMSCommunication-definitions.html#Communication.basedOn\">basedOn</a><a name=\"Communication.basedOn\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">0</span>..1</td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R4/references.html\">Reference</a>(<a style=\"opacity: 0.5; opacity: 0.5\" href=\"http://hl7.org/fhir/R4/resource.html\">Resource</a>)</td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">Request fulfilled by this communication</span></td></tr>#xD;\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_element.gif\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Element\" class=\"hierarchy\"/> <a href=\"StructureDefinition-CMSCommunication-definitions.html#Communication.statusReason\">statusReason</a><a name=\"Communication.statusReason\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">0</span><span style=\"opacity: 0.5\">..</span><span style=\"opacity: 0.5\">1</span></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a style=\"opacity: 0.5; opacity: 0.5\" href=\"http://hl7.org/fhir/R4/datatypes.html#CodeableConcept\">CodeableConcept</a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">Reason for current status</span><br class=\"binding\"/><span style=\"font-weight:bold\" title=\"null\" class=\"binding\">Binding: </span><a href=\"ValueSet-hnz-communication-delivery-status-valueset.html\" title=\"https://fhir-ig.digital.health.nz/shared-care/ValueSet/hnz-communication-delivery-status-valueset\" class=\"binding\">Valueset for Communication Delivery Status</a><span title=\"null\" class=\"binding\"> (</span><a href=\"http://hl7.org/fhir/R4/terminologies.html#required\" title=\"To be conformant, the concept in this element SHALL be from the specified value set.\" class=\"binding\">required</a><span title=\"null\" class=\"binding\">)</span></td></tr>#xD;\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_element.gif\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Element\" class=\"hierarchy\"/> <a href=\"StructureDefinition-CMSCommunication-definitions.html#Communication.category\">category</a><a name=\"Communication.category\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">0</span>..1</td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a style=\"opacity: 0.5; opacity: 0.5\" href=\"http://hl7.org/fhir/R4/datatypes.html#CodeableConcept\">CodeableConcept</a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">Message category</span></td></tr>#xD;\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_element.gif\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Element\" class=\"hierarchy\"/> <a href=\"StructureDefinition-CMSCommunication-definitions.html#Communication.medium\">medium</a><a name=\"Communication.medium\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">1..<span style=\"opacity: 0.5\">*</span></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a style=\"opacity: 0.5; opacity: 0.5\" href=\"http://hl7.org/fhir/R4/datatypes.html#CodeableConcept\">CodeableConcept</a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">A channel of communication</span><br class=\"binding\"/><span style=\"font-weight:bold\" title=\"null\" class=\"binding\">Binding: </span><a href=\"ValueSet-hnz-participation-mode-valueset.html\" title=\"https://fhir-ig.digital.health.nz/shared-care/ValueSet/hnz-participation-mode-valueset\" class=\"binding\">Valueset for Participation Mode</a><span title=\"null\" class=\"binding\"> (</span><a href=\"http://hl7.org/fhir/R4/terminologies.html#required\" title=\"To be conformant, the concept in this element SHALL be from the specified value set.\" class=\"binding\">required</a><span title=\"null\" class=\"binding\">)</span></td></tr>#xD;\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_reference.png\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Reference to another Resource\" class=\"hierarchy\"/> <a href=\"StructureDefinition-CMSCommunication-definitions.html#Communication.subject\">subject</a><a name=\"Communication.subject\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">0</span><span style=\"opacity: 0.5\">..</span><span style=\"opacity: 0.5\">1</span></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R4/references.html\">Reference</a>(<a href=\"http://hl7.org/fhir/R4/patient.html\">Patient</a>)</td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">Focus of message</span></td></tr>#xD;\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_element.gif\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Element\" class=\"hierarchy\"/> <a href=\"StructureDefinition-CMSCommunication-definitions.html#Communication.sent\">sent</a><a name=\"Communication.sent\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">0</span><span style=\"opacity: 0.5\">..</span><span style=\"opacity: 0.5\">1</span></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a style=\"opacity: 0.5; opacity: 0.5\" href=\"http://hl7.org/fhir/R4/datatypes.html#dateTime\">dateTime</a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">Must be in UTC timezone on the FHIR server</td></tr>#xD;\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_reference.png\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Reference to another Resource\" class=\"hierarchy\"/> <a href=\"StructureDefinition-CMSCommunication-definitions.html#Communication.recipient\">recipient</a><a name=\"Communication.recipient\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">0</span><span style=\"opacity: 0.5\">..</span><span style=\"opacity: 0.5\">*</span></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R4/references.html\">Reference</a>(<a href=\"http://hl7.org/fhir/R4/patient.html\">Patient</a> | <a href=\"http://hl7.org/fhir/R4/practitioner.html\">Practitioner</a>)</td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">Message recipient</span></td></tr>#xD;\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck01.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin_end.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_element.gif\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Element\" class=\"hierarchy\"/> <a href=\"StructureDefinition-CMSCommunication-definitions.html#Communication.payload\">payload</a><a name=\"Communication.payload\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/></tr>#xD;\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck003.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_blank.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin_end.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_slice.png\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Slice Definition\" class=\"hierarchy\"/> <a style=\"font-style: italic; font-style: italic\" href=\"StructureDefinition-CMSCommunication-definitions.html#Communication.payload.content[x]\">Slices for content[x]</a><a name=\"Communication.payload.content_x_\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"font-style: italic\"/><span style=\"opacity: 0.5; font-style: italic\">1</span><span style=\"opacity: 0.5; font-style: italic\">..</span><span style=\"opacity: 0.5; font-style: italic\">1</span></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a style=\"opacity: 0.5; font-style: italic; opacity: 0.5; font-style: italic\" href=\"http://hl7.org/fhir/R4/datatypes.html#string\">string</a><span style=\"opacity: 0.5; font-style: italic\">, </span><a style=\"opacity: 0.5; font-style: italic; opacity: 0.5; font-style: italic\" href=\"http://hl7.org/fhir/R4/datatypes.html#Attachment\">Attachment</a><span style=\"opacity: 0.5; font-style: italic\">, </span><a style=\"font-style: italic; font-style: italic\" href=\"http://hl7.org/fhir/R4/references.html\">Reference</a><span style=\"font-style: italic\">(</span><a style=\"opacity: 0.5; font-style: italic; opacity: 0.5; font-style: italic\" href=\"http://hl7.org/fhir/R4/resource.html\">Resource</a><span style=\"font-style: italic\">)</span></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5; font-style: italic\">Message part content</span><br style=\"font-style: italic\"/><span style=\"font-weight:bold; font-style: italic\">Slice: </span><span style=\"font-style: italic\">Unordered, Open by type:$this</span></td></tr>#xD;\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck0025.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_blank.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_blank.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin_end_slicer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_slice_item.png\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Slice Item\" class=\"hierarchy\"/> <a href=\"StructureDefinition-CMSCommunication-definitions.html#Communication.payload.content[x]:contentAttachment\" title=\"Slice contentAttachment\">content[x]:contentAttachment</a><a name=\"Communication.payload.content_x_.2\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">0..1</td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R4/datatypes.html#Attachment\">Attachment</a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">Message part content</span></td></tr>#xD;\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck00243.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_blank.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_blank.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_blank.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin_end_slice.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_slice.png\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Slice Definition\" class=\"hierarchy\"/> Slices for extension<a name=\"Communication.payload.content_x_.extension\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">Content/Rules for all slices</td></tr>#xD;\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck002424.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_blank.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_blank.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_blank.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_blank.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin_end_slicer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_slice_item.png\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Slice Item\" class=\"hierarchy\"/> <a href=\"StructureDefinition-CMSCommunication-definitions.html#Communication.payload.content[x]:contentAttachment.extension:AttachmentExtension\" title=\"Extension URL = https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/hnz-attachment-extension\">extension:AttachmentExtension</a><a name=\"Communication.payload.content_x_.extension.2\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">0..1</td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">(Complex)</td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">Attachment details</span><br/><span style=\"font-weight:bold\">URL: </span><a href=\"StructureDefinition-hnz-attachment-extension.html\">https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/hnz-attachment-extension</a></td></tr>#xD;\n<tr><td colspan=\"5\" class=\"hierarchy\"><br/><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"Legend for this format\"><img src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC\" alt=\"doco\" style=\"background-color: inherit\"/> Documentation for this format</a></td></tr></table></div>"^^rdf:XMLLiteral
      ] ; #
      fhir:url [ fhir:v "https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/CMSCommunication"^^xsd:anyURI] ; #
      fhir:version [ fhir:v "0.0.1"] ; #
      fhir:name [ fhir:v "CMSCommunication"] ; #
      fhir:title [ fhir:v "CMS Communication"] ; #
      fhir:status [ fhir:v "active"] ; #
      fhir:date [ fhir:v "2025-12-11T23:52:07+00:00"^^xsd:dateTime] ; #
      fhir:publisher [ fhir:v "Te Whatu Ora"] ; #
      fhir:contact ( [
    fhir:name [ fhir:v "Te Whatu Ora" ] ;
        ( fhir:telecom [
    fhir:system [ fhir:v "url" ] ;
    fhir:value [ fhir:v "https://www.tewhatuora.govt.nz/" ]     ] )
      ] [
    fhir:name [ fhir:v "Te Whatu Ora Integration Team" ] ;
        ( fhir:telecom [
    fhir:system [ fhir:v "email" ] ;
    fhir:value [ fhir:v "integration@tewhatuora.govt.nz" ] ;
    fhir:use [ fhir:v "work" ]     ] )
      ] ) ; #
      fhir:description [ fhir:v "A communication Resource used to record the SMS/EMAIL communication  performed by Systems"] ; #
      fhir:jurisdiction ( [
        ( fhir:coding [
    fhir:system [ fhir:v "urn:iso:std:iso:3166"^^xsd:anyURI ] ;
    fhir:code [ fhir:v "NZ" ] ;
    fhir:display [ fhir:v "New Zealand" ]     ] )
      ] ) ; #
      fhir:purpose [ fhir:v "Record all the SMS/EMAIL communication  performed by any system"] ; #
      fhir:fhirVersion [ fhir:v "4.0.1"] ; #
      fhir:mapping ( [
    fhir:identity [ fhir:v "workflow" ] ;
    fhir:uri [ fhir:v "http://hl7.org/fhir/workflow"^^xsd:anyURI ] ;
    fhir:name [ fhir:v "Workflow Pattern" ]
      ] [
    fhir:identity [ fhir:v "w5" ] ;
    fhir:uri [ fhir:v "http://hl7.org/fhir/fivews"^^xsd:anyURI ] ;
    fhir:name [ fhir:v "FiveWs Pattern Mapping" ]
      ] [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:uri [ fhir:v "http://hl7.org/v3"^^xsd:anyURI ] ;
    fhir:name [ fhir:v "RIM Mapping" ]
      ] ) ; #
      fhir:kind [ fhir:v "resource"] ; #
      fhir:abstract [ fhir:v false] ; #
      fhir:type [ fhir:v "Communication"^^xsd:anyURI] ; #
      fhir:baseDefinition [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Communication"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Communication>
      ] ; #
      fhir:derivation [ fhir:v "constraint"] ; #
      fhir:snapshot [
        ( fhir:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "4.0.1"       ]     ] ) ;
        ( fhir:element [
    fhir:id [ fhir:v "Communication" ] ;
    fhir:path [ fhir:v "Communication" ] ;
    fhir:short [ fhir:v "A record of information transmitted from a sender to a receiver" ] ;
    fhir:definition [ fhir:v "An occurrence of information being transmitted; e.g. an alert that was sent to a responsible provider, a public health agency that was notified about a reportable condition." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "Communication" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:constraint [
    fhir:key [ fhir:v "dom-2" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "If the resource is contained in another resource, it SHALL NOT contain nested Resources" ] ;
    fhir:expression [ fhir:v "contained.contained.empty()" ] ;
    fhir:xpath [ fhir:v "not(parent::f:contained and f:contained)" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/DomainResource"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/DomainResource>         ]       ] [
    fhir:key [ fhir:v "dom-3" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource" ] ;
    fhir:expression [ fhir:v "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()" ] ;
    fhir:xpath [ fhir:v "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/DomainResource"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/DomainResource>         ]       ] [
    fhir:key [ fhir:v "dom-4" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated" ] ;
    fhir:expression [ fhir:v "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()" ] ;
    fhir:xpath [ fhir:v "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/DomainResource"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/DomainResource>         ]       ] [
    fhir:key [ fhir:v "dom-5" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "If a resource is contained in another resource, it SHALL NOT have a security label" ] ;
    fhir:expression [ fhir:v "contained.meta.security.empty()" ] ;
    fhir:xpath [ fhir:v "not(exists(f:contained/*/f:meta/f:security))" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/DomainResource"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/DomainResource>         ]       ] [
            ( fhir:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:boolean ;
    fhir:v true           ]         ] [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:markdown ;
    fhir:v "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."           ]         ] ) ;
    fhir:key [ fhir:v "dom-6" ] ;
    fhir:severity [ fhir:v "warning" ] ;
    fhir:human [ fhir:v "A resource should have narrative for robust management" ] ;
    fhir:expression [ fhir:v "text.`div`.exists()" ] ;
    fhir:xpath [ fhir:v "exists(f:text/h:div)" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/DomainResource"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/DomainResource>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "Entity. Role, or Act" ]       ] [
    fhir:identity [ fhir:v "workflow" ] ;
    fhir:map [ fhir:v "Event" ]       ] )     ] [
    fhir:id [ fhir:v "Communication.id" ] ;
    fhir:path [ fhir:v "Communication.id" ] ;
    fhir:short [ fhir:v "Logical id of this artifact" ] ;
    fhir:definition [ fhir:v "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes." ] ;
    fhir:comment [ fhir:v "The only time that a resource does not have an id is when it is being submitted to the server using a create operation." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Resource.id" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
            ( fhir:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:url ;
    fhir:v "id"^^xsd:anyURI           ]         ] ) ;
    fhir:code [ fhir:v "http://hl7.org/fhirpath/System.String"^^xsd:anyURI ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v true ]     ] [
    fhir:id [ fhir:v "Communication.meta" ] ;
    fhir:path [ fhir:v "Communication.meta" ] ;
    fhir:short [ fhir:v "Metadata about the resource" ] ;
    fhir:definition [ fhir:v "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Resource.meta" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Meta"^^xsd:anyURI ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v true ]     ] [
    fhir:id [ fhir:v "Communication.meta.id" ] ;
    fhir:path [ fhir:v "Communication.meta.id" ] ;
          ( fhir:representation [ fhir:v "xmlAttr" ] ) ;
    fhir:short [ fhir:v "Unique id for inter-element referencing" ] ;
    fhir:definition [ fhir:v "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Element.id" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
            ( fhir:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:url ;
    fhir:v "string"^^xsd:anyURI           ]         ] ) ;
    fhir:code [ fhir:v "http://hl7.org/fhirpath/System.String"^^xsd:anyURI ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "n/a" ]       ] )     ] [
    fhir:id [ fhir:v "Communication.meta.extension" ] ;
    fhir:path [ fhir:v "Communication.meta.extension" ] ;
    fhir:slicing [
            ( fhir:discriminator [
    fhir:type [ fhir:v "value" ] ;
    fhir:path [ fhir:v "url" ]         ] ) ;
    fhir:description [ fhir:v "Extensions are always sliced by (at least) url" ] ;
    fhir:rules [ fhir:v "open" ]       ] ;
    fhir:short [ fhir:v "Additional content defined by implementations" ] ;
    fhir:definition [ fhir:v "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." ] ;
    fhir:comment [ fhir:v "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ] ;
          ( fhir:alias [ fhir:v "extensions" ] [ fhir:v "user content" ] ) ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "Element.extension" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Extension"^^xsd:anyURI ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] [
    fhir:key [ fhir:v "ext-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "Must have either extensions or value[x], not both" ] ;
    fhir:expression [ fhir:v "extension.exists() != value.exists()" ] ;
    fhir:xpath [ fhir:v "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Extension"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "n/a" ]       ] )     ] [
    fhir:id [ fhir:v "Communication.meta.versionId" ] ;
    fhir:path [ fhir:v "Communication.meta.versionId" ] ;
    fhir:short [ fhir:v "Version specific identifier" ] ;
    fhir:definition [ fhir:v "The version specific identifier, as it appears in the version portion of the URL. This value changes when the resource is created, updated, or deleted." ] ;
    fhir:comment [ fhir:v "The server assigns this value, and ignores what the client specifies, except in the case that the server is imposing version integrity on updates/deletes." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Meta.versionId" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "id"^^xsd:anyURI ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v true ]     ] [
    fhir:id [ fhir:v "Communication.meta.lastUpdated" ] ;
    fhir:path [ fhir:v "Communication.meta.lastUpdated" ] ;
    fhir:short [ fhir:v "When the resource version last changed" ] ;
    fhir:definition [ fhir:v "When the resource last changed - e.g. when the version changed." ] ;
    fhir:comment [ fhir:v "This value is always populated except when the resource is first being created. The server / resource manager sets this value; what a client provides is irrelevant. This is equivalent to the HTTP Last-Modified and SHOULD have the same value on a [read](http://hl7.org/fhir/R4/http.html#read) interaction." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Meta.lastUpdated" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "instant"^^xsd:anyURI ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v true ]     ] [
    fhir:id [ fhir:v "Communication.meta.source" ] ;
    fhir:path [ fhir:v "Communication.meta.source" ] ;
    fhir:short [ fhir:v "Identifies where the resource comes from" ] ;
    fhir:definition [ fhir:v "A uri that identifies the source system of the resource. This provides a minimal amount of [Provenance](http://hl7.org/fhir/R4/provenance.html#) information that can be used to track or differentiate the source of information in the resource. The source may identify another FHIR server, document, message, database, etc." ] ;
    fhir:comment [ fhir:v "In the provenance resource, this corresponds to Provenance.entity.what[x]. The exact use of the source (and the implied Provenance.entity.role) is left to implementer discretion. Only one nominated source is allowed; for additional provenance details, a full Provenance resource should be used. \n\nThis element can be used to indicate where the current master source of a resource that has a canonical URL if the resource is no longer hosted at the canonical URL." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Meta.source" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "uri"^^xsd:anyURI ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v true ]     ] [
    fhir:id [ fhir:v "Communication.meta.profile" ] ;
    fhir:path [ fhir:v "Communication.meta.profile" ] ;
    fhir:short [ fhir:v "Profiles this resource claims to conform to" ] ;
    fhir:definition [ fhir:v "A list of profiles (references to [StructureDefinition](http://hl7.org/fhir/R4/structuredefinition.html#) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url](http://hl7.org/fhir/R4/structuredefinition-definitions.html#StructureDefinition.url)." ] ;
    fhir:comment [ fhir:v "It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time.  The list of profile URLs is a set." ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Meta.profile" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "canonical"^^xsd:anyURI ] ;
            ( fhir:targetProfile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/StructureDefinition"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/StructureDefinition>         ] )       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v true ]     ] [
    fhir:id [ fhir:v "Communication.meta.security" ] ;
    fhir:path [ fhir:v "Communication.meta.security" ] ;
    fhir:short [ fhir:v "Security Labels applied to this resource" ] ;
    fhir:definition [ fhir:v "Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure." ] ;
    fhir:comment [ fhir:v "The security labels can be updated without changing the stated version of the resource. The list of security labels is a set. Uniqueness is based the system/code, and version and display are ignored." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "Meta.security" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Coding"^^xsd:anyURI ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v true ] ;
    fhir:binding [
            ( fhir:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "SecurityLabels"           ]         ] ) ;
    fhir:strength [ fhir:v "extensible" ] ;
    fhir:description [ fhir:v "Security Labels from the Healthcare Privacy and Security Classification System." ] ;
    fhir:valueSet [
    fhir:v "http://hl7.org/fhir/ValueSet/security-labels"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/ValueSet/security-labels>         ]       ]     ] [
    fhir:id [ fhir:v "Communication.meta.tag" ] ;
    fhir:path [ fhir:v "Communication.meta.tag" ] ;
    fhir:short [ fhir:v "Tags applied to this resource" ] ;
    fhir:definition [ fhir:v "Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource." ] ;
    fhir:comment [ fhir:v "The tags can be updated without changing the stated version of the resource. The list of tags is a set. Uniqueness is based the system/code, and version and display are ignored." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "Meta.tag" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Coding"^^xsd:anyURI ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v true ] ;
    fhir:binding [
            ( fhir:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "Tags"           ]         ] ) ;
    fhir:strength [ fhir:v "example" ] ;
    fhir:description [ fhir:v "Codes that represent various types of tags, commonly workflow-related; e.g. \"Needs review by Dr. Jones\"." ] ;
    fhir:valueSet [
    fhir:v "http://hl7.org/fhir/ValueSet/common-tags"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/ValueSet/common-tags>         ]       ]     ] [
    fhir:id [ fhir:v "Communication.implicitRules" ] ;
    fhir:path [ fhir:v "Communication.implicitRules" ] ;
    fhir:short [ fhir:v "A set of rules under which this content was created" ] ;
    fhir:definition [ fhir:v "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc." ] ;
    fhir:comment [ fhir:v "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Resource.implicitRules" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "uri"^^xsd:anyURI ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v true ] ;
    fhir:isModifierReason [ fhir:v "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation" ] ;
    fhir:isSummary [ fhir:v true ]     ] [
    fhir:id [ fhir:v "Communication.language" ] ;
    fhir:path [ fhir:v "Communication.language" ] ;
    fhir:short [ fhir:v "Language of the resource content" ] ;
    fhir:definition [ fhir:v "The base language in which the resource is written." ] ;
    fhir:comment [ fhir:v "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute)." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Resource.language" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "code"^^xsd:anyURI ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ] ;
    fhir:binding [
            ( fhir:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:canonical ;
    fhir:v "http://hl7.org/fhir/ValueSet/all-languages"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/ValueSet/all-languages>           ]         ] [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "Language"           ]         ] ) ;
    fhir:strength [ fhir:v "preferred" ] ;
    fhir:description [ fhir:v "A human language." ] ;
    fhir:valueSet [
    fhir:v "http://hl7.org/fhir/ValueSet/languages"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/ValueSet/languages>         ]       ]     ] [
    fhir:id [ fhir:v "Communication.text" ] ;
    fhir:path [ fhir:v "Communication.text" ] ;
    fhir:short [ fhir:v "Text summary of the resource, for human interpretation" ] ;
    fhir:definition [ fhir:v "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety." ] ;
    fhir:comment [ fhir:v "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later." ] ;
          ( fhir:alias [ fhir:v "narrative" ] [ fhir:v "html" ] [ fhir:v "xhtml" ] [ fhir:v "display" ] ) ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "DomainResource.text" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Narrative"^^xsd:anyURI ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "Act.text?" ]       ] )     ] [
    fhir:id [ fhir:v "Communication.contained" ] ;
    fhir:path [ fhir:v "Communication.contained" ] ;
    fhir:short [ fhir:v "Contained, inline Resources" ] ;
    fhir:definition [ fhir:v "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope." ] ;
    fhir:comment [ fhir:v "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels." ] ;
          ( fhir:alias [ fhir:v "inline resources" ] [ fhir:v "anonymous resources" ] [ fhir:v "contained resources" ] ) ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "0" ] ;
    fhir:base [
    fhir:path [ fhir:v "DomainResource.contained" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Resource"^^xsd:anyURI ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "N/A" ]       ] )     ] [
    fhir:id [ fhir:v "Communication.extension" ] ;
    fhir:path [ fhir:v "Communication.extension" ] ;
    fhir:slicing [
            ( fhir:discriminator [
    fhir:type [ fhir:v "value" ] ;
    fhir:path [ fhir:v "url" ]         ] ) ;
    fhir:ordered [ fhir:v false ] ;
    fhir:rules [ fhir:v "open" ]       ] ;
    fhir:short [ fhir:v "Extension" ] ;
    fhir:definition [ fhir:v "An Extension" ] ;
    fhir:min [ fhir:v "2"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "DomainResource.extension" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Extension"^^xsd:anyURI ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] [
    fhir:key [ fhir:v "ext-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "Must have either extensions or value[x], not both" ] ;
    fhir:expression [ fhir:v "extension.exists() != value.exists()" ] ;
    fhir:xpath [ fhir:v "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Extension"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ]     ] [
    fhir:id [ fhir:v "Communication.extension:Campaign" ] ;
    fhir:path [ fhir:v "Communication.extension" ] ;
    fhir:sliceName [ fhir:v "Campaign" ] ;
    fhir:short [ fhir:v "Campaign details" ] ;
    fhir:definition [ fhir:v "For storing campaign codes and names" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "DomainResource.extension" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Extension"^^xsd:anyURI ] ;
            ( fhir:profile [
    fhir:v "https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/hnz-campaign-extension"^^xsd:anyURI ;
    fhir:link <https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/hnz-campaign-extension>         ] )       ] ) ;
          ( fhir:condition [ fhir:v "ele-1" ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] [
    fhir:key [ fhir:v "ext-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "Must have either extensions or value[x], not both" ] ;
    fhir:expression [ fhir:v "extension.exists() != value.exists()" ] ;
    fhir:xpath [ fhir:v "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Extension"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ]     ] [
    fhir:id [ fhir:v "Communication.extension:ContactPoint" ] ;
    fhir:path [ fhir:v "Communication.extension" ] ;
    fhir:sliceName [ fhir:v "ContactPoint" ] ;
    fhir:short [ fhir:v "Send to and from communication to contact points" ] ;
    fhir:definition [ fhir:v "Communication send to and from contact point" ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "DomainResource.extension" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Extension"^^xsd:anyURI ] ;
            ( fhir:profile [
    fhir:v "https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/hnz-contact-point-extension"^^xsd:anyURI ;
    fhir:link <https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/hnz-contact-point-extension>         ] )       ] ) ;
          ( fhir:condition [ fhir:v "ele-1" ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] [
    fhir:key [ fhir:v "ext-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "Must have either extensions or value[x], not both" ] ;
    fhir:expression [ fhir:v "extension.exists() != value.exists()" ] ;
    fhir:xpath [ fhir:v "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Extension"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ]     ] [
    fhir:id [ fhir:v "Communication.extension:CallbackUrl" ] ;
    fhir:path [ fhir:v "Communication.extension" ] ;
    fhir:sliceName [ fhir:v "CallbackUrl" ] ;
    fhir:short [ fhir:v "Callback Url" ] ;
    fhir:definition [ fhir:v "Callback Url for system" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "DomainResource.extension" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Extension"^^xsd:anyURI ] ;
            ( fhir:profile [
    fhir:v "https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/hnz-system-callback-url-extension"^^xsd:anyURI ;
    fhir:link <https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/hnz-system-callback-url-extension>         ] )       ] ) ;
          ( fhir:condition [ fhir:v "ele-1" ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] [
    fhir:key [ fhir:v "ext-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "Must have either extensions or value[x], not both" ] ;
    fhir:expression [ fhir:v "extension.exists() != value.exists()" ] ;
    fhir:xpath [ fhir:v "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Extension"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ]     ] [
    fhir:id [ fhir:v "Communication.extension:StatusDateTime" ] ;
    fhir:path [ fhir:v "Communication.extension" ] ;
    fhir:sliceName [ fhir:v "StatusDateTime" ] ;
    fhir:short [ fhir:v "Status DateTime" ] ;
    fhir:definition [ fhir:v "Status updated date time" ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "DomainResource.extension" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Extension"^^xsd:anyURI ] ;
            ( fhir:profile [
    fhir:v "https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/hnz-status-date-time-extension"^^xsd:anyURI ;
    fhir:link <https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/hnz-status-date-time-extension>         ] )       ] ) ;
          ( fhir:condition [ fhir:v "ele-1" ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] [
    fhir:key [ fhir:v "ext-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "Must have either extensions or value[x], not both" ] ;
    fhir:expression [ fhir:v "extension.exists() != value.exists()" ] ;
    fhir:xpath [ fhir:v "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Extension"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ]     ] [
    fhir:id [ fhir:v "Communication.extension:Reply" ] ;
    fhir:path [ fhir:v "Communication.extension" ] ;
    fhir:sliceName [ fhir:v "Reply" ] ;
    fhir:short [ fhir:v "For sms reply" ] ;
    fhir:definition [ fhir:v "Specifies whether a reply is expected and provides a webhook URL for the reply." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "DomainResource.extension" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Extension"^^xsd:anyURI ] ;
            ( fhir:profile [
    fhir:v "https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/hnz-system-reply-extension"^^xsd:anyURI ;
    fhir:link <https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/hnz-system-reply-extension>         ] )       ] ) ;
          ( fhir:condition [ fhir:v "ele-1" ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] [
    fhir:key [ fhir:v "ext-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "Must have either extensions or value[x], not both" ] ;
    fhir:expression [ fhir:v "extension.exists() != value.exists()" ] ;
    fhir:xpath [ fhir:v "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Extension"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ]     ] [
    fhir:id [ fhir:v "Communication.modifierExtension" ] ;
    fhir:path [ fhir:v "Communication.modifierExtension" ] ;
    fhir:short [ fhir:v "Extensions that cannot be ignored" ] ;
    fhir:definition [ fhir:v "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)." ] ;
    fhir:comment [ fhir:v "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ] ;
    fhir:requirements [ fhir:v "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)." ] ;
          ( fhir:alias [ fhir:v "extensions" ] [ fhir:v "user content" ] ) ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "DomainResource.modifierExtension" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Extension"^^xsd:anyURI ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] [
    fhir:key [ fhir:v "ext-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "Must have either extensions or value[x], not both" ] ;
    fhir:expression [ fhir:v "extension.exists() != value.exists()" ] ;
    fhir:xpath [ fhir:v "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Extension"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>         ]       ] ) ;
    fhir:isModifier [ fhir:v true ] ;
    fhir:isModifierReason [ fhir:v "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them" ] ;
    fhir:isSummary [ fhir:v false ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "N/A" ]       ] )     ] [
    fhir:id [ fhir:v "Communication.identifier" ] ;
    fhir:path [ fhir:v "Communication.identifier" ] ;
    fhir:short [ fhir:v "Unique identifier" ] ;
    fhir:definition [ fhir:v "Business identifiers assigned to this communication by the performer or other systems which remain constant as the resource is updated and propagates from server to server." ] ;
    fhir:comment [ fhir:v "This is a business identifier, not a resource identifier (see [discussion](http://hl7.org/fhir/R4/resource.html#identifiers)).  It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types.  For example, multiple Patient and a Person resource instance might share the same social insurance number." ] ;
    fhir:requirements [ fhir:v "Allows identification of the communication as it is known by various participating systems and in a way that remains consistent across servers." ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "Communication.identifier" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Identifier"^^xsd:anyURI ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "workflow" ] ;
    fhir:map [ fhir:v "Event.identifier" ]       ] [
    fhir:identity [ fhir:v "w5" ] ;
    fhir:map [ fhir:v "FiveWs.identifier" ]       ] )     ] [
    fhir:id [ fhir:v "Communication.identifier.id" ] ;
    fhir:path [ fhir:v "Communication.identifier.id" ] ;
          ( fhir:representation [ fhir:v "xmlAttr" ] ) ;
    fhir:short [ fhir:v "Unique id for inter-element referencing" ] ;
    fhir:definition [ fhir:v "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Element.id" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
            ( fhir:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:url ;
    fhir:v "string"^^xsd:anyURI           ]         ] ) ;
    fhir:code [ fhir:v "http://hl7.org/fhirpath/System.String"^^xsd:anyURI ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "n/a" ]       ] )     ] [
    fhir:id [ fhir:v "Communication.identifier.extension" ] ;
    fhir:path [ fhir:v "Communication.identifier.extension" ] ;
    fhir:slicing [
            ( fhir:discriminator [
    fhir:type [ fhir:v "value" ] ;
    fhir:path [ fhir:v "url" ]         ] ) ;
    fhir:description [ fhir:v "Extensions are always sliced by (at least) url" ] ;
    fhir:rules [ fhir:v "open" ]       ] ;
    fhir:short [ fhir:v "Additional content defined by implementations" ] ;
    fhir:definition [ fhir:v "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." ] ;
    fhir:comment [ fhir:v "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ] ;
          ( fhir:alias [ fhir:v "extensions" ] [ fhir:v "user content" ] ) ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "Element.extension" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Extension"^^xsd:anyURI ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] [
    fhir:key [ fhir:v "ext-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "Must have either extensions or value[x], not both" ] ;
    fhir:expression [ fhir:v "extension.exists() != value.exists()" ] ;
    fhir:xpath [ fhir:v "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Extension"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "n/a" ]       ] )     ] [
    fhir:id [ fhir:v "Communication.identifier.use" ] ;
    fhir:path [ fhir:v "Communication.identifier.use" ] ;
    fhir:short [ fhir:v "usual | official | temp | secondary | old (If known)" ] ;
    fhir:definition [ fhir:v "The purpose of this identifier." ] ;
    fhir:comment [ fhir:v "Applications can assume that an identifier is permanent unless it explicitly says that it is temporary." ] ;
    fhir:requirements [ fhir:v "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers." ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Identifier.use" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "code"^^xsd:anyURI ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v true ] ;
    fhir:isModifierReason [ fhir:v "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one." ] ;
    fhir:isSummary [ fhir:v true ] ;
    fhir:binding [
            ( fhir:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "IdentifierUse"           ]         ] ) ;
    fhir:strength [ fhir:v "required" ] ;
    fhir:description [ fhir:v "Identifies the purpose for this identifier, if known ." ] ;
    fhir:valueSet [
    fhir:v "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/ValueSet/identifier-use|4.0.1>         ]       ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "v2" ] ;
    fhir:map [ fhir:v "N/A" ]       ] [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "Role.code or implied by context" ]       ] )     ] [
    fhir:id [ fhir:v "Communication.identifier.type" ] ;
    fhir:path [ fhir:v "Communication.identifier.type" ] ;
    fhir:short [ fhir:v "Description of identifier" ] ;
    fhir:definition [ fhir:v "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose." ] ;
    fhir:comment [ fhir:v "This element deals only with general categories of identifiers.  It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage.   Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type." ] ;
    fhir:requirements [ fhir:v "Allows users to make use of identifiers when the identifier system is not known." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Identifier.type" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "CodeableConcept"^^xsd:anyURI ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v true ] ;
    fhir:binding [
            ( fhir:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "IdentifierType"           ]         ] ) ;
    fhir:strength [ fhir:v "extensible" ] ;
    fhir:description [ fhir:v "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose." ] ;
    fhir:valueSet [
    fhir:v "http://hl7.org/fhir/ValueSet/identifier-type"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/ValueSet/identifier-type>         ]       ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "v2" ] ;
    fhir:map [ fhir:v "CX.5" ]       ] [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "Role.code or implied by context" ]       ] )     ] [
    fhir:id [ fhir:v "Communication.identifier.system" ] ;
    fhir:path [ fhir:v "Communication.identifier.system" ] ;
    fhir:short [ fhir:v "The namespace for the identifier value" ] ;
    fhir:definition [ fhir:v "Establishes the namespace for the value - that is, a URL that describes a set values that are unique." ] ;
    fhir:comment [ fhir:v "Identifier.system is always case sensitive." ] ;
    fhir:requirements [ fhir:v "There are many sets  of identifiers.  To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers." ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Identifier.system" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "uri"^^xsd:anyURI ]       ] ) ;
          ( fhir:example [
    fhir:label [ fhir:v "General" ] ;
    fhir:value [
    a fhir:uri ;
    fhir:v "http://www.acme.com/identifiers/patient"^^xsd:anyURI         ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "v2" ] ;
    fhir:map [ fhir:v "CX.4 / EI-2-4" ]       ] [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "II.root or Role.id.root" ]       ] [
    fhir:identity [ fhir:v "servd" ] ;
    fhir:map [ fhir:v "./IdentifierType" ]       ] )     ] [
    fhir:id [ fhir:v "Communication.identifier.value" ] ;
    fhir:path [ fhir:v "Communication.identifier.value" ] ;
    fhir:short [ fhir:v "The value that is unique" ] ;
    fhir:definition [ fhir:v "The portion of the identifier typically relevant to the user and which is unique within the context of the system." ] ;
    fhir:comment [ fhir:v "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986.  The value's primary purpose is computational mapping.  As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.)  A value formatted for human display can be conveyed using the [Rendered Value extension](http://hl7.org/fhir/R4/extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe." ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Identifier.value" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "string"^^xsd:anyURI ]       ] ) ;
          ( fhir:example [
    fhir:label [ fhir:v "General" ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "123456"         ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "v2" ] ;
    fhir:map [ fhir:v "CX.1 / EI.1" ]       ] [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)" ]       ] [
    fhir:identity [ fhir:v "servd" ] ;
    fhir:map [ fhir:v "./Value" ]       ] )     ] [
    fhir:id [ fhir:v "Communication.identifier.period" ] ;
    fhir:path [ fhir:v "Communication.identifier.period" ] ;
    fhir:short [ fhir:v "Time period when id is/was valid for use" ] ;
    fhir:definition [ fhir:v "Time period during which identifier is/was valid for use." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Identifier.period" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Period"^^xsd:anyURI ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "v2" ] ;
    fhir:map [ fhir:v "CX.7 + CX.8" ]       ] [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "Role.effectiveTime or implied by context" ]       ] [
    fhir:identity [ fhir:v "servd" ] ;
    fhir:map [ fhir:v "./StartDate and ./EndDate" ]       ] )     ] [
    fhir:id [ fhir:v "Communication.identifier.assigner" ] ;
    fhir:path [ fhir:v "Communication.identifier.assigner" ] ;
    fhir:short [ fhir:v "Organization that issued id (may be just text)" ] ;
    fhir:definition [ fhir:v "Organization that issued/manages the identifier." ] ;
    fhir:comment [ fhir:v "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Identifier.assigner" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Reference"^^xsd:anyURI ] ;
            ( fhir:targetProfile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Organization"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Organization>         ] )       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "v2" ] ;
    fhir:map [ fhir:v "CX.4 / (CX.4,CX.9,CX.10)" ]       ] [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "II.assigningAuthorityName but note that this is an improper use by the definition of the field.  Also Role.scoper" ]       ] [
    fhir:identity [ fhir:v "servd" ] ;
    fhir:map [ fhir:v "./IdentifierIssuingAuthority" ]       ] )     ] [
    fhir:id [ fhir:v "Communication.instantiatesCanonical" ] ;
    fhir:path [ fhir:v "Communication.instantiatesCanonical" ] ;
    fhir:short [ fhir:v "Instantiates FHIR protocol or definition" ] ;
    fhir:definition [ fhir:v "The URL pointing to a FHIR-defined protocol, guideline, orderset or other definition that is adhered to in whole or in part by this Communication." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "Communication.instantiatesCanonical" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "canonical"^^xsd:anyURI ] ;
            ( fhir:targetProfile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/PlanDefinition"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/PlanDefinition>         ] [
    fhir:v "http://hl7.org/fhir/StructureDefinition/ActivityDefinition"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/ActivityDefinition>         ] [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Measure"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Measure>         ] [
    fhir:v "http://hl7.org/fhir/StructureDefinition/OperationDefinition"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/OperationDefinition>         ] [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Questionnaire"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Questionnaire>         ] )       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "workflow" ] ;
    fhir:map [ fhir:v "Event.instantiatesCanonical" ]       ] [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v ".outboundRelationship[typeCode=DEFN].target" ]       ] )     ] [
    fhir:id [ fhir:v "Communication.instantiatesUri" ] ;
    fhir:path [ fhir:v "Communication.instantiatesUri" ] ;
    fhir:short [ fhir:v "Instantiates external protocol or definition" ] ;
    fhir:definition [ fhir:v "The URL pointing to an externally maintained protocol, guideline, orderset or other definition that is adhered to in whole or in part by this Communication." ] ;
    fhir:comment [ fhir:v "This might be an HTML page, PDF, etc. or could just be a non-resolvable URI identifier." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "Communication.instantiatesUri" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "uri"^^xsd:anyURI ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "workflow" ] ;
    fhir:map [ fhir:v "Event.instantiatesUri" ]       ] [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v ".outboundRelationship[typeCode=DEFN].target" ]       ] )     ] [
    fhir:id [ fhir:v "Communication.basedOn" ] ;
    fhir:path [ fhir:v "Communication.basedOn" ] ;
    fhir:short [ fhir:v "Request fulfilled by this communication" ] ;
    fhir:definition [ fhir:v "An order, proposal or plan fulfilled in whole or in part by this Communication." ] ;
    fhir:comment [ fhir:v "This must point to some sort of a 'Request' resource, such as CarePlan, CommunicationRequest, ServiceRequest, MedicationRequest, etc." ] ;
          ( fhir:alias [ fhir:v "fulfills" ] ) ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Communication.basedOn" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Reference"^^xsd:anyURI ] ;
            ( fhir:targetProfile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Resource"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Resource>         ] )       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "workflow" ] ;
    fhir:map [ fhir:v "Event.basedOn" ]       ] )     ] [
    fhir:id [ fhir:v "Communication.partOf" ] ;
    fhir:path [ fhir:v "Communication.partOf" ] ;
    fhir:short [ fhir:v "Part of this action" ] ;
    fhir:definition [ fhir:v "Part of this action." ] ;
          ( fhir:alias [ fhir:v "container" ] ) ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "Communication.partOf" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Reference"^^xsd:anyURI ] ;
            ( fhir:targetProfile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Resource"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Resource>         ] )       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "workflow" ] ;
    fhir:map [ fhir:v "Event.partOf" ]       ] )     ] [
    fhir:id [ fhir:v "Communication.inResponseTo" ] ;
    fhir:path [ fhir:v "Communication.inResponseTo" ] ;
    fhir:short [ fhir:v "Reply to" ] ;
    fhir:definition [ fhir:v "Prior communication that this communication is in response to." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "Communication.inResponseTo" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Reference"^^xsd:anyURI ] ;
            ( fhir:targetProfile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Communication"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Communication>         ] )       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ]     ] [
    fhir:id [ fhir:v "Communication.status" ] ;
    fhir:path [ fhir:v "Communication.status" ] ;
    fhir:short [ fhir:v "preparation | in-progress | not-done | on-hold | stopped | completed | entered-in-error | unknown" ] ;
    fhir:definition [ fhir:v "The status of the transmission." ] ;
    fhir:comment [ fhir:v "This element is labeled as a modifier because the status contains the codes aborted and entered-in-error that mark the communication as not currently valid." ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Communication.status" ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "code"^^xsd:anyURI ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v true ] ;
    fhir:isModifierReason [ fhir:v "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid" ] ;
    fhir:isSummary [ fhir:v true ] ;
    fhir:binding [
            ( fhir:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "CommunicationStatus"           ]         ] ) ;
    fhir:strength [ fhir:v "required" ] ;
    fhir:description [ fhir:v "The status of the communication." ] ;
    fhir:valueSet [
    fhir:v "http://hl7.org/fhir/ValueSet/event-status|4.0.1"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/ValueSet/event-status|4.0.1>         ]       ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "workflow" ] ;
    fhir:map [ fhir:v "Event.status" ]       ] [
    fhir:identity [ fhir:v "w5" ] ;
    fhir:map [ fhir:v "FiveWs.status" ]       ] )     ] [
    fhir:id [ fhir:v "Communication.statusReason" ] ;
    fhir:path [ fhir:v "Communication.statusReason" ] ;
    fhir:short [ fhir:v "Reason for current status" ] ;
    fhir:definition [ fhir:v "Captures the reason for the current state of the Communication." ] ;
    fhir:comment [ fhir:v "This is generally only used for \"exception\" statuses such as \"not-done\", \"suspended\" or \"aborted\". The reason for performing the event at all is captured in reasonCode, not here." ] ;
          ( fhir:alias [ fhir:v "Suspended Reason" ] [ fhir:v "Cancelled Reason" ] ) ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Communication.statusReason" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "CodeableConcept"^^xsd:anyURI ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v true ] ;
    fhir:binding [
    fhir:strength [ fhir:v "required" ] ;
    fhir:valueSet [
    fhir:v "https://fhir-ig.digital.health.nz/shared-care/ValueSet/hnz-communication-delivery-status-valueset"^^xsd:anyURI ;
    fhir:link <https://fhir-ig.digital.health.nz/shared-care/ValueSet/hnz-communication-delivery-status-valueset>         ]       ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "workflow" ] ;
    fhir:map [ fhir:v "Event.statusReason" ]       ] )     ] [
    fhir:id [ fhir:v "Communication.category" ] ;
    fhir:path [ fhir:v "Communication.category" ] ;
    fhir:short [ fhir:v "Message category" ] ;
    fhir:definition [ fhir:v "The type of message conveyed such as alert, notification, reminder, instruction, etc." ] ;
    fhir:comment [ fhir:v "There may be multiple axes of categorization and one communication may serve multiple purposes." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Communication.category" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "CodeableConcept"^^xsd:anyURI ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ] ;
    fhir:binding [
            ( fhir:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "CommunicationCategory"           ]         ] ) ;
    fhir:strength [ fhir:v "example" ] ;
    fhir:description [ fhir:v "Codes for general categories of communications such as alerts, instructions, etc." ] ;
    fhir:valueSet [
    fhir:v "http://hl7.org/fhir/ValueSet/communication-category"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/ValueSet/communication-category>         ]       ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "w5" ] ;
    fhir:map [ fhir:v "FiveWs.class" ]       ] )     ] [
    fhir:id [ fhir:v "Communication.priority" ] ;
    fhir:path [ fhir:v "Communication.priority" ] ;
    fhir:short [ fhir:v "routine | urgent | asap | stat" ] ;
    fhir:definition [ fhir:v "Characterizes how quickly the planned or in progress communication must be addressed. Includes concepts such as stat, urgent, routine." ] ;
    fhir:comment [ fhir:v "Used to prioritize workflow (such as which communication to read first) when the communication is planned or in progress." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Communication.priority" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "code"^^xsd:anyURI ]       ] ) ;
    fhir:meaningWhenMissing [ fhir:v "If missing, this communication should be treated with normal priority" ] ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v true ] ;
    fhir:binding [
            ( fhir:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "CommunicationPriority"           ]         ] ) ;
    fhir:strength [ fhir:v "required" ] ;
    fhir:description [ fhir:v "Codes indicating the relative importance of a communication." ] ;
    fhir:valueSet [
    fhir:v "http://hl7.org/fhir/ValueSet/request-priority|4.0.1"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/ValueSet/request-priority|4.0.1>         ]       ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "w5" ] ;
    fhir:map [ fhir:v "FiveWs.grade" ]       ] )     ] [
    fhir:id [ fhir:v "Communication.medium" ] ;
    fhir:path [ fhir:v "Communication.medium" ] ;
    fhir:short [ fhir:v "A channel of communication" ] ;
    fhir:definition [ fhir:v "A channel that was used for this communication (e.g. email, fax)." ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "Communication.medium" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "CodeableConcept"^^xsd:anyURI ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ] ;
    fhir:binding [
    fhir:strength [ fhir:v "required" ] ;
    fhir:valueSet [
    fhir:v "https://fhir-ig.digital.health.nz/shared-care/ValueSet/hnz-participation-mode-valueset"^^xsd:anyURI ;
    fhir:link <https://fhir-ig.digital.health.nz/shared-care/ValueSet/hnz-participation-mode-valueset>         ]       ]     ] [
    fhir:id [ fhir:v "Communication.subject" ] ;
    fhir:path [ fhir:v "Communication.subject" ] ;
    fhir:short [ fhir:v "Focus of message" ] ;
    fhir:definition [ fhir:v "The patient or group that was the focus of this communication." ] ;
          ( fhir:alias [ fhir:v "patient" ] ) ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Communication.subject" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Reference"^^xsd:anyURI ] ;
            ( fhir:targetProfile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Patient"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Patient>         ] )       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "workflow" ] ;
    fhir:map [ fhir:v "Event.subject" ]       ] [
    fhir:identity [ fhir:v "w5" ] ;
    fhir:map [ fhir:v "FiveWs.subject[x]" ]       ] [
    fhir:identity [ fhir:v "w5" ] ;
    fhir:map [ fhir:v "FiveWs.subject" ]       ] )     ] [
    fhir:id [ fhir:v "Communication.topic" ] ;
    fhir:path [ fhir:v "Communication.topic" ] ;
    fhir:short [ fhir:v "Description of the purpose/content" ] ;
    fhir:definition [ fhir:v "Description of the purpose/content, similar to a subject line in an email." ] ;
    fhir:comment [ fhir:v "Communication.topic.text can be used without any codings." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Communication.topic" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "CodeableConcept"^^xsd:anyURI ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ] ;
    fhir:binding [
            ( fhir:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "CommunicationTopic"           ]         ] ) ;
    fhir:strength [ fhir:v "example" ] ;
    fhir:description [ fhir:v "Codes describing the purpose or content of the communication." ] ;
    fhir:valueSet [
    fhir:v "http://hl7.org/fhir/ValueSet/communication-topic"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/ValueSet/communication-topic>         ]       ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "w5" ] ;
    fhir:map [ fhir:v "FiveWs.context" ]       ] )     ] [
    fhir:id [ fhir:v "Communication.about" ] ;
    fhir:path [ fhir:v "Communication.about" ] ;
    fhir:short [ fhir:v "Resources that pertain to this communication" ] ;
    fhir:definition [ fhir:v "Other resources that pertain to this communication and to which this communication should be associated." ] ;
    fhir:comment [ fhir:v "Don't use Communication.about element when a more specific element exists, such as basedOn or reasonReference." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "Communication.about" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Reference"^^xsd:anyURI ] ;
            ( fhir:targetProfile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Resource"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Resource>         ] )       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "w5" ] ;
    fhir:map [ fhir:v "FiveWs.context" ]       ] )     ] [
    fhir:id [ fhir:v "Communication.encounter" ] ;
    fhir:path [ fhir:v "Communication.encounter" ] ;
    fhir:short [ fhir:v "Encounter created as part of" ] ;
    fhir:definition [ fhir:v "The Encounter during which this Communication was created or to which the creation of this record is tightly associated." ] ;
    fhir:comment [ fhir:v "This will typically be the encounter the event occurred within, but some activities may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Communication.encounter" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Reference"^^xsd:anyURI ] ;
            ( fhir:targetProfile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Encounter"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Encounter>         ] )       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "workflow" ] ;
    fhir:map [ fhir:v "Event.context" ]       ] [
    fhir:identity [ fhir:v "w5" ] ;
    fhir:map [ fhir:v "FiveWs.context" ]       ] )     ] [
    fhir:id [ fhir:v "Communication.sent" ] ;
    fhir:path [ fhir:v "Communication.sent" ] ;
    fhir:short [ fhir:v "Must be in UTC timezone on the FHIR server" ] ;
    fhir:definition [ fhir:v "The time when this communication was sent." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Communication.sent" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "dateTime"^^xsd:anyURI ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "workflow" ] ;
    fhir:map [ fhir:v "Event.occurrence[x] {Invariant: maps to period.start}" ]       ] [
    fhir:identity [ fhir:v "w5" ] ;
    fhir:map [ fhir:v "FiveWs.done[x]" ]       ] )     ] [
    fhir:id [ fhir:v "Communication.received" ] ;
    fhir:path [ fhir:v "Communication.received" ] ;
    fhir:short [ fhir:v "When received" ] ;
    fhir:definition [ fhir:v "The time when this communication arrived at the destination." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Communication.received" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "dateTime"^^xsd:anyURI ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "workflow" ] ;
    fhir:map [ fhir:v "Event.occurrence[x] {Invariant: maps to period.end}" ]       ] [
    fhir:identity [ fhir:v "w5" ] ;
    fhir:map [ fhir:v "FiveWs.done[x]" ]       ] )     ] [
    fhir:id [ fhir:v "Communication.recipient" ] ;
    fhir:path [ fhir:v "Communication.recipient" ] ;
    fhir:short [ fhir:v "Message recipient" ] ;
    fhir:definition [ fhir:v "The entity (e.g. person, organization, clinical information system, care team or device) which was the target of the communication. If receipts need to be tracked by an individual, a separate resource instance will need to be created for each recipient.  Multiple recipient communications are intended where either receipts are not tracked (e.g. a mass mail-out) or a receipt is captured in aggregate (all emails confirmed received by a particular time)." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "Communication.recipient" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Reference"^^xsd:anyURI ] ;
            ( fhir:targetProfile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Patient"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Patient>         ] [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Practitioner"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Practitioner>         ] )       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "workflow" ] ;
    fhir:map [ fhir:v "Event.performer.actor" ]       ] [
    fhir:identity [ fhir:v "w5" ] ;
    fhir:map [ fhir:v "FiveWs.actor" ]       ] )     ] [
    fhir:id [ fhir:v "Communication.sender" ] ;
    fhir:path [ fhir:v "Communication.sender" ] ;
    fhir:short [ fhir:v "Message sender" ] ;
    fhir:definition [ fhir:v "The entity (e.g. person, organization, clinical information system, or device) which was the source of the communication." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Communication.sender" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Reference"^^xsd:anyURI ] ;
            ( fhir:targetProfile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Device"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Device>         ] [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Organization"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Organization>         ] [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Patient"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Patient>         ] [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Practitioner"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Practitioner>         ] [
    fhir:v "http://hl7.org/fhir/StructureDefinition/PractitionerRole"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/PractitionerRole>         ] [
    fhir:v "http://hl7.org/fhir/StructureDefinition/RelatedPerson"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/RelatedPerson>         ] [
    fhir:v "http://hl7.org/fhir/StructureDefinition/HealthcareService"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/HealthcareService>         ] )       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "workflow" ] ;
    fhir:map [ fhir:v "Event.performer.actor" ]       ] [
    fhir:identity [ fhir:v "w5" ] ;
    fhir:map [ fhir:v "FiveWs.actor" ]       ] )     ] [
    fhir:id [ fhir:v "Communication.reasonCode" ] ;
    fhir:path [ fhir:v "Communication.reasonCode" ] ;
    fhir:short [ fhir:v "Indication for message" ] ;
    fhir:definition [ fhir:v "The reason or justification for the communication." ] ;
    fhir:comment [ fhir:v "Textual reasons can be captured using reasonCode.text." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "Communication.reasonCode" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "CodeableConcept"^^xsd:anyURI ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v true ] ;
    fhir:binding [
            ( fhir:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "CommunicationReason"           ]         ] ) ;
    fhir:strength [ fhir:v "example" ] ;
    fhir:description [ fhir:v "Codes for describing reasons for the occurrence of a communication." ] ;
    fhir:valueSet [
    fhir:v "http://hl7.org/fhir/ValueSet/clinical-findings"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/ValueSet/clinical-findings>         ]       ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "workflow" ] ;
    fhir:map [ fhir:v "Event.reasonCode" ]       ] [
    fhir:identity [ fhir:v "w5" ] ;
    fhir:map [ fhir:v "FiveWs.why[x]" ]       ] [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v ".reasonCode" ]       ] )     ] [
    fhir:id [ fhir:v "Communication.reasonReference" ] ;
    fhir:path [ fhir:v "Communication.reasonReference" ] ;
    fhir:short [ fhir:v "Why was communication done?" ] ;
    fhir:definition [ fhir:v "Indicates another resource whose existence justifies this communication." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "Communication.reasonReference" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Reference"^^xsd:anyURI ] ;
            ( fhir:targetProfile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Condition"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Condition>         ] [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Observation"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Observation>         ] [
    fhir:v "http://hl7.org/fhir/StructureDefinition/DiagnosticReport"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/DiagnosticReport>         ] [
    fhir:v "http://hl7.org/fhir/StructureDefinition/DocumentReference"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/DocumentReference>         ] )       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "workflow" ] ;
    fhir:map [ fhir:v "Event.reasonReference" ]       ] [
    fhir:identity [ fhir:v "w5" ] ;
    fhir:map [ fhir:v "FiveWs.why[x]" ]       ] [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v ".outboundRelationship[typeCode=RSON].target" ]       ] )     ] [
    fhir:id [ fhir:v "Communication.payload" ] ;
    fhir:path [ fhir:v "Communication.payload" ] ;
    fhir:short [ fhir:v "Message payload" ] ;
    fhir:definition [ fhir:v "Text, attachment(s), or resource(s) that was communicated to the recipient." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "Communication.payload" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "BackboneElement"^^xsd:anyURI ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ]     ] [
    fhir:id [ fhir:v "Communication.payload.id" ] ;
    fhir:path [ fhir:v "Communication.payload.id" ] ;
          ( fhir:representation [ fhir:v "xmlAttr" ] ) ;
    fhir:short [ fhir:v "Unique id for inter-element referencing" ] ;
    fhir:definition [ fhir:v "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Element.id" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
            ( fhir:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:url ;
    fhir:v "string"^^xsd:anyURI           ]         ] ) ;
    fhir:code [ fhir:v "http://hl7.org/fhirpath/System.String"^^xsd:anyURI ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "n/a" ]       ] )     ] [
    fhir:id [ fhir:v "Communication.payload.extension" ] ;
    fhir:path [ fhir:v "Communication.payload.extension" ] ;
    fhir:short [ fhir:v "Additional content defined by implementations" ] ;
    fhir:definition [ fhir:v "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." ] ;
    fhir:comment [ fhir:v "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ] ;
          ( fhir:alias [ fhir:v "extensions" ] [ fhir:v "user content" ] ) ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "Element.extension" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Extension"^^xsd:anyURI ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] [
    fhir:key [ fhir:v "ext-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "Must have either extensions or value[x], not both" ] ;
    fhir:expression [ fhir:v "extension.exists() != value.exists()" ] ;
    fhir:xpath [ fhir:v "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Extension"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "n/a" ]       ] )     ] [
    fhir:id [ fhir:v "Communication.payload.modifierExtension" ] ;
    fhir:path [ fhir:v "Communication.payload.modifierExtension" ] ;
    fhir:short [ fhir:v "Extensions that cannot be ignored even if unrecognized" ] ;
    fhir:definition [ fhir:v "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)." ] ;
    fhir:comment [ fhir:v "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ] ;
    fhir:requirements [ fhir:v "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)." ] ;
          ( fhir:alias [ fhir:v "extensions" ] [ fhir:v "user content" ] [ fhir:v "modifiers" ] ) ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "BackboneElement.modifierExtension" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Extension"^^xsd:anyURI ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] [
    fhir:key [ fhir:v "ext-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "Must have either extensions or value[x], not both" ] ;
    fhir:expression [ fhir:v "extension.exists() != value.exists()" ] ;
    fhir:xpath [ fhir:v "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Extension"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>         ]       ] ) ;
    fhir:isModifier [ fhir:v true ] ;
    fhir:isModifierReason [ fhir:v "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them" ] ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "N/A" ]       ] )     ] [
    fhir:id [ fhir:v "Communication.payload.content[x]" ] ;
    fhir:path [ fhir:v "Communication.payload.content[x]" ] ;
    fhir:slicing [
            ( fhir:discriminator [
    fhir:type [ fhir:v "type" ] ;
    fhir:path [ fhir:v "$this" ]         ] ) ;
    fhir:ordered [ fhir:v false ] ;
    fhir:rules [ fhir:v "open" ]       ] ;
    fhir:short [ fhir:v "Message part content" ] ;
    fhir:definition [ fhir:v "A communicated content (or for multi-part communications, one portion of the communication)." ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Communication.payload.content[x]" ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "string"^^xsd:anyURI ]       ] [
    fhir:code [ fhir:v "Attachment"^^xsd:anyURI ]       ] [
    fhir:code [ fhir:v "Reference"^^xsd:anyURI ] ;
            ( fhir:targetProfile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Resource"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Resource>         ] )       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ]     ] [
    fhir:id [ fhir:v "Communication.payload.content[x]:contentAttachment" ] ;
    fhir:path [ fhir:v "Communication.payload.content[x]" ] ;
    fhir:sliceName [ fhir:v "contentAttachment" ] ;
    fhir:short [ fhir:v "Message part content" ] ;
    fhir:definition [ fhir:v "A communicated content (or for multi-part communications, one portion of the communication)." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Communication.payload.content[x]" ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Attachment"^^xsd:anyURI ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ]     ] [
    fhir:id [ fhir:v "Communication.payload.content[x]:contentAttachment.id" ] ;
    fhir:path [ fhir:v "Communication.payload.content[x].id" ] ;
          ( fhir:representation [ fhir:v "xmlAttr" ] ) ;
    fhir:short [ fhir:v "Unique id for inter-element referencing" ] ;
    fhir:definition [ fhir:v "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Element.id" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
            ( fhir:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:url ;
    fhir:v "string"^^xsd:anyURI           ]         ] ) ;
    fhir:code [ fhir:v "http://hl7.org/fhirpath/System.String"^^xsd:anyURI ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "n/a" ]       ] )     ] [
    fhir:id [ fhir:v "Communication.payload.content[x]:contentAttachment.extension" ] ;
    fhir:path [ fhir:v "Communication.payload.content[x].extension" ] ;
    fhir:slicing [
            ( fhir:discriminator [
    fhir:type [ fhir:v "value" ] ;
    fhir:path [ fhir:v "url" ]         ] ) ;
    fhir:description [ fhir:v "Extensions are always sliced by (at least) url" ] ;
    fhir:rules [ fhir:v "open" ]       ] ;
    fhir:short [ fhir:v "Additional content defined by implementations" ] ;
    fhir:definition [ fhir:v "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." ] ;
    fhir:comment [ fhir:v "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ] ;
          ( fhir:alias [ fhir:v "extensions" ] [ fhir:v "user content" ] ) ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "Element.extension" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Extension"^^xsd:anyURI ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] [
    fhir:key [ fhir:v "ext-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "Must have either extensions or value[x], not both" ] ;
    fhir:expression [ fhir:v "extension.exists() != value.exists()" ] ;
    fhir:xpath [ fhir:v "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Extension"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "n/a" ]       ] )     ] [
    fhir:id [ fhir:v "Communication.payload.content[x]:contentAttachment.extension:AttachmentExtension" ] ;
    fhir:path [ fhir:v "Communication.payload.content[x].extension" ] ;
    fhir:sliceName [ fhir:v "AttachmentExtension" ] ;
    fhir:short [ fhir:v "Attachment details" ] ;
    fhir:definition [ fhir:v "Extra details for attachment to help with rendering" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Element.extension" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Extension"^^xsd:anyURI ] ;
            ( fhir:profile [
    fhir:v "https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/hnz-attachment-extension"^^xsd:anyURI ;
    fhir:link <https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/hnz-attachment-extension>         ] )       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] [
    fhir:key [ fhir:v "ext-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "Must have either extensions or value[x], not both" ] ;
    fhir:expression [ fhir:v "extension.exists() != value.exists()" ] ;
    fhir:xpath [ fhir:v "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Extension"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ]     ] [
    fhir:id [ fhir:v "Communication.payload.content[x]:contentAttachment.contentType" ] ;
    fhir:path [ fhir:v "Communication.payload.content[x].contentType" ] ;
    fhir:short [ fhir:v "Mime type of the content, with charset etc." ] ;
    fhir:definition [ fhir:v "Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate." ] ;
    fhir:requirements [ fhir:v "Processors of the data need to be able to know how to interpret the data." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Attachment.contentType" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "code"^^xsd:anyURI ]       ] ) ;
          ( fhir:example [
    fhir:label [ fhir:v "General" ] ;
    fhir:value [
    a fhir:code ;
    fhir:v "text/plain; charset=UTF-8, image/png"         ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v true ] ;
    fhir:binding [
            ( fhir:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "MimeType"           ]         ] ) ;
    fhir:strength [ fhir:v "required" ] ;
    fhir:description [ fhir:v "The mime type of an attachment. Any valid mime type is allowed." ] ;
    fhir:valueSet [
    fhir:v "http://hl7.org/fhir/ValueSet/mimetypes|4.0.1"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/ValueSet/mimetypes|4.0.1>         ]       ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "v2" ] ;
    fhir:map [ fhir:v "ED.2+ED.3/RP.2+RP.3. Note conversion may be needed if old style values are being used" ]       ] [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "./mediaType, ./charset" ]       ] )     ] [
    fhir:id [ fhir:v "Communication.payload.content[x]:contentAttachment.language" ] ;
    fhir:path [ fhir:v "Communication.payload.content[x].language" ] ;
    fhir:short [ fhir:v "Human language of the content (BCP-47)" ] ;
    fhir:definition [ fhir:v "The human language of the content. The value can be any valid value according to BCP 47." ] ;
    fhir:requirements [ fhir:v "Users need to be able to choose between the languages in a set of attachments." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Attachment.language" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "code"^^xsd:anyURI ]       ] ) ;
          ( fhir:example [
    fhir:label [ fhir:v "General" ] ;
    fhir:value [
    a fhir:code ;
    fhir:v "en-AU"         ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v true ] ;
    fhir:binding [
            ( fhir:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:canonical ;
    fhir:v "http://hl7.org/fhir/ValueSet/all-languages"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/ValueSet/all-languages>           ]         ] [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "Language"           ]         ] ) ;
    fhir:strength [ fhir:v "preferred" ] ;
    fhir:description [ fhir:v "A human language." ] ;
    fhir:valueSet [
    fhir:v "http://hl7.org/fhir/ValueSet/languages"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/ValueSet/languages>         ]       ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "./language" ]       ] )     ] [
    fhir:id [ fhir:v "Communication.payload.content[x]:contentAttachment.data" ] ;
    fhir:path [ fhir:v "Communication.payload.content[x].data" ] ;
    fhir:short [ fhir:v "Data inline, base64ed" ] ;
    fhir:definition [ fhir:v "The actual data of the attachment - a sequence of bytes, base64 encoded." ] ;
    fhir:comment [ fhir:v "The base64-encoded data SHALL be expressed in the same character set as the base resource XML or JSON." ] ;
    fhir:requirements [ fhir:v "The data needs to able to be transmitted inline." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Attachment.data" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "base64Binary"^^xsd:anyURI ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "v2" ] ;
    fhir:map [ fhir:v "ED.5" ]       ] [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "./data" ]       ] )     ] [
    fhir:id [ fhir:v "Communication.payload.content[x]:contentAttachment.url" ] ;
    fhir:path [ fhir:v "Communication.payload.content[x].url" ] ;
    fhir:short [ fhir:v "Uri where the data can be found" ] ;
    fhir:definition [ fhir:v "A location where the data can be accessed." ] ;
    fhir:comment [ fhir:v "If both data and url are provided, the url SHALL point to the same content as the data contains. Urls may be relative references or may reference transient locations such as a wrapping envelope using cid: though this has ramifications for using signatures. Relative URLs are interpreted relative to the service url, like a resource reference, rather than relative to the resource itself. If a URL is provided, it SHALL resolve to actual data." ] ;
    fhir:requirements [ fhir:v "The data needs to be transmitted by reference." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Attachment.url" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "url"^^xsd:anyURI ]       ] ) ;
          ( fhir:example [
    fhir:label [ fhir:v "General" ] ;
    fhir:value [
    a fhir:url ;
    fhir:v "http://www.acme.com/logo-small.png"^^xsd:anyURI         ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "v2" ] ;
    fhir:map [ fhir:v "RP.1+RP.2 - if they refer to a URL (see v2.6)" ]       ] [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "./reference/literal" ]       ] )     ] [
    fhir:id [ fhir:v "Communication.payload.content[x]:contentAttachment.size" ] ;
    fhir:path [ fhir:v "Communication.payload.content[x].size" ] ;
    fhir:short [ fhir:v "Number of bytes of content (if url provided)" ] ;
    fhir:definition [ fhir:v "The number of bytes of data that make up this attachment (before base64 encoding, if that is done)." ] ;
    fhir:comment [ fhir:v "The number of bytes is redundant if the data is provided as a base64binary, but is useful if the data is provided as a url reference." ] ;
    fhir:requirements [ fhir:v "Representing the size allows applications to determine whether they should fetch the content automatically in advance, or refuse to fetch it at all." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Attachment.size" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "unsignedInt"^^xsd:anyURI ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "N/A (needs data type R3 proposal)" ]       ] )     ] [
    fhir:id [ fhir:v "Communication.payload.content[x]:contentAttachment.hash" ] ;
    fhir:path [ fhir:v "Communication.payload.content[x].hash" ] ;
    fhir:short [ fhir:v "Hash of the data (sha-1, base64ed)" ] ;
    fhir:definition [ fhir:v "The calculated hash of the data using SHA-1. Represented using base64." ] ;
    fhir:comment [ fhir:v "The hash is calculated on the data prior to base64 encoding, if the data is based64 encoded. The hash is not intended to support digital signatures. Where protection against malicious threats a digital signature should be considered, see [Provenance.signature](http://hl7.org/fhir/R4/provenance-definitions.html#Provenance.signature) for mechanism to protect a resource with a digital signature." ] ;
    fhir:requirements [ fhir:v "Included so that applications can verify that the contents of a location have not changed due to technical failures (e.g., storage rot, transport glitch, incorrect version)." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Attachment.hash" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "base64Binary"^^xsd:anyURI ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v ".integrityCheck[parent::ED/integrityCheckAlgorithm=\"SHA-1\"]" ]       ] )     ] [
    fhir:id [ fhir:v "Communication.payload.content[x]:contentAttachment.title" ] ;
          ( fhir:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:boolean ;
    fhir:v true         ]       ] ) ;
    fhir:path [ fhir:v "Communication.payload.content[x].title" ] ;
    fhir:short [ fhir:v "Label to display in place of the data" ] ;
    fhir:definition [ fhir:v "A label or set of text to display in place of the data." ] ;
    fhir:requirements [ fhir:v "Applications need a label to display to a human user in place of the actual data if the data cannot be rendered or perceived by the viewer." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Attachment.title" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "string"^^xsd:anyURI ]       ] ) ;
          ( fhir:example [
    fhir:label [ fhir:v "General" ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "Official Corporate Logo"         ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "./title/data" ]       ] )     ] [
    fhir:id [ fhir:v "Communication.payload.content[x]:contentAttachment.creation" ] ;
    fhir:path [ fhir:v "Communication.payload.content[x].creation" ] ;
    fhir:short [ fhir:v "Date attachment was first created" ] ;
    fhir:definition [ fhir:v "The date that the attachment was first created." ] ;
    fhir:requirements [ fhir:v "This is often tracked as an integrity issue for use of the attachment." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Attachment.creation" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "dateTime"^^xsd:anyURI ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "N/A (needs data type R3 proposal)" ]       ] )     ] [
    fhir:id [ fhir:v "Communication.note" ] ;
    fhir:path [ fhir:v "Communication.note" ] ;
    fhir:short [ fhir:v "Comments made about the communication" ] ;
    fhir:definition [ fhir:v "Additional notes or commentary about the communication by the sender, receiver or other interested parties." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "Communication.note" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Annotation"^^xsd:anyURI ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "workflow" ] ;
    fhir:map [ fhir:v "Event.note" ]       ] )     ] )
      ] ; #
      fhir:differential [
        ( fhir:element [
    fhir:id [ fhir:v "Communication" ] ;
    fhir:path [ fhir:v "Communication" ]     ] [
    fhir:id [ fhir:v "Communication.meta.profile" ] ;
    fhir:path [ fhir:v "Communication.meta.profile" ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]     ] [
    fhir:id [ fhir:v "Communication.contained" ] ;
    fhir:path [ fhir:v "Communication.contained" ] ;
    fhir:max [ fhir:v "0" ]     ] [
    fhir:id [ fhir:v "Communication.extension" ] ;
    fhir:path [ fhir:v "Communication.extension" ] ;
    fhir:slicing [
            ( fhir:discriminator [
    fhir:type [ fhir:v "value" ] ;
    fhir:path [ fhir:v "url" ]         ] ) ;
    fhir:ordered [ fhir:v false ] ;
    fhir:rules [ fhir:v "open" ]       ] ;
    fhir:min [ fhir:v "2"^^xsd:nonNegativeInteger ]     ] [
    fhir:id [ fhir:v "Communication.extension:Campaign" ] ;
    fhir:path [ fhir:v "Communication.extension" ] ;
    fhir:sliceName [ fhir:v "Campaign" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Extension"^^xsd:anyURI ] ;
            ( fhir:profile [
    fhir:v "https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/hnz-campaign-extension"^^xsd:anyURI ;
    fhir:link <https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/hnz-campaign-extension>         ] )       ] )     ] [
    fhir:id [ fhir:v "Communication.extension:ContactPoint" ] ;
    fhir:path [ fhir:v "Communication.extension" ] ;
    fhir:sliceName [ fhir:v "ContactPoint" ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Extension"^^xsd:anyURI ] ;
            ( fhir:profile [
    fhir:v "https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/hnz-contact-point-extension"^^xsd:anyURI ;
    fhir:link <https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/hnz-contact-point-extension>         ] )       ] )     ] [
    fhir:id [ fhir:v "Communication.extension:CallbackUrl" ] ;
    fhir:path [ fhir:v "Communication.extension" ] ;
    fhir:sliceName [ fhir:v "CallbackUrl" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Extension"^^xsd:anyURI ] ;
            ( fhir:profile [
    fhir:v "https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/hnz-system-callback-url-extension"^^xsd:anyURI ;
    fhir:link <https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/hnz-system-callback-url-extension>         ] )       ] )     ] [
    fhir:id [ fhir:v "Communication.extension:StatusDateTime" ] ;
    fhir:path [ fhir:v "Communication.extension" ] ;
    fhir:sliceName [ fhir:v "StatusDateTime" ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Extension"^^xsd:anyURI ] ;
            ( fhir:profile [
    fhir:v "https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/hnz-status-date-time-extension"^^xsd:anyURI ;
    fhir:link <https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/hnz-status-date-time-extension>         ] )       ] )     ] [
    fhir:id [ fhir:v "Communication.extension:Reply" ] ;
    fhir:path [ fhir:v "Communication.extension" ] ;
    fhir:sliceName [ fhir:v "Reply" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Extension"^^xsd:anyURI ] ;
            ( fhir:profile [
    fhir:v "https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/hnz-system-reply-extension"^^xsd:anyURI ;
    fhir:link <https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/hnz-system-reply-extension>         ] )       ] )     ] [
    fhir:id [ fhir:v "Communication.identifier" ] ;
    fhir:path [ fhir:v "Communication.identifier" ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ]     ] [
    fhir:id [ fhir:v "Communication.identifier.use" ] ;
    fhir:path [ fhir:v "Communication.identifier.use" ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ]     ] [
    fhir:id [ fhir:v "Communication.identifier.system" ] ;
    fhir:path [ fhir:v "Communication.identifier.system" ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ]     ] [
    fhir:id [ fhir:v "Communication.identifier.value" ] ;
    fhir:path [ fhir:v "Communication.identifier.value" ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ]     ] [
    fhir:id [ fhir:v "Communication.basedOn" ] ;
    fhir:path [ fhir:v "Communication.basedOn" ] ;
    fhir:max [ fhir:v "1" ]     ] [
    fhir:id [ fhir:v "Communication.statusReason" ] ;
    fhir:path [ fhir:v "Communication.statusReason" ] ;
    fhir:binding [
    fhir:strength [ fhir:v "required" ] ;
    fhir:valueSet [
    fhir:v "https://fhir-ig.digital.health.nz/shared-care/ValueSet/hnz-communication-delivery-status-valueset"^^xsd:anyURI ;
    fhir:link <https://fhir-ig.digital.health.nz/shared-care/ValueSet/hnz-communication-delivery-status-valueset>         ]       ]     ] [
    fhir:id [ fhir:v "Communication.category" ] ;
    fhir:path [ fhir:v "Communication.category" ] ;
    fhir:max [ fhir:v "1" ]     ] [
    fhir:id [ fhir:v "Communication.medium" ] ;
    fhir:path [ fhir:v "Communication.medium" ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:binding [
    fhir:strength [ fhir:v "required" ] ;
    fhir:valueSet [
    fhir:v "https://fhir-ig.digital.health.nz/shared-care/ValueSet/hnz-participation-mode-valueset"^^xsd:anyURI ;
    fhir:link <https://fhir-ig.digital.health.nz/shared-care/ValueSet/hnz-participation-mode-valueset>         ]       ]     ] [
    fhir:id [ fhir:v "Communication.subject" ] ;
    fhir:path [ fhir:v "Communication.subject" ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Reference"^^xsd:anyURI ] ;
            ( fhir:targetProfile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Patient"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Patient>         ] )       ] )     ] [
    fhir:id [ fhir:v "Communication.sent" ] ;
    fhir:path [ fhir:v "Communication.sent" ] ;
    fhir:short [ fhir:v "Must be in UTC timezone on the FHIR server" ]     ] [
    fhir:id [ fhir:v "Communication.recipient" ] ;
    fhir:path [ fhir:v "Communication.recipient" ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Reference"^^xsd:anyURI ] ;
            ( fhir:targetProfile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Patient"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Patient>         ] [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Practitioner"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Practitioner>         ] )       ] )     ] [
    fhir:id [ fhir:v "Communication.payload.content[x]" ] ;
    fhir:path [ fhir:v "Communication.payload.content[x]" ] ;
    fhir:slicing [
            ( fhir:discriminator [
    fhir:type [ fhir:v "type" ] ;
    fhir:path [ fhir:v "$this" ]         ] ) ;
    fhir:ordered [ fhir:v false ] ;
    fhir:rules [ fhir:v "open" ]       ]     ] [
    fhir:id [ fhir:v "Communication.payload.content[x]:contentAttachment" ] ;
    fhir:path [ fhir:v "Communication.payload.content[x]" ] ;
    fhir:sliceName [ fhir:v "contentAttachment" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Attachment"^^xsd:anyURI ]       ] )     ] [
    fhir:id [ fhir:v "Communication.payload.content[x]:contentAttachment.extension:AttachmentExtension" ] ;
    fhir:path [ fhir:v "Communication.payload.content[x].extension" ] ;
    fhir:sliceName [ fhir:v "AttachmentExtension" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Extension"^^xsd:anyURI ] ;
            ( fhir:profile [
    fhir:v "https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/hnz-attachment-extension"^^xsd:anyURI ;
    fhir:link <https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/hnz-attachment-extension>         ] )       ] )     ] )
      ] . #