National Healthcare Directory Query
1.0.0-ballot - ballot

National Healthcare Directory Query, published by HL7 International - Patient Administration Work Group. This is not an authorized publication; it is the continuous build for version 1.0.0-ballot). This version is based on the current content of https://github.com/HL7/fhir-directory-query/ and changes regularly. See the Directory of published versions

## Extension: UsageRestriction - TTL Profile

Active as of 2017-10-20

TTL representation of the usage-restriction extension.

Raw ttl | Download

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

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

     a fhir:StructureDefinition;
      fhir:nodeRole fhir:treeRoot;
      fhir:Resource.id [ fhir:value "usage-restriction"]; #
      fhir:DomainResource.text [
         fhir:Narrative.status [ fhir:value "extensions" ];
         fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><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 : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://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 : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://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 : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"Minimum and Maximum # of times the the element can appear in the instance\">Card.</a></th><th style=\"width: 100px\" class=\"hierarchy\"><a href=\"http://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 : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://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=\"http://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"Legend for this format\"><img src=\"http://hl7.org/fhir/R4/help16.png\" 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 : 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_element.gif\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Element\" class=\"hierarchy\"/> <a href=\"StructureDefinition-usage-restriction-definitions.html#Extension\" title=\"Identifies and conveys information about restrictions on the use or release of exchanged information, e.g. information that can only be shared under particular condition, such as a signed data use agreement between parties\">Extension</a><a name=\"Extension\"> </a></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : 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 : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R4/extensibility.html#Extension\">Extension</a></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">Restriction</td></tr>\r\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7\"><td style=\"vertical-align: top; text-align : 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_extension_simple.png\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Simple Extension\" class=\"hierarchy\"/> <span style=\"text-decoration:line-through\">extension</span><a name=\"Extension.extension\"> </a></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"text-decoration:line-through\"/><span style=\"text-decoration:line-through\">0</span><span style=\"text-decoration:line-through\">..</span><span style=\"text-decoration:line-through\">0</span></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/></tr>\r\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white\"><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_element.gif\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Element\" class=\"hierarchy\"/> <a href=\"StructureDefinition-usage-restriction-definitions.html#Extension.url\">url</a><a name=\"Extension.url\"> </a></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : 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 : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a style=\"opacity: 0.5\" href=\"http://hl7.org/fhir/R4/datatypes.html#uri\">uri</a></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"color: darkgreen\">&quot;http://hl7.org/fhir/us/directory-query/StructureDefinition/usage-restriction&quot;</span></td></tr>\r\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7\"><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck12.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\"/> <a style=\"font-style: italic\" href=\"StructureDefinition-usage-restriction-definitions.html#Extension.value[x]\">value[x]</a><a name=\"Extension.value_x_\"> </a></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"font-style: italic\"/><span style=\"font-style: italic\">1</span><span style=\"font-style: italic\">..</span><span style=\"opacity: 0.5; font-style: italic\">1</span></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a style=\"font-style: italic\" href=\"http://hl7.org/fhir/R4/references.html\">Reference</a><span style=\"font-style: italic\">(</span><span style=\"font-style: italic\">)</span></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5; font-style: italic\">Value of extension</span><br style=\"font-style: italic\"/><span style=\"font-weight:bold; font-style: italic\">Slice: </span><span style=\"font-style: italic\">Unordered, Open by type:$this</span></td></tr>\r\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white\"><td style=\"vertical-align: top; text-align : 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_reference.png\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Reference to another Resource\" class=\"hierarchy\"/> <a href=\"StructureDefinition-usage-restriction-definitions.html#Extension.valueReference\" title=\"Reference to the restriction resource (consent)\">valueReference</a><a name=\"Extension.valueReference\"> </a></td><td style=\"vertical-align: top; text-align : 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 : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">1..1</td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R4/references.html\">Reference</a>(<a href=\"StructureDefinition-NatlDir-Restriction.html\">National Directory Endpoint Qry Exchange Restriction</a>)</td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">Reference</td></tr>\r\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7\"><td style=\"vertical-align: top; text-align : 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\"/> <span style=\"text-decoration:line-through\">identifier</span><a name=\"Extension.valueReference.identifier\"> </a></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"text-decoration:line-through\"/><span style=\"text-decoration:line-through\">0</span><span style=\"text-decoration:line-through\">..</span><span style=\"text-decoration:line-through\">0</span></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/></tr>\r\n<tr><td colspan=\"5\" class=\"hierarchy\"><br/><a href=\"http://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"Legend for this format\"><img src=\"http://hl7.org/fhir/R4/help16.png\" alt=\"doco\" style=\"background-color: inherit\"/> Documentation for this format</a></td></tr></table></div>"
      ]; #
      fhir:StructureDefinition.url [ fhir:value "http://hl7.org/fhir/us/directory-query/StructureDefinition/usage-restriction"]; #
      fhir:StructureDefinition.version [ fhir:value "1.0.0-ballot"]; #
      fhir:StructureDefinition.name [ fhir:value "UsageRestriction"]; #
      fhir:StructureDefinition.title [ fhir:value "NatlDir Usage Restriction"]; #
      fhir:StructureDefinition.status [ fhir:value "active"]; #
      fhir:StructureDefinition.date [ fhir:value "2017-10-20T10:59:36.931+11:00"^^xsd:dateTime]; #
      fhir:StructureDefinition.publisher [ fhir:value "HL7 International - Patient Administration Work Group"]; #
      fhir:StructureDefinition.contact [
         fhir:index 0;
         fhir:ContactDetail.name [ fhir:value "HL7 International - Patient Administration Work Group" ];
         fhir:ContactDetail.telecom [
           fhir:index 0;
           fhir:ContactPoint.system [ fhir:value "url" ];
           fhir:ContactPoint.value [ fhir:value "http://hl7.org/Special/committees/pafm" ]     ], [
           fhir:index 1;
           fhir:ContactPoint.system [ fhir:value "email" ];
           fhir:ContactPoint.value [ fhir:value "pafm@lists.hl7.org" ]     ]
      ]; #
      fhir:StructureDefinition.description [ fhir:value "The FHIR specification contains a security meta tag which can be used to inform systems of the sensitivity of resources, as well as by access control mechanisms to ensure content isn't exposed that shouldn't be.\nThis mechanism only goes to the resource level, this reference to a usage-restriction (consent) extends this further into the resource, and can be applied to any element, and may apply to all properties beneath the element (e.g. If applied to an identifier on a practitioner, then all the properties of the identifier should not be exposed unless it is understood)\nThis will be expected to be used as a modifier extension."]; #
      fhir:StructureDefinition.jurisdiction [
         fhir:index 0;
         fhir:CodeableConcept.coding [
           fhir:index 0;
           fhir:Coding.system [ fhir:value "urn:iso:std:iso:3166" ];
           fhir:Coding.code [ fhir:value "US" ]     ]
      ]; #
      fhir:StructureDefinition.fhirVersion [ fhir:value "4.0.1"]; #
      fhir:StructureDefinition.mapping [
         fhir:index 0;
         fhir:StructureDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:StructureDefinition.mapping.uri [ fhir:value "http://hl7.org/v3" ];
         fhir:StructureDefinition.mapping.name [ fhir:value "RIM Mapping" ]
      ]; #
      fhir:StructureDefinition.kind [ fhir:value "complex-type"]; #
      fhir:StructureDefinition.abstract [ fhir:value "false"^^xsd:boolean]; #
      fhir:StructureDefinition.context [
         fhir:index 0;
         fhir:StructureDefinition.context.type [ fhir:value "element" ];
         fhir:StructureDefinition.context.expression [ fhir:value "Element" ]
      ]; #
      fhir:StructureDefinition.type [ fhir:value "Extension"]; #
      fhir:StructureDefinition.baseDefinition [
         fhir:value "http://hl7.org/fhir/StructureDefinition/Extension";
         fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>
      ]; #
      fhir:StructureDefinition.derivation [ fhir:value "constraint"]; #
      fhir:StructureDefinition.snapshot [
         fhir:StructureDefinition.snapshot.element [
           fhir:index 0;
           fhir:Element.id [ fhir:value "Extension" ];
           fhir:ElementDefinition.path [ fhir:value "Extension" ];
           fhir:ElementDefinition.short [ fhir:value "Restriction" ];
           fhir:ElementDefinition.definition [ fhir:value "Identifies and conveys information about restrictions on the use or release of exchanged information, e.g. information that can only be shared under particular condition, such as a signed data use agreement between parties" ];
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "*" ];
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Extension" ];
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
             fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
           fhir:ElementDefinition.condition [
             fhir:value "ele-1";
             fhir:index 0       ];
           fhir:ElementDefinition.constraint [
             fhir:index 0;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element";
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ], [
             fhir:index 1;
             fhir:ElementDefinition.constraint.key [ fhir:value "ext-1" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "Must have either extensions or value[x], not both" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "extension.exists() != value.exists()" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Extension";
               fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>         ]       ];
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ]     ], [
           fhir:index 1;
           fhir:Element.id [ fhir:value "Extension.id" ];
           fhir:ElementDefinition.path [ fhir:value "Extension.id" ];
           fhir:ElementDefinition.representation [
             fhir:value "xmlAttr";
             fhir:index 0       ];
           fhir:ElementDefinition.short [ fhir:value "Unique id for inter-element referencing" ];
           fhir:ElementDefinition.definition [ fhir:value "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ];
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "1" ];
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Element.id" ];
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
             fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:Element.extension [
               fhir:index 0;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type" ];
               fhir:Extension.valueUrl [ fhir:value "string" ]         ];
             fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhirpath/System.String" ]       ];
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.mapping [
             fhir:index 0;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]       ]     ], [
           fhir:index 2;
           fhir:Element.id [ fhir:value "Extension.extension" ];
           fhir:ElementDefinition.path [ fhir:value "Extension.extension" ];
           fhir:ElementDefinition.slicing [
             fhir:ElementDefinition.slicing.discriminator [
               fhir:index 0;
               fhir:ElementDefinition.slicing.discriminator.type [ fhir:value "value" ];
               fhir:ElementDefinition.slicing.discriminator.path [ fhir:value "url" ]         ];
             fhir:ElementDefinition.slicing.description [ fhir:value "Extensions are always sliced by (at least) url" ];
             fhir:ElementDefinition.slicing.rules [ fhir:value "open" ]       ];
           fhir:ElementDefinition.short [ fhir:value "Extension" ];
           fhir:ElementDefinition.definition [ fhir:value "An Extension" ];
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "0" ];
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Element.extension" ];
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
             fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:ElementDefinition.type.code [ fhir:value "Extension" ]       ];
           fhir:ElementDefinition.constraint [
             fhir:index 0;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element";
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ], [
             fhir:index 1;
             fhir:ElementDefinition.constraint.key [ fhir:value "ext-1" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "Must have either extensions or value[x], not both" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "extension.exists() != value.exists()" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Extension";
               fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>         ]       ];
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ]     ], [
           fhir:index 3;
           fhir:Element.id [ fhir:value "Extension.url" ];
           fhir:ElementDefinition.path [ fhir:value "Extension.url" ];
           fhir:ElementDefinition.representation [
             fhir:value "xmlAttr";
             fhir:index 0       ];
           fhir:ElementDefinition.short [ fhir:value "identifies the meaning of the extension" ];
           fhir:ElementDefinition.definition [ fhir:value "Source of the definition for the extension code - a logical name or a URL." ];
           fhir:ElementDefinition.comment [ fhir:value "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension." ];
           fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "1" ];
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Extension.url" ];
             fhir:ElementDefinition.base.min [ fhir:value "1"^^xsd:nonNegativeInteger ];
             fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:Element.extension [
               fhir:index 0;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type" ];
               fhir:Extension.valueUrl [ fhir:value "uri" ]         ];
             fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhirpath/System.String" ]       ];
           fhir:ElementDefinition.fixedUri [ fhir:value "http://hl7.org/fhir/us/directory-query/StructureDefinition/usage-restriction" ];
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.mapping [
             fhir:index 0;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "N/A" ]       ]     ], [
           fhir:index 4;
           fhir:Element.id [ fhir:value "Extension.value[x]" ];
           fhir:ElementDefinition.path [ fhir:value "Extension.value[x]" ];
           fhir:ElementDefinition.slicing [
             fhir:ElementDefinition.slicing.discriminator [
               fhir:index 0;
               fhir:ElementDefinition.slicing.discriminator.type [ fhir:value "type" ];
               fhir:ElementDefinition.slicing.discriminator.path [ fhir:value "$this" ]         ];
             fhir:ElementDefinition.slicing.ordered [ fhir:value "false"^^xsd:boolean ];
             fhir:ElementDefinition.slicing.rules [ fhir:value "closed" ]       ];
           fhir:ElementDefinition.short [ fhir:value "Value of extension" ];
           fhir:ElementDefinition.definition [ fhir:value "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list)." ];
           fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "1" ];
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Extension.value[x]" ];
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
             fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:ElementDefinition.type.code [ fhir:value "Reference" ]       ];
           fhir:ElementDefinition.constraint [
             fhir:index 0;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element";
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ];
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.mapping [
             fhir:index 0;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "N/A" ]       ]     ], [
           fhir:index 5;
           fhir:Element.id [ fhir:value "Extension.value[x]:valueReference" ];
           fhir:ElementDefinition.path [ fhir:value "Extension.value[x]" ];
           fhir:ElementDefinition.sliceName [ fhir:value "valueReference" ];
           fhir:ElementDefinition.short [ fhir:value "Reference" ];
           fhir:ElementDefinition.definition [ fhir:value "Reference to the restriction resource (consent)" ];
           fhir:ElementDefinition.comment [ fhir:value "This is anticipated to usually be a reference to a contained resource (this eases distribution, and permits the same consent applying to multiple properties in the same resource)" ];
           fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "1" ];
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Extension.value[x]" ];
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
             fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:ElementDefinition.type.code [ fhir:value "Reference" ];
             fhir:ElementDefinition.type.targetProfile [
               fhir:value "http://hl7.org/fhir/us/directory-query/StructureDefinition/NatlDir-Restriction";
               fhir:index 0;
               fhir:link <http://hl7.org/fhir/us/directory-query/StructureDefinition/NatlDir-Restriction>         ]       ];
           fhir:ElementDefinition.constraint [
             fhir:index 0;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element";
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ];
           fhir:ElementDefinition.mustSupport [ fhir:value "true"^^xsd:boolean ];
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.mapping [
             fhir:index 0;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "N/A" ]       ]     ], [
           fhir:index 6;
           fhir:Element.id [ fhir:value "Extension.value[x]:valueReference.id" ];
           fhir:ElementDefinition.path [ fhir:value "Extension.value[x].id" ];
           fhir:ElementDefinition.representation [
             fhir:value "xmlAttr";
             fhir:index 0       ];
           fhir:ElementDefinition.short [ fhir:value "Unique id for inter-element referencing" ];
           fhir:ElementDefinition.definition [ fhir:value "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ];
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "1" ];
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Element.id" ];
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
             fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:Element.extension [
               fhir:index 0;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type" ];
               fhir:Extension.valueUrl [ fhir:value "string" ]         ];
             fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhirpath/System.String" ]       ];
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.mapping [
             fhir:index 0;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]       ]     ], [
           fhir:index 7;
           fhir:Element.id [ fhir:value "Extension.value[x]:valueReference.extension" ];
           fhir:ElementDefinition.path [ fhir:value "Extension.value[x].extension" ];
           fhir:ElementDefinition.slicing [
             fhir:ElementDefinition.slicing.discriminator [
               fhir:index 0;
               fhir:ElementDefinition.slicing.discriminator.type [ fhir:value "value" ];
               fhir:ElementDefinition.slicing.discriminator.path [ fhir:value "url" ]         ];
             fhir:ElementDefinition.slicing.description [ fhir:value "Extensions are always sliced by (at least) url" ];
             fhir:ElementDefinition.slicing.rules [ fhir:value "open" ]       ];
           fhir:ElementDefinition.short [ fhir:value "Additional content defined by implementations" ];
           fhir:ElementDefinition.definition [ fhir:value "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." ];
           fhir:ElementDefinition.comment [ fhir:value "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ];
           fhir:ElementDefinition.alias [
             fhir:value "extensions";
             fhir:index 0       ], [
             fhir:value "user content";
             fhir:index 1       ];
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "*" ];
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Element.extension" ];
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
             fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:ElementDefinition.type.code [ fhir:value "Extension" ]       ];
           fhir:ElementDefinition.constraint [
             fhir:index 0;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element";
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ], [
             fhir:index 1;
             fhir:ElementDefinition.constraint.key [ fhir:value "ext-1" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "Must have either extensions or value[x], not both" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "extension.exists() != value.exists()" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Extension";
               fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>         ]       ];
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.mapping [
             fhir:index 0;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]       ]     ], [
           fhir:index 8;
           fhir:Element.id [ fhir:value "Extension.value[x]:valueReference.reference" ];
           fhir:ElementDefinition.path [ fhir:value "Extension.value[x].reference" ];
           fhir:ElementDefinition.short [ fhir:value "Literal reference, Relative, internal or absolute URL" ];
           fhir:ElementDefinition.definition [ fhir:value "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources." ];
           fhir:ElementDefinition.comment [ fhir:value "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries.   Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server." ];
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "1" ];
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Reference.reference" ];
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
             fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:ElementDefinition.type.code [ fhir:value "string" ]       ];
           fhir:ElementDefinition.condition [
             fhir:value "ref-1";
             fhir:index 0       ];
           fhir:ElementDefinition.constraint [
             fhir:index 0;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element";
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ];
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
           fhir:ElementDefinition.mapping [
             fhir:index 0;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "N/A" ]       ]     ], [
           fhir:index 9;
           fhir:Element.id [ fhir:value "Extension.value[x]:valueReference.type" ];
           fhir:ElementDefinition.path [ fhir:value "Extension.value[x].type" ];
           fhir:ElementDefinition.short [ fhir:value "Type the reference refers to (e.g. \"Patient\")" ];
           fhir:ElementDefinition.definition [ fhir:value "The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources)." ];
           fhir:ElementDefinition.comment [ fhir:value "This element is used to indicate the type of  the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified." ];
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "1" ];
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Reference.type" ];
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
             fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:ElementDefinition.type.code [ fhir:value "uri" ]       ];
           fhir:ElementDefinition.constraint [
             fhir:index 0;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element";
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ];
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
           fhir:ElementDefinition.binding [
             fhir:Element.extension [
               fhir:index 0;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
               fhir:Extension.valueString [ fhir:value "FHIRResourceTypeExt" ]         ];
             fhir:ElementDefinition.binding.strength [ fhir:value "extensible" ];
             fhir:ElementDefinition.binding.description [ fhir:value "Aa resource (or, for logical models, the URI of the logical model)." ];
             fhir:ElementDefinition.binding.valueSet [
               fhir:value "http://hl7.org/fhir/ValueSet/resource-types";
               fhir:link <http://hl7.org/fhir/ValueSet/resource-types>         ]       ];
           fhir:ElementDefinition.mapping [
             fhir:index 0;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "N/A" ]       ]     ], [
           fhir:index 10;
           fhir:Element.id [ fhir:value "Extension.value[x]:valueReference.identifier" ];
           fhir:ElementDefinition.path [ fhir:value "Extension.value[x].identifier" ];
           fhir:ElementDefinition.short [ fhir:value "Logical reference, when literal reference is not known" ];
           fhir:ElementDefinition.definition [ fhir:value "An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference." ];
           fhir:ElementDefinition.comment [ fhir:value "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference.  For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport).  One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any)." ];
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "0" ];
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Reference.identifier" ];
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
             fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:ElementDefinition.type.code [ fhir:value "Identifier" ]       ];
           fhir:ElementDefinition.constraint [
             fhir:index 0;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element";
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ];
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
           fhir:ElementDefinition.mapping [
             fhir:index 0;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
             fhir:ElementDefinition.mapping.map [ fhir:value ".identifier" ]       ]     ], [
           fhir:index 11;
           fhir:Element.id [ fhir:value "Extension.value[x]:valueReference.display" ];
           fhir:Element.extension [
             fhir:index 0;
             fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable" ];
             fhir:Extension.valueBoolean [ fhir:value "true"^^xsd:boolean ]       ];
           fhir:ElementDefinition.path [ fhir:value "Extension.value[x].display" ];
           fhir:ElementDefinition.short [ fhir:value "Text alternative for the resource" ];
           fhir:ElementDefinition.definition [ fhir:value "Plain text narrative that identifies the resource in addition to the resource reference." ];
           fhir:ElementDefinition.comment [ fhir:value "This is generally not the same as the Resource.text of the referenced resource.  The purpose is to identify what's being referenced, not to fully describe it." ];
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "1" ];
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Reference.display" ];
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
             fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:ElementDefinition.type.code [ fhir:value "string" ]       ];
           fhir:ElementDefinition.constraint [
             fhir:index 0;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element";
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ];
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
           fhir:ElementDefinition.mapping [
             fhir:index 0;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "N/A" ]       ]     ]
      ]; #
      fhir:StructureDefinition.differential [
         fhir:StructureDefinition.differential.element [
           fhir:index 0;
           fhir:Element.id [ fhir:value "Extension" ];
           fhir:ElementDefinition.path [ fhir:value "Extension" ];
           fhir:ElementDefinition.short [ fhir:value "Restriction" ];
           fhir:ElementDefinition.definition [ fhir:value "Identifies and conveys information about restrictions on the use or release of exchanged information, e.g. information that can only be shared under particular condition, such as a signed data use agreement between parties" ]     ], [
           fhir:index 1;
           fhir:Element.id [ fhir:value "Extension.extension" ];
           fhir:ElementDefinition.path [ fhir:value "Extension.extension" ];
           fhir:ElementDefinition.max [ fhir:value "0" ]     ], [
           fhir:index 2;
           fhir:Element.id [ fhir:value "Extension.url" ];
           fhir:ElementDefinition.path [ fhir:value "Extension.url" ];
           fhir:ElementDefinition.fixedUri [ fhir:value "http://hl7.org/fhir/us/directory-query/StructureDefinition/usage-restriction" ]     ], [
           fhir:index 3;
           fhir:Element.id [ fhir:value "Extension.value[x]" ];
           fhir:ElementDefinition.path [ fhir:value "Extension.value[x]" ];
           fhir:ElementDefinition.slicing [
             fhir:ElementDefinition.slicing.discriminator [
               fhir:index 0;
               fhir:ElementDefinition.slicing.discriminator.type [ fhir:value "type" ];
               fhir:ElementDefinition.slicing.discriminator.path [ fhir:value "$this" ]         ];
             fhir:ElementDefinition.slicing.ordered [ fhir:value "false"^^xsd:boolean ];
             fhir:ElementDefinition.slicing.rules [ fhir:value "open" ]       ];
           fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ]     ], [
           fhir:index 4;
           fhir:Element.id [ fhir:value "Extension.valueReference" ];
           fhir:ElementDefinition.path [ fhir:value "Extension.valueReference" ];
           fhir:ElementDefinition.short [ fhir:value "Reference" ];
           fhir:ElementDefinition.definition [ fhir:value "Reference to the restriction resource (consent)" ];
           fhir:ElementDefinition.comment [ fhir:value "This is anticipated to usually be a reference to a contained resource (this eases distribution, and permits the same consent applying to multiple properties in the same resource)" ];
           fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "1" ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:ElementDefinition.type.code [ fhir:value "Reference" ];
             fhir:ElementDefinition.type.targetProfile [
               fhir:value "http://hl7.org/fhir/us/directory-query/StructureDefinition/NatlDir-Restriction";
               fhir:index 0;
               fhir:link <http://hl7.org/fhir/us/directory-query/StructureDefinition/NatlDir-Restriction>         ]       ];
           fhir:ElementDefinition.mustSupport [ fhir:value "true"^^xsd:boolean ]     ], [
           fhir:index 5;
           fhir:Element.id [ fhir:value "Extension.valueReference.identifier" ];
           fhir:ElementDefinition.path [ fhir:value "Extension.valueReference.identifier" ];
           fhir:ElementDefinition.max [ fhir:value "0" ]     ]
      ]. #

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

     a owl:Ontology;
      owl:imports fhir:fhir.ttl.