Implementation Guide
TIFlow - Grenzüberschreitender Datenaustausch
Version 2.0.0-ballot.2 - ballot

## Resource Profile: GEM_ERPEU_PR_Consent - TTL Profile

Draft as of 2026-06-30

TTL representation of the GEM-ERPEU-PR-Consent resource profile.

Raw ttl | Download

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

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

    <http://hl7.org/fhir/StructureDefinition/GEM-ERPEU-PR-Consent> a fhir:StructureDefinition ;
      fhir:nodeRole fhir:treeRoot ;
      fhir:Resource.id [ fhir:value "GEM-ERPEU-PR-Consent"] ;
      fhir:DomainResource.text [
         fhir:Narrative.status [ fhir:value "extensions" ] ;
         fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: StructureDefinition GEM-ERPEU-PR-Consent</b></p><a name=\"GEM-ERPEU-PR-Consent\"> </a><a name=\"hcGEM-ERPEU-PR-Consent\"> </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, \" 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-GEM-ERPEU-PR-Consent-definitions.html#Consent\">Consent</a><a name=\"Consent\"> </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/consent.html\">Consent</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 healthcare consumer's  choices to permit or deny recipients or roles to perform actions for specific purposes and periods of time</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-GEM-ERPEU-PR-Consent-definitions.html#Consent.status\">status</a><a name=\"Consent.status\"> </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\">1</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#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\">draft | proposed | active | rejected | inactive | entered-in-error</span><br/><span style=\"font-weight:bold\">Fixed Value: </span><span style=\"color: darkgreen\">active</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_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-GEM-ERPEU-PR-Consent-definitions.html#Consent.scope\">scope</a><a name=\"Consent.scope\"> </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\"/></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_bck101.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-GEM-ERPEU-PR-Consent-definitions.html#Consent.scope.coding\">coding</a><a name=\"Consent.scope.coding\"> </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..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 style=\"opacity: 0.5; opacity: 0.5\" href=\"http://hl7.org/fhir/R4/datatypes.html#Coding\">Coding</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\">Code defined by a terminology system</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_bck1010.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_blank.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-GEM-ERPEU-PR-Consent-definitions.html#Consent.scope.coding.system\">system</a><a name=\"Consent.scope.coding.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\"><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 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\">Identity of the terminology system</span><br/><span style=\"font-weight:bold\">Fixed Value: </span><span style=\"color: darkgreen\">http://terminology.hl7.org/CodeSystem/consentscope</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_bck1010.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_blank.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-GEM-ERPEU-PR-Consent-definitions.html#Consent.scope.coding.code\">code</a><a name=\"Consent.scope.coding.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\"/><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#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\">Symbol in syntax defined by the system</span><br/><span style=\"font-weight:bold\">Fixed Value: </span><span style=\"color: darkgreen\">patient-privacy</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_bck1000.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_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_element.gif\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Element\" class=\"hierarchy\"/> <a href=\"StructureDefinition-GEM-ERPEU-PR-Consent-definitions.html#Consent.scope.coding.display\">display</a><a name=\"Consent.scope.coding.display\"> </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 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: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">Representation defined by the system</span><br/><span style=\"font-weight:bold\">Fixed Value: </span><span style=\"color: darkgreen\">Privacy Consent</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-GEM-ERPEU-PR-Consent-definitions.html#Consent.category\">category</a><a name=\"Consent.category\"> </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\">1</span>..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 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\">Classification of the consent statement - for indexing/retrieval</span><br class=\"binding\"/><span style=\"font-weight:bold\" title=\"null\" class=\"binding\">Binding: </span><a href=\"ValueSet-GEM-ERPEU-VS-ConsentType.html\" title=\"https://gematik.de/fhir/tiflow-xborder/ValueSet/GEM-ERPEU-VS-ConsentType\" class=\"binding\">ValueSet of Consent Codes</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_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-GEM-ERPEU-PR-Consent-definitions.html#Consent.patient\">patient</a><a name=\"Consent.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\"/><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 href=\"http://hl7.org/fhir/R4/references.html\">Reference</a>(<a style=\"opacity: 0.5; opacity: 0.5\" 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\">Who the consent applies 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_bck101.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_datatype.gif\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Data Type\" class=\"hierarchy\"/> <a href=\"StructureDefinition-GEM-ERPEU-PR-Consent-definitions.html#Consent.patient.identifier\">identifier</a><a name=\"Consent.patient.identifier\"> </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 href=\"https://simplifier.net/resolve?scope=de.basisprofil.r4@1.5.4&amp;canonical=http://fhir.de/StructureDefinition/identifier-kvid-10\" title=\"Identifier\">IdentifierKvid10</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\">Logical reference, when literal reference is not 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_bck1001.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_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_element.gif\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Element\" class=\"hierarchy\"/> <a href=\"StructureDefinition-GEM-ERPEU-PR-Consent-definitions.html#Consent.patient.identifier.assigner\">assigner</a><a name=\"Consent.patient.identifier.assigner\"> </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=\"padding-left: 3px; padding-right: 3px; color: white; background-color: #D50000\" title=\"This element must be supported\">S</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\">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 style=\"opacity: 0.5; opacity: 0.5\" href=\"http://hl7.org/fhir/R4/organization.html\">Organization</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\">Organization that issued id (may be just text)</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_bck10000.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_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.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_datatype.gif\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Data Type\" class=\"hierarchy\"/> <a href=\"StructureDefinition-GEM-ERPEU-PR-Consent-definitions.html#Consent.patient.identifier.assigner.identifier\">identifier</a><a name=\"Consent.patient.identifier.assigner.identifier\"> </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=\"padding-left: 3px; padding-right: 3px; color: white; background-color: #D50000\" title=\"This element must be supported\">S</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\"><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 href=\"https://simplifier.net/resolve?scope=de.basisprofil.r4@1.5.4&amp;canonical=http://fhir.de/StructureDefinition/identifier-iknr\" title=\"Identifier\">IdentifierIknr</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\">Logical reference, when literal reference is not 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_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-GEM-ERPEU-PR-Consent-definitions.html#Consent.dateTime\">dateTime</a><a name=\"Consent.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=\"padding-left: 3px; padding-right: 3px; color: white; background-color: #D50000\" title=\"This element must be supported\">S</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\">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 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: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">When this Consent was created or indexed</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_bck00.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-GEM-ERPEU-PR-Consent-definitions.html#Consent.policyRule\">policyRule</a><a name=\"Consent.policyRule\"> </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=\"padding-left: 3px; padding-right: 3px; color: white; background-color: #D50000\" title=\"This element must be supported\">S</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\"><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\">Regulation that this consents to</span><br class=\"binding\"/><span style=\"font-weight:bold\" title=\"null\" class=\"binding\">Binding: </span><a href=\"ValueSet-GEM-ERPEU-VS-Consent-PolicyRule.html\" title=\"https://gematik.de/fhir/tiflow-xborder/ValueSet/GEM-ERPEU-VS-Consent-PolicyRule\" class=\"binding\">ValueSet of Consent PolyRule Codes</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><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, \" alt=\"doco\" style=\"background-color: inherit\"/> Documentation for this format</a></td></tr></table></div>"
      ] ;
      fhir:StructureDefinition.url [ fhir:value "https://gematik.de/fhir/tiflow-xborder/StructureDefinition/GEM-ERPEU-PR-Consent"] ;
      fhir:StructureDefinition.version [ fhir:value "2.0.0-ballot.2"] ;
      fhir:StructureDefinition.name [ fhir:value "GEM_ERPEU_PR_Consent"] ;
      fhir:StructureDefinition.title [ fhir:value "Consent for ePrescriptions"] ;
      fhir:StructureDefinition.status [ fhir:value "draft"] ;
      fhir:StructureDefinition.date [ fhir:value "2026-06-30"^^xsd:date] ;
      fhir:StructureDefinition.publisher [ fhir:value "gematik GmbH"] ;
      fhir:StructureDefinition.contact [
         fhir:index 0 ;
         fhir:ContactDetail.name [ fhir:value "gematik GmbH" ] ;
         fhir:ContactDetail.telecom [
           fhir:index 0 ;
           fhir:ContactPoint.system [ fhir:value "url" ] ;
           fhir:ContactPoint.value [ fhir:value "https://gematik.de" ]
         ], [
           fhir:index 1 ;
           fhir:ContactPoint.system [ fhir:value "email" ] ;
           fhir:ContactPoint.value [ fhir:value "erp-umsetzung@gematik.de" ]
         ]
      ] ;
      fhir:StructureDefinition.description [ fhir:value "Records the consent of the patient for an operation in the context of ePrescription."] ;
      fhir:StructureDefinition.jurisdiction [
         fhir:index 0 ;
         fhir:CodeableConcept.coding [
           fhir:index 0 ;
           fhir:Coding.system [ fhir:value "urn:iso:std:iso:3166" ] ;
           fhir:Coding.code [ fhir:value "DE" ] ;
           fhir:Coding.display [ fhir:value "Germany" ]
         ]
      ] ;
      fhir:StructureDefinition.fhirVersion [ fhir:value "4.0.1"] ;
      fhir:StructureDefinition.mapping [
         fhir:index 0 ;
         fhir:StructureDefinition.mapping.identity [ fhir:value "workflow" ] ;
         fhir:StructureDefinition.mapping.uri [ fhir:value "http://hl7.org/fhir/workflow" ] ;
         fhir:StructureDefinition.mapping.name [ fhir:value "Workflow Pattern" ]
      ], [
         fhir:index 1 ;
         fhir:StructureDefinition.mapping.identity [ fhir:value "v2" ] ;
         fhir:StructureDefinition.mapping.uri [ fhir:value "http://hl7.org/v2" ] ;
         fhir:StructureDefinition.mapping.name [ fhir:value "HL7 v2 Mapping" ]
      ], [
         fhir:index 2 ;
         fhir:StructureDefinition.mapping.identity [ fhir:value "rim" ] ;
         fhir:StructureDefinition.mapping.uri [ fhir:value "http://hl7.org/v3" ] ;
         fhir:StructureDefinition.mapping.name [ fhir:value "RIM Mapping" ]
      ], [
         fhir:index 3 ;
         fhir:StructureDefinition.mapping.identity [ fhir:value "w5" ] ;
         fhir:StructureDefinition.mapping.uri [ fhir:value "http://hl7.org/fhir/fivews" ] ;
         fhir:StructureDefinition.mapping.name [ fhir:value "FiveWs Pattern Mapping" ]
      ] ;
      fhir:StructureDefinition.kind [ fhir:value "resource"] ;
      fhir:StructureDefinition.abstract [ fhir:value "false"^^xsd:boolean] ;
      fhir:StructureDefinition.type [ fhir:value "Consent"] ;
      fhir:StructureDefinition.baseDefinition [
         fhir:value "http://hl7.org/fhir/StructureDefinition/Consent" ;
         fhir:link <http://hl7.org/fhir/StructureDefinition/Consent>
      ] ;
      fhir:StructureDefinition.derivation [ fhir:value "constraint"] ;
      fhir:StructureDefinition.snapshot [
         fhir:Element.extension [
           fhir:index 0 ;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version" ] ;
           fhir:Extension.valueString [ fhir:value "4.0.1" ]
         ] ;
         fhir:StructureDefinition.snapshot.element [
           fhir:index 0 ;
           fhir:Element.id [ fhir:value "Consent" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent" ] ;
           fhir:ElementDefinition.short [ fhir:value "A healthcare consumer's  choices to permit or deny recipients or roles to perform actions for specific purposes and periods of time" ] ;
           fhir:ElementDefinition.definition [ fhir:value "A record of a healthcare consumer’s  choices, which permits or denies identified recipient(s) or recipient role(s) to perform one or more actions within a given policy context, for specific purposes and periods of time." ] ;
           fhir:ElementDefinition.comment [ fhir:value "Broadly, there are 3 key areas of consent for patients: Consent around sharing information (aka Privacy Consent Directive - Authorization to Collect, Use, or Disclose information), consent for specific treatment, or kinds of treatment, and general advance care directives." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "*" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Consent" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "*" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "dom-2" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "If the resource is contained in another resource, it SHALL NOT contain nested Resources" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "contained.contained.empty()" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "not(parent::f:contained and f:contained)" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Consent" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Consent>
             ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "dom-3" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "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:ElementDefinition.constraint.expression [ fhir:value "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:ElementDefinition.constraint.xpath [ fhir:value "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:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Consent" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Consent>
             ]
           ], [
             fhir:index 2 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "dom-4" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Consent" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Consent>
             ]
           ], [
             fhir:index 3 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "dom-5" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "If a resource is contained in another resource, it SHALL NOT have a security label" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "contained.meta.security.empty()" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "not(exists(f:contained/*/f:meta/f:security))" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Consent" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Consent>
             ]
           ], [
             fhir:index 4 ;
             fhir:Element.extension [
               fhir:index 0 ;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice" ] ;
               fhir:Extension.valueBoolean [ fhir:value "true"^^xsd:boolean ]
             ], [
               fhir:index 1 ;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation" ] ;
               fhir:Extension.valueMarkdown [ fhir:value "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:ElementDefinition.constraint.key [ fhir:value "dom-6" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "warning" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "A resource should have narrative for robust management" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "text.`div`.exists()" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "exists(f:text/h:div)" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Consent" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Consent>
             ]
           ], [
             fhir:index 5 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ppc-4" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "IF Scope=adr, there must be a patient" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "patient.exists() or scope.coding.where(system='something' and code='adr').exists().not()" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "exists(f:patient) or not(exists(f:scope/f:coding[f:system/@value='something' and f:code/@value='adr'])))" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Consent" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Consent>
             ]
           ], [
             fhir:index 6 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ppc-5" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "IF Scope=treatment, there must be a patient" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "patient.exists() or scope.coding.where(system='something' and code='treatment').exists().not()" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "exists(f:patient) or not(exists(f:scope/f:coding[f:system/@value='something' and f:code/@value='treatment'])))" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Consent" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Consent>
             ]
           ], [
             fhir:index 7 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ppc-2" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "IF Scope=privacy, there must be a patient" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "patient.exists() or scope.coding.where(system='something' and code='patient-privacy').exists().not()" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "exists(f:patient) or not(exists(f:scope/f:coding[f:system/@value='something' and f:code/@value='patient-privacy'])))" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Consent" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Consent>
             ]
           ], [
             fhir:index 8 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ppc-3" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "IF Scope=research, there must be a patient" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "patient.exists() or scope.coding.where(system='something' and code='research').exists().not()" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "exists(f:patient) or not(exists(f:scope/f:coding[f:system/@value='something' and f:code/@value='research'])))" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Consent" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Consent>
             ]
           ], [
             fhir:index 9 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ppc-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "Either a Policy or PolicyRule" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "policy.exists() or policyRule.exists()" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "exists(f:policy) or exists(f:policyRule)" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Consent" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Consent>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "Entity. Role, or Act" ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "workflow" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "Event" ]
           ], [
             fhir:index 2 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "CON" ]
           ], [
             fhir:index 3 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "FinancialConsent" ]
           ]
         ], [
           fhir:index 1 ;
           fhir:Element.id [ fhir:value "Consent.id" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.id" ] ;
           fhir:ElementDefinition.short [ fhir:value "Logical id of this artifact" ] ;
           fhir:ElementDefinition.definition [ fhir:value "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes." ] ;
           fhir:ElementDefinition.comment [ fhir:value "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:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Resource.id" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:Element.extension [
               fhir:index 0 ;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type" ] ;
               fhir:Extension.valueUrl [ fhir:value "id" ]
             ] ;
             fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhirpath/System.String" ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ]
         ], [
           fhir:index 2 ;
           fhir:Element.id [ fhir:value "Consent.meta" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.meta" ] ;
           fhir:ElementDefinition.short [ fhir:value "Metadata about the resource" ] ;
           fhir:ElementDefinition.definition [ fhir:value "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:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Resource.meta" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "Meta" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ]
         ], [
           fhir:index 3 ;
           fhir:Element.id [ fhir:value "Consent.implicitRules" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.implicitRules" ] ;
           fhir:ElementDefinition.short [ fhir:value "A set of rules under which this content was created" ] ;
           fhir:ElementDefinition.definition [ fhir:value "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:ElementDefinition.comment [ fhir:value "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:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Resource.implicitRules" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "uri" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.isModifierReason [ fhir:value "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:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ]
         ], [
           fhir:index 4 ;
           fhir:Element.id [ fhir:value "Consent.language" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.language" ] ;
           fhir:ElementDefinition.short [ fhir:value "Language of the resource content" ] ;
           fhir:ElementDefinition.definition [ fhir:value "The base language in which the resource is written." ] ;
           fhir:ElementDefinition.comment [ fhir:value "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:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Resource.language" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "code" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.binding [
             fhir:Element.extension [
               fhir:index 0 ;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet" ] ;
               fhir:Extension.valueCanonical [
                 fhir:value "http://hl7.org/fhir/ValueSet/all-languages" ;
                 fhir:link <http://hl7.org/fhir/ValueSet/all-languages>
               ]
             ], [
               fhir:index 1 ;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ] ;
               fhir:Extension.valueString [ fhir:value "Language" ]
             ] ;
             fhir:ElementDefinition.binding.strength [ fhir:value "preferred" ] ;
             fhir:ElementDefinition.binding.description [ fhir:value "A human language." ] ;
             fhir:ElementDefinition.binding.valueSet [
               fhir:value "http://hl7.org/fhir/ValueSet/languages|4.0.1" ;
               fhir:link <http://hl7.org/fhir/ValueSet/languages|4.0.1>
             ]
           ]
         ], [
           fhir:index 5 ;
           fhir:Element.id [ fhir:value "Consent.text" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.text" ] ;
           fhir:ElementDefinition.short [ fhir:value "Text summary of the resource, for human interpretation" ] ;
           fhir:ElementDefinition.definition [ fhir:value "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:ElementDefinition.comment [ fhir:value "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:ElementDefinition.alias [
             fhir:value "narrative" ;
             fhir:index 0
           ], [
             fhir:value "html" ;
             fhir:index 1
           ], [
             fhir:value "xhtml" ;
             fhir:index 2
           ], [
             fhir:value "display" ;
             fhir:index 3
           ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "DomainResource.text" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "Narrative" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "Act.text?" ]
           ]
         ], [
           fhir:index 6 ;
           fhir:Element.id [ fhir:value "Consent.contained" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.contained" ] ;
           fhir:ElementDefinition.short [ fhir:value "Contained, inline Resources" ] ;
           fhir:ElementDefinition.definition [ fhir:value "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:ElementDefinition.comment [ fhir:value "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:ElementDefinition.alias [
             fhir:value "inline resources" ;
             fhir:index 0
           ], [
             fhir:value "anonymous resources" ;
             fhir:index 1
           ], [
             fhir:value "contained resources" ;
             fhir:index 2
           ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "*" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "DomainResource.contained" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "*" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "Resource" ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "N/A" ]
           ]
         ], [
           fhir:index 7 ;
           fhir:Element.id [ fhir:value "Consent.extension" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.extension" ] ;
           fhir:ElementDefinition.slicing [
             fhir:ElementDefinition.slicing.discriminator [
               fhir:index 0 ;
               fhir:ElementDefinition.slicing.discriminator.type [ fhir:value "value" ] ;
               fhir:ElementDefinition.slicing.discriminator.path [ fhir:value "url" ]
             ] ;
             fhir:ElementDefinition.slicing.description [ fhir:value "Extensions are always sliced by (at least) url" ] ;
             fhir:ElementDefinition.slicing.rules [ fhir:value "open" ]
           ] ;
           fhir:ElementDefinition.short [ fhir:value "Additional content defined by implementations" ] ;
           fhir:ElementDefinition.definition [ fhir:value "May be used to represent additional information that is not part of the basic definition of the resource. 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:ElementDefinition.comment [ fhir:value "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:ElementDefinition.alias [
             fhir:value "extensions" ;
             fhir:index 0
           ], [
             fhir:value "user content" ;
             fhir:index 1
           ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "*" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "DomainResource.extension" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "*" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "Extension" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ext-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "Must have either extensions or value[x], not both" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "extension.exists() != value.exists()" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "N/A" ]
           ]
         ], [
           fhir:index 8 ;
           fhir:Element.id [ fhir:value "Consent.modifierExtension" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.modifierExtension" ] ;
           fhir:ElementDefinition.slicing [
             fhir:ElementDefinition.slicing.discriminator [
               fhir:index 0 ;
               fhir:ElementDefinition.slicing.discriminator.type [ fhir:value "value" ] ;
               fhir:ElementDefinition.slicing.discriminator.path [ fhir:value "url" ]
             ] ;
             fhir:ElementDefinition.slicing.description [ fhir:value "Extensions are always sliced by (at least) url" ] ;
             fhir:ElementDefinition.slicing.rules [ fhir:value "open" ]
           ] ;
           fhir:ElementDefinition.short [ fhir:value "Extensions that cannot be ignored" ] ;
           fhir:ElementDefinition.definition [ fhir:value "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:ElementDefinition.comment [ fhir:value "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:ElementDefinition.requirements [ fhir:value "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:ElementDefinition.alias [
             fhir:value "extensions" ;
             fhir:index 0
           ], [
             fhir:value "user content" ;
             fhir:index 1
           ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "*" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "DomainResource.modifierExtension" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "*" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "Extension" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ext-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "Must have either extensions or value[x], not both" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "extension.exists() != value.exists()" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.isModifierReason [ fhir:value "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them" ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "N/A" ]
           ]
         ], [
           fhir:index 9 ;
           fhir:Element.id [ fhir:value "Consent.identifier" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.identifier" ] ;
           fhir:ElementDefinition.short [ fhir:value "Identifier for this record (external references)" ] ;
           fhir:ElementDefinition.definition [ fhir:value "Unique identifier for this copy of the Consent Statement." ] ;
           fhir:ElementDefinition.comment [ fhir:value "This identifier identifies this copy of the consent. Where this identifier is also used elsewhere as the identifier for a consent record (e.g. a CDA consent document) then the consent details are expected to be the same." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "*" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Consent.identifier" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "*" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "Identifier" ]
           ] ;
           fhir:ElementDefinition.example [
             fhir:index 0 ;
             fhir:ElementDefinition.example.label [ fhir:value "General" ] ;
             fhir:ElementDefinition.example.valueIdentifier [
               fhir:Identifier.system [ fhir:value "http://acme.org/identifier/local/eCMS" ] ;
               fhir:Identifier.value [ fhir:value "Local eCMS identifier" ]
             ]
           ] ;
           fhir:ElementDefinition.condition [
             fhir:value "ele-1" ;
             fhir:index 0
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "CX / EI (occasionally, more often EI maps to a resource id or a URL)" ]
           ], [
             fhir:index 2 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs.  Also maps to Role[classCode=IDENT]" ]
           ], [
             fhir:index 3 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "servd" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "Identifier" ]
           ], [
             fhir:index 4 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "workflow" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "Event.identifier" ]
           ], [
             fhir:index 5 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "w5" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "FiveWs.identifier" ]
           ], [
             fhir:index 6 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value ".id" ]
           ]
         ], [
           fhir:index 10 ;
           fhir:Element.id [ fhir:value "Consent.status" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.status" ] ;
           fhir:ElementDefinition.short [ fhir:value "draft | proposed | active | rejected | inactive | entered-in-error" ] ;
           fhir:ElementDefinition.definition [ fhir:value "Indicates the current state of this consent." ] ;
           fhir:ElementDefinition.comment [ fhir:value "This element is labeled as a modifier because the status contains the codes rejected and entered-in-error that mark the Consent as not currently valid." ] ;
           fhir:ElementDefinition.requirements [ fhir:value "The Consent Directive that is pointed to might be in various lifecycle states, e.g., a revoked Consent Directive." ] ;
           fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Consent.status" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "code" ]
           ] ;
           fhir:ElementDefinition.fixedCode [ fhir:value "active" ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.isModifierReason [ fhir:value "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:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.binding [
             fhir:Element.extension [
               fhir:index 0 ;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ] ;
               fhir:Extension.valueString [ fhir:value "ConsentState" ]
             ] ;
             fhir:ElementDefinition.binding.strength [ fhir:value "required" ] ;
             fhir:ElementDefinition.binding.description [ fhir:value "Indicates the state of the consent." ] ;
             fhir:ElementDefinition.binding.valueSet [
               fhir:value "http://hl7.org/fhir/ValueSet/consent-state-codes|4.0.1" ;
               fhir:link <http://hl7.org/fhir/ValueSet/consent-state-codes|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "workflow" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "Event.status" ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "w5" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "FiveWs.status" ]
           ], [
             fhir:index 2 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "HL7 Table 0498 - Consent Status" ]
           ], [
             fhir:index 3 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value ".statusCode" ]
           ]
         ], [
           fhir:index 11 ;
           fhir:Element.id [ fhir:value "Consent.scope" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.scope" ] ;
           fhir:ElementDefinition.short [ fhir:value "Which of the four areas this resource covers (extensible)" ] ;
           fhir:ElementDefinition.definition [ fhir:value "A selector of the type of consent being presented: ADR, Privacy, Treatment, Research.  This list is now extensible." ] ;
           fhir:ElementDefinition.comment [ fhir:value "Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination." ] ;
           fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Consent.scope" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "CodeableConcept" ]
           ] ;
           fhir:ElementDefinition.condition [
             fhir:value "ele-1" ;
             fhir:index 0
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.isModifierReason [ fhir:value "Allows changes to codes based on scope selection" ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.binding [
             fhir:Element.extension [
               fhir:index 0 ;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ] ;
               fhir:Extension.valueString [ fhir:value "ConsentScope" ]
             ] ;
             fhir:ElementDefinition.binding.strength [ fhir:value "extensible" ] ;
             fhir:ElementDefinition.binding.description [ fhir:value "The four anticipated uses for the Consent Resource." ] ;
             fhir:ElementDefinition.binding.valueSet [
               fhir:value "http://hl7.org/fhir/ValueSet/consent-scope|4.0.1" ;
               fhir:link <http://hl7.org/fhir/ValueSet/consent-scope|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "CE/CNE/CWE" ]
           ], [
             fhir:index 2 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "CD" ]
           ], [
             fhir:index 3 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "orim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "fhir:CodeableConcept rdfs:subClassOf dt:CD" ]
           ]
         ], [
           fhir:index 12 ;
           fhir:Element.id [ fhir:value "Consent.scope.id" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.scope.id" ] ;
           fhir:ElementDefinition.representation [
             fhir:value "xmlAttr" ;
             fhir:index 0
           ] ;
           fhir:ElementDefinition.short [ fhir:value "Unique id for inter-element referencing" ] ;
           fhir:ElementDefinition.definition [ fhir:value "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Element.id" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:Element.extension [
               fhir:index 0 ;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type" ] ;
               fhir:Extension.valueUrl [ fhir:value "string" ]
             ] ;
             fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhirpath/System.String" ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
           ]
         ], [
           fhir:index 13 ;
           fhir:Element.id [ fhir:value "Consent.scope.extension" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.scope.extension" ] ;
           fhir:ElementDefinition.slicing [
             fhir:ElementDefinition.slicing.discriminator [
               fhir:index 0 ;
               fhir:ElementDefinition.slicing.discriminator.type [ fhir:value "value" ] ;
               fhir:ElementDefinition.slicing.discriminator.path [ fhir:value "url" ]
             ] ;
             fhir:ElementDefinition.slicing.description [ fhir:value "Extensions are always sliced by (at least) url" ] ;
             fhir:ElementDefinition.slicing.rules [ fhir:value "open" ]
           ] ;
           fhir:ElementDefinition.short [ fhir:value "Additional content defined by implementations" ] ;
           fhir:ElementDefinition.definition [ fhir:value "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:ElementDefinition.comment [ fhir:value "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:ElementDefinition.alias [
             fhir:value "extensions" ;
             fhir:index 0
           ], [
             fhir:value "user content" ;
             fhir:index 1
           ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "*" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Element.extension" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "*" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "Extension" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ext-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "Must have either extensions or value[x], not both" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "extension.exists() != value.exists()" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
           ]
         ], [
           fhir:index 14 ;
           fhir:Element.id [ fhir:value "Consent.scope.coding" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.scope.coding" ] ;
           fhir:ElementDefinition.short [ fhir:value "Code defined by a terminology system" ] ;
           fhir:ElementDefinition.definition [ fhir:value "A reference to a code defined by a terminology system." ] ;
           fhir:ElementDefinition.comment [ fhir:value "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true." ] ;
           fhir:ElementDefinition.requirements [ fhir:value "Allows for alternative encodings within a code system, and translations to other code systems." ] ;
           fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "CodeableConcept.coding" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "*" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "Coding" ]
           ] ;
           fhir:ElementDefinition.condition [
             fhir:value "ele-1" ;
             fhir:index 0
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "CE/CNE/CWE subset one of the sets of component 1-3 or 4-6" ]
           ], [
             fhir:index 2 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "CV" ]
           ], [
             fhir:index 3 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "orim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "fhir:Coding rdfs:subClassOf dt:CDCoding" ]
           ], [
             fhir:index 4 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "C*E.1-8, C*E.10-22" ]
           ], [
             fhir:index 5 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "union(., ./translation)" ]
           ], [
             fhir:index 6 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "orim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding" ]
           ]
         ], [
           fhir:index 15 ;
           fhir:Element.id [ fhir:value "Consent.scope.coding.id" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.scope.coding.id" ] ;
           fhir:ElementDefinition.representation [
             fhir:value "xmlAttr" ;
             fhir:index 0
           ] ;
           fhir:ElementDefinition.short [ fhir:value "Unique id for inter-element referencing" ] ;
           fhir:ElementDefinition.definition [ fhir:value "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Element.id" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:Element.extension [
               fhir:index 0 ;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type" ] ;
               fhir:Extension.valueUrl [ fhir:value "string" ]
             ] ;
             fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhirpath/System.String" ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
           ]
         ], [
           fhir:index 16 ;
           fhir:Element.id [ fhir:value "Consent.scope.coding.extension" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.scope.coding.extension" ] ;
           fhir:ElementDefinition.slicing [
             fhir:ElementDefinition.slicing.discriminator [
               fhir:index 0 ;
               fhir:ElementDefinition.slicing.discriminator.type [ fhir:value "value" ] ;
               fhir:ElementDefinition.slicing.discriminator.path [ fhir:value "url" ]
             ] ;
             fhir:ElementDefinition.slicing.description [ fhir:value "Extensions are always sliced by (at least) url" ] ;
             fhir:ElementDefinition.slicing.rules [ fhir:value "open" ]
           ] ;
           fhir:ElementDefinition.short [ fhir:value "Additional content defined by implementations" ] ;
           fhir:ElementDefinition.definition [ fhir:value "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:ElementDefinition.comment [ fhir:value "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:ElementDefinition.alias [
             fhir:value "extensions" ;
             fhir:index 0
           ], [
             fhir:value "user content" ;
             fhir:index 1
           ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "*" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Element.extension" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "*" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "Extension" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ext-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "Must have either extensions or value[x], not both" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "extension.exists() != value.exists()" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
           ]
         ], [
           fhir:index 17 ;
           fhir:Element.id [ fhir:value "Consent.scope.coding.system" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.scope.coding.system" ] ;
           fhir:ElementDefinition.short [ fhir:value "Identity of the terminology system" ] ;
           fhir:ElementDefinition.definition [ fhir:value "The identification of the code system that defines the meaning of the symbol in the code." ] ;
           fhir:ElementDefinition.comment [ fhir:value "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...).  OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously." ] ;
           fhir:ElementDefinition.requirements [ fhir:value "Need to be unambiguous about the source of the definition of the symbol." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Coding.system" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "uri" ]
           ] ;
           fhir:ElementDefinition.fixedUri [ fhir:value "http://terminology.hl7.org/CodeSystem/consentscope" ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "C*E.3" ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "./codeSystem" ]
           ], [
             fhir:index 2 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "orim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem" ]
           ]
         ], [
           fhir:index 18 ;
           fhir:Element.id [ fhir:value "Consent.scope.coding.version" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.scope.coding.version" ] ;
           fhir:ElementDefinition.short [ fhir:value "Version of the system - if relevant" ] ;
           fhir:ElementDefinition.definition [ fhir:value "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged." ] ;
           fhir:ElementDefinition.comment [ fhir:value "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Coding.version" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "string" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "C*E.7" ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "./codeSystemVersion" ]
           ], [
             fhir:index 2 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "orim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion" ]
           ]
         ], [
           fhir:index 19 ;
           fhir:Element.id [ fhir:value "Consent.scope.coding.code" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.scope.coding.code" ] ;
           fhir:ElementDefinition.short [ fhir:value "Symbol in syntax defined by the system" ] ;
           fhir:ElementDefinition.definition [ fhir:value "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination)." ] ;
           fhir:ElementDefinition.requirements [ fhir:value "Need to refer to a particular code in the system." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Coding.code" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "code" ]
           ] ;
           fhir:ElementDefinition.fixedCode [ fhir:value "patient-privacy" ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "C*E.1" ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "./code" ]
           ], [
             fhir:index 2 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "orim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code" ]
           ]
         ], [
           fhir:index 20 ;
           fhir:Element.id [ fhir:value "Consent.scope.coding.display" ] ;
           fhir:Element.extension [
             fhir:index 0 ;
             fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable" ] ;
             fhir:Extension.valueBoolean [ fhir:value "true"^^xsd:boolean ]
           ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.scope.coding.display" ] ;
           fhir:ElementDefinition.short [ fhir:value "Representation defined by the system" ] ;
           fhir:ElementDefinition.definition [ fhir:value "A representation of the meaning of the code in the system, following the rules of the system." ] ;
           fhir:ElementDefinition.comment [ fhir:value "Note that FHIR strings SHALL NOT exceed 1MB in size" ] ;
           fhir:ElementDefinition.requirements [ fhir:value "Need to be able to carry a human-readable meaning of the code for readers that do not know  the system." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Coding.display" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "string" ]
           ] ;
           fhir:ElementDefinition.fixedString [ fhir:value "Privacy Consent" ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "C*E.2 - but note this is not well followed" ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "CV.displayName" ]
           ], [
             fhir:index 2 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "orim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName" ]
           ]
         ], [
           fhir:index 21 ;
           fhir:Element.id [ fhir:value "Consent.scope.coding.userSelected" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.scope.coding.userSelected" ] ;
           fhir:ElementDefinition.short [ fhir:value "If this coding was chosen directly by the user" ] ;
           fhir:ElementDefinition.definition [ fhir:value "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays)." ] ;
           fhir:ElementDefinition.comment [ fhir:value "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely." ] ;
           fhir:ElementDefinition.requirements [ fhir:value "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Coding.userSelected" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "boolean" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "Sometimes implied by being first" ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "CD.codingRationale" ]
           ], [
             fhir:index 2 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "orim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map;   fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [     fhir:source \"true\";     fhir:target dt:CDCoding.codingRationale\\#O   ]" ]
           ]
         ], [
           fhir:index 22 ;
           fhir:Element.id [ fhir:value "Consent.scope.text" ] ;
           fhir:Element.extension [
             fhir:index 0 ;
             fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable" ] ;
             fhir:Extension.valueBoolean [ fhir:value "true"^^xsd:boolean ]
           ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.scope.text" ] ;
           fhir:ElementDefinition.short [ fhir:value "Plain text representation of the concept" ] ;
           fhir:ElementDefinition.definition [ fhir:value "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user." ] ;
           fhir:ElementDefinition.comment [ fhir:value "Very often the text is the same as a displayName of one of the codings." ] ;
           fhir:ElementDefinition.requirements [ fhir:value "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "CodeableConcept.text" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "string" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "C*E.9. But note many systems use C*E.2 for this" ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "./originalText[mediaType/code=\"text/plain\"]/data" ]
           ], [
             fhir:index 2 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "orim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText" ]
           ]
         ], [
           fhir:index 23 ;
           fhir:Element.id [ fhir:value "Consent.category" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.category" ] ;
           fhir:ElementDefinition.short [ fhir:value "Classification of the consent statement - for indexing/retrieval" ] ;
           fhir:ElementDefinition.definition [ fhir:value "A classification of the type of consents found in the statement. This element supports indexing and retrieval of consent statements." ] ;
           fhir:ElementDefinition.comment [ fhir:value "Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination." ] ;
           fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Consent.category" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "*" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "CodeableConcept" ]
           ] ;
           fhir:ElementDefinition.condition [
             fhir:value "ele-1" ;
             fhir:index 0
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.binding [
             fhir:ElementDefinition.binding.strength [ fhir:value "required" ] ;
             fhir:ElementDefinition.binding.valueSet [
               fhir:value "https://gematik.de/fhir/tiflow-xborder/ValueSet/GEM-ERPEU-VS-ConsentType" ;
               fhir:link <https://gematik.de/fhir/tiflow-xborder/ValueSet/GEM-ERPEU-VS-ConsentType>
             ]
           ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "CE/CNE/CWE" ]
           ], [
             fhir:index 2 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "CD" ]
           ], [
             fhir:index 3 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "orim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "fhir:CodeableConcept rdfs:subClassOf dt:CD" ]
           ], [
             fhir:index 4 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "workflow" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "Event.code" ]
           ], [
             fhir:index 5 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "w5" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "FiveWs.class" ]
           ], [
             fhir:index 6 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "HL7 Table 0497 - Consent Type" ]
           ], [
             fhir:index 7 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "CNTRCT" ]
           ]
         ], [
           fhir:index 24 ;
           fhir:Element.id [ fhir:value "Consent.patient" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.patient" ] ;
           fhir:ElementDefinition.short [ fhir:value "Who the consent applies to" ] ;
           fhir:ElementDefinition.definition [ fhir:value "The patient/healthcare consumer to whom this consent applies." ] ;
           fhir:ElementDefinition.comment [ fhir:value "Commonly, the patient the consent pertains to is the author, but for young and old people, it may be some other person." ] ;
           fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Consent.patient" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "Reference" ] ;
             fhir:ElementDefinition.type.targetProfile [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Patient|4.0.1" ;
               fhir:index 0 ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Patient|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.condition [
             fhir:value "ele-1" ;
             fhir:index 0
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ref-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "SHALL have a contained resource if a local reference is provided" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Reference" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Reference>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "The target of a resource reference is a RIM entry point (Act, Role, or Entity)" ]
           ], [
             fhir:index 2 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "workflow" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "Event.subject" ]
           ], [
             fhir:index 3 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "w5" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "FiveWs.subject[x]" ]
           ], [
             fhir:index 4 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "Role" ]
           ], [
             fhir:index 5 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "w5" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "FiveWs.subject" ]
           ]
         ], [
           fhir:index 25 ;
           fhir:Element.id [ fhir:value "Consent.patient.id" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.patient.id" ] ;
           fhir:ElementDefinition.representation [
             fhir:value "xmlAttr" ;
             fhir:index 0
           ] ;
           fhir:ElementDefinition.short [ fhir:value "Unique id for inter-element referencing" ] ;
           fhir:ElementDefinition.definition [ fhir:value "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Element.id" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:Element.extension [
               fhir:index 0 ;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type" ] ;
               fhir:Extension.valueUrl [ fhir:value "string" ]
             ] ;
             fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhirpath/System.String" ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
           ]
         ], [
           fhir:index 26 ;
           fhir:Element.id [ fhir:value "Consent.patient.extension" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.patient.extension" ] ;
           fhir:ElementDefinition.slicing [
             fhir:ElementDefinition.slicing.discriminator [
               fhir:index 0 ;
               fhir:ElementDefinition.slicing.discriminator.type [ fhir:value "value" ] ;
               fhir:ElementDefinition.slicing.discriminator.path [ fhir:value "url" ]
             ] ;
             fhir:ElementDefinition.slicing.description [ fhir:value "Extensions are always sliced by (at least) url" ] ;
             fhir:ElementDefinition.slicing.rules [ fhir:value "open" ]
           ] ;
           fhir:ElementDefinition.short [ fhir:value "Additional content defined by implementations" ] ;
           fhir:ElementDefinition.definition [ fhir:value "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:ElementDefinition.comment [ fhir:value "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:ElementDefinition.alias [
             fhir:value "extensions" ;
             fhir:index 0
           ], [
             fhir:value "user content" ;
             fhir:index 1
           ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "*" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Element.extension" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "*" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "Extension" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ext-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "Must have either extensions or value[x], not both" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "extension.exists() != value.exists()" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
           ]
         ], [
           fhir:index 27 ;
           fhir:Element.id [ fhir:value "Consent.patient.reference" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.patient.reference" ] ;
           fhir:ElementDefinition.short [ fhir:value "Literal reference, Relative, internal or absolute URL" ] ;
           fhir:ElementDefinition.definition [ fhir:value "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources." ] ;
           fhir:ElementDefinition.comment [ fhir:value "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries.   Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Reference.reference" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "string" ]
           ] ;
           fhir:ElementDefinition.condition [
             fhir:value "ref-1" ;
             fhir:index 0
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "N/A" ]
           ]
         ], [
           fhir:index 28 ;
           fhir:Element.id [ fhir:value "Consent.patient.type" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.patient.type" ] ;
           fhir:ElementDefinition.short [ fhir:value "Type the reference refers to (e.g. \"Patient\")" ] ;
           fhir:ElementDefinition.definition [ fhir:value "The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources)." ] ;
           fhir:ElementDefinition.comment [ fhir:value "This element is used to indicate the type of  the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Reference.type" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "uri" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.binding [
             fhir:Element.extension [
               fhir:index 0 ;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ] ;
               fhir:Extension.valueString [ fhir:value "FHIRResourceTypeExt" ]
             ] ;
             fhir:ElementDefinition.binding.strength [ fhir:value "extensible" ] ;
             fhir:ElementDefinition.binding.description [ fhir:value "Aa resource (or, for logical models, the URI of the logical model)." ] ;
             fhir:ElementDefinition.binding.valueSet [
               fhir:value "http://hl7.org/fhir/ValueSet/resource-types|4.0.1" ;
               fhir:link <http://hl7.org/fhir/ValueSet/resource-types|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "N/A" ]
           ]
         ], [
           fhir:index 29 ;
           fhir:Element.id [ fhir:value "Consent.patient.identifier" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.patient.identifier" ] ;
           fhir:ElementDefinition.short [ fhir:value "Logical reference, when literal reference is not known" ] ;
           fhir:ElementDefinition.definition [ fhir:value "An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference." ] ;
           fhir:ElementDefinition.comment [ fhir:value "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference.  For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport).  One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any)." ] ;
           fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Reference.identifier" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "Identifier" ] ;
             fhir:ElementDefinition.type.profile [
               fhir:value "http://fhir.de/StructureDefinition/identifier-kvid-10" ;
               fhir:index 0 ;
               fhir:link <http://fhir.de/StructureDefinition/identifier-kvid-10>
             ]
           ] ;
           fhir:ElementDefinition.condition [
             fhir:value "ele-1" ;
             fhir:index 0
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "CX / EI (occasionally, more often EI maps to a resource id or a URL)" ]
           ], [
             fhir:index 2 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs.  Also maps to Role[classCode=IDENT]" ]
           ], [
             fhir:index 3 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "servd" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "Identifier" ]
           ], [
             fhir:index 4 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value ".identifier" ]
           ]
         ], [
           fhir:index 30 ;
           fhir:Element.id [ fhir:value "Consent.patient.identifier.id" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.patient.identifier.id" ] ;
           fhir:ElementDefinition.representation [
             fhir:value "xmlAttr" ;
             fhir:index 0
           ] ;
           fhir:ElementDefinition.short [ fhir:value "Unique id for inter-element referencing" ] ;
           fhir:ElementDefinition.definition [ fhir:value "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Element.id" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:Element.extension [
               fhir:index 0 ;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type" ] ;
               fhir:Extension.valueUrl [ fhir:value "string" ]
             ] ;
             fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhirpath/System.String" ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
           ]
         ], [
           fhir:index 31 ;
           fhir:Element.id [ fhir:value "Consent.patient.identifier.extension" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.patient.identifier.extension" ] ;
           fhir:ElementDefinition.slicing [
             fhir:ElementDefinition.slicing.discriminator [
               fhir:index 0 ;
               fhir:ElementDefinition.slicing.discriminator.type [ fhir:value "value" ] ;
               fhir:ElementDefinition.slicing.discriminator.path [ fhir:value "url" ]
             ] ;
             fhir:ElementDefinition.slicing.description [ fhir:value "Extensions are always sliced by (at least) url" ] ;
             fhir:ElementDefinition.slicing.rules [ fhir:value "open" ]
           ] ;
           fhir:ElementDefinition.short [ fhir:value "Additional content defined by implementations" ] ;
           fhir:ElementDefinition.definition [ fhir:value "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:ElementDefinition.comment [ fhir:value "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:ElementDefinition.alias [
             fhir:value "extensions" ;
             fhir:index 0
           ], [
             fhir:value "user content" ;
             fhir:index 1
           ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "*" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Element.extension" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "*" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "Extension" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ext-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "Must have either extensions or value[x], not both" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "extension.exists() != value.exists()" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
           ]
         ], [
           fhir:index 32 ;
           fhir:Element.id [ fhir:value "Consent.patient.identifier.use" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.patient.identifier.use" ] ;
           fhir:ElementDefinition.short [ fhir:value "usual | official | temp | secondary | old (If known)" ] ;
           fhir:ElementDefinition.definition [ fhir:value "The purpose of this identifier." ] ;
           fhir:ElementDefinition.comment [ fhir:value "Applications can assume that an identifier is permanent unless it explicitly says that it is temporary." ] ;
           fhir:ElementDefinition.requirements [ fhir:value "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Identifier.use" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "code" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.isModifierReason [ fhir:value "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one." ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.binding [
             fhir:Element.extension [
               fhir:index 0 ;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ] ;
               fhir:Extension.valueString [ fhir:value "IdentifierUse" ]
             ] ;
             fhir:ElementDefinition.binding.strength [ fhir:value "required" ] ;
             fhir:ElementDefinition.binding.description [ fhir:value "Identifies the purpose for this identifier, if known ." ] ;
             fhir:ElementDefinition.binding.valueSet [
               fhir:value "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1" ;
               fhir:link <http://hl7.org/fhir/ValueSet/identifier-use|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "N/A" ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "Role.code or implied by context" ]
           ]
         ], [
           fhir:index 33 ;
           fhir:Element.id [ fhir:value "Consent.patient.identifier.type" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.patient.identifier.type" ] ;
           fhir:ElementDefinition.short [ fhir:value "Description of identifier" ] ;
           fhir:ElementDefinition.definition [ fhir:value "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose." ] ;
           fhir:ElementDefinition.comment [ fhir:value "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:ElementDefinition.requirements [ fhir:value "Allows users to make use of identifiers when the identifier system is not known." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Identifier.type" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "CodeableConcept" ]
           ] ;
           fhir:ElementDefinition.patternCodeableConcept [
             fhir:CodeableConcept.coding [
               fhir:index 0 ;
               fhir:Coding.system [ fhir:value "http://fhir.de/CodeSystem/identifier-type-de-basis" ] ;
               fhir:Coding.code [ fhir:value "KVZ10" ]
             ]
           ] ;
           fhir:ElementDefinition.condition [
             fhir:value "ele-1" ;
             fhir:index 0
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "kvid-2" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "warning" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "Die type Codes 'GKV' und 'PKV' haben den Status 'retired', daher sollen diese nicht mehr verwendet werden" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "($this.coding.exists(system='http://fhir.de/CodeSystem/identifier-type-de-basis' and code='GKV') or $this.coding.exists(system='http://fhir.de/CodeSystem/identifier-type-de-basis' and code='PKV')).not()" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://fhir.de/StructureDefinition/identifier-kvid-10" ;
               fhir:link <http://fhir.de/StructureDefinition/identifier-kvid-10>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.binding [
             fhir:Element.extension [
               fhir:index 0 ;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ] ;
               fhir:Extension.valueString [ fhir:value "IdentifierType" ]
             ] ;
             fhir:ElementDefinition.binding.strength [ fhir:value "extensible" ] ;
             fhir:ElementDefinition.binding.description [ fhir:value "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose." ] ;
             fhir:ElementDefinition.binding.valueSet [
               fhir:value "http://fhir.de/ValueSet/identifier-type-de-basis" ;
               fhir:link <http://fhir.de/ValueSet/identifier-type-de-basis>
             ]
           ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "CE/CNE/CWE" ]
           ], [
             fhir:index 2 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "CD" ]
           ], [
             fhir:index 3 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "orim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "fhir:CodeableConcept rdfs:subClassOf dt:CD" ]
           ], [
             fhir:index 4 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "CX.5" ]
           ], [
             fhir:index 5 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "Role.code or implied by context" ]
           ]
         ], [
           fhir:index 34 ;
           fhir:Element.id [ fhir:value "Consent.patient.identifier.system" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.patient.identifier.system" ] ;
           fhir:ElementDefinition.short [ fhir:value "The namespace for the identifier value" ] ;
           fhir:ElementDefinition.definition [ fhir:value "Establishes the namespace for the value - that is, a URL that describes a set values that are unique." ] ;
           fhir:ElementDefinition.comment [ fhir:value "Identifier.system is always case sensitive." ] ;
           fhir:ElementDefinition.requirements [ fhir:value "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:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Identifier.system" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "uri" ]
           ] ;
           fhir:ElementDefinition.fixedUri [ fhir:value "http://fhir.de/sid/gkv/kvid-10" ] ;
           fhir:ElementDefinition.example [
             fhir:index 0 ;
             fhir:ElementDefinition.example.label [ fhir:value "General" ] ;
             fhir:ElementDefinition.example.valueUri [ fhir:value "http://www.acme.com/identifiers/patient" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "CX.4 / EI-2-4" ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "II.root or Role.id.root" ]
           ], [
             fhir:index 2 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "servd" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "./IdentifierType" ]
           ]
         ], [
           fhir:index 35 ;
           fhir:Element.id [ fhir:value "Consent.patient.identifier.value" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.patient.identifier.value" ] ;
           fhir:ElementDefinition.short [ fhir:value "The value that is unique" ] ;
           fhir:ElementDefinition.definition [ fhir:value "The portion of the identifier typically relevant to the user and which is unique within the context of the system." ] ;
           fhir:ElementDefinition.comment [ fhir:value "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:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Identifier.value" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "string" ]
           ] ;
           fhir:ElementDefinition.example [
             fhir:index 0 ;
             fhir:ElementDefinition.example.label [ fhir:value "General" ] ;
             fhir:ElementDefinition.example.valueString [ fhir:value "123456" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "kvid-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "warning" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "Der unveränderliche Teil der KVID muss 10-stellig sein und mit einem Großbuchstaben anfangen" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "matches('^[A-Z][0-9]{9}$')" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://fhir.de/StructureDefinition/identifier-kvid-10" ;
               fhir:link <http://fhir.de/StructureDefinition/identifier-kvid-10>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "CX.1 / EI.1" ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)" ]
           ], [
             fhir:index 2 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "servd" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "./Value" ]
           ]
         ], [
           fhir:index 36 ;
           fhir:Element.id [ fhir:value "Consent.patient.identifier.period" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.patient.identifier.period" ] ;
           fhir:ElementDefinition.short [ fhir:value "Time period when id is/was valid for use" ] ;
           fhir:ElementDefinition.definition [ fhir:value "Time period during which identifier is/was valid for use." ] ;
           fhir:ElementDefinition.comment [ fhir:value "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](http://hl7.org/fhir/R4/datatypes.html#Duration)." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Identifier.period" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "Period" ]
           ] ;
           fhir:ElementDefinition.condition [
             fhir:value "ele-1" ;
             fhir:index 0
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "per-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "If present, start SHALL have a lower value than end" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "start.hasValue().not() or end.hasValue().not() or (start <= end)" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Period" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Period>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "DR" ]
           ], [
             fhir:index 2 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "IVL<TS>[lowClosed=\"true\" and highClosed=\"true\"] or URG<TS>[lowClosed=\"true\" and highClosed=\"true\"]" ]
           ], [
             fhir:index 3 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "CX.7 + CX.8" ]
           ], [
             fhir:index 4 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "Role.effectiveTime or implied by context" ]
           ], [
             fhir:index 5 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "servd" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "./StartDate and ./EndDate" ]
           ]
         ], [
           fhir:index 37 ;
           fhir:Element.id [ fhir:value "Consent.patient.identifier.assigner" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.patient.identifier.assigner" ] ;
           fhir:ElementDefinition.short [ fhir:value "Organization that issued id (may be just text)" ] ;
           fhir:ElementDefinition.definition [ fhir:value "Organization that issued/manages the identifier." ] ;
           fhir:ElementDefinition.comment [ fhir:value "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:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Identifier.assigner" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "Reference" ] ;
             fhir:ElementDefinition.type.targetProfile [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Organization" ;
               fhir:index 0 ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Organization>
             ]
           ] ;
           fhir:ElementDefinition.condition [
             fhir:value "ele-1" ;
             fhir:index 0
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ref-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "SHALL have a contained resource if a local reference is provided" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Reference" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Reference>
             ]
           ] ;
           fhir:ElementDefinition.mustSupport [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "The target of a resource reference is a RIM entry point (Act, Role, or Entity)" ]
           ], [
             fhir:index 2 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "CX.4 / (CX.4,CX.9,CX.10)" ]
           ], [
             fhir:index 3 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "II.assigningAuthorityName but note that this is an improper use by the definition of the field.  Also Role.scoper" ]
           ], [
             fhir:index 4 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "servd" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "./IdentifierIssuingAuthority" ]
           ]
         ], [
           fhir:index 38 ;
           fhir:Element.id [ fhir:value "Consent.patient.identifier.assigner.id" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.patient.identifier.assigner.id" ] ;
           fhir:ElementDefinition.representation [
             fhir:value "xmlAttr" ;
             fhir:index 0
           ] ;
           fhir:ElementDefinition.short [ fhir:value "Unique id for inter-element referencing" ] ;
           fhir:ElementDefinition.definition [ fhir:value "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Element.id" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:Element.extension [
               fhir:index 0 ;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type" ] ;
               fhir:Extension.valueUrl [ fhir:value "string" ]
             ] ;
             fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhirpath/System.String" ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
           ]
         ], [
           fhir:index 39 ;
           fhir:Element.id [ fhir:value "Consent.patient.identifier.assigner.extension" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.patient.identifier.assigner.extension" ] ;
           fhir:ElementDefinition.slicing [
             fhir:ElementDefinition.slicing.discriminator [
               fhir:index 0 ;
               fhir:ElementDefinition.slicing.discriminator.type [ fhir:value "value" ] ;
               fhir:ElementDefinition.slicing.discriminator.path [ fhir:value "url" ]
             ] ;
             fhir:ElementDefinition.slicing.description [ fhir:value "Extensions are always sliced by (at least) url" ] ;
             fhir:ElementDefinition.slicing.rules [ fhir:value "open" ]
           ] ;
           fhir:ElementDefinition.short [ fhir:value "Additional content defined by implementations" ] ;
           fhir:ElementDefinition.definition [ fhir:value "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:ElementDefinition.comment [ fhir:value "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:ElementDefinition.alias [
             fhir:value "extensions" ;
             fhir:index 0
           ], [
             fhir:value "user content" ;
             fhir:index 1
           ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "*" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Element.extension" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "*" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "Extension" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ext-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "Must have either extensions or value[x], not both" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "extension.exists() != value.exists()" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
           ]
         ], [
           fhir:index 40 ;
           fhir:Element.id [ fhir:value "Consent.patient.identifier.assigner.reference" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.patient.identifier.assigner.reference" ] ;
           fhir:ElementDefinition.short [ fhir:value "Literal reference, Relative, internal or absolute URL" ] ;
           fhir:ElementDefinition.definition [ fhir:value "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources." ] ;
           fhir:ElementDefinition.comment [ fhir:value "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries.   Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Reference.reference" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "string" ]
           ] ;
           fhir:ElementDefinition.condition [
             fhir:value "ref-1" ;
             fhir:index 0
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "N/A" ]
           ]
         ], [
           fhir:index 41 ;
           fhir:Element.id [ fhir:value "Consent.patient.identifier.assigner.type" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.patient.identifier.assigner.type" ] ;
           fhir:ElementDefinition.short [ fhir:value "Type the reference refers to (e.g. \"Patient\")" ] ;
           fhir:ElementDefinition.definition [ fhir:value "The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources)." ] ;
           fhir:ElementDefinition.comment [ fhir:value "This element is used to indicate the type of  the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Reference.type" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "uri" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.binding [
             fhir:Element.extension [
               fhir:index 0 ;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ] ;
               fhir:Extension.valueString [ fhir:value "FHIRResourceTypeExt" ]
             ] ;
             fhir:ElementDefinition.binding.strength [ fhir:value "extensible" ] ;
             fhir:ElementDefinition.binding.description [ fhir:value "Aa resource (or, for logical models, the URI of the logical model)." ] ;
             fhir:ElementDefinition.binding.valueSet [
               fhir:value "http://hl7.org/fhir/ValueSet/resource-types|4.0.1" ;
               fhir:link <http://hl7.org/fhir/ValueSet/resource-types|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "N/A" ]
           ]
         ], [
           fhir:index 42 ;
           fhir:Element.id [ fhir:value "Consent.patient.identifier.assigner.identifier" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.patient.identifier.assigner.identifier" ] ;
           fhir:ElementDefinition.short [ fhir:value "Logical reference, when literal reference is not known" ] ;
           fhir:ElementDefinition.definition [ fhir:value "An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference." ] ;
           fhir:ElementDefinition.comment [ fhir:value "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference.  For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport).  One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any)." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Reference.identifier" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "Identifier" ] ;
             fhir:ElementDefinition.type.profile [
               fhir:value "http://fhir.de/StructureDefinition/identifier-iknr" ;
               fhir:index 0 ;
               fhir:link <http://fhir.de/StructureDefinition/identifier-iknr>
             ]
           ] ;
           fhir:ElementDefinition.condition [
             fhir:value "ele-1" ;
             fhir:index 0
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ;
           fhir:ElementDefinition.mustSupport [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "CX / EI (occasionally, more often EI maps to a resource id or a URL)" ]
           ], [
             fhir:index 2 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs.  Also maps to Role[classCode=IDENT]" ]
           ], [
             fhir:index 3 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "servd" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "Identifier" ]
           ], [
             fhir:index 4 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value ".identifier" ]
           ]
         ], [
           fhir:index 43 ;
           fhir:Element.id [ fhir:value "Consent.patient.identifier.assigner.display" ] ;
           fhir:Element.extension [
             fhir:index 0 ;
             fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable" ] ;
             fhir:Extension.valueBoolean [ fhir:value "true"^^xsd:boolean ]
           ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.patient.identifier.assigner.display" ] ;
           fhir:ElementDefinition.short [ fhir:value "Text alternative for the resource" ] ;
           fhir:ElementDefinition.definition [ fhir:value "Plain text narrative that identifies the resource in addition to the resource reference." ] ;
           fhir:ElementDefinition.comment [ fhir:value "This is generally not the same as the Resource.text of the referenced resource.  The purpose is to identify what's being referenced, not to fully describe it." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Reference.display" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "string" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "N/A" ]
           ]
         ], [
           fhir:index 44 ;
           fhir:Element.id [ fhir:value "Consent.patient.display" ] ;
           fhir:Element.extension [
             fhir:index 0 ;
             fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable" ] ;
             fhir:Extension.valueBoolean [ fhir:value "true"^^xsd:boolean ]
           ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.patient.display" ] ;
           fhir:ElementDefinition.short [ fhir:value "Text alternative for the resource" ] ;
           fhir:ElementDefinition.definition [ fhir:value "Plain text narrative that identifies the resource in addition to the resource reference." ] ;
           fhir:ElementDefinition.comment [ fhir:value "This is generally not the same as the Resource.text of the referenced resource.  The purpose is to identify what's being referenced, not to fully describe it." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Reference.display" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "string" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "N/A" ]
           ]
         ], [
           fhir:index 45 ;
           fhir:Element.id [ fhir:value "Consent.dateTime" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.dateTime" ] ;
           fhir:ElementDefinition.short [ fhir:value "When this Consent was created or indexed" ] ;
           fhir:ElementDefinition.definition [ fhir:value "When this  Consent was issued / created / indexed." ] ;
           fhir:ElementDefinition.comment [ fhir:value "This is not the time of the original consent, but the time that this statement was made or derived." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Consent.dateTime" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "dateTime" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ;
           fhir:ElementDefinition.mustSupport [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "workflow" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "Event.occurrence[x]" ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "w5" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "FiveWs.recorded" ]
           ], [
             fhir:index 2 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "Field 13/ Consent Decision Date" ]
           ], [
             fhir:index 3 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "FinancialConsent effectiveTime" ]
           ]
         ], [
           fhir:index 46 ;
           fhir:Element.id [ fhir:value "Consent.performer" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.performer" ] ;
           fhir:ElementDefinition.short [ fhir:value "Who is agreeing to the policy and rules" ] ;
           fhir:ElementDefinition.definition [ fhir:value "Either the Grantor, which is the entity responsible for granting the rights listed in a Consent Directive or the Grantee, which is the entity responsible for complying with the Consent Directive, including any obligations or limitations on authorizations and enforcement of prohibitions." ] ;
           fhir:ElementDefinition.comment [ fhir:value "Commonly, the patient the consent pertains to is the consentor, but particularly for young and old people, it may be some other person - e.g. a legal guardian." ] ;
           fhir:ElementDefinition.alias [
             fhir:value "consentor" ;
             fhir:index 0
           ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "*" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Consent.performer" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "*" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "Reference" ] ;
             fhir:ElementDefinition.type.targetProfile [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Organization|4.0.1" ;
               fhir:index 0 ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Organization|4.0.1>
             ], [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Patient|4.0.1" ;
               fhir:index 1 ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Patient|4.0.1>
             ], [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1" ;
               fhir:index 2 ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1>
             ], [
               fhir:value "http://hl7.org/fhir/StructureDefinition/RelatedPerson|4.0.1" ;
               fhir:index 3 ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/RelatedPerson|4.0.1>
             ], [
               fhir:value "http://hl7.org/fhir/StructureDefinition/PractitionerRole|4.0.1" ;
               fhir:index 4 ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/PractitionerRole|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.condition [
             fhir:value "ele-1" ;
             fhir:index 0
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ref-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "SHALL have a contained resource if a local reference is provided" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Reference" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Reference>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "The target of a resource reference is a RIM entry point (Act, Role, or Entity)" ]
           ], [
             fhir:index 2 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "workflow" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "Event.performer" ]
           ], [
             fhir:index 3 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "w5" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "FiveWs.actor" ]
           ], [
             fhir:index 4 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "Field 24/ ConsenterID" ]
           ]
         ], [
           fhir:index 47 ;
           fhir:Element.id [ fhir:value "Consent.organization" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.organization" ] ;
           fhir:ElementDefinition.short [ fhir:value "Custodian of the consent" ] ;
           fhir:ElementDefinition.definition [ fhir:value "The organization that manages the consent, and the framework within which it is executed." ] ;
           fhir:ElementDefinition.comment [ fhir:value "References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository." ] ;
           fhir:ElementDefinition.alias [
             fhir:value "custodian" ;
             fhir:index 0
           ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "*" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Consent.organization" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "*" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "Reference" ] ;
             fhir:ElementDefinition.type.targetProfile [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Organization|4.0.1" ;
               fhir:index 0 ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Organization|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.condition [
             fhir:value "ele-1" ;
             fhir:index 0
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ref-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "SHALL have a contained resource if a local reference is provided" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Reference" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Reference>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "The target of a resource reference is a RIM entry point (Act, Role, or Entity)" ]
           ], [
             fhir:index 2 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "workflow" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "Event.performer" ]
           ], [
             fhir:index 3 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "w5" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "FiveWs.witness" ]
           ]
         ], [
           fhir:index 48 ;
           fhir:Element.id [ fhir:value "Consent.source[x]" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.source[x]" ] ;
           fhir:ElementDefinition.short [ fhir:value "Source from which this consent is taken" ] ;
           fhir:ElementDefinition.definition [ fhir:value "The source on which this consent statement is based. The source might be a scanned original paper form, or a reference to a consent that links back to such a source, a reference to a document repository (e.g. XDS) that stores the original consent document." ] ;
           fhir:ElementDefinition.comment [ fhir:value "The source can be contained inline (Attachment), referenced directly (Consent), referenced in a consent repository (DocumentReference), or simply by an identifier (Identifier), e.g. a CDA document id." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Consent.source[x]" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "Attachment" ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.type.code [ fhir:value "Reference" ] ;
             fhir:ElementDefinition.type.targetProfile [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Consent|4.0.1" ;
               fhir:index 0 ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Consent|4.0.1>
             ], [
               fhir:value "http://hl7.org/fhir/StructureDefinition/DocumentReference|4.0.1" ;
               fhir:index 1 ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/DocumentReference|4.0.1>
             ], [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Contract|4.0.1" ;
               fhir:index 2 ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Contract|4.0.1>
             ], [
               fhir:value "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse|4.0.1" ;
               fhir:index 3 ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.condition [
             fhir:value "ele-1" ;
             fhir:index 0
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "Field 19 Informational Material Supplied Indicator" ]
           ]
         ], [
           fhir:index 49 ;
           fhir:Element.id [ fhir:value "Consent.policy" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.policy" ] ;
           fhir:ElementDefinition.short [ fhir:value "Policies covered by this consent" ] ;
           fhir:ElementDefinition.definition [ fhir:value "The references to the policies that are included in this consent scope. Policies may be organizational, but are often defined jurisdictionally, or in law." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "*" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Consent.policy" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "*" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "BackboneElement" ]
           ] ;
           fhir:ElementDefinition.condition [
             fhir:value "ele-1" ;
             fhir:index 0
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
           ]
         ], [
           fhir:index 50 ;
           fhir:Element.id [ fhir:value "Consent.policy.id" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.policy.id" ] ;
           fhir:ElementDefinition.representation [
             fhir:value "xmlAttr" ;
             fhir:index 0
           ] ;
           fhir:ElementDefinition.short [ fhir:value "Unique id for inter-element referencing" ] ;
           fhir:ElementDefinition.definition [ fhir:value "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Element.id" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:Element.extension [
               fhir:index 0 ;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type" ] ;
               fhir:Extension.valueUrl [ fhir:value "string" ]
             ] ;
             fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhirpath/System.String" ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
           ]
         ], [
           fhir:index 51 ;
           fhir:Element.id [ fhir:value "Consent.policy.extension" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.policy.extension" ] ;
           fhir:ElementDefinition.slicing [
             fhir:ElementDefinition.slicing.discriminator [
               fhir:index 0 ;
               fhir:ElementDefinition.slicing.discriminator.type [ fhir:value "value" ] ;
               fhir:ElementDefinition.slicing.discriminator.path [ fhir:value "url" ]
             ] ;
             fhir:ElementDefinition.slicing.description [ fhir:value "Extensions are always sliced by (at least) url" ] ;
             fhir:ElementDefinition.slicing.rules [ fhir:value "open" ]
           ] ;
           fhir:ElementDefinition.short [ fhir:value "Additional content defined by implementations" ] ;
           fhir:ElementDefinition.definition [ fhir:value "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:ElementDefinition.comment [ fhir:value "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:ElementDefinition.alias [
             fhir:value "extensions" ;
             fhir:index 0
           ], [
             fhir:value "user content" ;
             fhir:index 1
           ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "*" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Element.extension" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "*" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "Extension" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ext-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "Must have either extensions or value[x], not both" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "extension.exists() != value.exists()" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
           ]
         ], [
           fhir:index 52 ;
           fhir:Element.id [ fhir:value "Consent.policy.modifierExtension" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.policy.modifierExtension" ] ;
           fhir:ElementDefinition.short [ fhir:value "Extensions that cannot be ignored even if unrecognized" ] ;
           fhir:ElementDefinition.definition [ fhir:value "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:ElementDefinition.comment [ fhir:value "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:ElementDefinition.requirements [ fhir:value "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:ElementDefinition.alias [
             fhir:value "extensions" ;
             fhir:index 0
           ], [
             fhir:value "user content" ;
             fhir:index 1
           ], [
             fhir:value "modifiers" ;
             fhir:index 2
           ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "*" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "BackboneElement.modifierExtension" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "*" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "Extension" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ext-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "Must have either extensions or value[x], not both" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "extension.exists() != value.exists()" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.isModifierReason [ fhir:value "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them" ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "N/A" ]
           ]
         ], [
           fhir:index 53 ;
           fhir:Element.id [ fhir:value "Consent.policy.authority" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.policy.authority" ] ;
           fhir:ElementDefinition.short [ fhir:value "Enforcement source for policy" ] ;
           fhir:ElementDefinition.definition [ fhir:value "Entity or Organization having regulatory jurisdiction or accountability for  enforcing policies pertaining to Consent Directives." ] ;
           fhir:ElementDefinition.comment [ fhir:value "see http://en.wikipedia.org/wiki/Uniform_resource_identifier" ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Consent.policy.authority" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "uri" ]
           ] ;
           fhir:ElementDefinition.condition [
             fhir:value "ppc-1" ;
             fhir:index 0
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ]
         ], [
           fhir:index 54 ;
           fhir:Element.id [ fhir:value "Consent.policy.uri" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.policy.uri" ] ;
           fhir:ElementDefinition.short [ fhir:value "Specific policy covered by this consent" ] ;
           fhir:ElementDefinition.definition [ fhir:value "The references to the policies that are included in this consent scope. Policies may be organizational, but are often defined jurisdictionally, or in law." ] ;
           fhir:ElementDefinition.comment [ fhir:value "This element is for discoverability / documentation and does not modify or qualify the policy rules." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Consent.policy.uri" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "uri" ]
           ] ;
           fhir:ElementDefinition.condition [
             fhir:value "ppc-1" ;
             fhir:index 0
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ]
         ], [
           fhir:index 55 ;
           fhir:Element.id [ fhir:value "Consent.policyRule" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.policyRule" ] ;
           fhir:ElementDefinition.short [ fhir:value "Regulation that this consents to" ] ;
           fhir:ElementDefinition.definition [ fhir:value "A reference to the specific base computable regulation or policy." ] ;
           fhir:ElementDefinition.comment [ fhir:value "If the policyRule is absent, computable consent would need to be constructed from the elements of the Consent resource." ] ;
           fhir:ElementDefinition.requirements [ fhir:value "Might be a unique identifier of a policy set in XACML, or other rules engine." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Consent.policyRule" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "CodeableConcept" ]
           ] ;
           fhir:ElementDefinition.condition [
             fhir:value "ele-1" ;
             fhir:index 0
           ], [
             fhir:value "ppc-1" ;
             fhir:index 1
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ;
           fhir:ElementDefinition.mustSupport [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.binding [
             fhir:ElementDefinition.binding.strength [ fhir:value "required" ] ;
             fhir:ElementDefinition.binding.valueSet [
               fhir:value "https://gematik.de/fhir/tiflow-xborder/ValueSet/GEM-ERPEU-VS-Consent-PolicyRule" ;
               fhir:link <https://gematik.de/fhir/tiflow-xborder/ValueSet/GEM-ERPEU-VS-Consent-PolicyRule>
             ]
           ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "CE/CNE/CWE" ]
           ], [
             fhir:index 2 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "CD" ]
           ], [
             fhir:index 3 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "orim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "fhir:CodeableConcept rdfs:subClassOf dt:CD" ]
           ]
         ], [
           fhir:index 56 ;
           fhir:Element.id [ fhir:value "Consent.verification" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.verification" ] ;
           fhir:ElementDefinition.short [ fhir:value "Consent Verified by patient or family" ] ;
           fhir:ElementDefinition.definition [ fhir:value "Whether a treatment instruction (e.g. artificial respiration yes or no) was verified with the patient, his/her family or another authorized person." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "*" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Consent.verification" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "*" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "BackboneElement" ]
           ] ;
           fhir:ElementDefinition.condition [
             fhir:value "ele-1" ;
             fhir:index 0
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
           ]
         ], [
           fhir:index 57 ;
           fhir:Element.id [ fhir:value "Consent.verification.id" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.verification.id" ] ;
           fhir:ElementDefinition.representation [
             fhir:value "xmlAttr" ;
             fhir:index 0
           ] ;
           fhir:ElementDefinition.short [ fhir:value "Unique id for inter-element referencing" ] ;
           fhir:ElementDefinition.definition [ fhir:value "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Element.id" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:Element.extension [
               fhir:index 0 ;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type" ] ;
               fhir:Extension.valueUrl [ fhir:value "string" ]
             ] ;
             fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhirpath/System.String" ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
           ]
         ], [
           fhir:index 58 ;
           fhir:Element.id [ fhir:value "Consent.verification.extension" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.verification.extension" ] ;
           fhir:ElementDefinition.slicing [
             fhir:ElementDefinition.slicing.discriminator [
               fhir:index 0 ;
               fhir:ElementDefinition.slicing.discriminator.type [ fhir:value "value" ] ;
               fhir:ElementDefinition.slicing.discriminator.path [ fhir:value "url" ]
             ] ;
             fhir:ElementDefinition.slicing.description [ fhir:value "Extensions are always sliced by (at least) url" ] ;
             fhir:ElementDefinition.slicing.rules [ fhir:value "open" ]
           ] ;
           fhir:ElementDefinition.short [ fhir:value "Additional content defined by implementations" ] ;
           fhir:ElementDefinition.definition [ fhir:value "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:ElementDefinition.comment [ fhir:value "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:ElementDefinition.alias [
             fhir:value "extensions" ;
             fhir:index 0
           ], [
             fhir:value "user content" ;
             fhir:index 1
           ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "*" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Element.extension" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "*" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "Extension" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ext-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "Must have either extensions or value[x], not both" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "extension.exists() != value.exists()" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
           ]
         ], [
           fhir:index 59 ;
           fhir:Element.id [ fhir:value "Consent.verification.modifierExtension" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.verification.modifierExtension" ] ;
           fhir:ElementDefinition.short [ fhir:value "Extensions that cannot be ignored even if unrecognized" ] ;
           fhir:ElementDefinition.definition [ fhir:value "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:ElementDefinition.comment [ fhir:value "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:ElementDefinition.requirements [ fhir:value "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:ElementDefinition.alias [
             fhir:value "extensions" ;
             fhir:index 0
           ], [
             fhir:value "user content" ;
             fhir:index 1
           ], [
             fhir:value "modifiers" ;
             fhir:index 2
           ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "*" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "BackboneElement.modifierExtension" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "*" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "Extension" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ext-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "Must have either extensions or value[x], not both" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "extension.exists() != value.exists()" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.isModifierReason [ fhir:value "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them" ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "N/A" ]
           ]
         ], [
           fhir:index 60 ;
           fhir:Element.id [ fhir:value "Consent.verification.verified" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.verification.verified" ] ;
           fhir:ElementDefinition.short [ fhir:value "Has been verified" ] ;
           fhir:ElementDefinition.definition [ fhir:value "Has the instruction been verified." ] ;
           fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Consent.verification.verified" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "boolean" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ]
         ], [
           fhir:index 61 ;
           fhir:Element.id [ fhir:value "Consent.verification.verifiedWith" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.verification.verifiedWith" ] ;
           fhir:ElementDefinition.short [ fhir:value "Person who verified" ] ;
           fhir:ElementDefinition.definition [ fhir:value "Who verified the instruction (Patient, Relative or other Authorized Person)." ] ;
           fhir:ElementDefinition.comment [ fhir:value "References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Consent.verification.verifiedWith" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "Reference" ] ;
             fhir:ElementDefinition.type.targetProfile [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Patient|4.0.1" ;
               fhir:index 0 ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Patient|4.0.1>
             ], [
               fhir:value "http://hl7.org/fhir/StructureDefinition/RelatedPerson|4.0.1" ;
               fhir:index 1 ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/RelatedPerson|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.condition [
             fhir:value "ele-1" ;
             fhir:index 0
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ref-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "SHALL have a contained resource if a local reference is provided" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Reference" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Reference>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "The target of a resource reference is a RIM entry point (Act, Role, or Entity)" ]
           ]
         ], [
           fhir:index 62 ;
           fhir:Element.id [ fhir:value "Consent.verification.verificationDate" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.verification.verificationDate" ] ;
           fhir:ElementDefinition.short [ fhir:value "When consent verified" ] ;
           fhir:ElementDefinition.definition [ fhir:value "Date verification was collected." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Consent.verification.verificationDate" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "dateTime" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ]
         ], [
           fhir:index 63 ;
           fhir:Element.id [ fhir:value "Consent.provision" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.provision" ] ;
           fhir:ElementDefinition.short [ fhir:value "Constraints to the base Consent.policyRule" ] ;
           fhir:ElementDefinition.definition [ fhir:value "An exception to the base policy of this consent. An exception can be an addition or removal of access permissions." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Consent.provision" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "BackboneElement" ]
           ] ;
           fhir:ElementDefinition.condition [
             fhir:value "ele-1" ;
             fhir:index 0
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
           ]
         ], [
           fhir:index 64 ;
           fhir:Element.id [ fhir:value "Consent.provision.id" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.provision.id" ] ;
           fhir:ElementDefinition.representation [
             fhir:value "xmlAttr" ;
             fhir:index 0
           ] ;
           fhir:ElementDefinition.short [ fhir:value "Unique id for inter-element referencing" ] ;
           fhir:ElementDefinition.definition [ fhir:value "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Element.id" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:Element.extension [
               fhir:index 0 ;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type" ] ;
               fhir:Extension.valueUrl [ fhir:value "string" ]
             ] ;
             fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhirpath/System.String" ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
           ]
         ], [
           fhir:index 65 ;
           fhir:Element.id [ fhir:value "Consent.provision.extension" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.provision.extension" ] ;
           fhir:ElementDefinition.slicing [
             fhir:ElementDefinition.slicing.discriminator [
               fhir:index 0 ;
               fhir:ElementDefinition.slicing.discriminator.type [ fhir:value "value" ] ;
               fhir:ElementDefinition.slicing.discriminator.path [ fhir:value "url" ]
             ] ;
             fhir:ElementDefinition.slicing.description [ fhir:value "Extensions are always sliced by (at least) url" ] ;
             fhir:ElementDefinition.slicing.rules [ fhir:value "open" ]
           ] ;
           fhir:ElementDefinition.short [ fhir:value "Additional content defined by implementations" ] ;
           fhir:ElementDefinition.definition [ fhir:value "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:ElementDefinition.comment [ fhir:value "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:ElementDefinition.alias [
             fhir:value "extensions" ;
             fhir:index 0
           ], [
             fhir:value "user content" ;
             fhir:index 1
           ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "*" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Element.extension" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "*" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "Extension" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ext-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "Must have either extensions or value[x], not both" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "extension.exists() != value.exists()" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
           ]
         ], [
           fhir:index 66 ;
           fhir:Element.id [ fhir:value "Consent.provision.modifierExtension" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.provision.modifierExtension" ] ;
           fhir:ElementDefinition.short [ fhir:value "Extensions that cannot be ignored even if unrecognized" ] ;
           fhir:ElementDefinition.definition [ fhir:value "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:ElementDefinition.comment [ fhir:value "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:ElementDefinition.requirements [ fhir:value "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:ElementDefinition.alias [
             fhir:value "extensions" ;
             fhir:index 0
           ], [
             fhir:value "user content" ;
             fhir:index 1
           ], [
             fhir:value "modifiers" ;
             fhir:index 2
           ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "*" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "BackboneElement.modifierExtension" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "*" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "Extension" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ext-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "Must have either extensions or value[x], not both" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "extension.exists() != value.exists()" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.isModifierReason [ fhir:value "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them" ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "N/A" ]
           ]
         ], [
           fhir:index 67 ;
           fhir:Element.id [ fhir:value "Consent.provision.type" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.provision.type" ] ;
           fhir:ElementDefinition.short [ fhir:value "deny | permit" ] ;
           fhir:ElementDefinition.definition [ fhir:value "Action  to take - permit or deny - when the rule conditions are met.  Not permitted in root rule, required in all nested rules." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Consent.provision.type" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "code" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.binding [
             fhir:Element.extension [
               fhir:index 0 ;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ] ;
               fhir:Extension.valueString [ fhir:value "ConsentProvisionType" ]
             ] ;
             fhir:ElementDefinition.binding.strength [ fhir:value "required" ] ;
             fhir:ElementDefinition.binding.description [ fhir:value "How a rule statement is applied, such as adding additional consent or removing consent." ] ;
             fhir:ElementDefinition.binding.valueSet [
               fhir:value "http://hl7.org/fhir/ValueSet/consent-provision-type|4.0.1" ;
               fhir:link <http://hl7.org/fhir/ValueSet/consent-provision-type|4.0.1>
             ]
           ]
         ], [
           fhir:index 68 ;
           fhir:Element.id [ fhir:value "Consent.provision.period" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.provision.period" ] ;
           fhir:ElementDefinition.short [ fhir:value "Timeframe for this rule" ] ;
           fhir:ElementDefinition.definition [ fhir:value "The timeframe in this rule is valid." ] ;
           fhir:ElementDefinition.comment [ fhir:value "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](http://hl7.org/fhir/R4/datatypes.html#Duration)." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Consent.provision.period" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "Period" ]
           ] ;
           fhir:ElementDefinition.condition [
             fhir:value "ele-1" ;
             fhir:index 0
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "per-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "If present, start SHALL have a lower value than end" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "start.hasValue().not() or end.hasValue().not() or (start <= end)" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Period" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Period>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "DR" ]
           ], [
             fhir:index 2 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "IVL<TS>[lowClosed=\"true\" and highClosed=\"true\"] or URG<TS>[lowClosed=\"true\" and highClosed=\"true\"]" ]
           ]
         ], [
           fhir:index 69 ;
           fhir:Element.id [ fhir:value "Consent.provision.actor" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.provision.actor" ] ;
           fhir:ElementDefinition.short [ fhir:value "Who|what controlled by this rule (or group, by role)" ] ;
           fhir:ElementDefinition.definition [ fhir:value "Who or what is controlled by this rule. Use group to identify a set of actors by some property they share (e.g. 'admitting officers')." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "*" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Consent.provision.actor" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "*" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "BackboneElement" ]
           ] ;
           fhir:ElementDefinition.meaningWhenMissing [ fhir:value "There is no specific actor associated with the exception" ] ;
           fhir:ElementDefinition.condition [
             fhir:value "ele-1" ;
             fhir:index 0
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
           ]
         ], [
           fhir:index 70 ;
           fhir:Element.id [ fhir:value "Consent.provision.actor.id" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.provision.actor.id" ] ;
           fhir:ElementDefinition.representation [
             fhir:value "xmlAttr" ;
             fhir:index 0
           ] ;
           fhir:ElementDefinition.short [ fhir:value "Unique id for inter-element referencing" ] ;
           fhir:ElementDefinition.definition [ fhir:value "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Element.id" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:Element.extension [
               fhir:index 0 ;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type" ] ;
               fhir:Extension.valueUrl [ fhir:value "string" ]
             ] ;
             fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhirpath/System.String" ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
           ]
         ], [
           fhir:index 71 ;
           fhir:Element.id [ fhir:value "Consent.provision.actor.extension" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.provision.actor.extension" ] ;
           fhir:ElementDefinition.slicing [
             fhir:ElementDefinition.slicing.discriminator [
               fhir:index 0 ;
               fhir:ElementDefinition.slicing.discriminator.type [ fhir:value "value" ] ;
               fhir:ElementDefinition.slicing.discriminator.path [ fhir:value "url" ]
             ] ;
             fhir:ElementDefinition.slicing.description [ fhir:value "Extensions are always sliced by (at least) url" ] ;
             fhir:ElementDefinition.slicing.rules [ fhir:value "open" ]
           ] ;
           fhir:ElementDefinition.short [ fhir:value "Additional content defined by implementations" ] ;
           fhir:ElementDefinition.definition [ fhir:value "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:ElementDefinition.comment [ fhir:value "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:ElementDefinition.alias [
             fhir:value "extensions" ;
             fhir:index 0
           ], [
             fhir:value "user content" ;
             fhir:index 1
           ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "*" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Element.extension" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "*" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "Extension" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ext-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "Must have either extensions or value[x], not both" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "extension.exists() != value.exists()" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
           ]
         ], [
           fhir:index 72 ;
           fhir:Element.id [ fhir:value "Consent.provision.actor.modifierExtension" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.provision.actor.modifierExtension" ] ;
           fhir:ElementDefinition.short [ fhir:value "Extensions that cannot be ignored even if unrecognized" ] ;
           fhir:ElementDefinition.definition [ fhir:value "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:ElementDefinition.comment [ fhir:value "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:ElementDefinition.requirements [ fhir:value "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:ElementDefinition.alias [
             fhir:value "extensions" ;
             fhir:index 0
           ], [
             fhir:value "user content" ;
             fhir:index 1
           ], [
             fhir:value "modifiers" ;
             fhir:index 2
           ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "*" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "BackboneElement.modifierExtension" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "*" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "Extension" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ext-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "Must have either extensions or value[x], not both" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "extension.exists() != value.exists()" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.isModifierReason [ fhir:value "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them" ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "N/A" ]
           ]
         ], [
           fhir:index 73 ;
           fhir:Element.id [ fhir:value "Consent.provision.actor.role" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.provision.actor.role" ] ;
           fhir:ElementDefinition.short [ fhir:value "How the actor is involved" ] ;
           fhir:ElementDefinition.definition [ fhir:value "How the individual is involved in the resources content that is described in the exception." ] ;
           fhir:ElementDefinition.comment [ fhir:value "Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination." ] ;
           fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Consent.provision.actor.role" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "CodeableConcept" ]
           ] ;
           fhir:ElementDefinition.condition [
             fhir:value "ele-1" ;
             fhir:index 0
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.binding [
             fhir:Element.extension [
               fhir:index 0 ;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ] ;
               fhir:Extension.valueString [ fhir:value "ConsentActorRole" ]
             ] ;
             fhir:ElementDefinition.binding.strength [ fhir:value "extensible" ] ;
             fhir:ElementDefinition.binding.description [ fhir:value "How an actor is involved in the consent considerations." ] ;
             fhir:ElementDefinition.binding.valueSet [
               fhir:value "http://hl7.org/fhir/ValueSet/security-role-type|4.0.1" ;
               fhir:link <http://hl7.org/fhir/ValueSet/security-role-type|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "CE/CNE/CWE" ]
           ], [
             fhir:index 2 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "CD" ]
           ], [
             fhir:index 3 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "orim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "fhir:CodeableConcept rdfs:subClassOf dt:CD" ]
           ]
         ], [
           fhir:index 74 ;
           fhir:Element.id [ fhir:value "Consent.provision.actor.reference" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.provision.actor.reference" ] ;
           fhir:ElementDefinition.short [ fhir:value "Resource for the actor (or group, by role)" ] ;
           fhir:ElementDefinition.definition [ fhir:value "The resource that identifies the actor. To identify actors by type, use group to identify a set of actors by some property they share (e.g. 'admitting officers')." ] ;
           fhir:ElementDefinition.comment [ fhir:value "References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository." ] ;
           fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Consent.provision.actor.reference" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "Reference" ] ;
             fhir:ElementDefinition.type.targetProfile [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Device|4.0.1" ;
               fhir:index 0 ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Device|4.0.1>
             ], [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Group|4.0.1" ;
               fhir:index 1 ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Group|4.0.1>
             ], [
               fhir:value "http://hl7.org/fhir/StructureDefinition/CareTeam|4.0.1" ;
               fhir:index 2 ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/CareTeam|4.0.1>
             ], [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Organization|4.0.1" ;
               fhir:index 3 ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Organization|4.0.1>
             ], [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Patient|4.0.1" ;
               fhir:index 4 ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Patient|4.0.1>
             ], [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1" ;
               fhir:index 5 ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1>
             ], [
               fhir:value "http://hl7.org/fhir/StructureDefinition/RelatedPerson|4.0.1" ;
               fhir:index 6 ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/RelatedPerson|4.0.1>
             ], [
               fhir:value "http://hl7.org/fhir/StructureDefinition/PractitionerRole|4.0.1" ;
               fhir:index 7 ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/PractitionerRole|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.condition [
             fhir:value "ele-1" ;
             fhir:index 0
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ref-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "SHALL have a contained resource if a local reference is provided" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Reference" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Reference>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "The target of a resource reference is a RIM entry point (Act, Role, or Entity)" ]
           ]
         ], [
           fhir:index 75 ;
           fhir:Element.id [ fhir:value "Consent.provision.action" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.provision.action" ] ;
           fhir:ElementDefinition.short [ fhir:value "Actions controlled by this rule" ] ;
           fhir:ElementDefinition.definition [ fhir:value "Actions controlled by this Rule." ] ;
           fhir:ElementDefinition.comment [ fhir:value "Note that this is the direct action (not the grounds for the action covered in the purpose element). At present, the only action in the understood and tested scope of this resource is 'read'." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "*" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Consent.provision.action" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "*" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "CodeableConcept" ]
           ] ;
           fhir:ElementDefinition.meaningWhenMissing [ fhir:value "all actions" ] ;
           fhir:ElementDefinition.condition [
             fhir:value "ele-1" ;
             fhir:index 0
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.binding [
             fhir:Element.extension [
               fhir:index 0 ;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ] ;
               fhir:Extension.valueString [ fhir:value "ConsentAction" ]
             ] ;
             fhir:ElementDefinition.binding.strength [ fhir:value "example" ] ;
             fhir:ElementDefinition.binding.description [ fhir:value "Detailed codes for the consent action." ] ;
             fhir:ElementDefinition.binding.valueSet [
               fhir:value "http://hl7.org/fhir/ValueSet/consent-action|4.0.1" ;
               fhir:link <http://hl7.org/fhir/ValueSet/consent-action|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "CE/CNE/CWE" ]
           ], [
             fhir:index 2 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "CD" ]
           ], [
             fhir:index 3 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "orim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "fhir:CodeableConcept rdfs:subClassOf dt:CD" ]
           ]
         ], [
           fhir:index 76 ;
           fhir:Element.id [ fhir:value "Consent.provision.securityLabel" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.provision.securityLabel" ] ;
           fhir:ElementDefinition.short [ fhir:value "Security Labels that define affected resources" ] ;
           fhir:ElementDefinition.definition [ fhir:value "A security label, comprised of 0..* security label fields (Privacy tags), which define which resources are controlled by this exception." ] ;
           fhir:ElementDefinition.comment [ fhir:value "If the consent specifies a security label of \"R\" then it applies to all resources that are labeled \"R\" or lower. E.g. for Confidentiality, it's a high water mark. For other kinds of security labels, subsumption logic applies. When the purpose of use tag is on the data, access request purpose of use shall not conflict." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "*" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Consent.provision.securityLabel" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "*" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "Coding" ]
           ] ;
           fhir:ElementDefinition.condition [
             fhir:value "ele-1" ;
             fhir:index 0
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.binding [
             fhir:Element.extension [
               fhir:index 0 ;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ] ;
               fhir:Extension.valueString [ fhir:value "SecurityLabels" ]
             ] ;
             fhir:ElementDefinition.binding.strength [ fhir:value "extensible" ] ;
             fhir:ElementDefinition.binding.description [ fhir:value "Security Labels from the Healthcare Privacy and Security Classification System." ] ;
             fhir:ElementDefinition.binding.valueSet [
               fhir:value "http://hl7.org/fhir/ValueSet/security-labels|4.0.1" ;
               fhir:link <http://hl7.org/fhir/ValueSet/security-labels|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "CE/CNE/CWE subset one of the sets of component 1-3 or 4-6" ]
           ], [
             fhir:index 2 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "CV" ]
           ], [
             fhir:index 3 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "orim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "fhir:Coding rdfs:subClassOf dt:CDCoding" ]
           ]
         ], [
           fhir:index 77 ;
           fhir:Element.id [ fhir:value "Consent.provision.purpose" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.provision.purpose" ] ;
           fhir:ElementDefinition.short [ fhir:value "Context of activities covered by this rule" ] ;
           fhir:ElementDefinition.definition [ fhir:value "The context of the activities a user is taking - why the user is accessing the data - that are controlled by this rule." ] ;
           fhir:ElementDefinition.comment [ fhir:value "When the purpose of use tag is on the data, access request purpose of use shall not conflict." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "*" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Consent.provision.purpose" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "*" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "Coding" ]
           ] ;
           fhir:ElementDefinition.condition [
             fhir:value "ele-1" ;
             fhir:index 0
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.binding [
             fhir:Element.extension [
               fhir:index 0 ;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ] ;
               fhir:Extension.valueString [ fhir:value "PurposeOfUse" ]
             ] ;
             fhir:ElementDefinition.binding.strength [ fhir:value "extensible" ] ;
             fhir:ElementDefinition.binding.description [ fhir:value "What purposes of use are controlled by this exception. If more than one label is specified, operations must have all the specified labels." ] ;
             fhir:ElementDefinition.binding.valueSet [
               fhir:value "http://terminology.hl7.org/ValueSet/v3-PurposeOfUse" ;
               fhir:link <http://terminology.hl7.org/ValueSet/v3-PurposeOfUse>
             ]
           ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "CE/CNE/CWE subset one of the sets of component 1-3 or 4-6" ]
           ], [
             fhir:index 2 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "CV" ]
           ], [
             fhir:index 3 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "orim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "fhir:Coding rdfs:subClassOf dt:CDCoding" ]
           ]
         ], [
           fhir:index 78 ;
           fhir:Element.id [ fhir:value "Consent.provision.class" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.provision.class" ] ;
           fhir:ElementDefinition.short [ fhir:value "e.g. Resource Type, Profile, CDA, etc." ] ;
           fhir:ElementDefinition.definition [ fhir:value "The class of information covered by this rule. The type can be a FHIR resource type, a profile on a type, or a CDA document, or some other type that indicates what sort of information the consent relates to." ] ;
           fhir:ElementDefinition.comment [ fhir:value "Multiple types are or'ed together. The intention of the contentType element is that the codes refer to profiles or document types defined in a standard or an implementation guide somewhere." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "*" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Consent.provision.class" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "*" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "Coding" ]
           ] ;
           fhir:ElementDefinition.condition [
             fhir:value "ele-1" ;
             fhir:index 0
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.binding [
             fhir:Element.extension [
               fhir:index 0 ;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ] ;
               fhir:Extension.valueString [ fhir:value "ConsentContentClass" ]
             ] ;
             fhir:ElementDefinition.binding.strength [ fhir:value "extensible" ] ;
             fhir:ElementDefinition.binding.description [ fhir:value "The class (type) of information a consent rule covers." ] ;
             fhir:ElementDefinition.binding.valueSet [
               fhir:value "http://hl7.org/fhir/ValueSet/consent-content-class|4.0.1" ;
               fhir:link <http://hl7.org/fhir/ValueSet/consent-content-class|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "CE/CNE/CWE subset one of the sets of component 1-3 or 4-6" ]
           ], [
             fhir:index 2 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "CV" ]
           ], [
             fhir:index 3 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "orim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "fhir:Coding rdfs:subClassOf dt:CDCoding" ]
           ]
         ], [
           fhir:index 79 ;
           fhir:Element.id [ fhir:value "Consent.provision.code" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.provision.code" ] ;
           fhir:ElementDefinition.short [ fhir:value "e.g. LOINC or SNOMED CT code, etc. in the content" ] ;
           fhir:ElementDefinition.definition [ fhir:value "If this code is found in an instance, then the rule applies." ] ;
           fhir:ElementDefinition.comment [ fhir:value "Typical use of this is a Document code with class = CDA." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "*" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Consent.provision.code" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "*" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "CodeableConcept" ]
           ] ;
           fhir:ElementDefinition.condition [
             fhir:value "ele-1" ;
             fhir:index 0
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.binding [
             fhir:Element.extension [
               fhir:index 0 ;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ] ;
               fhir:Extension.valueString [ fhir:value "ConsentContentCode" ]
             ] ;
             fhir:ElementDefinition.binding.strength [ fhir:value "example" ] ;
             fhir:ElementDefinition.binding.description [ fhir:value "If this code is found in an instance, then the exception applies." ] ;
             fhir:ElementDefinition.binding.valueSet [
               fhir:value "http://hl7.org/fhir/ValueSet/consent-content-code|4.0.1" ;
               fhir:link <http://hl7.org/fhir/ValueSet/consent-content-code|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "CE/CNE/CWE" ]
           ], [
             fhir:index 2 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "CD" ]
           ], [
             fhir:index 3 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "orim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "fhir:CodeableConcept rdfs:subClassOf dt:CD" ]
           ]
         ], [
           fhir:index 80 ;
           fhir:Element.id [ fhir:value "Consent.provision.dataPeriod" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.provision.dataPeriod" ] ;
           fhir:ElementDefinition.short [ fhir:value "Timeframe for data controlled by this rule" ] ;
           fhir:ElementDefinition.definition [ fhir:value "Clinical or Operational Relevant period of time that bounds the data controlled by this rule." ] ;
           fhir:ElementDefinition.comment [ fhir:value "This has a different sense to the Consent.period - that is when the consent agreement holds. This is the time period of the data that is controlled by the agreement." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Consent.provision.dataPeriod" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "Period" ]
           ] ;
           fhir:ElementDefinition.condition [
             fhir:value "ele-1" ;
             fhir:index 0
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "per-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "If present, start SHALL have a lower value than end" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "start.hasValue().not() or end.hasValue().not() or (start <= end)" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Period" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Period>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "DR" ]
           ], [
             fhir:index 2 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "IVL<TS>[lowClosed=\"true\" and highClosed=\"true\"] or URG<TS>[lowClosed=\"true\" and highClosed=\"true\"]" ]
           ]
         ], [
           fhir:index 81 ;
           fhir:Element.id [ fhir:value "Consent.provision.data" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.provision.data" ] ;
           fhir:ElementDefinition.short [ fhir:value "Data controlled by this rule" ] ;
           fhir:ElementDefinition.definition [ fhir:value "The resources controlled by this rule if specific resources are referenced." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "*" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Consent.provision.data" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "*" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "BackboneElement" ]
           ] ;
           fhir:ElementDefinition.meaningWhenMissing [ fhir:value "all data" ] ;
           fhir:ElementDefinition.condition [
             fhir:value "ele-1" ;
             fhir:index 0
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "Role" ]
           ]
         ], [
           fhir:index 82 ;
           fhir:Element.id [ fhir:value "Consent.provision.data.id" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.provision.data.id" ] ;
           fhir:ElementDefinition.representation [
             fhir:value "xmlAttr" ;
             fhir:index 0
           ] ;
           fhir:ElementDefinition.short [ fhir:value "Unique id for inter-element referencing" ] ;
           fhir:ElementDefinition.definition [ fhir:value "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Element.id" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:Element.extension [
               fhir:index 0 ;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type" ] ;
               fhir:Extension.valueUrl [ fhir:value "string" ]
             ] ;
             fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhirpath/System.String" ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
           ]
         ], [
           fhir:index 83 ;
           fhir:Element.id [ fhir:value "Consent.provision.data.extension" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.provision.data.extension" ] ;
           fhir:ElementDefinition.slicing [
             fhir:ElementDefinition.slicing.discriminator [
               fhir:index 0 ;
               fhir:ElementDefinition.slicing.discriminator.type [ fhir:value "value" ] ;
               fhir:ElementDefinition.slicing.discriminator.path [ fhir:value "url" ]
             ] ;
             fhir:ElementDefinition.slicing.description [ fhir:value "Extensions are always sliced by (at least) url" ] ;
             fhir:ElementDefinition.slicing.rules [ fhir:value "open" ]
           ] ;
           fhir:ElementDefinition.short [ fhir:value "Additional content defined by implementations" ] ;
           fhir:ElementDefinition.definition [ fhir:value "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:ElementDefinition.comment [ fhir:value "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:ElementDefinition.alias [
             fhir:value "extensions" ;
             fhir:index 0
           ], [
             fhir:value "user content" ;
             fhir:index 1
           ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "*" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Element.extension" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "*" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "Extension" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ext-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "Must have either extensions or value[x], not both" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "extension.exists() != value.exists()" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
           ]
         ], [
           fhir:index 84 ;
           fhir:Element.id [ fhir:value "Consent.provision.data.modifierExtension" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.provision.data.modifierExtension" ] ;
           fhir:ElementDefinition.short [ fhir:value "Extensions that cannot be ignored even if unrecognized" ] ;
           fhir:ElementDefinition.definition [ fhir:value "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:ElementDefinition.comment [ fhir:value "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:ElementDefinition.requirements [ fhir:value "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:ElementDefinition.alias [
             fhir:value "extensions" ;
             fhir:index 0
           ], [
             fhir:value "user content" ;
             fhir:index 1
           ], [
             fhir:value "modifiers" ;
             fhir:index 2
           ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "*" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "BackboneElement.modifierExtension" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "*" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "Extension" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ext-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "Must have either extensions or value[x], not both" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "extension.exists() != value.exists()" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.isModifierReason [ fhir:value "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them" ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "N/A" ]
           ]
         ], [
           fhir:index 85 ;
           fhir:Element.id [ fhir:value "Consent.provision.data.meaning" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.provision.data.meaning" ] ;
           fhir:ElementDefinition.short [ fhir:value "instance | related | dependents | authoredby" ] ;
           fhir:ElementDefinition.definition [ fhir:value "How the resource reference is interpreted when testing consent restrictions." ] ;
           fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Consent.provision.data.meaning" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "code" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.binding [
             fhir:Element.extension [
               fhir:index 0 ;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ] ;
               fhir:Extension.valueString [ fhir:value "ConsentDataMeaning" ]
             ] ;
             fhir:ElementDefinition.binding.strength [ fhir:value "required" ] ;
             fhir:ElementDefinition.binding.description [ fhir:value "How a resource reference is interpreted when testing consent restrictions." ] ;
             fhir:ElementDefinition.binding.valueSet [
               fhir:value "http://hl7.org/fhir/ValueSet/consent-data-meaning|4.0.1" ;
               fhir:link <http://hl7.org/fhir/ValueSet/consent-data-meaning|4.0.1>
             ]
           ]
         ], [
           fhir:index 86 ;
           fhir:Element.id [ fhir:value "Consent.provision.data.reference" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.provision.data.reference" ] ;
           fhir:ElementDefinition.short [ fhir:value "The actual data reference" ] ;
           fhir:ElementDefinition.definition [ fhir:value "A reference to a specific resource that defines which resources are covered by this consent." ] ;
           fhir:ElementDefinition.comment [ fhir:value "References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository." ] ;
           fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Consent.provision.data.reference" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "Reference" ] ;
             fhir:ElementDefinition.type.targetProfile [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Resource|4.0.1" ;
               fhir:index 0 ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Resource|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.condition [
             fhir:value "ele-1" ;
             fhir:index 0
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ref-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "SHALL have a contained resource if a local reference is provided" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Reference" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Reference>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "The target of a resource reference is a RIM entry point (Act, Role, or Entity)" ]
           ]
         ], [
           fhir:index 87 ;
           fhir:Element.id [ fhir:value "Consent.provision.provision" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.provision.provision" ] ;
           fhir:ElementDefinition.short [ fhir:value "Nested Exception Rules" ] ;
           fhir:ElementDefinition.definition [ fhir:value "Rules which provide exceptions to the base rule or subrules." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "*" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Consent.provision.provision" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "*" ]
           ] ;
           fhir:ElementDefinition.contentReference [ fhir:value "http://hl7.org/fhir/StructureDefinition/Consent#Consent.provision" ]
         ]
      ] ;
      fhir:StructureDefinition.differential [
         fhir:StructureDefinition.differential.element [
           fhir:index 0 ;
           fhir:Element.id [ fhir:value "Consent" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent" ]
         ], [
           fhir:index 1 ;
           fhir:Element.id [ fhir:value "Consent.status" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.status" ] ;
           fhir:ElementDefinition.fixedCode [ fhir:value "active" ]
         ], [
           fhir:index 2 ;
           fhir:Element.id [ fhir:value "Consent.scope.coding" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.scope.coding" ] ;
           fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ]
         ], [
           fhir:index 3 ;
           fhir:Element.id [ fhir:value "Consent.scope.coding.system" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.scope.coding.system" ] ;
           fhir:ElementDefinition.fixedUri [ fhir:value "http://terminology.hl7.org/CodeSystem/consentscope" ]
         ], [
           fhir:index 4 ;
           fhir:Element.id [ fhir:value "Consent.scope.coding.code" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.scope.coding.code" ] ;
           fhir:ElementDefinition.fixedCode [ fhir:value "patient-privacy" ]
         ], [
           fhir:index 5 ;
           fhir:Element.id [ fhir:value "Consent.scope.coding.display" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.scope.coding.display" ] ;
           fhir:ElementDefinition.fixedString [ fhir:value "Privacy Consent" ]
         ], [
           fhir:index 6 ;
           fhir:Element.id [ fhir:value "Consent.category" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.category" ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.binding [
             fhir:ElementDefinition.binding.strength [ fhir:value "required" ] ;
             fhir:ElementDefinition.binding.valueSet [
               fhir:value "https://gematik.de/fhir/tiflow-xborder/ValueSet/GEM-ERPEU-VS-ConsentType" ;
               fhir:link <https://gematik.de/fhir/tiflow-xborder/ValueSet/GEM-ERPEU-VS-ConsentType>
             ]
           ]
         ], [
           fhir:index 7 ;
           fhir:Element.id [ fhir:value "Consent.patient" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.patient" ] ;
           fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ]
         ], [
           fhir:index 8 ;
           fhir:Element.id [ fhir:value "Consent.patient.identifier" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.patient.identifier" ] ;
           fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "Identifier" ] ;
             fhir:ElementDefinition.type.profile [
               fhir:value "http://fhir.de/StructureDefinition/identifier-kvid-10" ;
               fhir:index 0 ;
               fhir:link <http://fhir.de/StructureDefinition/identifier-kvid-10>
             ]
           ]
         ], [
           fhir:index 9 ;
           fhir:Element.id [ fhir:value "Consent.patient.identifier.assigner" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.patient.identifier.assigner" ] ;
           fhir:ElementDefinition.mustSupport [ fhir:value "true"^^xsd:boolean ]
         ], [
           fhir:index 10 ;
           fhir:Element.id [ fhir:value "Consent.patient.identifier.assigner.identifier" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.patient.identifier.assigner.identifier" ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "Identifier" ] ;
             fhir:ElementDefinition.type.profile [
               fhir:value "http://fhir.de/StructureDefinition/identifier-iknr" ;
               fhir:index 0 ;
               fhir:link <http://fhir.de/StructureDefinition/identifier-iknr>
             ]
           ] ;
           fhir:ElementDefinition.mustSupport [ fhir:value "true"^^xsd:boolean ]
         ], [
           fhir:index 11 ;
           fhir:Element.id [ fhir:value "Consent.dateTime" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.dateTime" ] ;
           fhir:ElementDefinition.mustSupport [ fhir:value "true"^^xsd:boolean ]
         ], [
           fhir:index 12 ;
           fhir:Element.id [ fhir:value "Consent.policyRule" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.policyRule" ] ;
           fhir:ElementDefinition.mustSupport [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.binding [
             fhir:ElementDefinition.binding.strength [ fhir:value "required" ] ;
             fhir:ElementDefinition.binding.valueSet [
               fhir:value "https://gematik.de/fhir/tiflow-xborder/ValueSet/GEM-ERPEU-VS-Consent-PolicyRule" ;
               fhir:link <https://gematik.de/fhir/tiflow-xborder/ValueSet/GEM-ERPEU-VS-Consent-PolicyRule>
             ]
           ]
         ]
      ] .

    # - ontology header ------------------------------------------------------------

    <http://hl7.org/fhir/StructureDefinition/GEM-ERPEU-PR-Consent.ttl> a owl:Ontology ;
      owl:imports fhir:fhir.ttl ;
      owl:versionIRI <http://build.fhir.org/StructureDefinition/GEM-ERPEU-PR-Consent.ttl> .