FR Document Core (FHIR)
0.1.0 - ci-build

FR Document Core (FHIR), publié par Agence du Numérique en Santé (ANS) - 2-10 Rue d'Oradour-sur-Glane, 75015 Paris. Ce guide n'est pas une publication autorisée ; C'est la version en intégration continue pour la version 0.1.0 construite par le CI Build FHIR (HL7® FHIR® Standard). Cette version est basée sur le contenu actuel de https://github.com/ansforge/interop-IG-fhir-document-core/ et change régulièrement. Voir le répertoire des versions publiées

## Profil de ressource: Consent - FR Advance directive Document - Profil TTL

Draft à partir de 2026-08-07

%FMG représentation du fr-advance-directive-document profil de ressource.

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/fr-advance-directive-document> a fhir:StructureDefinition ;
      fhir:nodeRole fhir:treeRoot ;
      fhir:Resource.id [ fhir:value "fr-advance-directive-document"] ;
      fhir:Resource.language [ fhir:value "fr"] ;
      fhir:DomainResource.text [
         fhir:Narrative.status [ fhir:value "extensions" ] ;
         fhir:Narrative.div "<div xml:lang=\"fr\" lang=\"fr\"><hr/><p><b>French</b></p><hr/><p class=\"res-header-id\"><b>Narratif généré : DéfinitionStructure fr-advance-directive-document</b></p><a name=\"fr-advance-directive-document\"> </a><a name=\"hcfr-advance-directive-document\"> </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=\"Le nom logique de l'élément\">Nom</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=\"Informations sur l'utilisation de l'élément\">Drapeaux</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=\"Nombre minimum et maximum de fois que l'élément peut apparaître dans l'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=\"Référence au type de l'élément\">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=\"Informations supplémentaires sur l'élément\">Description et contraintes</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=\"Ressource\" class=\"hierarchy\"/> <a href=\"StructureDefinition-fr-advance-directive-document-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(4.0.1)</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-fr-advance-directive-document-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\"><span style=\"padding-left: 3px; padding-right: 3px; color: white; background-color: #D50000\" title=\"Cet élément doit être pris en charge\">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\">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\">Statut</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-fr-advance-directive-document-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\"><span style=\"padding-left: 3px; padding-right: 3px; color: white; background-color: #D50000\" title=\"Cet élément doit être pris en charge\">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\">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: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a style=\"opacity: 0.5; opacity: 0.5\" href=\"http://hl7.org/fhir/R4/datatypes.html#CodeableConcept\">CodeableConcept</a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">Consent de type directive anticipée<br/><span style=\"font-weight:bold\">Motif requis: </span><span style=\"color: darkgreen\">Au moins les éléments suivants</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_fixed.gif\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Valeur fixe\" class=\"hierarchy\"/> <a href=\"http://hl7.org/fhir/R4/datatypes-definitions.html#CodeableConcept.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\"/><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..*</td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R4/datatypes.html#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\">Code defined by a terminology system<br/><span style=\"font-weight: bold\">Valeur fixe : </span><span style=\"color: darkgreen\">(Complexe)</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_fixed.gif\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Valeur fixe\" class=\"hierarchy\"/> <a href=\"http://hl7.org/fhir/R4/datatypes-definitions.html#Coding.system\">system</a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">1..1</td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R4/datatypes.html#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\">Identity of the terminology system<br/><span style=\"font-weight: bold\">Valeur fixe : </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_fixed.gif\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Valeur fixe\" class=\"hierarchy\"/> <a href=\"http://hl7.org/fhir/R4/datatypes-definitions.html#Coding.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\"/><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 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\">Symbol in syntax defined by the system<br/><span style=\"font-weight: bold\">Valeur fixe : </span><span style=\"color: darkgreen\">adr</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_fixed.gif\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Valeur fixe\" class=\"hierarchy\"/> <a href=\"http://hl7.org/fhir/R4/datatypes-definitions.html#Coding.display\">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\">1..1</td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R4/datatypes.html#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\">Representation defined by the system<br/><span style=\"font-weight: bold\">Valeur fixe : </span><span style=\"color: darkgreen\">Advance Directive</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-fr-advance-directive-document-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: #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=\"Cet élément doit être pris en charge\">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#dateTime\">dateTime</a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">Date de la directive anticipée</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_bck13.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_slice.png\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Définition de Slice\" class=\"hierarchy\"/> <a style=\"font-style: italic; font-style: italic\" href=\"StructureDefinition-fr-advance-directive-document-definitions.html#Consent.source[x]\">Slices pour source[x]</a><a name=\"Consent.source_x_\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"font-style: italic\"/><span style=\"opacity: 0.5; font-style: italic\">0</span><span style=\"opacity: 0.5; font-style: italic\">..</span><span style=\"opacity: 0.5; font-style: italic\">1</span></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a style=\"opacity: 0.5; font-style: italic; opacity: 0.5; font-style: italic\" href=\"http://hl7.org/fhir/R4/datatypes.html#Attachment\">Attachment</a><span style=\"opacity: 0.5; font-style: italic\">, </span><a style=\"font-style: italic; font-style: italic\" href=\"http://hl7.org/fhir/R4/references.html\">Reference</a><span style=\"font-style: italic\">(</span><a style=\"opacity: 0.5; font-style: italic; opacity: 0.5; font-style: italic\" href=\"http://hl7.org/fhir/R4/consent.html\">Consent</a><span style=\"font-style: italic\"> | </span><a style=\"opacity: 0.5; font-style: italic; opacity: 0.5; font-style: italic\" href=\"http://hl7.org/fhir/R4/documentreference.html\">DocumentReference</a><span style=\"font-style: italic\"> | </span><a style=\"opacity: 0.5; font-style: italic; opacity: 0.5; font-style: italic\" href=\"http://hl7.org/fhir/R4/contract.html\">Contract</a><span style=\"font-style: italic\"> | </span><a style=\"opacity: 0.5; font-style: italic; opacity: 0.5; font-style: italic\" href=\"http://hl7.org/fhir/R4/questionnaireresponse.html\">QuestionnaireResponse</a><span style=\"font-style: italic\">)</span></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"font-style: italic\">Documents</span><br style=\"font-style: italic\"/><span style=\"font-weight:bold; font-style: italic\">Slice: </span><span style=\"font-style: italic\">Non ordonné, Ouvert par type:$this</span></td></tr>#xD;\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck134.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vline.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin_slicer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_slice_item.png\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Élément de Slice\" class=\"hierarchy\"/> <a href=\"StructureDefinition-fr-advance-directive-document-definitions.html#Consent.source[x]:sourceReference\" title=\"Slice sourceReference\">source[x]:sourceReference</a><a name=\"Consent.source_x_:sourceReference\"> </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=\"Cet élément doit être pris en charge\">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\">0..1</td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R4/references.html\">Reference</a>(<a href=\"StructureDefinition-fr-document-reference-document.html\">DocumentReference - FR Document reference Document(0.1.0)</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\">Référence à un document externe</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_bck125.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vline.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin_end_slicer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_slice_item.png\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Élément de Slice\" class=\"hierarchy\"/> <a href=\"StructureDefinition-fr-advance-directive-document-definitions.html#Consent.source[x]:sourceAttachment\" title=\"Slice sourceAttachment\">source[x]:sourceAttachment</a><a name=\"Consent.source_x_:sourceAttachment\"> </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=\"Cet élément doit être pris en charge\">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\">0..1</td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R4/datatypes.html#Attachment\">Attachment</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\">Document encapsulé en B64</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_bck1250.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_slice.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-fr-advance-directive-document-definitions.html#Consent.source[x]:sourceAttachment.data\">data</a><a name=\"Consent.source_x_:sourceAttachment.data\"> </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#base64Binary\">base64Binary</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\">Representation en B64</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_bck1240.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_slice.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-fr-advance-directive-document-definitions.html#Consent.source[x]:sourceAttachment.url\">url</a><a name=\"Consent.source_x_:sourceAttachment.url\"> </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#url\">url</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\">URI</td></tr>#xD;\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck01.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin_end.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_element.gif\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Element\" class=\"hierarchy\"/> <a href=\"StructureDefinition-fr-advance-directive-document-definitions.html#Consent.provision\">provision</a><a name=\"Consent.provision\"> </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=\"Cet élément doit être pris en charge\">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#BackboneElement\">BackboneElement</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\">Constraints to the base Consent.policyRule</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_bck010.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_blank.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.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-fr-advance-directive-document-definitions.html#Consent.provision.type\">type</a><a name=\"Consent.provision.type\"> </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#code\">code</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\">Procédure autorisée ou pas :\nLe type de la directive identifiée permet d’indiquer l’autorisation ou la non autorisation :\n- si l’élément &lt;&lt;provision.code&gt;&gt; est 'Autre directive' : dans ce cas, l'élément &lt;&lt;provision.type&gt;&gt; n'est pas présent\n- si l’élément &lt;&lt;provision.code&gt;&gt; est 'Directives anticipées' : dans ce cas, l'élément &lt;&lt;provision.type&gt;&gt; n'est pas présent et un document encodé en B64 est encapsulé dans l'élément 'sourceAttachment'.</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_bck000.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_blank.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin_end.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_element.gif\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Element\" class=\"hierarchy\"/> <a href=\"StructureDefinition-fr-advance-directive-document-definitions.html#Consent.provision.code\">code</a><a name=\"Consent.provision.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\">*</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\">Type de la directive anticipée<br class=\"binding\"/><span style=\"font-weight:bold\" title=\"null\" class=\"binding\">Binding: </span><a href=\"https://interop.esante.gouv.fr/terminologies/1.11.1/ValueSet-jdv-type-directive-anticipee-cisis.html\" title=\"https://smt.esante.gouv.fr/fhir/ValueSet/jdv-type-directive-anticipee-cisis\" class=\"binding\">JdvTypeDirectiveAnticipeeCisis (20260619134043)</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=\"Légende pour ce format\"><img src=\"data:image/png;base64, \" alt=\"doco\" style=\"background-color: inherit\"/> Documentation pour ce format</a></td></tr></table></div>"
      ] ;
      fhir:StructureDefinition.url [ fhir:value "https://interop.esante.gouv.fr/ig/fhir/document-core/StructureDefinition/fr-advance-directive-document"] ;
      fhir:StructureDefinition.version [ fhir:value "0.1.0"] ;
      fhir:StructureDefinition.name [ fhir:value "FRAdvanceDirectiveDocument"] ;
      fhir:StructureDefinition.title [ fhir:value "Consent - FR Advance directive Document"] ;
      fhir:StructureDefinition.status [ fhir:value "draft"] ;
      fhir:StructureDefinition.date [ fhir:value "2026-08-07T12:54:27+00:00"^^xsd:dateTime] ;
      fhir:StructureDefinition.publisher [ fhir:value "Agence du Numérique en Santé (ANS) - 2-10 Rue d'Oradour-sur-Glane, 75015 Paris"] ;
      fhir:StructureDefinition.contact [
         fhir:index -1 ;
         fhir:ContactDetail.name [ fhir:value "Agence du Numérique en Santé (ANS) - 2-10 Rue d'Oradour-sur-Glane, 75015 Paris" ] ;
         fhir:ContactDetail.telecom [
           fhir:index -1 ;
           fhir:ContactPoint.system [ fhir:value "url" ] ;
           fhir:ContactPoint.value [ fhir:value "https://esante.gouv.fr" ]
         ]
      ] ;
      fhir:StructureDefinition.description [ fhir:value "FRAdvanceDirectiveDocument permet  d’indiquer si les directives anticipées du patient.\nArticle L1111-11 du Code de la Santé Publique : \n« Toute personne majeure peut rédiger des directives anticipées pour le cas où elle serait un \njour hors d'état d'exprimer sa volonté. Ces directives anticipées expriment la volonté de la personne \nrelative à sa fin de vie en ce qui concerne les conditions de la poursuite, de la limitation, \nde l'arrêt ou du refus de traitement ou d'acte médicaux.»"] ;
      fhir:StructureDefinition.jurisdiction [
         fhir:index -1 ;
         fhir:CodeableConcept.coding [
           fhir:index -1 ;
           fhir:Coding.system [ fhir:value "urn:iso:std:iso:3166" ] ;
           fhir:Coding.code [ fhir:value "FR" ] ;
           fhir:Coding.display [ fhir:value "France (la)" ]
         ]
      ] ;
      fhir:StructureDefinition.fhirVersion [ fhir:value "4.0.1"] ;
      fhir:StructureDefinition.mapping [
         fhir:index -1 ;
         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 -1 ;
         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 -1 ;
         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|4.0.1" ;
         fhir:link <http://hl7.org/fhir/StructureDefinition/Consent|4.0.1>
      ] ;
      fhir:StructureDefinition.derivation [ fhir:value "constraint"] ;
      fhir:StructureDefinition.snapshot [
         fhir:Element.extension [
           fhir:index -1 ;
           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 -1 ;
           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 -1 ;
             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/DomainResource|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1>
             ]
           ], [
             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/DomainResource|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1>
             ]
           ], [
             fhir:index -1 ;
             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/DomainResource|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1>
             ]
           ], [
             fhir:index -1 ;
             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/DomainResource|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1>
             ]
           ], [
             fhir:index -1 ;
             fhir:Element.extension [
               fhir:index -1 ;
               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/DomainResource|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1>
             ]
           ], [
             fhir:index -1 ;
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Consent|4.0.1>
             ]
           ], [
             fhir:index -1 ;
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Consent|4.0.1>
             ]
           ], [
             fhir:index -1 ;
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Consent|4.0.1>
             ]
           ], [
             fhir:index -1 ;
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Consent|4.0.1>
             ]
           ], [
             fhir:index -1 ;
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Consent|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index -1 ;
             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 -1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "CON" ]
           ], [
             fhir:index -1 ;
             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 -1 ;
             fhir:Element.extension [
               fhir:index -1 ;
               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 -1 ;
           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 -1 ;
             fhir:ElementDefinition.type.code [ fhir:value "Meta" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index -1 ;
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ]
         ], [
           fhir:index -1 ;
           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 -1 ;
             fhir:ElementDefinition.type.code [ fhir:value "uri" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index -1 ;
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element|4.0.1>
             ]
           ] ;
           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 -1 ;
           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 -1 ;
             fhir:ElementDefinition.type.code [ fhir:value "code" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index -1 ;
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.binding [
             fhir:Element.extension [
               fhir:index -1 ;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet" ] ;
               fhir:Extension.valueCanonical [
                 fhir:value "http://hl7.org/fhir/ValueSet/all-languages|4.0.1" ;
                 fhir:link <http://hl7.org/fhir/ValueSet/all-languages|4.0.1>
               ]
             ], [
               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 -1 ;
           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 -1
           ], [
             fhir:value "html" ;
             fhir:index -1
           ], [
             fhir:value "xhtml" ;
             fhir:index -1
           ], [
             fhir:value "display" ;
             fhir:index -1
           ] ;
           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 -1 ;
             fhir:ElementDefinition.type.code [ fhir:value "Narrative" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index -1 ;
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index -1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "Act.text?" ]
           ]
         ], [
           fhir:index -1 ;
           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 -1
           ], [
             fhir:value "anonymous resources" ;
             fhir:index -1
           ], [
             fhir:value "contained resources" ;
             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.contained" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "*" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index -1 ;
             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 -1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "N/A" ]
           ]
         ], [
           fhir:index -1 ;
           fhir:Element.id [ fhir:value "Consent.extension" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.extension" ] ;
           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 -1
           ], [
             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 -1 ;
             fhir:ElementDefinition.type.code [ fhir:value "Extension" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index -1 ;
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element|4.0.1>
             ]
           ], [
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Extension|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index -1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "N/A" ]
           ]
         ], [
           fhir:index -1 ;
           fhir:Element.id [ fhir:value "Consent.modifierExtension" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.modifierExtension" ] ;
           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 -1
           ], [
             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 -1 ;
             fhir:ElementDefinition.type.code [ fhir:value "Extension" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index -1 ;
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element|4.0.1>
             ]
           ], [
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Extension|4.0.1>
             ]
           ] ;
           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 -1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "N/A" ]
           ]
         ], [
           fhir:index -1 ;
           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 -1 ;
             fhir:ElementDefinition.type.code [ fhir:value "Identifier" ]
           ] ;
           fhir:ElementDefinition.example [
             fhir:index -1 ;
             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.constraint [
             fhir:index -1 ;
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index -1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "workflow" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "Event.identifier" ]
           ], [
             fhir:index -1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "w5" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "FiveWs.identifier" ]
           ], [
             fhir:index -1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value ".id" ]
           ]
         ], [
           fhir:index -1 ;
           fhir:Element.id [ fhir:value "Consent.status" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.status" ] ;
           fhir:ElementDefinition.short [ fhir:value "Statut" ] ;
           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 -1 ;
             fhir:ElementDefinition.type.code [ fhir:value "code" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index -1 ;
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.mustSupport [ fhir:value "true"^^xsd:boolean ] ;
           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 -1 ;
               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 -1 ;
             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 -1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "HL7 Table 0498 - Consent Status" ]
           ], [
             fhir:index -1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value ".statusCode" ]
           ]
         ], [
           fhir:index -1 ;
           fhir:Element.id [ fhir:value "Consent.scope" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.scope" ] ;
           fhir:ElementDefinition.short [ fhir:value "Consent de type directive anticipée" ] ;
           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.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 -1 ;
             fhir:ElementDefinition.type.code [ fhir:value "CodeableConcept" ]
           ] ;
           fhir:ElementDefinition.patternCodeableConcept [
             fhir:CodeableConcept.coding [
               fhir:index -1 ;
               fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/consentscope" ] ;
               fhir:Coding.code [ fhir:value "adr" ] ;
               fhir:Coding.display [ fhir:value "Advance Directive" ]
             ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index -1 ;
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.mustSupport [ fhir:value "true"^^xsd:boolean ] ;
           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 -1 ;
               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:index -1 ;
           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.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "*" ] ;
           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 -1 ;
             fhir:ElementDefinition.type.code [ fhir:value "CodeableConcept" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index -1 ;
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.binding [
             fhir:Element.extension [
               fhir:index -1 ;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ] ;
               fhir:Extension.valueString [ fhir:value "ConsentCategory" ]
             ] ;
             fhir:ElementDefinition.binding.strength [ fhir:value "extensible" ] ;
             fhir:ElementDefinition.binding.description [ fhir:value "A classification of the type of consents found in a consent statement." ] ;
             fhir:ElementDefinition.binding.valueSet [
               fhir:value "http://hl7.org/fhir/ValueSet/consent-category|4.0.1" ;
               fhir:link <http://hl7.org/fhir/ValueSet/consent-category|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.mapping [
             fhir:index -1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "workflow" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "Event.code" ]
           ], [
             fhir:index -1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "w5" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "FiveWs.class" ]
           ], [
             fhir:index -1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "HL7 Table 0497 - Consent Type" ]
           ], [
             fhir:index -1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "CNTRCT" ]
           ]
         ], [
           fhir:index -1 ;
           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 "0"^^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 -1 ;
             fhir:ElementDefinition.type.code [ fhir:value "Reference" ] ;
             fhir:ElementDefinition.type.targetProfile [
               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:ElementDefinition.constraint [
             fhir:index -1 ;
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index -1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "workflow" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "Event.subject" ]
           ], [
             fhir:index -1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "w5" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "FiveWs.subject[x]" ]
           ], [
             fhir:index -1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "Role" ]
           ], [
             fhir:index -1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "w5" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "FiveWs.subject" ]
           ]
         ], [
           fhir:index -1 ;
           fhir:Element.id [ fhir:value "Consent.dateTime" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.dateTime" ] ;
           fhir:ElementDefinition.short [ fhir:value "Date de la directive anticipée" ] ;
           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 -1 ;
             fhir:ElementDefinition.type.code [ fhir:value "dateTime" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index -1 ;
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element|4.0.1>
             ]
           ] ;
           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 -1 ;
             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 -1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "Field 13/ Consent Decision Date" ]
           ], [
             fhir:index -1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "FinancialConsent effectiveTime" ]
           ]
         ], [
           fhir:index -1 ;
           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 -1
           ] ;
           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 -1 ;
             fhir:ElementDefinition.type.code [ fhir:value "Reference" ] ;
             fhir:ElementDefinition.type.targetProfile [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Organization|4.0.1" ;
               fhir:index -1 ;
               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 -1 ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Practitioner|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:value "http://hl7.org/fhir/StructureDefinition/PractitionerRole|4.0.1" ;
               fhir:index -1 ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/PractitionerRole|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index -1 ;
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index -1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "workflow" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "Event.performer" ]
           ], [
             fhir:index -1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "w5" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "FiveWs.actor" ]
           ], [
             fhir:index -1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "Field 24/ ConsenterID" ]
           ]
         ], [
           fhir:index -1 ;
           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.alias [
             fhir:value "custodian" ;
             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 "Consent.organization" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "*" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index -1 ;
             fhir:ElementDefinition.type.code [ fhir:value "Reference" ] ;
             fhir:ElementDefinition.type.targetProfile [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Organization|4.0.1" ;
               fhir:index -1 ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Organization|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index -1 ;
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index -1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "workflow" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "Event.performer" ]
           ], [
             fhir:index -1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "w5" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "FiveWs.witness" ]
           ]
         ], [
           fhir:index -1 ;
           fhir:Element.id [ fhir:value "Consent.source[x]" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.source[x]" ] ;
           fhir:ElementDefinition.slicing [
             fhir:ElementDefinition.slicing.discriminator [
               fhir:index -1 ;
               fhir:ElementDefinition.slicing.discriminator.type [ fhir:value "type" ] ;
               fhir:ElementDefinition.slicing.discriminator.path [ fhir:value "$this" ]
             ] ;
             fhir:ElementDefinition.slicing.ordered [ fhir:value "false"^^xsd:boolean ] ;
             fhir:ElementDefinition.slicing.rules [ fhir:value "closed" ]
           ] ;
           fhir:ElementDefinition.short [ fhir:value "Documents" ] ;
           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 -1 ;
             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 -1 ;
               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 -1 ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Contract|4.0.1>
             ], [
               fhir:value "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse|4.0.1" ;
               fhir:index -1 ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index -1 ;
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index -1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "Field 19 Informational Material Supplied Indicator" ]
           ]
         ], [
           fhir:index -1 ;
           fhir:Element.id [ fhir:value "Consent.source[x]:sourceReference" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.source[x]" ] ;
           fhir:ElementDefinition.sliceName [ fhir:value "sourceReference" ] ;
           fhir:ElementDefinition.short [ fhir:value "Référence à un document externe" ] ;
           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 -1 ;
             fhir:ElementDefinition.type.code [ fhir:value "Reference" ] ;
             fhir:ElementDefinition.type.targetProfile [
               fhir:value "https://interop.esante.gouv.fr/ig/fhir/document-core/StructureDefinition/fr-document-reference-document|0.1.0" ;
               fhir:index -1 ;
               fhir:link <https://interop.esante.gouv.fr/ig/fhir/document-core/StructureDefinition/fr-document-reference-document|0.1.0>
             ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index -1 ;
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element|4.0.1>
             ]
           ] ;
           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 -1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "Field 19 Informational Material Supplied Indicator" ]
           ]
         ], [
           fhir:index -1 ;
           fhir:Element.id [ fhir:value "Consent.source[x]:sourceAttachment" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.source[x]" ] ;
           fhir:ElementDefinition.sliceName [ fhir:value "sourceAttachment" ] ;
           fhir:ElementDefinition.short [ fhir:value "Document encapsulé en B64" ] ;
           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 -1 ;
             fhir:ElementDefinition.type.code [ fhir:value "Attachment" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index -1 ;
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element|4.0.1>
             ]
           ] ;
           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 -1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "Field 19 Informational Material Supplied Indicator" ]
           ]
         ], [
           fhir:index -1 ;
           fhir:Element.id [ fhir:value "Consent.source[x]:sourceAttachment.id" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.source[x].id" ] ;
           fhir:ElementDefinition.representation [
             fhir:value "xmlAttr" ;
             fhir:index -1
           ] ;
           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 -1 ;
             fhir:Element.extension [
               fhir:index -1 ;
               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 -1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
           ]
         ], [
           fhir:index -1 ;
           fhir:Element.id [ fhir:value "Consent.source[x]:sourceAttachment.extension" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.source[x].extension" ] ;
           fhir:ElementDefinition.slicing [
             fhir:ElementDefinition.slicing.discriminator [
               fhir:index -1 ;
               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 -1
           ], [
             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 -1 ;
             fhir:ElementDefinition.type.code [ fhir:value "Extension" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index -1 ;
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element|4.0.1>
             ]
           ], [
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Extension|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index -1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
           ]
         ], [
           fhir:index -1 ;
           fhir:Element.id [ fhir:value "Consent.source[x]:sourceAttachment.contentType" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.source[x].contentType" ] ;
           fhir:ElementDefinition.short [ fhir:value "Mime type of the content, with charset etc." ] ;
           fhir:ElementDefinition.definition [ fhir:value "Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate." ] ;
           fhir:ElementDefinition.requirements [ fhir:value "Processors of the data need to be able to know how to interpret the data." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Attachment.contentType" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index -1 ;
             fhir:ElementDefinition.type.code [ fhir:value "code" ]
           ] ;
           fhir:ElementDefinition.example [
             fhir:index -1 ;
             fhir:ElementDefinition.example.label [ fhir:value "General" ] ;
             fhir:ElementDefinition.example.valueCode [ fhir:value "text/plain; charset=UTF-8, image/png" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index -1 ;
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.binding [
             fhir:Element.extension [
               fhir:index -1 ;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ] ;
               fhir:Extension.valueString [ fhir:value "MimeType" ]
             ] ;
             fhir:ElementDefinition.binding.strength [ fhir:value "required" ] ;
             fhir:ElementDefinition.binding.description [ fhir:value "The mime type of an attachment. Any valid mime type is allowed." ] ;
             fhir:ElementDefinition.binding.valueSet [
               fhir:value "http://hl7.org/fhir/ValueSet/mimetypes|4.0.1" ;
               fhir:link <http://hl7.org/fhir/ValueSet/mimetypes|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.mapping [
             fhir:index -1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "ED.2+ED.3/RP.2+RP.3. Note conversion may be needed if old style values are being used" ]
           ], [
             fhir:index -1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "./mediaType, ./charset" ]
           ]
         ], [
           fhir:index -1 ;
           fhir:Element.id [ fhir:value "Consent.source[x]:sourceAttachment.language" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.source[x].language" ] ;
           fhir:ElementDefinition.short [ fhir:value "Human language of the content (BCP-47)" ] ;
           fhir:ElementDefinition.definition [ fhir:value "The human language of the content. The value can be any valid value according to BCP 47." ] ;
           fhir:ElementDefinition.requirements [ fhir:value "Users need to be able to choose between the languages in a set of attachments." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Attachment.language" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index -1 ;
             fhir:ElementDefinition.type.code [ fhir:value "code" ]
           ] ;
           fhir:ElementDefinition.example [
             fhir:index -1 ;
             fhir:ElementDefinition.example.label [ fhir:value "General" ] ;
             fhir:ElementDefinition.example.valueCode [ fhir:value "en-AU" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index -1 ;
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.binding [
             fhir:Element.extension [
               fhir:index -1 ;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet" ] ;
               fhir:Extension.valueCanonical [
                 fhir:value "http://hl7.org/fhir/ValueSet/all-languages|4.0.1" ;
                 fhir:link <http://hl7.org/fhir/ValueSet/all-languages|4.0.1>
               ]
             ], [
               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:ElementDefinition.mapping [
             fhir:index -1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "./language" ]
           ]
         ], [
           fhir:index -1 ;
           fhir:Element.id [ fhir:value "Consent.source[x]:sourceAttachment.data" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.source[x].data" ] ;
           fhir:ElementDefinition.short [ fhir:value "Representation en B64" ] ;
           fhir:ElementDefinition.definition [ fhir:value "The actual data of the attachment - a sequence of bytes, base64 encoded." ] ;
           fhir:ElementDefinition.comment [ fhir:value "The base64-encoded data SHALL be expressed in the same character set as the base resource XML or JSON." ] ;
           fhir:ElementDefinition.requirements [ fhir:value "The data needs to able to be transmitted inline." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Attachment.data" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index -1 ;
             fhir:ElementDefinition.type.code [ fhir:value "base64Binary" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index -1 ;
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index -1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "ED.5" ]
           ], [
             fhir:index -1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "./data" ]
           ]
         ], [
           fhir:index -1 ;
           fhir:Element.id [ fhir:value "Consent.source[x]:sourceAttachment.url" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.source[x].url" ] ;
           fhir:ElementDefinition.short [ fhir:value "URI" ] ;
           fhir:ElementDefinition.definition [ fhir:value "A location where the data can be accessed." ] ;
           fhir:ElementDefinition.comment [ fhir:value "If both data and url are provided, the url SHALL point to the same content as the data contains. Urls may be relative references or may reference transient locations such as a wrapping envelope using cid: though this has ramifications for using signatures. Relative URLs are interpreted relative to the service url, like a resource reference, rather than relative to the resource itself. If a URL is provided, it SHALL resolve to actual data." ] ;
           fhir:ElementDefinition.requirements [ fhir:value "The data needs to be transmitted by reference." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Attachment.url" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index -1 ;
             fhir:ElementDefinition.type.code [ fhir:value "url" ]
           ] ;
           fhir:ElementDefinition.example [
             fhir:index -1 ;
             fhir:ElementDefinition.example.label [ fhir:value "General" ] ;
             fhir:ElementDefinition.example.valueUrl [ fhir:value "http://www.acme.com/logo-small.png" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index -1 ;
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index -1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "RP.1+RP.2 - if they refer to a URL (see v2.6)" ]
           ], [
             fhir:index -1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "./reference/literal" ]
           ]
         ], [
           fhir:index -1 ;
           fhir:Element.id [ fhir:value "Consent.source[x]:sourceAttachment.size" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.source[x].size" ] ;
           fhir:ElementDefinition.short [ fhir:value "Number of bytes of content (if url provided)" ] ;
           fhir:ElementDefinition.definition [ fhir:value "The number of bytes of data that make up this attachment (before base64 encoding, if that is done)." ] ;
           fhir:ElementDefinition.comment [ fhir:value "The number of bytes is redundant if the data is provided as a base64binary, but is useful if the data is provided as a url reference." ] ;
           fhir:ElementDefinition.requirements [ fhir:value "Representing the size allows applications to determine whether they should fetch the content automatically in advance, or refuse to fetch it at all." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Attachment.size" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index -1 ;
             fhir:ElementDefinition.type.code [ fhir:value "unsignedInt" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index -1 ;
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index -1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "N/A (needs data type R3 proposal)" ]
           ]
         ], [
           fhir:index -1 ;
           fhir:Element.id [ fhir:value "Consent.source[x]:sourceAttachment.hash" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.source[x].hash" ] ;
           fhir:ElementDefinition.short [ fhir:value "Hash of the data (sha-1, base64ed)" ] ;
           fhir:ElementDefinition.definition [ fhir:value "The calculated hash of the data using SHA-1. Represented using base64." ] ;
           fhir:ElementDefinition.comment [ fhir:value "The hash is calculated on the data prior to base64 encoding, if the data is based64 encoded. The hash is not intended to support digital signatures. Where protection against malicious threats a digital signature should be considered, see [Provenance.signature](http://hl7.org/fhir/R4/provenance-definitions.html#Provenance.signature) for mechanism to protect a resource with a digital signature." ] ;
           fhir:ElementDefinition.requirements [ fhir:value "Included so that applications can verify that the contents of a location have not changed due to technical failures (e.g., storage rot, transport glitch, incorrect version)." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Attachment.hash" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index -1 ;
             fhir:ElementDefinition.type.code [ fhir:value "base64Binary" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index -1 ;
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index -1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value ".integrityCheck[parent::ED/integrityCheckAlgorithm=\"SHA-1\"]" ]
           ]
         ], [
           fhir:index -1 ;
           fhir:Element.id [ fhir:value "Consent.source[x]:sourceAttachment.title" ] ;
           fhir:Element.extension [
             fhir:index -1 ;
             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.source[x].title" ] ;
           fhir:ElementDefinition.short [ fhir:value "Label to display in place of the data" ] ;
           fhir:ElementDefinition.definition [ fhir:value "A label or set of text to display in place of the data." ] ;
           fhir:ElementDefinition.requirements [ fhir:value "Applications need a label to display to a human user in place of the actual data if the data cannot be rendered or perceived by the viewer." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Attachment.title" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index -1 ;
             fhir:ElementDefinition.type.code [ fhir:value "string" ]
           ] ;
           fhir:ElementDefinition.example [
             fhir:index -1 ;
             fhir:ElementDefinition.example.label [ fhir:value "General" ] ;
             fhir:ElementDefinition.example.valueString [ fhir:value "Official Corporate Logo" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index -1 ;
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index -1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "./title/data" ]
           ]
         ], [
           fhir:index -1 ;
           fhir:Element.id [ fhir:value "Consent.source[x]:sourceAttachment.creation" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.source[x].creation" ] ;
           fhir:ElementDefinition.short [ fhir:value "Date attachment was first created" ] ;
           fhir:ElementDefinition.definition [ fhir:value "The date that the attachment was first created." ] ;
           fhir:ElementDefinition.requirements [ fhir:value "This is often tracked as an integrity issue for use of the attachment." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Attachment.creation" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index -1 ;
             fhir:ElementDefinition.type.code [ fhir:value "dateTime" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index -1 ;
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index -1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "N/A (needs data type R3 proposal)" ]
           ]
         ], [
           fhir:index -1 ;
           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 -1 ;
             fhir:ElementDefinition.type.code [ fhir:value "BackboneElement" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index -1 ;
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ]
         ], [
           fhir:index -1 ;
           fhir:Element.id [ fhir:value "Consent.policy.id" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.policy.id" ] ;
           fhir:ElementDefinition.representation [
             fhir:value "xmlAttr" ;
             fhir:index -1
           ] ;
           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 -1 ;
             fhir:Element.extension [
               fhir:index -1 ;
               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 -1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
           ]
         ], [
           fhir:index -1 ;
           fhir:Element.id [ fhir:value "Consent.policy.extension" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.policy.extension" ] ;
           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 -1
           ], [
             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 -1 ;
             fhir:ElementDefinition.type.code [ fhir:value "Extension" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index -1 ;
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element|4.0.1>
             ]
           ], [
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Extension|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index -1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
           ]
         ], [
           fhir:index -1 ;
           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 -1
           ], [
             fhir:value "user content" ;
             fhir:index -1
           ], [
             fhir:value "modifiers" ;
             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 "BackboneElement.modifierExtension" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "*" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index -1 ;
             fhir:ElementDefinition.type.code [ fhir:value "Extension" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index -1 ;
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element|4.0.1>
             ]
           ], [
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Extension|4.0.1>
             ]
           ] ;
           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 -1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "N/A" ]
           ]
         ], [
           fhir:index -1 ;
           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.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 -1 ;
             fhir:ElementDefinition.type.code [ fhir:value "uri" ]
           ] ;
           fhir:ElementDefinition.condition [
             fhir:value "ppc-1" ;
             fhir:index -1
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index -1 ;
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ]
         ], [
           fhir:index -1 ;
           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 -1 ;
             fhir:ElementDefinition.type.code [ fhir:value "uri" ]
           ] ;
           fhir:ElementDefinition.condition [
             fhir:value "ppc-1" ;
             fhir:index -1
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index -1 ;
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ]
         ], [
           fhir:index -1 ;
           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 -1 ;
             fhir:ElementDefinition.type.code [ fhir:value "CodeableConcept" ]
           ] ;
           fhir:ElementDefinition.condition [
             fhir:value "ppc-1" ;
             fhir:index -1
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index -1 ;
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.binding [
             fhir:Element.extension [
               fhir:index -1 ;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ] ;
               fhir:Extension.valueString [ fhir:value "ConsentPolicyRule" ]
             ] ;
             fhir:ElementDefinition.binding.strength [ fhir:value "extensible" ] ;
             fhir:ElementDefinition.binding.description [ fhir:value "Regulatory policy examples." ] ;
             fhir:ElementDefinition.binding.valueSet [
               fhir:value "http://hl7.org/fhir/ValueSet/consent-policy|4.0.1" ;
               fhir:link <http://hl7.org/fhir/ValueSet/consent-policy|4.0.1>
             ]
           ]
         ], [
           fhir:index -1 ;
           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 -1 ;
             fhir:ElementDefinition.type.code [ fhir:value "BackboneElement" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index -1 ;
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ]
         ], [
           fhir:index -1 ;
           fhir:Element.id [ fhir:value "Consent.verification.id" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.verification.id" ] ;
           fhir:ElementDefinition.representation [
             fhir:value "xmlAttr" ;
             fhir:index -1
           ] ;
           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 -1 ;
             fhir:Element.extension [
               fhir:index -1 ;
               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 -1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
           ]
         ], [
           fhir:index -1 ;
           fhir:Element.id [ fhir:value "Consent.verification.extension" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.verification.extension" ] ;
           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 -1
           ], [
             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 -1 ;
             fhir:ElementDefinition.type.code [ fhir:value "Extension" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index -1 ;
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element|4.0.1>
             ]
           ], [
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Extension|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index -1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
           ]
         ], [
           fhir:index -1 ;
           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 -1
           ], [
             fhir:value "user content" ;
             fhir:index -1
           ], [
             fhir:value "modifiers" ;
             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 "BackboneElement.modifierExtension" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "*" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index -1 ;
             fhir:ElementDefinition.type.code [ fhir:value "Extension" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index -1 ;
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element|4.0.1>
             ]
           ], [
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Extension|4.0.1>
             ]
           ] ;
           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 -1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "N/A" ]
           ]
         ], [
           fhir:index -1 ;
           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 -1 ;
             fhir:ElementDefinition.type.code [ fhir:value "boolean" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index -1 ;
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ]
         ], [
           fhir:index -1 ;
           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.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 -1 ;
             fhir:ElementDefinition.type.code [ fhir:value "Reference" ] ;
             fhir:ElementDefinition.type.targetProfile [
               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/RelatedPerson|4.0.1" ;
               fhir:index -1 ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/RelatedPerson|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index -1 ;
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ]
         ], [
           fhir:index -1 ;
           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 -1 ;
             fhir:ElementDefinition.type.code [ fhir:value "dateTime" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index -1 ;
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ]
         ], [
           fhir:index -1 ;
           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 -1 ;
             fhir:ElementDefinition.type.code [ fhir:value "BackboneElement" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index -1 ;
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element|4.0.1>
             ]
           ] ;
           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:index -1 ;
           fhir:Element.id [ fhir:value "Consent.provision.id" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.provision.id" ] ;
           fhir:ElementDefinition.representation [
             fhir:value "xmlAttr" ;
             fhir:index -1
           ] ;
           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 -1 ;
             fhir:Element.extension [
               fhir:index -1 ;
               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 -1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
           ]
         ], [
           fhir:index -1 ;
           fhir:Element.id [ fhir:value "Consent.provision.extension" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.provision.extension" ] ;
           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 -1
           ], [
             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 -1 ;
             fhir:ElementDefinition.type.code [ fhir:value "Extension" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index -1 ;
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element|4.0.1>
             ]
           ], [
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Extension|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index -1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
           ]
         ], [
           fhir:index -1 ;
           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 -1
           ], [
             fhir:value "user content" ;
             fhir:index -1
           ], [
             fhir:value "modifiers" ;
             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 "BackboneElement.modifierExtension" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "*" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index -1 ;
             fhir:ElementDefinition.type.code [ fhir:value "Extension" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index -1 ;
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element|4.0.1>
             ]
           ], [
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Extension|4.0.1>
             ]
           ] ;
           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 -1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "N/A" ]
           ]
         ], [
           fhir:index -1 ;
           fhir:Element.id [ fhir:value "Consent.provision.type" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.provision.type" ] ;
           fhir:ElementDefinition.short [ fhir:value "Procédure autorisée ou pas :\nLe type de la directive identifiée permet d’indiquer l’autorisation ou la non autorisation :\n- si l’élément <<provision.code>> est 'Autre directive' : dans ce cas, l'élément <<provision.type>> n'est pas présent\n- si l’élément <<provision.code>> est 'Directives anticipées' : dans ce cas, l'élément <<provision.type>> n'est pas présent et un document encodé en B64 est encapsulé dans l'élément 'sourceAttachment'." ] ;
           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 -1 ;
             fhir:ElementDefinition.type.code [ fhir:value "code" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index -1 ;
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.binding [
             fhir:Element.extension [
               fhir:index -1 ;
               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 -1 ;
           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.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 -1 ;
             fhir:ElementDefinition.type.code [ fhir:value "Period" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index -1 ;
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ]
         ], [
           fhir:index -1 ;
           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 -1 ;
             fhir:ElementDefinition.type.code [ fhir:value "BackboneElement" ]
           ] ;
           fhir:ElementDefinition.meaningWhenMissing [ fhir:value "There is no specific actor associated with the exception" ] ;
           fhir:ElementDefinition.constraint [
             fhir:index -1 ;
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ]
         ], [
           fhir:index -1 ;
           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 -1
           ] ;
           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 -1 ;
             fhir:Element.extension [
               fhir:index -1 ;
               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 -1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
           ]
         ], [
           fhir:index -1 ;
           fhir:Element.id [ fhir:value "Consent.provision.actor.extension" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.provision.actor.extension" ] ;
           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 -1
           ], [
             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 -1 ;
             fhir:ElementDefinition.type.code [ fhir:value "Extension" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index -1 ;
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element|4.0.1>
             ]
           ], [
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Extension|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index -1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
           ]
         ], [
           fhir:index -1 ;
           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 -1
           ], [
             fhir:value "user content" ;
             fhir:index -1
           ], [
             fhir:value "modifiers" ;
             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 "BackboneElement.modifierExtension" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "*" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index -1 ;
             fhir:ElementDefinition.type.code [ fhir:value "Extension" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index -1 ;
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element|4.0.1>
             ]
           ], [
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Extension|4.0.1>
             ]
           ] ;
           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 -1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "N/A" ]
           ]
         ], [
           fhir:index -1 ;
           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.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 -1 ;
             fhir:ElementDefinition.type.code [ fhir:value "CodeableConcept" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index -1 ;
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.binding [
             fhir:Element.extension [
               fhir:index -1 ;
               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:index -1 ;
           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.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 -1 ;
             fhir:ElementDefinition.type.code [ fhir:value "Reference" ] ;
             fhir:ElementDefinition.type.targetProfile [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Device|4.0.1" ;
               fhir:index -1 ;
               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 -1 ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/CareTeam|4.0.1>
             ], [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Organization|4.0.1" ;
               fhir:index -1 ;
               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 -1 ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Practitioner|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:value "http://hl7.org/fhir/StructureDefinition/PractitionerRole|4.0.1" ;
               fhir:index -1 ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/PractitionerRole|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index -1 ;
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ]
         ], [
           fhir:index -1 ;
           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 -1 ;
             fhir:ElementDefinition.type.code [ fhir:value "CodeableConcept" ]
           ] ;
           fhir:ElementDefinition.meaningWhenMissing [ fhir:value "all actions" ] ;
           fhir:ElementDefinition.constraint [
             fhir:index -1 ;
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.binding [
             fhir:Element.extension [
               fhir:index -1 ;
               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:index -1 ;
           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 -1 ;
             fhir:ElementDefinition.type.code [ fhir:value "Coding" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index -1 ;
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.binding [
             fhir:Element.extension [
               fhir:index -1 ;
               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:index -1 ;
           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 -1 ;
             fhir:ElementDefinition.type.code [ fhir:value "Coding" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index -1 ;
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.binding [
             fhir:Element.extension [
               fhir:index -1 ;
               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|3.1.0" ;
               fhir:link <http://terminology.hl7.org/ValueSet/v3-PurposeOfUse|3.1.0>
             ]
           ]
         ], [
           fhir:index -1 ;
           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 -1 ;
             fhir:ElementDefinition.type.code [ fhir:value "Coding" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index -1 ;
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.binding [
             fhir:Element.extension [
               fhir:index -1 ;
               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:index -1 ;
           fhir:Element.id [ fhir:value "Consent.provision.code" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.provision.code" ] ;
           fhir:ElementDefinition.short [ fhir:value "Type de la directive anticipée" ] ;
           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 -1 ;
             fhir:ElementDefinition.type.code [ fhir:value "CodeableConcept" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index -1 ;
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element|4.0.1>
             ]
           ] ;
           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://smt.esante.gouv.fr/fhir/ValueSet/jdv-type-directive-anticipee-cisis|20260619134043" ;
               fhir:link <https://smt.esante.gouv.fr/fhir/ValueSet/jdv-type-directive-anticipee-cisis|20260619134043>
             ]
           ]
         ], [
           fhir:index -1 ;
           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 -1 ;
             fhir:ElementDefinition.type.code [ fhir:value "Period" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index -1 ;
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ]
         ], [
           fhir:index -1 ;
           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 -1 ;
             fhir:ElementDefinition.type.code [ fhir:value "BackboneElement" ]
           ] ;
           fhir:ElementDefinition.meaningWhenMissing [ fhir:value "all data" ] ;
           fhir:ElementDefinition.constraint [
             fhir:index -1 ;
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index -1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "Role" ]
           ]
         ], [
           fhir:index -1 ;
           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 -1
           ] ;
           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 -1 ;
             fhir:Element.extension [
               fhir:index -1 ;
               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 -1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
           ]
         ], [
           fhir:index -1 ;
           fhir:Element.id [ fhir:value "Consent.provision.data.extension" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.provision.data.extension" ] ;
           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 -1
           ], [
             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 -1 ;
             fhir:ElementDefinition.type.code [ fhir:value "Extension" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index -1 ;
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element|4.0.1>
             ]
           ], [
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Extension|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index -1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]
           ]
         ], [
           fhir:index -1 ;
           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 -1
           ], [
             fhir:value "user content" ;
             fhir:index -1
           ], [
             fhir:value "modifiers" ;
             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 "BackboneElement.modifierExtension" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "*" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index -1 ;
             fhir:ElementDefinition.type.code [ fhir:value "Extension" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index -1 ;
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element|4.0.1>
             ]
           ], [
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Extension|4.0.1>
             ]
           ] ;
           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 -1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "N/A" ]
           ]
         ], [
           fhir:index -1 ;
           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 -1 ;
             fhir:ElementDefinition.type.code [ fhir:value "code" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index -1 ;
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.binding [
             fhir:Element.extension [
               fhir:index -1 ;
               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 -1 ;
           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.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 -1 ;
             fhir:ElementDefinition.type.code [ fhir:value "Reference" ] ;
             fhir:ElementDefinition.type.targetProfile [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Resource|4.0.1" ;
               fhir:index -1 ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Resource|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index -1 ;
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ]
         ], [
           fhir:index -1 ;
           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:ElementDefinition.constraint [
             fhir:index -1 ;
             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|4.0.1" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ]
         ]
      ] ;
      fhir:StructureDefinition.differential [
         fhir:StructureDefinition.differential.element [
           fhir:index -1 ;
           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.short [ fhir:value "Statut" ] ;
           fhir:ElementDefinition.mustSupport [ fhir:value "true"^^xsd:boolean ]
         ], [
           fhir:index -1 ;
           fhir:Element.id [ fhir:value "Consent.scope" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.scope" ] ;
           fhir:ElementDefinition.short [ fhir:value "Consent de type directive anticipée" ] ;
           fhir:ElementDefinition.patternCodeableConcept [
             fhir:CodeableConcept.coding [
               fhir:index -1 ;
               fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/consentscope" ] ;
               fhir:Coding.code [ fhir:value "adr" ] ;
               fhir:Coding.display [ fhir:value "Advance Directive" ]
             ]
           ] ;
           fhir:ElementDefinition.mustSupport [ fhir:value "true"^^xsd:boolean ]
         ], [
           fhir:index -1 ;
           fhir:Element.id [ fhir:value "Consent.dateTime" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.dateTime" ] ;
           fhir:ElementDefinition.short [ fhir:value "Date de la directive anticipée" ] ;
           fhir:ElementDefinition.mustSupport [ fhir:value "true"^^xsd:boolean ]
         ], [
           fhir:index -1 ;
           fhir:Element.id [ fhir:value "Consent.source[x]" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.source[x]" ] ;
           fhir:ElementDefinition.slicing [
             fhir:ElementDefinition.slicing.discriminator [
               fhir:index -1 ;
               fhir:ElementDefinition.slicing.discriminator.type [ fhir:value "type" ] ;
               fhir:ElementDefinition.slicing.discriminator.path [ fhir:value "$this" ]
             ] ;
             fhir:ElementDefinition.slicing.ordered [ fhir:value "false"^^xsd:boolean ] ;
             fhir:ElementDefinition.slicing.rules [ fhir:value "open" ]
           ] ;
           fhir:ElementDefinition.short [ fhir:value "Documents" ]
         ], [
           fhir:index -1 ;
           fhir:Element.id [ fhir:value "Consent.source[x]:sourceReference" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.source[x]" ] ;
           fhir:ElementDefinition.sliceName [ fhir:value "sourceReference" ] ;
           fhir:ElementDefinition.short [ fhir:value "Référence à un document externe" ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.type [
             fhir:index -1 ;
             fhir:ElementDefinition.type.code [ fhir:value "Reference" ] ;
             fhir:ElementDefinition.type.targetProfile [
               fhir:value "https://interop.esante.gouv.fr/ig/fhir/document-core/StructureDefinition/fr-document-reference-document|0.1.0" ;
               fhir:index -1 ;
               fhir:link <https://interop.esante.gouv.fr/ig/fhir/document-core/StructureDefinition/fr-document-reference-document|0.1.0>
             ]
           ] ;
           fhir:ElementDefinition.mustSupport [ fhir:value "true"^^xsd:boolean ]
         ], [
           fhir:index -1 ;
           fhir:Element.id [ fhir:value "Consent.source[x]:sourceAttachment" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.source[x]" ] ;
           fhir:ElementDefinition.sliceName [ fhir:value "sourceAttachment" ] ;
           fhir:ElementDefinition.short [ fhir:value "Document encapsulé en B64" ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.type [
             fhir:index -1 ;
             fhir:ElementDefinition.type.code [ fhir:value "Attachment" ]
           ] ;
           fhir:ElementDefinition.mustSupport [ fhir:value "true"^^xsd:boolean ]
         ], [
           fhir:index -1 ;
           fhir:Element.id [ fhir:value "Consent.source[x]:sourceAttachment.data" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.source[x].data" ] ;
           fhir:ElementDefinition.short [ fhir:value "Representation en B64" ]
         ], [
           fhir:index -1 ;
           fhir:Element.id [ fhir:value "Consent.source[x]:sourceAttachment.url" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.source[x].url" ] ;
           fhir:ElementDefinition.short [ fhir:value "URI" ]
         ], [
           fhir:index -1 ;
           fhir:Element.id [ fhir:value "Consent.provision" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.provision" ] ;
           fhir:ElementDefinition.mustSupport [ fhir:value "true"^^xsd:boolean ]
         ], [
           fhir:index -1 ;
           fhir:Element.id [ fhir:value "Consent.provision.type" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.provision.type" ] ;
           fhir:ElementDefinition.short [ fhir:value "Procédure autorisée ou pas :\nLe type de la directive identifiée permet d’indiquer l’autorisation ou la non autorisation :\n- si l’élément <<provision.code>> est 'Autre directive' : dans ce cas, l'élément <<provision.type>> n'est pas présent\n- si l’élément <<provision.code>> est 'Directives anticipées' : dans ce cas, l'élément <<provision.type>> n'est pas présent et un document encodé en B64 est encapsulé dans l'élément 'sourceAttachment'." ]
         ], [
           fhir:index -1 ;
           fhir:Element.id [ fhir:value "Consent.provision.code" ] ;
           fhir:ElementDefinition.path [ fhir:value "Consent.provision.code" ] ;
           fhir:ElementDefinition.short [ fhir:value "Type de la directive anticipée" ] ;
           fhir:ElementDefinition.binding [
             fhir:ElementDefinition.binding.strength [ fhir:value "required" ] ;
             fhir:ElementDefinition.binding.valueSet [
               fhir:value "https://smt.esante.gouv.fr/fhir/ValueSet/jdv-type-directive-anticipee-cisis|20260619134043" ;
               fhir:link <https://smt.esante.gouv.fr/fhir/ValueSet/jdv-type-directive-anticipee-cisis|20260619134043>
             ]
           ]
         ]
      ] .

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

    <http://hl7.org/fhir/StructureDefinition/fr-advance-directive-document.ttl> a owl:Ontology ;
      owl:imports fhir:fhir.ttl ;
      owl:versionIRI <http://build.fhir.org/StructureDefinition/fr-advance-directive-document.ttl> .