RIVO-Noord Zorgviewer Implementation Guide
1.21.0 - CI build

RIVO-Noord Zorgviewer Implementation Guide, published by RIVO-NN HL7NL. This guide is not an authorized publication; it is the continuous build for version 1.21.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/RIVO-Noord/zorgviewer-ig/ and changes regularly. See the Directory of published versions

## Resource Profile: AdvanceDirective - TTL Profile

Active as of 2025-10-28

TTL representation of the AdvanceDirective resource profile.

Raw ttl | Download

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

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

     a fhir:StructureDefinition ;
      fhir:nodeRole fhir:treeRoot ;
      fhir:id [ fhir:v "AdvanceDirective"] ; #
      fhir:text [
    fhir:status [ fhir:v "extensions" ] ;
    fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: StructureDefinition AdvanceDirective</b></p><a name=\"AdvanceDirective\"> </a><a name=\"hcAdvanceDirective\"> </a><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border: 0px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top;\"><tr style=\"border: 1px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top\"><th style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px\" class=\"hierarchy\"><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"The logical name of the element\">Name</a></th><th style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px\" class=\"hierarchy\"><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"Information about the use of the element\">Flags</a></th><th style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px\" class=\"hierarchy\"><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"Minimum and Maximum # of times the element can appear in the instance\">Card.</a></th><th style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px; width: 100px\" class=\"hierarchy\"><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"Reference to the type of the element\">Type</a></th><th style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px\" class=\"hierarchy\"><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"Additional information about the element\">Description &amp; Constraints</a><span style=\"float: right\"><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"Legend for this format\"><img src=\"data:image/png;base64, \" alt=\"doco\" style=\"background-color: inherit\"/></a></span></th></tr><tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_resource.png\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Resource\" class=\"hierarchy\"/> <a href=\"StructureDefinition-AdvanceDirective-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=\"https://simplifier.net/resolve?scope=nictiz.fhir.nl.stu3.zib2017@2.3.1&amp;canonical=http://nictiz.nl/fhir/StructureDefinition/zib-AdvanceDirective\">Zib AdvanceDirective(2.1.5)</a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">LivingWill</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_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: #F7F7F7; background-color: inherit\" title=\"Slice Definition\" class=\"hierarchy\"/> Slices for extension<a name=\"Consent.extension\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">Content/Rules for all slices</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_bck124.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vline.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin_end_slicer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_slice_item.png\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Slice Item\" class=\"hierarchy\"/> <a href=\"StructureDefinition-AdvanceDirective-definitions.html#Consent.extension:comment\" title=\"Slice comment\">extension:comment</a><a name=\"Consent.extension.2\"> </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: red\" title=\"This element must be supported\">S</span></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">0</span><span style=\"opacity: 0.5\">..</span><span style=\"opacity: 0.5\">1</span></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a style=\"opacity: 0.5; opacity: 0.5\" href=\"https://simplifier.net/resolve?scope=nictiz.fhir.nl.stu3.eafspraak@1.0.6&amp;canonical=http://nictiz.nl/fhir/StructureDefinition/Comment\" title=\"Extension\">Comment</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\">Comment</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_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: #F7F7F7; background-color: inherit\" title=\"Slice Definition\" class=\"hierarchy\"/> Slices for category<a name=\"Consent.category\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><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\">Content/Rules for all slices</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_bck124.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vline.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin_end_slicer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_slice_item.png\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Slice Item\" class=\"hierarchy\"/> <a href=\"StructureDefinition-AdvanceDirective-definitions.html#Consent.category:typeOfLivingWill\" title=\"Slice typeOfLivingWill\">category:typeOfLivingWill</a><a name=\"Consent.category.2\"> </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: red\" title=\"This element must be supported\">S</span></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">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/STU3/datatypes.html#CodeableConcept\">CodeableConcept</a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">TypeOfLivingWill</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-AdvanceDirective-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: red\" title=\"This element must be supported\">S</span></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">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/STU3/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\"><span style=\"opacity: 0.5\">LivingWillDate</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_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: white; background-color: inherit\" title=\"Element\" class=\"hierarchy\"/> <a href=\"StructureDefinition-AdvanceDirective-definitions.html#Consent.sourceAttachment\">sourceAttachment</a><a name=\"Consent.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: red\" title=\"This element must be supported\">S</span></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">0</span><span style=\"opacity: 0.5\">..</span><span style=\"opacity: 0.5\">1</span></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a style=\"opacity: 0.5; opacity: 0.5\" href=\"http://hl7.org/fhir/STU3/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\"><span style=\"opacity: 0.5\">LivingWillDocument</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_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-AdvanceDirective-definitions.html#Consent.sourceAttachment.data\">data</a><a name=\"Consent.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\"><span style=\"padding-left: 3px; padding-right: 3px; color: white; background-color: red\" title=\"This element must be supported\">S</span></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">0</span><span style=\"opacity: 0.5\">..</span><span style=\"opacity: 0.5\">1</span></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a style=\"opacity: 0.5; opacity: 0.5\" href=\"http://hl7.org/fhir/STU3/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\"><span style=\"opacity: 0.5\">Data inline, base64ed</span></td></tr>#xD;\n<tr><td colspan=\"5\" class=\"hierarchy\"><br/><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"Legend for this format\"><img src=\"data:image/png;base64, \" alt=\"doco\" style=\"background-color: inherit\"/> Documentation for this format</a></td></tr></table></div>"^^rdf:XMLLiteral
      ] ; #
      fhir:url [ fhir:v "http://fhir.hl7.nl/zorgviewer/StructureDefinition/AdvanceDirective"^^xsd:anyURI] ; #
      fhir:version [ fhir:v "1.21.0"] ; #
      fhir:name [ fhir:v "AdvanceDirective"] ; #
      fhir:title [ fhir:v "AdvanceDirective"] ; #
      fhir:status [ fhir:v "active"] ; #
      fhir:date [ fhir:v "2025-10-28T13:36:22+00:00"^^xsd:dateTime] ; #
      fhir:publisher [ fhir:v "RIVO-NN HL7NL"] ; #
      fhir:contact ( [
    fhir:name [ fhir:v "RIVO-NN" ] ;
        ( fhir:telecom [
    fhir:system [ fhir:v "url" ] ;
    fhir:value [ fhir:v "https://rivo-noord.nl" ]     ] )
      ] [
    fhir:name [ fhir:v "HL7NL" ] ;
        ( fhir:telecom [
    fhir:system [ fhir:v "url" ] ;
    fhir:value [ fhir:v "https://hl7.nl" ]     ] )
      ] ) ; #
      fhir:description [ fhir:v "Wilsverklaring (Consent)"] ; #
      fhir:jurisdiction ( [
        ( fhir:coding [
    fhir:system [ fhir:v "urn:iso:std:iso:3166"^^xsd:anyURI ] ;
    fhir:code [ fhir:v "NL" ]     ] )
      ] ) ; #
      fhir:fhirVersion [ fhir:v "3.0.2"] ; #
      fhir:mapping ( [
    fhir:identity [ fhir:v "hcim-advancedirective-v3.1-2017EN" ] ;
    fhir:uri [ fhir:v "https://zibs.nl/wiki/AdvanceDirective-v3.1(2017EN)"^^xsd:anyURI ] ;
    fhir:name [ fhir:v "HCIM AdvanceDirective-v3.1(2017EN)" ]
      ] [
    fhir:identity [ fhir:v "hcim-basicelements-v1.0-2017EN" ] ;
    fhir:uri [ fhir:v "https://zibs.nl/wiki/BasicElements-v1.0(2017EN)"^^xsd:anyURI ] ;
    fhir:name [ fhir:v "HCIM BasicElements-v1.0(2017EN)" ]
      ] [
    fhir:identity [ fhir:v "hcim-advancedirective-v3.0-2016EN" ] ;
    fhir:uri [ fhir:v "https://zibs.nl/wiki/AdvanceDirective-v3.0(2016EN)"^^xsd:anyURI ] ;
    fhir:name [ fhir:v "HCIM AdvanceDirective-v3.0(2016EN)" ]
      ] [
    fhir:identity [ fhir:v "hcim-advancedirective-v1.0-2015EN" ] ;
    fhir:uri [ fhir:v "https://zibs.nl/wiki/AdvanceDirective-v1.0(2015EN)"^^xsd:anyURI ] ;
    fhir:name [ fhir:v "HCIM AdvanceDirective-v1.0(2015EN)" ]
      ] ) ; #
      fhir:kind [ fhir:v "resource"] ; #
      fhir:abstract [ fhir:v false] ; #
      fhir:type [ fhir:v "Consent"] ; #
      fhir:baseDefinition [ fhir:v "http://nictiz.nl/fhir/StructureDefinition/zib-AdvanceDirective"^^xsd:anyURI] ; #
      fhir:derivation [ fhir:v "constraint"] ; #
      fhir:snapshot [
        ( fhir:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "2.1.5"       ]     ] ) ;
        ( fhir:element [
    fhir:id [ fhir:v "Consent" ] ;
    fhir:path [ fhir:v "Consent" ] ;
    fhir:short [ fhir:v "LivingWill" ] ;
    fhir:definition [ fhir:v "A record of a healthcare consumer’s policy 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:comment [ fhir:v "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:alias [ fhir:v "Wilsverklaring" ] ) ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "Resource" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:constraint [
    fhir:key [ fhir:v "dom-2" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "If the resource is contained in another resource, it SHALL NOT contain nested Resources" ] ;
    fhir:expression [ fhir:v "contained.contained.empty()" ] ;
    fhir:xpath [ fhir:v "not(parent::f:contained and f:contained)" ] ;
    fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/DomainResource"^^xsd:anyURI ]       ] [
    fhir:key [ fhir:v "dom-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "If the resource is contained in another resource, it SHALL NOT contain any narrative" ] ;
    fhir:expression [ fhir:v "contained.text.empty()" ] ;
    fhir:xpath [ fhir:v "not(parent::f:contained and f:text)" ] ;
    fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/DomainResource"^^xsd:anyURI ]       ] [
    fhir:key [ fhir:v "dom-4" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated" ] ;
    fhir:expression [ fhir:v "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()" ] ;
    fhir:xpath [ fhir:v "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))" ] ;
    fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/DomainResource"^^xsd:anyURI ]       ] [
    fhir:key [ fhir:v "dom-3" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource" ] ;
    fhir:expression [ fhir:v "contained.where(('#'+id in %resource.descendants().reference).not()).empty()" ] ;
    fhir:xpath [ fhir:v "not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))" ] ;
    fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/DomainResource"^^xsd:anyURI ]       ] [
    fhir:key [ fhir:v "ppc-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "Either a Policy or PolicyRule" ] ;
    fhir:expression [ fhir:v "policy.exists() or policyRule.exists()" ] ;
    fhir:xpath [ fhir:v "exists(f:policy) or exists(f:policyRule)" ] ;
    fhir:source [ fhir:v "http://nictiz.nl/fhir/StructureDefinition/zib-AdvanceDirective"^^xsd:anyURI ]       ] ) ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "Entity. Role, or Act" ]       ] [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "FinancialConsent" ]       ] [
    fhir:identity [ fhir:v "w5" ] ;
    fhir:map [ fhir:v "infrastructure.information" ]       ] [
    fhir:identity [ fhir:v "hcim-advancedirective-v1.0-2015EN" ] ;
    fhir:map [ fhir:v "NL-CM:7.15.1" ] ;
    fhir:comment [ fhir:v "LivingWill" ]       ] [
    fhir:identity [ fhir:v "hcim-advancedirective-v3.0-2016EN" ] ;
    fhir:map [ fhir:v "NL-CM:7.15.1" ] ;
    fhir:comment [ fhir:v "LivingWill" ]       ] [
    fhir:identity [ fhir:v "hcim-advancedirective-v3.1-2017EN" ] ;
    fhir:map [ fhir:v "NL-CM:7.15.1" ] ;
    fhir:comment [ fhir:v "AdvanceDirective" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.id" ] ;
    fhir:path [ fhir:v "Consent.id" ] ;
    fhir:short [ fhir:v "Logical id of this artifact" ] ;
    fhir:definition [ fhir:v "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes." ] ;
    fhir:comment [ fhir:v "The only time that a resource does not have an id is when it is being submitted to the server using a create operation." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Resource.id" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "id"^^xsd:anyURI ]       ] ) ;
    fhir:isSummary [ fhir:v true ]     ] [
    fhir:id [ fhir:v "Consent.meta" ] ;
    fhir:path [ fhir:v "Consent.meta" ] ;
    fhir:short [ fhir:v "Metadata about the resource" ] ;
    fhir:definition [ fhir:v "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content may not always be associated with version changes to the resource." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Resource.meta" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Meta"^^xsd:anyURI ]       ] ) ;
    fhir:isSummary [ fhir:v true ]     ] [
    fhir:id [ fhir:v "Consent.implicitRules" ] ;
    fhir:path [ fhir:v "Consent.implicitRules" ] ;
    fhir:short [ fhir:v "A set of rules under which this content was created" ] ;
    fhir:definition [ fhir:v "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content." ] ;
    fhir:comment [ fhir:v "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. \n\nThis element is labelled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Resource.implicitRules" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "uri"^^xsd:anyURI ]       ] ) ;
    fhir:isModifier [ fhir:v true ] ;
    fhir:isSummary [ fhir:v true ]     ] [
    fhir:id [ fhir:v "Consent.language" ] ;
    fhir:path [ fhir:v "Consent.language" ] ;
    fhir:short [ fhir:v "Language of the resource content" ] ;
    fhir:definition [ fhir:v "The base language in which the resource is written." ] ;
    fhir:comment [ fhir:v "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource  Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute)." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Resource.language" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "code"^^xsd:anyURI ]       ] ) ;
    fhir:binding [
            ( fhir:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:Reference ;
    fhir:link <http://hl7.org/fhir/ValueSet/all-languages> ;
    fhir:reference [ fhir:v "http://hl7.org/fhir/ValueSet/all-languages" ]           ]         ] [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "Language"           ]         ] ) ;
    fhir:strength [ fhir:v "extensible" ] ;
    fhir:description [ fhir:v "A human language." ] ;
    fhir:valueSet [
    a fhir:Reference ;
    fhir:link <http://hl7.org/fhir/ValueSet/languages> ;
    fhir:reference [ fhir:v "http://hl7.org/fhir/ValueSet/languages" ]         ]       ]     ] [
    fhir:id [ fhir:v "Consent.text" ] ;
    fhir:path [ fhir:v "Consent.text" ] ;
    fhir:short [ fhir:v "Text summary of the resource, for human interpretation" ] ;
    fhir:definition [ fhir:v "A human-readable narrative that contains a summary of the resource, and may be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety." ] ;
    fhir:comment [ fhir:v "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded in formation is added later." ] ;
          ( fhir:alias [ fhir:v "narrative" ] [ fhir:v "html" ] [ fhir:v "xhtml" ] [ fhir:v "display" ] ) ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "DomainResource.text" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Narrative"^^xsd:anyURI ]       ] ) ;
          ( fhir:condition [ fhir:v "dom-1" ] ) ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "Act.text?" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.contained" ] ;
    fhir:path [ fhir:v "Consent.contained" ] ;
    fhir:short [ fhir:v "Contained, inline Resources" ] ;
    fhir:definition [ fhir:v "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope." ] ;
    fhir:comment [ fhir:v "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again." ] ;
          ( fhir:alias [ fhir:v "inline resources" ] [ fhir:v "anonymous resources" ] [ fhir:v "contained resources" ] ) ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "DomainResource.contained" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Resource"^^xsd:anyURI ]       ] ) ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "N/A" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.extension" ] ;
    fhir:path [ fhir:v "Consent.extension" ] ;
    fhir:slicing [
            ( fhir:discriminator [
    fhir:type [ fhir:v "value" ] ;
    fhir:path [ fhir:v "url" ]         ] ) ;
    fhir:rules [ fhir:v "open" ]       ] ;
    fhir:short [ fhir:v "Additional Content defined by implementations" ] ;
    fhir:definition [ fhir:v "May be used to represent additional information that is not part of the basic definition of the resource. In order 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." ] ;
    fhir:comment [ fhir:v "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ] ;
          ( fhir:alias [ fhir:v "extensions" ] [ fhir:v "user content" ] ) ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "DomainResource.extension" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Extension"^^xsd:anyURI ]       ] ) ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "N/A" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.extension:disorder" ] ;
    fhir:path [ fhir:v "Consent.extension" ] ;
    fhir:sliceName [ fhir:v "disorder" ] ;
    fhir:short [ fhir:v "Disorder" ] ;
    fhir:definition [ fhir:v "The problem or disorder to which the living will applies." ] ;
    fhir:comment [ fhir:v "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ] ;
          ( fhir:alias [ fhir:v "extensions" ] [ fhir:v "user content" ] [ fhir:v "Aandoening" ] ) ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "DomainResource.extension" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Extension"^^xsd:anyURI ] ;
    fhir:profile [ fhir:v "http://nictiz.nl/fhir/StructureDefinition/zib-AdvanceDirective-Disorder"^^xsd:anyURI ]       ] ) ;
          ( fhir:condition [ fhir:v "ele-1" ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() | (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ]       ] [
    fhir:key [ fhir:v "ext-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "Must have either extensions or value[x], not both" ] ;
    fhir:expression [ fhir:v "extension.exists() != value.exists()" ] ;
    fhir:xpath [ fhir:v "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" ] ;
    fhir:source [ fhir:v "http://nictiz.nl/fhir/StructureDefinition/zib-AdvanceDirective-Disorder"^^xsd:anyURI ]       ] ) ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "N/A" ]       ] [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "n/a" ]       ] [
    fhir:identity [ fhir:v "hcim-advancedirective-v1.0-2015EN" ] ;
    fhir:map [ fhir:v "NL-CM:7.15.4" ] ;
    fhir:comment [ fhir:v "Disorder" ]       ] [
    fhir:identity [ fhir:v "hcim-advancedirective-v3.0-2016EN" ] ;
    fhir:map [ fhir:v "NL-CM:7.15.4" ] ;
    fhir:comment [ fhir:v "Disorder" ]       ] [
    fhir:identity [ fhir:v "hcim-advancedirective-v3.1-2017EN" ] ;
    fhir:map [ fhir:v "NL-CM:7.15.4" ] ;
    fhir:comment [ fhir:v "Disorder" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.extension:comment" ] ;
    fhir:path [ fhir:v "Consent.extension" ] ;
    fhir:sliceName [ fhir:v "comment" ] ;
    fhir:short [ fhir:v "Comment" ] ;
    fhir:definition [ fhir:v "An Extension" ] ;
          ( fhir:alias [ fhir:v "Toelichting" ] ) ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "DomainResource.extension" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Extension"^^xsd:anyURI ] ;
    fhir:profile [ fhir:v "http://nictiz.nl/fhir/StructureDefinition/Comment"^^xsd:anyURI ]       ] ) ;
          ( fhir:condition [ fhir:v "ele-1" ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() | (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ]       ] [
    fhir:key [ fhir:v "ext-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "Must have either extensions or value[x], not both" ] ;
    fhir:expression [ fhir:v "extension.exists() != value.exists()" ] ;
    fhir:xpath [ fhir:v "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" ] ;
    fhir:source [ fhir:v "http://nictiz.nl/fhir/StructureDefinition/Comment"^^xsd:anyURI ]       ] ) ;
    fhir:mustSupport [ fhir:v true ]     ] [
    fhir:id [ fhir:v "Consent.modifierExtension" ] ;
    fhir:path [ fhir:v "Consent.modifierExtension" ] ;
    fhir:short [ fhir:v "Extensions that cannot be ignored" ] ;
    fhir:definition [ fhir:v "May be used to represent additional information that is not part of the basic definition of the resource, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order 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." ] ;
    fhir:comment [ fhir:v "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ] ;
          ( fhir:alias [ fhir:v "extensions" ] [ fhir:v "user content" ] ) ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "DomainResource.modifierExtension" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Extension"^^xsd:anyURI ]       ] ) ;
    fhir:isModifier [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "N/A" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.identifier" ] ;
    fhir:path [ fhir:v "Consent.identifier" ] ;
    fhir:short [ fhir:v "Identifier for this record (external references)" ] ;
    fhir:definition [ fhir:v "Unique identifier for this copy of the Consent Statement." ] ;
    fhir:comment [ fhir:v "This identifier is 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:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Consent.identifier" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Identifier"^^xsd:anyURI ]       ] ) ;
          ( fhir:example [
    fhir:label [ fhir:v "General" ] ;
    fhir:value [
    a fhir:Identifier ;
    fhir:system [ fhir:v "urn:ietf:rfc:3986"^^xsd:anyURI ] ;
    fhir:value [ fhir:v "Local eCMS identifier" ]         ]       ] ) ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v ".id" ]       ] [
    fhir:identity [ fhir:v "w5" ] ;
    fhir:map [ fhir:v "id" ]       ] [
    fhir:identity [ fhir:v "hcim-basicelements-v1.0-2017EN" ] ;
    fhir:map [ fhir:v "NL-CM:0.0.6" ] ;
    fhir:comment [ fhir:v "IdentificationNumber" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.status" ] ;
    fhir:path [ fhir:v "Consent.status" ] ;
    fhir:short [ fhir:v "draft | proposed | active | rejected | inactive | entered-in-error" ] ;
    fhir:definition [ fhir:v "Indicates the current state of this consent." ] ;
    fhir:comment [ fhir:v "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:requirements [ fhir:v "The Consent Directive that is pointed to might be in various lifecycle states, e.g., a revoked Consent Directive." ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Consent.status" ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "code"^^xsd:anyURI ]       ] ) ;
    fhir:isModifier [ fhir:v true ] ;
    fhir:isSummary [ fhir:v true ] ;
    fhir:binding [
            ( fhir:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "ConsentState"           ]         ] ) ;
    fhir:strength [ fhir:v "required" ] ;
    fhir:description [ fhir:v "Indicates the state of the consent" ] ;
    fhir:valueSet [
    a fhir:Reference ;
    fhir:link <http://hl7.org/fhir/ValueSet/consent-state-codes> ;
    fhir:reference [ fhir:v "http://hl7.org/fhir/ValueSet/consent-state-codes" ]         ]       ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "v2" ] ;
    fhir:map [ fhir:v "HL7 Table 0498 - Consent Status" ]       ] [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v ".statusCode" ]       ] [
    fhir:identity [ fhir:v "w5" ] ;
    fhir:map [ fhir:v "status" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.category" ] ;
    fhir:path [ fhir:v "Consent.category" ] ;
    fhir:slicing [
            ( fhir:discriminator [
    fhir:type [ fhir:v "value" ] ;
    fhir:path [ fhir:v "$this" ]         ] ) ;
    fhir:rules [ fhir:v "open" ]       ] ;
    fhir:short [ fhir:v "Classification of the consent statement - for indexing/retrieval" ] ;
    fhir:definition [ fhir:v "A classification of the type of consents found in the statement. This element supports indexing and retrieval of consent statements." ] ;
    fhir:min [ fhir:v "2"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "Consent.category" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "CodeableConcept"^^xsd:anyURI ]       ] ) ;
    fhir:isSummary [ fhir:v true ] ;
    fhir:binding [
            ( fhir:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "ConsentCategory"           ]         ] ) ;
    fhir:strength [ fhir:v "example" ] ;
    fhir:description [ fhir:v "A classification of the type of consents found in a consent statement" ] ;
    fhir:valueSet [
    a fhir:Reference ;
    fhir:link <http://hl7.org/fhir/ValueSet/consent-category> ;
    fhir:reference [ fhir:v "http://hl7.org/fhir/ValueSet/consent-category" ]         ]       ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "CNTRCT" ]       ] [
    fhir:identity [ fhir:v "w5" ] ;
    fhir:map [ fhir:v "class" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.category:livingWill" ] ;
    fhir:path [ fhir:v "Consent.category" ] ;
    fhir:sliceName [ fhir:v "livingWill" ] ;
    fhir:short [ fhir:v "Living will and advance directive record" ] ;
    fhir:definition [ fhir:v "Category SNOMED code used for indexing/retrieval of the HCIM AdvanceDirective." ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Consent.category" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "CodeableConcept"^^xsd:anyURI ]       ] ) ;
    fhir:pattern [
    a fhir:CodeableConcept ;
            ( fhir:coding [
    a sct:11341000146107 ;
    fhir:system [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ] ;
    fhir:code [ fhir:v "11341000146107" ]         ] )       ] ;
    fhir:isSummary [ fhir:v true ] ;
    fhir:binding [
            ( fhir:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "ConsentCategory"           ]         ] ) ;
    fhir:strength [ fhir:v "example" ] ;
    fhir:description [ fhir:v "A classification of the type of consents found in a consent statement" ] ;
    fhir:valueSet [
    a fhir:Reference ;
    fhir:link <http://hl7.org/fhir/ValueSet/consent-category> ;
    fhir:reference [ fhir:v "http://hl7.org/fhir/ValueSet/consent-category" ]         ]       ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "CNTRCT" ]       ] [
    fhir:identity [ fhir:v "w5" ] ;
    fhir:map [ fhir:v "class" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.category:livingWill.id" ] ;
    fhir:path [ fhir:v "Consent.category.id" ] ;
          ( fhir:representation [ fhir:v "xmlAttr" ] ) ;
    fhir:short [ fhir:v "xml:id (or equivalent in JSON)" ] ;
    fhir:definition [ fhir:v "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Element.id" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "string"^^xsd:anyURI ]       ] ) ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "n/a" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.category:livingWill.extension" ] ;
    fhir:path [ fhir:v "Consent.category.extension" ] ;
    fhir:slicing [
            ( fhir:discriminator [
    fhir:type [ fhir:v "value" ] ;
    fhir:path [ fhir:v "url" ]         ] ) ;
    fhir:description [ fhir:v "Extensions are always sliced by (at least) url" ] ;
    fhir:rules [ fhir:v "open" ]       ] ;
    fhir:short [ fhir:v "Additional Content defined by implementations" ] ;
    fhir:definition [ fhir:v "May be used to represent additional information that is not part of the basic definition of the element. In order 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." ] ;
    fhir:comment [ fhir:v "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ] ;
          ( fhir:alias [ fhir:v "extensions" ] [ fhir:v "user content" ] ) ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "Element.extension" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Extension"^^xsd:anyURI ]       ] ) ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "n/a" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.category:livingWill.coding" ] ;
    fhir:path [ fhir:v "Consent.category.coding" ] ;
    fhir:short [ fhir:v "Code defined by a terminology system" ] ;
    fhir:definition [ fhir:v "A reference to a code defined by a terminology system." ] ;
    fhir:comment [ fhir:v "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true." ] ;
    fhir:requirements [ fhir:v "Allows for translations and alternate encodings within a code system.  Also supports communication of the same instance to systems requiring different encodings." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "CodeableConcept.coding" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Coding"^^xsd:anyURI ]       ] ) ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "v2" ] ;
    fhir:map [ fhir:v "C*E.1-8, C*E.10-22" ]       ] [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "union(., ./translation)" ]       ] [
    fhir:identity [ fhir:v "orim" ] ;
    fhir:map [ fhir:v "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.category:livingWill.coding.id" ] ;
    fhir:path [ fhir:v "Consent.category.coding.id" ] ;
          ( fhir:representation [ fhir:v "xmlAttr" ] ) ;
    fhir:short [ fhir:v "xml:id (or equivalent in JSON)" ] ;
    fhir:definition [ fhir:v "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Element.id" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "string"^^xsd:anyURI ]       ] ) ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "n/a" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.category:livingWill.coding.extension" ] ;
    fhir:path [ fhir:v "Consent.category.coding.extension" ] ;
    fhir:slicing [
            ( fhir:discriminator [
    fhir:type [ fhir:v "value" ] ;
    fhir:path [ fhir:v "url" ]         ] ) ;
    fhir:description [ fhir:v "Extensions are always sliced by (at least) url" ] ;
    fhir:rules [ fhir:v "open" ]       ] ;
    fhir:short [ fhir:v "Additional Content defined by implementations" ] ;
    fhir:definition [ fhir:v "May be used to represent additional information that is not part of the basic definition of the element. In order 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." ] ;
    fhir:comment [ fhir:v "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ] ;
          ( fhir:alias [ fhir:v "extensions" ] [ fhir:v "user content" ] ) ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "Element.extension" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Extension"^^xsd:anyURI ]       ] ) ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "n/a" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.category:livingWill.coding.system" ] ;
    fhir:path [ fhir:v "Consent.category.coding.system" ] ;
    fhir:short [ fhir:v "Identity of the terminology system" ] ;
    fhir:definition [ fhir:v "The identification of the code system that defines the meaning of the symbol in the code." ] ;
    fhir:comment [ fhir:v "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...).  OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should de-reference to some definition that establish the system clearly and unambiguously." ] ;
    fhir:requirements [ fhir:v "Need to be unambiguous about the source of the definition of the symbol." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Coding.system" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "uri"^^xsd:anyURI ]       ] ) ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "v2" ] ;
    fhir:map [ fhir:v "C*E.3" ]       ] [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "./codeSystem" ]       ] [
    fhir:identity [ fhir:v "orim" ] ;
    fhir:map [ fhir:v "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.category:livingWill.coding.version" ] ;
    fhir:path [ fhir:v "Consent.category.coding.version" ] ;
    fhir:short [ fhir:v "Version of the system - if relevant" ] ;
    fhir:definition [ fhir:v "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured. and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged." ] ;
    fhir:comment [ fhir:v "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Coding.version" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "string"^^xsd:anyURI ]       ] ) ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "v2" ] ;
    fhir:map [ fhir:v "C*E.7" ]       ] [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "./codeSystemVersion" ]       ] [
    fhir:identity [ fhir:v "orim" ] ;
    fhir:map [ fhir:v "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.category:livingWill.coding.code" ] ;
    fhir:path [ fhir:v "Consent.category.coding.code" ] ;
    fhir:short [ fhir:v "Symbol in syntax defined by the system" ] ;
    fhir:definition [ fhir:v "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination)." ] ;
    fhir:requirements [ fhir:v "Need to refer to a particular code in the system." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Coding.code" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "code"^^xsd:anyURI ]       ] ) ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "v2" ] ;
    fhir:map [ fhir:v "C*E.1" ]       ] [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "./code" ]       ] [
    fhir:identity [ fhir:v "orim" ] ;
    fhir:map [ fhir:v "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.category:livingWill.coding.display" ] ;
          ( fhir:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:boolean ;
    fhir:v true         ]       ] ) ;
    fhir:path [ fhir:v "Consent.category.coding.display" ] ;
    fhir:short [ fhir:v "Representation defined by the system" ] ;
    fhir:definition [ fhir:v "A representation of the meaning of the code in the system, following the rules of the system." ] ;
    fhir:requirements [ fhir:v "Need to be able to carry a human-readable meaning of the code for readers that do not know  the system." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Coding.display" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "string"^^xsd:anyURI ]       ] ) ;
    fhir:defaultValue [
    a fhir:string ;
    fhir:v "Living will and advance directive record (record artifact)"       ] ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "v2" ] ;
    fhir:map [ fhir:v "C*E.2 - but note this is not well followed" ]       ] [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "CV.displayName" ]       ] [
    fhir:identity [ fhir:v "orim" ] ;
    fhir:map [ fhir:v "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.category:livingWill.coding.userSelected" ] ;
    fhir:path [ fhir:v "Consent.category.coding.userSelected" ] ;
    fhir:short [ fhir:v "If this coding was chosen directly by the user" ] ;
    fhir:definition [ fhir:v "Indicates that this coding was chosen by a user directly - i.e. off a pick list of available items (codes or displays)." ] ;
    fhir:comment [ fhir:v "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely." ] ;
    fhir:requirements [ fhir:v "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Coding.userSelected" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "boolean"^^xsd:anyURI ]       ] ) ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "v2" ] ;
    fhir:map [ fhir:v "Sometimes implied by being first" ]       ] [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "CD.codingRationale" ]       ] [
    fhir:identity [ fhir:v "orim" ] ;
    fhir:map [ fhir:v "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map;   fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [     fhir:source \"true\";     fhir:target dt:CDCoding.codingRationale\\#O   ]" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.category:livingWill.text" ] ;
          ( fhir:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:boolean ;
    fhir:v true         ]       ] ) ;
    fhir:path [ fhir:v "Consent.category.text" ] ;
    fhir:short [ fhir:v "Plain text representation of the concept" ] ;
    fhir:definition [ fhir:v "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user." ] ;
    fhir:comment [ fhir:v "Very often the text is the same as a displayName of one of the codings." ] ;
    fhir:requirements [ fhir:v "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "CodeableConcept.text" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "string"^^xsd:anyURI ]       ] ) ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "v2" ] ;
    fhir:map [ fhir:v "C*E.9. But note many systems use C*E.2 for this" ]       ] [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "./originalText[mediaType/code=\"text/plain\"]/data" ]       ] [
    fhir:identity [ fhir:v "orim" ] ;
    fhir:map [ fhir:v "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.category:typeOfLivingWill" ] ;
    fhir:path [ fhir:v "Consent.category" ] ;
    fhir:sliceName [ fhir:v "typeOfLivingWill" ] ;
    fhir:short [ fhir:v "TypeOfLivingWill" ] ;
    fhir:definition [ fhir:v "List of the different types of living wills." ] ;
          ( fhir:alias [ fhir:v "WilsverklaringType" ] ) ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Consent.category" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "CodeableConcept"^^xsd:anyURI ]       ] ) ;
    fhir:mustSupport [ fhir:v true ] ;
    fhir:isSummary [ fhir:v true ] ;
    fhir:binding [
            ( fhir:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "ConsentCategory"           ]         ] ) ;
    fhir:strength [ fhir:v "required" ] ;
    fhir:description [ fhir:v "List of the different types of living wills." ] ;
    fhir:valueSet [
    a fhir:Reference ;
    fhir:link <http://decor.nictiz.nl/fhir/ValueSet/2.16.840.1.113883.2.4.3.11.60.40.2.7.15.1--20171231000000> ;
    fhir:reference [ fhir:v "http://decor.nictiz.nl/fhir/ValueSet/2.16.840.1.113883.2.4.3.11.60.40.2.7.15.1--20171231000000" ]         ]       ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "CNTRCT" ]       ] [
    fhir:identity [ fhir:v "w5" ] ;
    fhir:map [ fhir:v "class" ]       ] [
    fhir:identity [ fhir:v "hcim-advancedirective-v1.0-2015EN" ] ;
    fhir:map [ fhir:v "NL-CM:7.15.2" ] ;
    fhir:comment [ fhir:v "TypeOfLivingWill" ]       ] [
    fhir:identity [ fhir:v "hcim-advancedirective-v3.0-2016EN" ] ;
    fhir:map [ fhir:v "NL-CM:7.15.2" ] ;
    fhir:comment [ fhir:v "TypeOfLivingWill" ]       ] [
    fhir:identity [ fhir:v "hcim-advancedirective-v3.1-2017EN" ] ;
    fhir:map [ fhir:v "NL-CM:7.15.2" ] ;
    fhir:comment [ fhir:v "LivingWillType" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.category:typeOfLivingWill.id" ] ;
    fhir:path [ fhir:v "Consent.category.id" ] ;
          ( fhir:representation [ fhir:v "xmlAttr" ] ) ;
    fhir:short [ fhir:v "xml:id (or equivalent in JSON)" ] ;
    fhir:definition [ fhir:v "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Element.id" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "string"^^xsd:anyURI ]       ] ) ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "n/a" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.category:typeOfLivingWill.extension" ] ;
    fhir:path [ fhir:v "Consent.category.extension" ] ;
    fhir:slicing [
            ( fhir:discriminator [
    fhir:type [ fhir:v "value" ] ;
    fhir:path [ fhir:v "url" ]         ] ) ;
    fhir:description [ fhir:v "Extensions are always sliced by (at least) url" ] ;
    fhir:rules [ fhir:v "open" ]       ] ;
    fhir:short [ fhir:v "Additional Content defined by implementations" ] ;
    fhir:definition [ fhir:v "May be used to represent additional information that is not part of the basic definition of the element. In order 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." ] ;
    fhir:comment [ fhir:v "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ] ;
          ( fhir:alias [ fhir:v "extensions" ] [ fhir:v "user content" ] ) ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "Element.extension" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Extension"^^xsd:anyURI ]       ] ) ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "n/a" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.category:typeOfLivingWill.coding" ] ;
    fhir:path [ fhir:v "Consent.category.coding" ] ;
    fhir:short [ fhir:v "Code defined by a terminology system" ] ;
    fhir:definition [ fhir:v "A reference to a code defined by a terminology system." ] ;
    fhir:comment [ fhir:v "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true." ] ;
    fhir:requirements [ fhir:v "Allows for translations and alternate encodings within a code system.  Also supports communication of the same instance to systems requiring different encodings." ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "CodeableConcept.coding" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Coding"^^xsd:anyURI ]       ] ) ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "v2" ] ;
    fhir:map [ fhir:v "C*E.1-8, C*E.10-22" ]       ] [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "union(., ./translation)" ]       ] [
    fhir:identity [ fhir:v "orim" ] ;
    fhir:map [ fhir:v "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.category:typeOfLivingWill.coding.id" ] ;
    fhir:path [ fhir:v "Consent.category.coding.id" ] ;
          ( fhir:representation [ fhir:v "xmlAttr" ] ) ;
    fhir:short [ fhir:v "xml:id (or equivalent in JSON)" ] ;
    fhir:definition [ fhir:v "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Element.id" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "string"^^xsd:anyURI ]       ] ) ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "n/a" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.category:typeOfLivingWill.coding.extension" ] ;
    fhir:path [ fhir:v "Consent.category.coding.extension" ] ;
    fhir:slicing [
            ( fhir:discriminator [
    fhir:type [ fhir:v "value" ] ;
    fhir:path [ fhir:v "url" ]         ] ) ;
    fhir:description [ fhir:v "Extensions are always sliced by (at least) url" ] ;
    fhir:rules [ fhir:v "open" ]       ] ;
    fhir:short [ fhir:v "Additional Content defined by implementations" ] ;
    fhir:definition [ fhir:v "May be used to represent additional information that is not part of the basic definition of the element. In order 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." ] ;
    fhir:comment [ fhir:v "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ] ;
          ( fhir:alias [ fhir:v "extensions" ] [ fhir:v "user content" ] ) ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "Element.extension" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Extension"^^xsd:anyURI ]       ] ) ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "n/a" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.category:typeOfLivingWill.coding.system" ] ;
    fhir:path [ fhir:v "Consent.category.coding.system" ] ;
    fhir:short [ fhir:v "Identity of the terminology system" ] ;
    fhir:definition [ fhir:v "The identification of the code system that defines the meaning of the symbol in the code." ] ;
    fhir:comment [ fhir:v "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...).  OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should de-reference to some definition that establish the system clearly and unambiguously." ] ;
    fhir:requirements [ fhir:v "Need to be unambiguous about the source of the definition of the symbol." ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Coding.system" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "uri"^^xsd:anyURI ]       ] ) ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "v2" ] ;
    fhir:map [ fhir:v "C*E.3" ]       ] [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "./codeSystem" ]       ] [
    fhir:identity [ fhir:v "orim" ] ;
    fhir:map [ fhir:v "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.category:typeOfLivingWill.coding.version" ] ;
    fhir:path [ fhir:v "Consent.category.coding.version" ] ;
    fhir:short [ fhir:v "Version of the system - if relevant" ] ;
    fhir:definition [ fhir:v "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured. and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged." ] ;
    fhir:comment [ fhir:v "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Coding.version" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "string"^^xsd:anyURI ]       ] ) ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "v2" ] ;
    fhir:map [ fhir:v "C*E.7" ]       ] [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "./codeSystemVersion" ]       ] [
    fhir:identity [ fhir:v "orim" ] ;
    fhir:map [ fhir:v "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.category:typeOfLivingWill.coding.code" ] ;
    fhir:path [ fhir:v "Consent.category.coding.code" ] ;
    fhir:short [ fhir:v "Symbol in syntax defined by the system" ] ;
    fhir:definition [ fhir:v "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination)." ] ;
    fhir:requirements [ fhir:v "Need to refer to a particular code in the system." ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Coding.code" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "code"^^xsd:anyURI ]       ] ) ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "v2" ] ;
    fhir:map [ fhir:v "C*E.1" ]       ] [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "./code" ]       ] [
    fhir:identity [ fhir:v "orim" ] ;
    fhir:map [ fhir:v "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.category:typeOfLivingWill.coding.display" ] ;
          ( fhir:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:boolean ;
    fhir:v true         ]       ] ) ;
    fhir:path [ fhir:v "Consent.category.coding.display" ] ;
    fhir:short [ fhir:v "Representation defined by the system" ] ;
    fhir:definition [ fhir:v "A representation of the meaning of the code in the system, following the rules of the system." ] ;
    fhir:requirements [ fhir:v "Need to be able to carry a human-readable meaning of the code for readers that do not know  the system." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Coding.display" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "string"^^xsd:anyURI ]       ] ) ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "v2" ] ;
    fhir:map [ fhir:v "C*E.2 - but note this is not well followed" ]       ] [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "CV.displayName" ]       ] [
    fhir:identity [ fhir:v "orim" ] ;
    fhir:map [ fhir:v "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.category:typeOfLivingWill.coding.userSelected" ] ;
    fhir:path [ fhir:v "Consent.category.coding.userSelected" ] ;
    fhir:short [ fhir:v "If this coding was chosen directly by the user" ] ;
    fhir:definition [ fhir:v "Indicates that this coding was chosen by a user directly - i.e. off a pick list of available items (codes or displays)." ] ;
    fhir:comment [ fhir:v "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely." ] ;
    fhir:requirements [ fhir:v "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Coding.userSelected" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "boolean"^^xsd:anyURI ]       ] ) ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "v2" ] ;
    fhir:map [ fhir:v "Sometimes implied by being first" ]       ] [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "CD.codingRationale" ]       ] [
    fhir:identity [ fhir:v "orim" ] ;
    fhir:map [ fhir:v "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map;   fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [     fhir:source \"true\";     fhir:target dt:CDCoding.codingRationale\\#O   ]" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.category:typeOfLivingWill.text" ] ;
          ( fhir:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:boolean ;
    fhir:v true         ]       ] ) ;
    fhir:path [ fhir:v "Consent.category.text" ] ;
    fhir:short [ fhir:v "Plain text representation of the concept" ] ;
    fhir:definition [ fhir:v "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user." ] ;
    fhir:comment [ fhir:v "Very often the text is the same as a displayName of one of the codings." ] ;
    fhir:requirements [ fhir:v "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "CodeableConcept.text" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "string"^^xsd:anyURI ]       ] ) ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "v2" ] ;
    fhir:map [ fhir:v "C*E.9. But note many systems use C*E.2 for this" ]       ] [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "./originalText[mediaType/code=\"text/plain\"]/data" ]       ] [
    fhir:identity [ fhir:v "orim" ] ;
    fhir:map [ fhir:v "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.patient" ] ;
    fhir:path [ fhir:v "Consent.patient" ] ;
    fhir:short [ fhir:v "Who the consent applies to" ] ;
    fhir:definition [ fhir:v "The patient/healthcare consumer to whom this consent applies." ] ;
    fhir:comment [ fhir:v "Commonly, the patient the consent pertains to is the author, but for young and old people, it may be some other person." ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Consent.patient" ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Reference"^^xsd:anyURI ] ;
    fhir:targetProfile [ fhir:v "http://fhir.nl/fhir/StructureDefinition/nl-core-patient"^^xsd:anyURI ]       ] ) ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "Role" ]       ] [
    fhir:identity [ fhir:v "w5" ] ;
    fhir:map [ fhir:v "who.focus" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.period" ] ;
    fhir:path [ fhir:v "Consent.period" ] ;
    fhir:short [ fhir:v "Period that this consent applies" ] ;
    fhir:definition [ fhir:v "Relevant time or time-period when this Consent is applicable." ] ;
    fhir:comment [ fhir:v "This can be a subset of the period of the original statement." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Consent.period" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Period"^^xsd:anyURI ]       ] ) ;
    fhir:meaningWhenMissing [ fhir:v "all date ranges included" ] ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "FinancialConsent activityTime" ]       ] [
    fhir:identity [ fhir:v "w5" ] ;
    fhir:map [ fhir:v "when.done" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.dateTime" ] ;
    fhir:path [ fhir:v "Consent.dateTime" ] ;
    fhir:short [ fhir:v "LivingWillDate" ] ;
    fhir:definition [ fhir:v "The date on which the living will was recorded." ] ;
    fhir:comment [ fhir:v "This is not the time of the original consent, but the time that this statement was made or derived." ] ;
          ( fhir:alias [ fhir:v "WilsverklaringDatum" ] ) ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Consent.dateTime" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "dateTime"^^xsd:anyURI ]       ] ) ;
    fhir:mustSupport [ fhir:v true ] ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "FinancialConsent effectiveTime" ]       ] [
    fhir:identity [ fhir:v "w5" ] ;
    fhir:map [ fhir:v "when.recorded" ]       ] [
    fhir:identity [ fhir:v "hcim-advancedirective-v1.0-2015EN" ] ;
    fhir:map [ fhir:v "NL-CM:7.15.7" ] ;
    fhir:comment [ fhir:v "LivingWillDate" ]       ] [
    fhir:identity [ fhir:v "hcim-advancedirective-v3.0-2016EN" ] ;
    fhir:map [ fhir:v "NL-CM:7.15.7" ] ;
    fhir:comment [ fhir:v "LivingWillDate" ]       ] [
    fhir:identity [ fhir:v "hcim-advancedirective-v3.1-2017EN" ] ;
    fhir:map [ fhir:v "NL-CM:7.15.7" ] ;
    fhir:comment [ fhir:v "LivingWillDate" ]       ] [
    fhir:identity [ fhir:v "hcim-basicelements-v1.0-2017EN" ] ;
    fhir:map [ fhir:v "NL-CM:0.0.14" ] ;
    fhir:comment [ fhir:v "DateTime" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.consentingParty" ] ;
    fhir:path [ fhir:v "Consent.consentingParty" ] ;
    fhir:short [ fhir:v "Representative" ] ;
    fhir:definition [ fhir:v "The person who is the legal representative or is appointed as the authorized representative in the signed authorization." ] ;
    fhir:comment [ fhir:v "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:alias [ fhir:v "consentor" ] [ fhir:v "Vertegenwoordiger" ] ) ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Consent.consentingParty" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Reference"^^xsd:anyURI ] ;
    fhir:targetProfile [ fhir:v "http://fhir.nl/fhir/StructureDefinition/nl-core-relatedperson"^^xsd:anyURI ]       ] ) ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "w5" ] ;
    fhir:map [ fhir:v "who.actor" ]       ] [
    fhir:identity [ fhir:v "hcim-advancedirective-v1.0-2015EN" ] ;
    fhir:map [ fhir:v "NL-CM:7.15.3" ] ;
    fhir:comment [ fhir:v "Representative" ]       ] [
    fhir:identity [ fhir:v "hcim-advancedirective-v3.0-2016EN" ] ;
    fhir:map [ fhir:v "NL-CM:7.15.3" ] ;
    fhir:comment [ fhir:v "Representative" ]       ] [
    fhir:identity [ fhir:v "hcim-advancedirective-v3.1-2017EN" ] ;
    fhir:map [ fhir:v "NL-CM:7.15.3" ] ;
    fhir:comment [ fhir:v "Representative" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.actor" ] ;
    fhir:path [ fhir:v "Consent.actor" ] ;
    fhir:short [ fhir:v "Who|what controlled by this consent (or group, by role)" ] ;
    fhir:definition [ fhir:v "Who or what is controlled by this consent. Use group to identify a set of actors by some property they share (e.g. 'admitting officers')." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "Consent.actor" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "BackboneElement"^^xsd:anyURI ]       ] ) ;
    fhir:meaningWhenMissing [ fhir:v "There is no specific actor associated with the consent" ] ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() | (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ]       ] ) ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "w5" ] ;
    fhir:map [ fhir:v "who.actor" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.actor.id" ] ;
    fhir:path [ fhir:v "Consent.actor.id" ] ;
          ( fhir:representation [ fhir:v "xmlAttr" ] ) ;
    fhir:short [ fhir:v "xml:id (or equivalent in JSON)" ] ;
    fhir:definition [ fhir:v "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Element.id" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "string"^^xsd:anyURI ]       ] ) ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "n/a" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.actor.extension" ] ;
    fhir:path [ fhir:v "Consent.actor.extension" ] ;
    fhir:short [ fhir:v "Additional Content defined by implementations" ] ;
    fhir:definition [ fhir:v "May be used to represent additional information that is not part of the basic definition of the element. In order 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." ] ;
    fhir:comment [ fhir:v "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ] ;
          ( fhir:alias [ fhir:v "extensions" ] [ fhir:v "user content" ] ) ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "Element.extension" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Extension"^^xsd:anyURI ]       ] ) ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "n/a" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.actor.modifierExtension" ] ;
    fhir:path [ fhir:v "Consent.actor.modifierExtension" ] ;
    fhir:short [ fhir:v "Extensions that cannot be ignored" ] ;
    fhir:definition [ fhir:v "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order 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." ] ;
    fhir:comment [ fhir:v "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ] ;
          ( fhir:alias [ fhir:v "extensions" ] [ fhir:v "user content" ] [ fhir:v "modifiers" ] ) ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "BackboneElement.modifierExtension" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Extension"^^xsd:anyURI ]       ] ) ;
    fhir:isModifier [ fhir:v true ] ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "N/A" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.actor.role" ] ;
    fhir:path [ fhir:v "Consent.actor.role" ] ;
    fhir:short [ fhir:v "How the actor is involved" ] ;
    fhir:definition [ fhir:v "How the individual is involved in the resources content that is described in the consent." ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Consent.actor.role" ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "CodeableConcept"^^xsd:anyURI ]       ] ) ;
    fhir:binding [
            ( fhir:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "ConsentActorRole"           ]         ] ) ;
    fhir:strength [ fhir:v "extensible" ] ;
    fhir:description [ fhir:v "How an actor is involved in the consent considerations" ] ;
    fhir:valueSet [
    a fhir:Reference ;
    fhir:link <http://hl7.org/fhir/ValueSet/security-role-type> ;
    fhir:reference [ fhir:v "http://hl7.org/fhir/ValueSet/security-role-type" ]         ]       ]     ] [
    fhir:id [ fhir:v "Consent.actor.reference" ] ;
    fhir:path [ fhir:v "Consent.actor.reference" ] ;
    fhir:short [ fhir:v "Resource for the actor (or group, by role)" ] ;
    fhir:definition [ fhir:v "The resource that identifies the actor. To identify a actors by type, use group to identify a set of actors by some property they share (e.g. 'admitting officers')." ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Consent.actor.reference" ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Reference"^^xsd:anyURI ] ;
    fhir:targetProfile [ fhir:v "http://hl7.org/fhir/StructureDefinition/Device"^^xsd:anyURI ]       ] [
    fhir:code [ fhir:v "Reference"^^xsd:anyURI ] ;
    fhir:targetProfile [ fhir:v "http://hl7.org/fhir/StructureDefinition/Group"^^xsd:anyURI ]       ] [
    fhir:code [ fhir:v "Reference"^^xsd:anyURI ] ;
    fhir:targetProfile [ fhir:v "http://hl7.org/fhir/StructureDefinition/CareTeam"^^xsd:anyURI ]       ] [
    fhir:code [ fhir:v "Reference"^^xsd:anyURI ] ;
    fhir:targetProfile [ fhir:v "http://fhir.nl/fhir/StructureDefinition/nl-core-organization"^^xsd:anyURI ]       ] [
    fhir:code [ fhir:v "Reference"^^xsd:anyURI ] ;
    fhir:targetProfile [ fhir:v "http://fhir.nl/fhir/StructureDefinition/nl-core-patient"^^xsd:anyURI ]       ] [
    fhir:code [ fhir:v "Reference"^^xsd:anyURI ] ;
    fhir:targetProfile [ fhir:v "http://fhir.nl/fhir/StructureDefinition/nl-core-practitioner"^^xsd:anyURI ]       ] [
    fhir:code [ fhir:v "Reference"^^xsd:anyURI ] ;
    fhir:targetProfile [ fhir:v "http://fhir.nl/fhir/StructureDefinition/nl-core-relatedperson"^^xsd:anyURI ]       ] )     ] [
    fhir:id [ fhir:v "Consent.actor.reference.id" ] ;
    fhir:path [ fhir:v "Consent.actor.reference.id" ] ;
          ( fhir:representation [ fhir:v "xmlAttr" ] ) ;
    fhir:short [ fhir:v "xml:id (or equivalent in JSON)" ] ;
    fhir:definition [ fhir:v "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Element.id" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "string"^^xsd:anyURI ]       ] ) ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "n/a" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.actor.reference.extension" ] ;
    fhir:path [ fhir:v "Consent.actor.reference.extension" ] ;
    fhir:slicing [
            ( fhir:discriminator [
    fhir:type [ fhir:v "value" ] ;
    fhir:path [ fhir:v "url" ]         ] ) ;
    fhir:description [ fhir:v "Extensions are always sliced by (at least) url" ] ;
    fhir:rules [ fhir:v "open" ]       ] ;
    fhir:short [ fhir:v "Additional Content defined by implementations" ] ;
    fhir:definition [ fhir:v "May be used to represent additional information that is not part of the basic definition of the element. In order 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." ] ;
    fhir:comment [ fhir:v "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ] ;
          ( fhir:alias [ fhir:v "extensions" ] [ fhir:v "user content" ] ) ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "Element.extension" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Extension"^^xsd:anyURI ]       ] ) ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "n/a" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.actor.reference.extension:practitionerRole" ] ;
    fhir:path [ fhir:v "Consent.actor.reference.extension" ] ;
    fhir:sliceName [ fhir:v "practitionerRole" ] ;
    fhir:short [ fhir:v "Optional Extensions Element" ] ;
    fhir:definition [ fhir:v "Optional Extension Element - found in all resources." ] ;
    fhir:comment [ fhir:v "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ] ;
          ( fhir:alias [ fhir:v "extensions" ] [ fhir:v "user content" ] ) ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Element.extension" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Extension"^^xsd:anyURI ] ;
    fhir:profile [ fhir:v "http://nictiz.nl/fhir/StructureDefinition/practitionerrole-reference"^^xsd:anyURI ]       ] ) ;
          ( fhir:condition [ fhir:v "ele-1" ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() | (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ]       ] [
    fhir:key [ fhir:v "ext-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "Must have either extensions or value[x], not both" ] ;
    fhir:expression [ fhir:v "extension.exists() != value.exists()" ] ;
    fhir:xpath [ fhir:v "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" ] ;
    fhir:source [ fhir:v "http://nictiz.nl/fhir/StructureDefinition/practitionerrole-reference"^^xsd:anyURI ]       ] ) ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "n/a" ]       ] [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "N/A" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.actor.reference.reference" ] ;
    fhir:path [ fhir:v "Consent.actor.reference.reference" ] ;
    fhir:short [ fhir:v "Literal reference, Relative, internal or absolute URL" ] ;
    fhir:definition [ fhir:v "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources." ] ;
    fhir:comment [ fhir:v "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries.   Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Reference.reference" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "string"^^xsd:anyURI ]       ] ) ;
          ( fhir:condition [ fhir:v "ref-1" ] ) ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "N/A" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.actor.reference.identifier" ] ;
    fhir:path [ fhir:v "Consent.actor.reference.identifier" ] ;
    fhir:short [ fhir:v "Logical reference, when literal reference is not known" ] ;
    fhir:definition [ fhir:v "An identifier for the other resource. This is used when there is no way to reference the other resource directly, either because the entity is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference." ] ;
    fhir:comment [ fhir:v "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Reference.identifier" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Identifier"^^xsd:anyURI ]       ] ) ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v ".identifier" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.actor.reference.display" ] ;
          ( fhir:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:boolean ;
    fhir:v true         ]       ] ) ;
    fhir:path [ fhir:v "Consent.actor.reference.display" ] ;
    fhir:short [ fhir:v "Text alternative for the resource" ] ;
    fhir:definition [ fhir:v "Plain text narrative that identifies the resource in addition to the resource reference." ] ;
    fhir:comment [ fhir:v "This is generally not the same as the Resource.text of the referenced resource.  The purpose is to identify what's being referenced, not to fully describe it." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Reference.display" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "string"^^xsd:anyURI ]       ] ) ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "N/A" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.action" ] ;
    fhir:path [ fhir:v "Consent.action" ] ;
    fhir:short [ fhir:v "Actions controlled by this consent" ] ;
    fhir:definition [ fhir:v "Actions controlled by this consent." ] ;
    fhir:comment [ fhir:v "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:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "Consent.action" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "CodeableConcept"^^xsd:anyURI ]       ] ) ;
    fhir:meaningWhenMissing [ fhir:v "all actions" ] ;
    fhir:isSummary [ fhir:v true ] ;
    fhir:binding [
            ( fhir:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "ConsentAction"           ]         ] ) ;
    fhir:strength [ fhir:v "example" ] ;
    fhir:description [ fhir:v "Detailed codes for the consent action." ] ;
    fhir:valueSet [
    a fhir:Reference ;
    fhir:link <http://hl7.org/fhir/ValueSet/consent-action> ;
    fhir:reference [ fhir:v "http://hl7.org/fhir/ValueSet/consent-action" ]         ]       ]     ] [
    fhir:id [ fhir:v "Consent.organization" ] ;
    fhir:path [ fhir:v "Consent.organization" ] ;
    fhir:short [ fhir:v "Custodian of the consent" ] ;
    fhir:definition [ fhir:v "The organization that manages the consent, and the framework within which it is executed." ] ;
          ( fhir:alias [ fhir:v "custodian" ] ) ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "Consent.organization" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Reference"^^xsd:anyURI ] ;
    fhir:targetProfile [ fhir:v "http://fhir.nl/fhir/StructureDefinition/nl-core-organization"^^xsd:anyURI ]       ] ) ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "w5" ] ;
    fhir:map [ fhir:v "who.witness" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.source[x]" ] ;
    fhir:path [ fhir:v "Consent.source[x]" ] ;
    fhir:slicing [
            ( fhir:discriminator [
    fhir:type [ fhir:v "type" ] ;
    fhir:path [ fhir:v "$this" ]         ] ) ;
    fhir:ordered [ fhir:v false ] ;
    fhir:rules [ fhir:v "closed" ]       ] ;
    fhir:short [ fhir:v "LivingWillDocument" ] ;
    fhir:definition [ fhir:v "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:comment [ fhir:v "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:alias [ fhir:v "WilsverklaringDocument" ] ) ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Consent.source[x]" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Attachment"^^xsd:anyURI ]       ] ) ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "hcim-advancedirective-v1.0-2015EN" ] ;
    fhir:map [ fhir:v "NL-CM:7.15.5" ] ;
    fhir:comment [ fhir:v "LivingWillDocument" ]       ] [
    fhir:identity [ fhir:v "hcim-advancedirective-v3.0-2016EN" ] ;
    fhir:map [ fhir:v "NL-CM:7.15.5" ] ;
    fhir:comment [ fhir:v "LivingWillDocument" ]       ] [
    fhir:identity [ fhir:v "hcim-advancedirective-v3.1-2017EN" ] ;
    fhir:map [ fhir:v "NL-CM:7.15.5" ] ;
    fhir:comment [ fhir:v "LivingWillDocument" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.source[x]:sourceAttachment" ] ;
    fhir:path [ fhir:v "Consent.source[x]" ] ;
    fhir:sliceName [ fhir:v "sourceAttachment" ] ;
    fhir:short [ fhir:v "LivingWillDocument" ] ;
    fhir:definition [ fhir:v "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:comment [ fhir:v "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:alias [ fhir:v "WilsverklaringDocument" ] ) ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Consent.source[x]" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Attachment"^^xsd:anyURI ]       ] ) ;
    fhir:mustSupport [ fhir:v true ] ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "hcim-advancedirective-v1.0-2015EN" ] ;
    fhir:map [ fhir:v "NL-CM:7.15.5" ] ;
    fhir:comment [ fhir:v "LivingWillDocument" ]       ] [
    fhir:identity [ fhir:v "hcim-advancedirective-v3.0-2016EN" ] ;
    fhir:map [ fhir:v "NL-CM:7.15.5" ] ;
    fhir:comment [ fhir:v "LivingWillDocument" ]       ] [
    fhir:identity [ fhir:v "hcim-advancedirective-v3.1-2017EN" ] ;
    fhir:map [ fhir:v "NL-CM:7.15.5" ] ;
    fhir:comment [ fhir:v "LivingWillDocument" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.source[x]:sourceAttachment.id" ] ;
    fhir:path [ fhir:v "Consent.source[x].id" ] ;
          ( fhir:representation [ fhir:v "xmlAttr" ] ) ;
    fhir:short [ fhir:v "xml:id (or equivalent in JSON)" ] ;
    fhir:definition [ fhir:v "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Element.id" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "string"^^xsd:anyURI ]       ] ) ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "n/a" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.source[x]:sourceAttachment.extension" ] ;
    fhir:path [ fhir:v "Consent.source[x].extension" ] ;
    fhir:slicing [
            ( fhir:discriminator [
    fhir:type [ fhir:v "value" ] ;
    fhir:path [ fhir:v "url" ]         ] ) ;
    fhir:description [ fhir:v "Extensions are always sliced by (at least) url" ] ;
    fhir:rules [ fhir:v "open" ]       ] ;
    fhir:short [ fhir:v "Additional Content defined by implementations" ] ;
    fhir:definition [ fhir:v "May be used to represent additional information that is not part of the basic definition of the element. In order 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." ] ;
    fhir:comment [ fhir:v "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ] ;
          ( fhir:alias [ fhir:v "extensions" ] [ fhir:v "user content" ] ) ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "Element.extension" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Extension"^^xsd:anyURI ]       ] ) ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "n/a" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.source[x]:sourceAttachment.contentType" ] ;
    fhir:path [ fhir:v "Consent.source[x].contentType" ] ;
    fhir:short [ fhir:v "Mime type of the content, with charset etc." ] ;
    fhir:definition [ fhir:v "Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate." ] ;
    fhir:requirements [ fhir:v "Processors of the data need to be able to know how to interpret the data." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Attachment.contentType" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "code"^^xsd:anyURI ]       ] ) ;
          ( fhir:example [
    fhir:label [ fhir:v "General" ] ;
    fhir:value [
    a fhir:code ;
    fhir:v "text/plain; charset=UTF-8, image/png"         ]       ] ) ;
    fhir:isSummary [ fhir:v true ] ;
    fhir:binding [
            ( fhir:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "MimeType"           ]         ] ) ;
    fhir:strength [ fhir:v "required" ] ;
    fhir:description [ fhir:v "The mime type of an attachment. Any valid mime type is allowed." ] ;
    fhir:valueSet [
    a fhir:uri ;
    fhir:v "http://www.rfc-editor.org/bcp/bcp13.txt"^^xsd:anyURI         ]       ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "v2" ] ;
    fhir:map [ fhir:v "ED.2+ED.3/RP.2+RP.3. Note conversion may be needed if old style values are being used" ]       ] [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "./mediaType, ./charset" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.source[x]:sourceAttachment.language" ] ;
    fhir:path [ fhir:v "Consent.source[x].language" ] ;
    fhir:short [ fhir:v "Human language of the content (BCP-47)" ] ;
    fhir:definition [ fhir:v "The human language of the content. The value can be any valid value according to BCP 47." ] ;
    fhir:requirements [ fhir:v "Users need to be able to choose between the languages in a set of attachments." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Attachment.language" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "code"^^xsd:anyURI ]       ] ) ;
          ( fhir:example [
    fhir:label [ fhir:v "General" ] ;
    fhir:value [
    a fhir:code ;
    fhir:v "en-AU"         ]       ] ) ;
    fhir:isSummary [ fhir:v true ] ;
    fhir:binding [
            ( fhir:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:Reference ;
    fhir:link <http://hl7.org/fhir/ValueSet/all-languages> ;
    fhir:reference [ fhir:v "http://hl7.org/fhir/ValueSet/all-languages" ]           ]         ] [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "Language"           ]         ] ) ;
    fhir:strength [ fhir:v "extensible" ] ;
    fhir:description [ fhir:v "A human language." ] ;
    fhir:valueSet [
    a fhir:Reference ;
    fhir:link <http://hl7.org/fhir/ValueSet/languages|3.0.2> ;
    fhir:reference [ fhir:v "http://hl7.org/fhir/ValueSet/languages|3.0.2" ]         ]       ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "./language" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.source[x]:sourceAttachment.data" ] ;
    fhir:path [ fhir:v "Consent.source[x].data" ] ;
    fhir:short [ fhir:v "Data inline, base64ed" ] ;
    fhir:definition [ fhir:v "The actual data of the attachment - a sequence of bytes. In XML, represented using base64." ] ;
    fhir:comment [ fhir:v "The base64-encoded data SHALL be expressed in the same character set as the base resource XML or JSON." ] ;
    fhir:requirements [ fhir:v "The data needs to able to be transmitted inline." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Attachment.data" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "base64Binary"^^xsd:anyURI ]       ] ) ;
    fhir:mustSupport [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "v2" ] ;
    fhir:map [ fhir:v "ED.5" ]       ] [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "./data" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.source[x]:sourceAttachment.url" ] ;
    fhir:path [ fhir:v "Consent.source[x].url" ] ;
    fhir:short [ fhir:v "Uri where the data can be found" ] ;
    fhir:definition [ fhir:v "An alternative location where the data can be accessed." ] ;
    fhir:comment [ fhir:v "If both data and url are provided, the url SHALL point to the same content as the data contains. Urls may be relative references or may reference transient locations such as a wrapping envelope using cid: though this has ramifications for using signatures. Relative URLs are interpreted relative to the service url, like a resource reference, rather than relative to the resource itself. If a URL is provided, it SHALL resolve to actual data." ] ;
    fhir:requirements [ fhir:v "The data needs to be transmitted by reference." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Attachment.url" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "uri"^^xsd:anyURI ]       ] ) ;
          ( fhir:example [
    fhir:label [ fhir:v "General" ] ;
    fhir:value [
    a fhir:uri ;
    fhir:v "http://www.acme.com/logo-small.png"^^xsd:anyURI         ]       ] ) ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "v2" ] ;
    fhir:map [ fhir:v "RP.1+RP.2 - if they refer to a URL (see v2.6)" ]       ] [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "./reference/literal" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.source[x]:sourceAttachment.size" ] ;
    fhir:path [ fhir:v "Consent.source[x].size" ] ;
    fhir:short [ fhir:v "Number of bytes of content (if url provided)" ] ;
    fhir:definition [ fhir:v "The number of bytes of data that make up this attachment (before base64 encoding, if that is done)." ] ;
    fhir:comment [ fhir:v "The number of bytes is redundant if the data is provided as a base64binary, but is useful if the data is provided as a url reference." ] ;
    fhir:requirements [ fhir:v "Representing the size allows applications to determine whether they should fetch the content automatically in advance, or refuse to fetch it at all." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Attachment.size" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "unsignedInt"^^xsd:anyURI ]       ] ) ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "N/A (needs data type R3 proposal)" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.source[x]:sourceAttachment.hash" ] ;
    fhir:path [ fhir:v "Consent.source[x].hash" ] ;
    fhir:short [ fhir:v "Hash of the data (sha-1, base64ed)" ] ;
    fhir:definition [ fhir:v "The calculated hash of the data using SHA-1. Represented using base64." ] ;
    fhir:comment [ fhir:v "The hash is calculated on the data prior to base64 encoding, if the data is based64 encoded." ] ;
    fhir:requirements [ fhir:v "Included so that applications can verify that the contents of a location have not changed and so that a signature of the content can implicitly sign the content of an image without having to include the data in the instance or reference the url in the signature." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Attachment.hash" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "base64Binary"^^xsd:anyURI ]       ] ) ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v ".integrityCheck[parent::ED/integrityCheckAlgorithm=\"SHA-1\"]" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.source[x]:sourceAttachment.title" ] ;
          ( fhir:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:boolean ;
    fhir:v true         ]       ] ) ;
    fhir:path [ fhir:v "Consent.source[x].title" ] ;
    fhir:short [ fhir:v "Label to display in place of the data" ] ;
    fhir:definition [ fhir:v "A label or set of text to display in place of the data." ] ;
    fhir:requirements [ fhir:v "Applications need a label to display to a human user in place of the actual data if the data cannot be rendered or perceived by the viewer." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Attachment.title" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "string"^^xsd:anyURI ]       ] ) ;
          ( fhir:example [
    fhir:label [ fhir:v "General" ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "Official Corporate Logo"         ]       ] ) ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "./title/data" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.source[x]:sourceAttachment.creation" ] ;
    fhir:path [ fhir:v "Consent.source[x].creation" ] ;
    fhir:short [ fhir:v "Date attachment was first created" ] ;
    fhir:definition [ fhir:v "The date that the attachment was first created." ] ;
    fhir:requirements [ fhir:v "This is often tracked as an integrity issue for use of the attachment." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Attachment.creation" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "dateTime"^^xsd:anyURI ]       ] ) ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "N/A (needs data type R3 proposal)" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.policy" ] ;
    fhir:path [ fhir:v "Consent.policy" ] ;
    fhir:short [ fhir:v "Policies covered by this consent" ] ;
    fhir:definition [ fhir:v "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:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "Consent.policy" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "BackboneElement"^^xsd:anyURI ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() | (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ]       ] )     ] [
    fhir:id [ fhir:v "Consent.policy.id" ] ;
    fhir:path [ fhir:v "Consent.policy.id" ] ;
          ( fhir:representation [ fhir:v "xmlAttr" ] ) ;
    fhir:short [ fhir:v "xml:id (or equivalent in JSON)" ] ;
    fhir:definition [ fhir:v "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Element.id" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "string"^^xsd:anyURI ]       ] ) ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "n/a" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.policy.extension" ] ;
    fhir:path [ fhir:v "Consent.policy.extension" ] ;
    fhir:short [ fhir:v "Additional Content defined by implementations" ] ;
    fhir:definition [ fhir:v "May be used to represent additional information that is not part of the basic definition of the element. In order 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." ] ;
    fhir:comment [ fhir:v "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ] ;
          ( fhir:alias [ fhir:v "extensions" ] [ fhir:v "user content" ] ) ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "Element.extension" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Extension"^^xsd:anyURI ]       ] ) ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "n/a" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.policy.modifierExtension" ] ;
    fhir:path [ fhir:v "Consent.policy.modifierExtension" ] ;
    fhir:short [ fhir:v "Extensions that cannot be ignored" ] ;
    fhir:definition [ fhir:v "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order 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." ] ;
    fhir:comment [ fhir:v "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ] ;
          ( fhir:alias [ fhir:v "extensions" ] [ fhir:v "user content" ] [ fhir:v "modifiers" ] ) ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "BackboneElement.modifierExtension" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Extension"^^xsd:anyURI ]       ] ) ;
    fhir:isModifier [ fhir:v true ] ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "N/A" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.policy.authority" ] ;
    fhir:path [ fhir:v "Consent.policy.authority" ] ;
    fhir:short [ fhir:v "Enforcement source for policy" ] ;
    fhir:definition [ fhir:v "Entity or Organization having regulatory jurisdiction or accountability for  enforcing policies pertaining to Consent Directives." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Consent.policy.authority" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "uri"^^xsd:anyURI ]       ] ) ;
          ( fhir:condition [ fhir:v "ppc-1" ] )     ] [
    fhir:id [ fhir:v "Consent.policy.uri" ] ;
    fhir:path [ fhir:v "Consent.policy.uri" ] ;
    fhir:short [ fhir:v "Specific policy covered by this consent" ] ;
    fhir:definition [ fhir:v "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:comment [ fhir:v "Either `.policy` or `.policyRule` should exist following core constraint ppc-1. If no explicit value is recorded, a fallback is to populate `.policy.uri` with <https://wetten.overheid.nl/> if the advance directive is recorded following Dutch law and regulations." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Consent.policy.uri" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "uri"^^xsd:anyURI ]       ] ) ;
          ( fhir:example [
    fhir:label [ fhir:v "General Dutch Law" ] ;
    fhir:value [
    a fhir:uri ;
    fhir:v "http://wetten.overheid.nl/"^^xsd:anyURI         ]       ] ) ;
          ( fhir:condition [ fhir:v "ppc-1" ] )     ] [
    fhir:id [ fhir:v "Consent.policyRule" ] ;
    fhir:path [ fhir:v "Consent.policyRule" ] ;
    fhir:short [ fhir:v "Policy that this consents to" ] ;
    fhir:definition [ fhir:v "A referece to the specific computable policy." ] ;
    fhir:comment [ fhir:v "If the policy reference is not known, the resource cannot be processed. Where the reference is absent, there is no particular policy other than what is expressed directly in the consent resource." ] ;
    fhir:requirements [ fhir:v "Might be a unique identifier of a policy set in XACML, or other rules engine." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Consent.policyRule" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "uri"^^xsd:anyURI ]       ] ) ;
          ( fhir:condition [ fhir:v "ppc-1" ] ) ;
    fhir:isSummary [ fhir:v true ]     ] [
    fhir:id [ fhir:v "Consent.securityLabel" ] ;
    fhir:path [ fhir:v "Consent.securityLabel" ] ;
    fhir:short [ fhir:v "Security Labels that define affected resources" ] ;
    fhir:definition [ fhir:v "A set of security labels that define which resources are controlled by this consent. If more than one label is specified, all resources must have all the specified labels." ] ;
    fhir:comment [ fhir:v "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. Not all of the security labels make sense for use in this element (may define a narrower value set?)." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "Consent.securityLabel" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Coding"^^xsd:anyURI ]       ] ) ;
    fhir:isSummary [ fhir:v true ] ;
    fhir:binding [
            ( fhir:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "SecurityLabels"           ]         ] ) ;
    fhir:strength [ fhir:v "extensible" ] ;
    fhir:description [ fhir:v "Security Labels from the Healthcare Privacy and Security Classification System." ] ;
    fhir:valueSet [
    a fhir:Reference ;
    fhir:link <http://hl7.org/fhir/ValueSet/security-labels> ;
    fhir:reference [ fhir:v "http://hl7.org/fhir/ValueSet/security-labels" ]         ]       ]     ] [
    fhir:id [ fhir:v "Consent.purpose" ] ;
    fhir:path [ fhir:v "Consent.purpose" ] ;
    fhir:short [ fhir:v "Context of activities for which the agreement is made" ] ;
    fhir:definition [ fhir:v "The context of the activities a user is taking - why the user is accessing the data - that are controlled by this consent." ] ;
    fhir:comment [ fhir:v "This element is for discoverability / documentation, and does not modify or qualify the policy (e.g. the policy itself describes the purposes for which it applies)." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "Consent.purpose" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Coding"^^xsd:anyURI ]       ] ) ;
    fhir:isSummary [ fhir:v true ] ;
    fhir:binding [
            ( fhir:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "PurposeOfUse"           ]         ] ) ;
    fhir:strength [ fhir:v "extensible" ] ;
    fhir:description [ fhir:v "What purposes of use are controlled by this exception. If more than one label is specified, operations must have all the specified labels" ] ;
    fhir:valueSet [
    a fhir:Reference ;
    fhir:link <http://hl7.org/fhir/ValueSet/v3-PurposeOfUse> ;
    fhir:reference [ fhir:v "http://hl7.org/fhir/ValueSet/v3-PurposeOfUse" ]         ]       ]     ] [
    fhir:id [ fhir:v "Consent.dataPeriod" ] ;
    fhir:path [ fhir:v "Consent.dataPeriod" ] ;
    fhir:short [ fhir:v "Timeframe for data controlled by this consent" ] ;
    fhir:definition [ fhir:v "Clinical or Operational Relevant period of time that bounds the data controlled by this consent." ] ;
    fhir:comment [ fhir:v "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:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Consent.dataPeriod" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Period"^^xsd:anyURI ]       ] ) ;
    fhir:isSummary [ fhir:v true ]     ] [
    fhir:id [ fhir:v "Consent.data" ] ;
    fhir:path [ fhir:v "Consent.data" ] ;
    fhir:short [ fhir:v "Data controlled by this consent" ] ;
    fhir:definition [ fhir:v "The resources controlled by this consent, if specific resources are referenced." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "Consent.data" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "BackboneElement"^^xsd:anyURI ]       ] ) ;
    fhir:meaningWhenMissing [ fhir:v "all data" ] ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() | (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ]       ] ) ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "Role" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.data.id" ] ;
    fhir:path [ fhir:v "Consent.data.id" ] ;
          ( fhir:representation [ fhir:v "xmlAttr" ] ) ;
    fhir:short [ fhir:v "xml:id (or equivalent in JSON)" ] ;
    fhir:definition [ fhir:v "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Element.id" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "string"^^xsd:anyURI ]       ] ) ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "n/a" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.data.extension" ] ;
    fhir:path [ fhir:v "Consent.data.extension" ] ;
    fhir:short [ fhir:v "Additional Content defined by implementations" ] ;
    fhir:definition [ fhir:v "May be used to represent additional information that is not part of the basic definition of the element. In order 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." ] ;
    fhir:comment [ fhir:v "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ] ;
          ( fhir:alias [ fhir:v "extensions" ] [ fhir:v "user content" ] ) ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "Element.extension" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Extension"^^xsd:anyURI ]       ] ) ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "n/a" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.data.modifierExtension" ] ;
    fhir:path [ fhir:v "Consent.data.modifierExtension" ] ;
    fhir:short [ fhir:v "Extensions that cannot be ignored" ] ;
    fhir:definition [ fhir:v "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order 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." ] ;
    fhir:comment [ fhir:v "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ] ;
          ( fhir:alias [ fhir:v "extensions" ] [ fhir:v "user content" ] [ fhir:v "modifiers" ] ) ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "BackboneElement.modifierExtension" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Extension"^^xsd:anyURI ]       ] ) ;
    fhir:isModifier [ fhir:v true ] ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "N/A" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.data.meaning" ] ;
    fhir:path [ fhir:v "Consent.data.meaning" ] ;
    fhir:short [ fhir:v "instance | related | dependents | authoredby" ] ;
    fhir:definition [ fhir:v "How the resource reference is interpreted when testing consent restrictions." ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Consent.data.meaning" ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "code"^^xsd:anyURI ]       ] ) ;
    fhir:isSummary [ fhir:v true ] ;
    fhir:binding [
            ( fhir:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "ConsentDataMeaning"           ]         ] ) ;
    fhir:strength [ fhir:v "required" ] ;
    fhir:description [ fhir:v "How a resource reference is interpreted when testing consent restrictions" ] ;
    fhir:valueSet [
    a fhir:Reference ;
    fhir:link <http://hl7.org/fhir/ValueSet/consent-data-meaning> ;
    fhir:reference [ fhir:v "http://hl7.org/fhir/ValueSet/consent-data-meaning" ]         ]       ]     ] [
    fhir:id [ fhir:v "Consent.data.reference" ] ;
    fhir:path [ fhir:v "Consent.data.reference" ] ;
    fhir:short [ fhir:v "The actual data reference" ] ;
    fhir:definition [ fhir:v "A reference to a specific resource that defines which resources are covered by this consent." ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Consent.data.reference" ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Reference"^^xsd:anyURI ] ;
    fhir:targetProfile [ fhir:v "http://hl7.org/fhir/StructureDefinition/Resource"^^xsd:anyURI ]       ] ) ;
    fhir:isSummary [ fhir:v true ]     ] [
    fhir:id [ fhir:v "Consent.except" ] ;
    fhir:path [ fhir:v "Consent.except" ] ;
    fhir:short [ fhir:v "Additional rule -  addition or removal of permissions" ] ;
    fhir:definition [ fhir:v "An exception to the base policy of this consent. An exception can be an addition or removal of access permissions." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "Consent.except" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "BackboneElement"^^xsd:anyURI ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() | (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ]       ] ) ;
    fhir:isSummary [ fhir:v true ]     ] [
    fhir:id [ fhir:v "Consent.except.id" ] ;
    fhir:path [ fhir:v "Consent.except.id" ] ;
          ( fhir:representation [ fhir:v "xmlAttr" ] ) ;
    fhir:short [ fhir:v "xml:id (or equivalent in JSON)" ] ;
    fhir:definition [ fhir:v "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Element.id" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "string"^^xsd:anyURI ]       ] ) ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "n/a" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.except.extension" ] ;
    fhir:path [ fhir:v "Consent.except.extension" ] ;
    fhir:short [ fhir:v "Additional Content defined by implementations" ] ;
    fhir:definition [ fhir:v "May be used to represent additional information that is not part of the basic definition of the element. In order 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." ] ;
    fhir:comment [ fhir:v "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ] ;
          ( fhir:alias [ fhir:v "extensions" ] [ fhir:v "user content" ] ) ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "Element.extension" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Extension"^^xsd:anyURI ]       ] ) ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "n/a" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.except.modifierExtension" ] ;
    fhir:path [ fhir:v "Consent.except.modifierExtension" ] ;
    fhir:short [ fhir:v "Extensions that cannot be ignored" ] ;
    fhir:definition [ fhir:v "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order 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." ] ;
    fhir:comment [ fhir:v "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ] ;
          ( fhir:alias [ fhir:v "extensions" ] [ fhir:v "user content" ] [ fhir:v "modifiers" ] ) ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "BackboneElement.modifierExtension" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Extension"^^xsd:anyURI ]       ] ) ;
    fhir:isModifier [ fhir:v true ] ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "N/A" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.except.type" ] ;
    fhir:path [ fhir:v "Consent.except.type" ] ;
    fhir:short [ fhir:v "deny | permit" ] ;
    fhir:definition [ fhir:v "Action  to take - permit or deny - when the exception conditions are met." ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Consent.except.type" ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "code"^^xsd:anyURI ]       ] ) ;
    fhir:isSummary [ fhir:v true ] ;
    fhir:binding [
            ( fhir:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "ConsentExceptType"           ]         ] ) ;
    fhir:strength [ fhir:v "required" ] ;
    fhir:description [ fhir:v "How an exception statement is applied, such as adding additional consent or removing consent" ] ;
    fhir:valueSet [
    a fhir:Reference ;
    fhir:link <http://hl7.org/fhir/ValueSet/consent-except-type> ;
    fhir:reference [ fhir:v "http://hl7.org/fhir/ValueSet/consent-except-type" ]         ]       ]     ] [
    fhir:id [ fhir:v "Consent.except.period" ] ;
    fhir:path [ fhir:v "Consent.except.period" ] ;
    fhir:short [ fhir:v "Timeframe for this exception" ] ;
    fhir:definition [ fhir:v "The timeframe in this exception is valid." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Consent.except.period" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Period"^^xsd:anyURI ]       ] ) ;
    fhir:isSummary [ fhir:v true ]     ] [
    fhir:id [ fhir:v "Consent.except.actor" ] ;
    fhir:path [ fhir:v "Consent.except.actor" ] ;
    fhir:short [ fhir:v "Who|what controlled by this exception (or group, by role)" ] ;
    fhir:definition [ fhir:v "Who or what is controlled by this Exception. Use group to identify a set of actors by some property they share (e.g. 'admitting officers')." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "Consent.except.actor" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "BackboneElement"^^xsd:anyURI ]       ] ) ;
    fhir:meaningWhenMissing [ fhir:v "There is no specific actor associated with the exception" ] ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() | (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ]       ] ) ;
    fhir:isSummary [ fhir:v true ]     ] [
    fhir:id [ fhir:v "Consent.except.actor.id" ] ;
    fhir:path [ fhir:v "Consent.except.actor.id" ] ;
          ( fhir:representation [ fhir:v "xmlAttr" ] ) ;
    fhir:short [ fhir:v "xml:id (or equivalent in JSON)" ] ;
    fhir:definition [ fhir:v "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Element.id" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "string"^^xsd:anyURI ]       ] ) ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "n/a" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.except.actor.extension" ] ;
    fhir:path [ fhir:v "Consent.except.actor.extension" ] ;
    fhir:short [ fhir:v "Additional Content defined by implementations" ] ;
    fhir:definition [ fhir:v "May be used to represent additional information that is not part of the basic definition of the element. In order 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." ] ;
    fhir:comment [ fhir:v "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ] ;
          ( fhir:alias [ fhir:v "extensions" ] [ fhir:v "user content" ] ) ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "Element.extension" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Extension"^^xsd:anyURI ]       ] ) ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "n/a" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.except.actor.modifierExtension" ] ;
    fhir:path [ fhir:v "Consent.except.actor.modifierExtension" ] ;
    fhir:short [ fhir:v "Extensions that cannot be ignored" ] ;
    fhir:definition [ fhir:v "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order 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." ] ;
    fhir:comment [ fhir:v "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ] ;
          ( fhir:alias [ fhir:v "extensions" ] [ fhir:v "user content" ] [ fhir:v "modifiers" ] ) ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "BackboneElement.modifierExtension" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Extension"^^xsd:anyURI ]       ] ) ;
    fhir:isModifier [ fhir:v true ] ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "N/A" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.except.actor.role" ] ;
    fhir:path [ fhir:v "Consent.except.actor.role" ] ;
    fhir:short [ fhir:v "How the actor is involved" ] ;
    fhir:definition [ fhir:v "How the individual is involved in the resources content that is described in the exception." ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Consent.except.actor.role" ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "CodeableConcept"^^xsd:anyURI ]       ] ) ;
    fhir:binding [
            ( fhir:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "ConsentActorRole"           ]         ] ) ;
    fhir:strength [ fhir:v "extensible" ] ;
    fhir:description [ fhir:v "How an actor is involved in the consent considerations" ] ;
    fhir:valueSet [
    a fhir:Reference ;
    fhir:link <http://hl7.org/fhir/ValueSet/security-role-type> ;
    fhir:reference [ fhir:v "http://hl7.org/fhir/ValueSet/security-role-type" ]         ]       ]     ] [
    fhir:id [ fhir:v "Consent.except.actor.reference" ] ;
    fhir:path [ fhir:v "Consent.except.actor.reference" ] ;
    fhir:short [ fhir:v "Resource for the actor (or group, by role)" ] ;
    fhir:definition [ fhir:v "The resource that identifies the actor. To identify a actors by type, use group to identify a set of actors by some property they share (e.g. 'admitting officers')." ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Consent.except.actor.reference" ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Reference"^^xsd:anyURI ] ;
    fhir:targetProfile [ fhir:v "http://hl7.org/fhir/StructureDefinition/Device"^^xsd:anyURI ]       ] [
    fhir:code [ fhir:v "Reference"^^xsd:anyURI ] ;
    fhir:targetProfile [ fhir:v "http://hl7.org/fhir/StructureDefinition/Group"^^xsd:anyURI ]       ] [
    fhir:code [ fhir:v "Reference"^^xsd:anyURI ] ;
    fhir:targetProfile [ fhir:v "http://hl7.org/fhir/StructureDefinition/CareTeam"^^xsd:anyURI ]       ] [
    fhir:code [ fhir:v "Reference"^^xsd:anyURI ] ;
    fhir:targetProfile [ fhir:v "http://fhir.nl/fhir/StructureDefinition/nl-core-organization"^^xsd:anyURI ]       ] [
    fhir:code [ fhir:v "Reference"^^xsd:anyURI ] ;
    fhir:targetProfile [ fhir:v "http://fhir.nl/fhir/StructureDefinition/nl-core-patient"^^xsd:anyURI ]       ] [
    fhir:code [ fhir:v "Reference"^^xsd:anyURI ] ;
    fhir:targetProfile [ fhir:v "http://fhir.nl/fhir/StructureDefinition/nl-core-practitioner"^^xsd:anyURI ]       ] [
    fhir:code [ fhir:v "Reference"^^xsd:anyURI ] ;
    fhir:targetProfile [ fhir:v "http://fhir.nl/fhir/StructureDefinition/nl-core-relatedperson"^^xsd:anyURI ]       ] )     ] [
    fhir:id [ fhir:v "Consent.except.actor.reference.id" ] ;
    fhir:path [ fhir:v "Consent.except.actor.reference.id" ] ;
          ( fhir:representation [ fhir:v "xmlAttr" ] ) ;
    fhir:short [ fhir:v "xml:id (or equivalent in JSON)" ] ;
    fhir:definition [ fhir:v "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Element.id" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "string"^^xsd:anyURI ]       ] ) ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "n/a" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.except.actor.reference.extension" ] ;
    fhir:path [ fhir:v "Consent.except.actor.reference.extension" ] ;
    fhir:slicing [
            ( fhir:discriminator [
    fhir:type [ fhir:v "value" ] ;
    fhir:path [ fhir:v "url" ]         ] ) ;
    fhir:description [ fhir:v "Extensions are always sliced by (at least) url" ] ;
    fhir:rules [ fhir:v "open" ]       ] ;
    fhir:short [ fhir:v "Additional Content defined by implementations" ] ;
    fhir:definition [ fhir:v "May be used to represent additional information that is not part of the basic definition of the element. In order 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." ] ;
    fhir:comment [ fhir:v "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ] ;
          ( fhir:alias [ fhir:v "extensions" ] [ fhir:v "user content" ] ) ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "Element.extension" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Extension"^^xsd:anyURI ]       ] ) ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "n/a" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.except.actor.reference.extension:practitionerRole" ] ;
    fhir:path [ fhir:v "Consent.except.actor.reference.extension" ] ;
    fhir:sliceName [ fhir:v "practitionerRole" ] ;
    fhir:short [ fhir:v "Optional Extensions Element" ] ;
    fhir:definition [ fhir:v "Optional Extension Element - found in all resources." ] ;
    fhir:comment [ fhir:v "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ] ;
          ( fhir:alias [ fhir:v "extensions" ] [ fhir:v "user content" ] ) ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Element.extension" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Extension"^^xsd:anyURI ] ;
    fhir:profile [ fhir:v "http://nictiz.nl/fhir/StructureDefinition/practitionerrole-reference"^^xsd:anyURI ]       ] ) ;
          ( fhir:condition [ fhir:v "ele-1" ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() | (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ]       ] [
    fhir:key [ fhir:v "ext-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "Must have either extensions or value[x], not both" ] ;
    fhir:expression [ fhir:v "extension.exists() != value.exists()" ] ;
    fhir:xpath [ fhir:v "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" ] ;
    fhir:source [ fhir:v "http://nictiz.nl/fhir/StructureDefinition/practitionerrole-reference"^^xsd:anyURI ]       ] ) ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "n/a" ]       ] [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "N/A" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.except.actor.reference.reference" ] ;
    fhir:path [ fhir:v "Consent.except.actor.reference.reference" ] ;
    fhir:short [ fhir:v "Literal reference, Relative, internal or absolute URL" ] ;
    fhir:definition [ fhir:v "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources." ] ;
    fhir:comment [ fhir:v "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries.   Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Reference.reference" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "string"^^xsd:anyURI ]       ] ) ;
          ( fhir:condition [ fhir:v "ref-1" ] ) ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "N/A" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.except.actor.reference.identifier" ] ;
    fhir:path [ fhir:v "Consent.except.actor.reference.identifier" ] ;
    fhir:short [ fhir:v "Logical reference, when literal reference is not known" ] ;
    fhir:definition [ fhir:v "An identifier for the other resource. This is used when there is no way to reference the other resource directly, either because the entity is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference." ] ;
    fhir:comment [ fhir:v "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Reference.identifier" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Identifier"^^xsd:anyURI ]       ] ) ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v ".identifier" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.except.actor.reference.display" ] ;
          ( fhir:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:boolean ;
    fhir:v true         ]       ] ) ;
    fhir:path [ fhir:v "Consent.except.actor.reference.display" ] ;
    fhir:short [ fhir:v "Text alternative for the resource" ] ;
    fhir:definition [ fhir:v "Plain text narrative that identifies the resource in addition to the resource reference." ] ;
    fhir:comment [ fhir:v "This is generally not the same as the Resource.text of the referenced resource.  The purpose is to identify what's being referenced, not to fully describe it." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Reference.display" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "string"^^xsd:anyURI ]       ] ) ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "N/A" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.except.action" ] ;
    fhir:path [ fhir:v "Consent.except.action" ] ;
    fhir:short [ fhir:v "Actions controlled by this exception" ] ;
    fhir:definition [ fhir:v "Actions controlled by this Exception." ] ;
    fhir:comment [ fhir:v "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:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "Consent.except.action" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "CodeableConcept"^^xsd:anyURI ]       ] ) ;
    fhir:meaningWhenMissing [ fhir:v "all actions" ] ;
    fhir:isSummary [ fhir:v true ] ;
    fhir:binding [
            ( fhir:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "ConsentAction"           ]         ] ) ;
    fhir:strength [ fhir:v "example" ] ;
    fhir:description [ fhir:v "Detailed codes for the consent action." ] ;
    fhir:valueSet [
    a fhir:Reference ;
    fhir:link <http://hl7.org/fhir/ValueSet/consent-action> ;
    fhir:reference [ fhir:v "http://hl7.org/fhir/ValueSet/consent-action" ]         ]       ]     ] [
    fhir:id [ fhir:v "Consent.except.securityLabel" ] ;
    fhir:path [ fhir:v "Consent.except.securityLabel" ] ;
    fhir:short [ fhir:v "Security Labels that define affected resources" ] ;
    fhir:definition [ fhir:v "A set of security labels that define which resources are controlled by this exception. If more than one label is specified, all resources must have all the specified labels." ] ;
    fhir:comment [ fhir:v "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. Not all of the security labels make sense for use in this element (may define a narrower value set?)." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "Consent.except.securityLabel" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Coding"^^xsd:anyURI ]       ] ) ;
    fhir:isSummary [ fhir:v true ] ;
    fhir:binding [
            ( fhir:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "SecurityLabels"           ]         ] ) ;
    fhir:strength [ fhir:v "extensible" ] ;
    fhir:description [ fhir:v "Security Labels from the Healthcare Privacy and Security Classification System." ] ;
    fhir:valueSet [
    a fhir:Reference ;
    fhir:link <http://hl7.org/fhir/ValueSet/security-labels> ;
    fhir:reference [ fhir:v "http://hl7.org/fhir/ValueSet/security-labels" ]         ]       ]     ] [
    fhir:id [ fhir:v "Consent.except.purpose" ] ;
    fhir:path [ fhir:v "Consent.except.purpose" ] ;
    fhir:short [ fhir:v "Context of activities covered by this exception" ] ;
    fhir:definition [ fhir:v "The context of the activities a user is taking - why the user is accessing the data - that are controlled by this exception." ] ;
    fhir:comment [ fhir:v "E.g. if the purpose is 'research', then the operational context must be research, in order for the consent to apply. Not all of the security labels make sense for use in this element (may define a narrower value set?)." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "Consent.except.purpose" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Coding"^^xsd:anyURI ]       ] ) ;
    fhir:isSummary [ fhir:v true ] ;
    fhir:binding [
            ( fhir:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "PurposeOfUse"           ]         ] ) ;
    fhir:strength [ fhir:v "extensible" ] ;
    fhir:description [ fhir:v "What purposes of use are controlled by this exception. If more than one label is specified, operations must have all the specified labels" ] ;
    fhir:valueSet [
    a fhir:Reference ;
    fhir:link <http://hl7.org/fhir/ValueSet/v3-PurposeOfUse> ;
    fhir:reference [ fhir:v "http://hl7.org/fhir/ValueSet/v3-PurposeOfUse" ]         ]       ]     ] [
    fhir:id [ fhir:v "Consent.except.class" ] ;
    fhir:path [ fhir:v "Consent.except.class" ] ;
    fhir:short [ fhir:v "e.g. Resource Type, Profile, or CDA etc" ] ;
    fhir:definition [ fhir:v "The class of information covered by this exception. 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:comment [ fhir:v "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:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "Consent.except.class" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Coding"^^xsd:anyURI ]       ] ) ;
    fhir:isSummary [ fhir:v true ] ;
    fhir:binding [
            ( fhir:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "ConsentContentClass"           ]         ] ) ;
    fhir:strength [ fhir:v "extensible" ] ;
    fhir:description [ fhir:v "The class (type) of information a consent rule covers" ] ;
    fhir:valueSet [
    a fhir:Reference ;
    fhir:link <http://hl7.org/fhir/ValueSet/consent-content-class> ;
    fhir:reference [ fhir:v "http://hl7.org/fhir/ValueSet/consent-content-class" ]         ]       ]     ] [
    fhir:id [ fhir:v "Consent.except.code" ] ;
    fhir:path [ fhir:v "Consent.except.code" ] ;
    fhir:short [ fhir:v "e.g. LOINC or SNOMED CT code, etc in the content" ] ;
    fhir:definition [ fhir:v "If this code is found in an instance, then the exception applies." ] ;
    fhir:comment [ fhir:v "Typical use of this is a Document code with class = CDA." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "Consent.except.code" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Coding"^^xsd:anyURI ]       ] ) ;
    fhir:isSummary [ fhir:v true ] ;
    fhir:binding [
            ( fhir:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "ConsentContentCode"           ]         ] ) ;
    fhir:strength [ fhir:v "example" ] ;
    fhir:description [ fhir:v "If this code is found in an instance, then the exception applies" ] ;
    fhir:valueSet [
    a fhir:Reference ;
    fhir:link <http://hl7.org/fhir/ValueSet/consent-content-code> ;
    fhir:reference [ fhir:v "http://hl7.org/fhir/ValueSet/consent-content-code" ]         ]       ]     ] [
    fhir:id [ fhir:v "Consent.except.dataPeriod" ] ;
    fhir:path [ fhir:v "Consent.except.dataPeriod" ] ;
    fhir:short [ fhir:v "Timeframe for data controlled by this exception" ] ;
    fhir:definition [ fhir:v "Clinical or Operational Relevant period of time that bounds the data controlled by this exception." ] ;
    fhir:comment [ fhir:v "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:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Consent.except.dataPeriod" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Period"^^xsd:anyURI ]       ] ) ;
    fhir:isSummary [ fhir:v true ]     ] [
    fhir:id [ fhir:v "Consent.except.data" ] ;
    fhir:path [ fhir:v "Consent.except.data" ] ;
    fhir:short [ fhir:v "Data controlled by this exception" ] ;
    fhir:definition [ fhir:v "The resources controlled by this exception, if specific resources are referenced." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "Consent.except.data" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "BackboneElement"^^xsd:anyURI ]       ] ) ;
    fhir:meaningWhenMissing [ fhir:v "all data" ] ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() | (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ]       ] ) ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "Role" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.except.data.id" ] ;
    fhir:path [ fhir:v "Consent.except.data.id" ] ;
          ( fhir:representation [ fhir:v "xmlAttr" ] ) ;
    fhir:short [ fhir:v "xml:id (or equivalent in JSON)" ] ;
    fhir:definition [ fhir:v "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Element.id" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "string"^^xsd:anyURI ]       ] ) ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "n/a" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.except.data.extension" ] ;
    fhir:path [ fhir:v "Consent.except.data.extension" ] ;
    fhir:short [ fhir:v "Additional Content defined by implementations" ] ;
    fhir:definition [ fhir:v "May be used to represent additional information that is not part of the basic definition of the element. In order 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." ] ;
    fhir:comment [ fhir:v "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ] ;
          ( fhir:alias [ fhir:v "extensions" ] [ fhir:v "user content" ] ) ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "Element.extension" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Extension"^^xsd:anyURI ]       ] ) ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "n/a" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.except.data.modifierExtension" ] ;
    fhir:path [ fhir:v "Consent.except.data.modifierExtension" ] ;
    fhir:short [ fhir:v "Extensions that cannot be ignored" ] ;
    fhir:definition [ fhir:v "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order 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." ] ;
    fhir:comment [ fhir:v "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ] ;
          ( fhir:alias [ fhir:v "extensions" ] [ fhir:v "user content" ] [ fhir:v "modifiers" ] ) ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "BackboneElement.modifierExtension" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Extension"^^xsd:anyURI ]       ] ) ;
    fhir:isModifier [ fhir:v true ] ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "N/A" ]       ] )     ] [
    fhir:id [ fhir:v "Consent.except.data.meaning" ] ;
    fhir:path [ fhir:v "Consent.except.data.meaning" ] ;
    fhir:short [ fhir:v "instance | related | dependents | authoredby" ] ;
    fhir:definition [ fhir:v "How the resource reference is interpreted when testing consent restrictions." ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Consent.except.data.meaning" ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "code"^^xsd:anyURI ]       ] ) ;
    fhir:isSummary [ fhir:v true ] ;
    fhir:binding [
            ( fhir:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "ConsentDataMeaning"           ]         ] ) ;
    fhir:strength [ fhir:v "required" ] ;
    fhir:description [ fhir:v "How a resource reference is interpreted when testing consent restrictions" ] ;
    fhir:valueSet [
    a fhir:Reference ;
    fhir:link <http://hl7.org/fhir/ValueSet/consent-data-meaning> ;
    fhir:reference [ fhir:v "http://hl7.org/fhir/ValueSet/consent-data-meaning" ]         ]       ]     ] [
    fhir:id [ fhir:v "Consent.except.data.reference" ] ;
    fhir:path [ fhir:v "Consent.except.data.reference" ] ;
    fhir:short [ fhir:v "The actual data reference" ] ;
    fhir:definition [ fhir:v "A reference to a specific resource that defines which resources are covered by this consent." ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Consent.except.data.reference" ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [ fhir:v "Reference"^^xsd:anyURI ] ;
    fhir:targetProfile [ fhir:v "http://hl7.org/fhir/StructureDefinition/Resource"^^xsd:anyURI ]       ] ) ;
    fhir:isSummary [ fhir:v true ]     ] )
      ] ; #
      fhir:differential [
        ( fhir:element [
    fhir:id [ fhir:v "Consent" ] ;
    fhir:path [ fhir:v "Consent" ]     ] [
    fhir:id [ fhir:v "Consent.extension:comment" ] ;
    fhir:path [ fhir:v "Consent.extension" ] ;
    fhir:sliceName [ fhir:v "comment" ] ;
    fhir:mustSupport [ fhir:v true ]     ] [
    fhir:id [ fhir:v "Consent.category:typeOfLivingWill" ] ;
    fhir:path [ fhir:v "Consent.category" ] ;
    fhir:sliceName [ fhir:v "typeOfLivingWill" ] ;
    fhir:mustSupport [ fhir:v true ]     ] [
    fhir:id [ fhir:v "Consent.dateTime" ] ;
    fhir:path [ fhir:v "Consent.dateTime" ] ;
    fhir:mustSupport [ fhir:v true ]     ] [
    fhir:id [ fhir:v "Consent.sourceAttachment" ] ;
    fhir:path [ fhir:v "Consent.sourceAttachment" ] ;
    fhir:mustSupport [ fhir:v true ]     ] [
    fhir:id [ fhir:v "Consent.sourceAttachment.data" ] ;
    fhir:path [ fhir:v "Consent.sourceAttachment.data" ] ;
    fhir:mustSupport [ fhir:v true ]     ] )
      ] . #

    <http://hl7.org/fhir/ValueSet/all-languages> a fhir:ValueSet .

    <http://hl7.org/fhir/ValueSet/languages> a fhir:ValueSet .

    <http://hl7.org/fhir/ValueSet/consent-state-codes> a fhir:ValueSet .

    <http://hl7.org/fhir/ValueSet/consent-category> a fhir:ValueSet .

    <http://hl7.org/fhir/ValueSet/security-role-type> a fhir:ValueSet .

    <http://hl7.org/fhir/ValueSet/consent-action> a fhir:ValueSet .

    <http://hl7.org/fhir/ValueSet/languages|3.0.2> a fhir:ValueSet .

    <http://hl7.org/fhir/ValueSet/security-labels> a fhir:ValueSet .

    <http://hl7.org/fhir/ValueSet/v3-PurposeOfUse> a fhir:ValueSet .

    <http://hl7.org/fhir/ValueSet/consent-data-meaning> a fhir:ValueSet .

    <http://hl7.org/fhir/ValueSet/consent-except-type> a fhir:ValueSet .

    <http://hl7.org/fhir/ValueSet/consent-content-class> a fhir:ValueSet .

    <http://hl7.org/fhir/ValueSet/consent-content-code> a fhir:ValueSet .