HL7 Europe Base and Core FHIR IG
2.0.0 - trial-use 150

HL7 Europe Base and Core FHIR IG, published by HL7 Europe. This guide is not an authorized publication; it is the continuous build for version 2.0.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/hl7-eu/base/ and changes regularly. See the Directory of published versions

## Resource Profile: FlagPatientEuCore - TTL Profile

Active as of 2026-08-31

TTL representation of the flag-patient-eu-core resource profile.

Raw ttl | Download

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

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

    <http://hl7.org/fhir/StructureDefinition/flag-patient-eu-core> a fhir:StructureDefinition ;
      fhir:nodeRole fhir:treeRoot ;
      fhir:Resource.id [ fhir:value "flag-patient-eu-core"] ;
      fhir:DomainResource.text [
         fhir:Narrative.status [ fhir:value "extensions" ] ;
         fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: StructureDefinition flag-patient-eu-core</b></p><a name=\"flag-patient-eu-core\"> </a><a name=\"hcflag-patient-eu-core\"> </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-flag-patient-eu-core-definitions.html#Flag\">Flag</a><a name=\"Flag\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">0</span><span style=\"opacity: 0.5\">..</span><span style=\"opacity: 0.5\">*</span></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R4/flag.html\">Flag</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\">Key information to flag to healthcare providers</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-flag-patient-eu-core-definitions.html#Flag.language\">language</a><a name=\"Flag.language\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">0</span><span style=\"opacity: 0.5\">..</span><span style=\"opacity: 0.5\">1</span></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a style=\"opacity: 0.5; opacity: 0.5\" href=\"http://hl7.org/fhir/R4/datatypes.html#code\">code</a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">Language of the alert content</td></tr>#xD;\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck13.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_extension_simple.png\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Simple Extension\" class=\"hierarchy\"/> <a href=\"StructureDefinition-flag-patient-eu-core-definitions.html#Flag.extension\">Slices for extension</a><a name=\"Flag.extension\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><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 style=\"opacity: 0.5; opacity: 0.5\" href=\"http://hl7.org/fhir/R4/extensibility.html#Extension\">Extension</a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">Extension</span><br/><span style=\"font-weight:bold\">Slice: </span>Unordered, Open by value:url</td></tr>#xD;\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck134.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vline.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin_slicer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_slice_item.png\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Slice Item\" class=\"hierarchy\"/> <a href=\"StructureDefinition-flag-patient-eu-core-definitions.html#Flag.extension:flagDetailExt\" title=\"Extension URL = http://hl7.org/fhir/StructureDefinition/flag-detail\">extension:flagDetailExt</a><a name=\"Flag.extension:flagDetailExt\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">0..*</td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R4/references.html\">Reference</a>(<a href=\"http://hl7.org/fhir/R4/resource.html\">Resource</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\">Resource with details for flag</span><br/><span style=\"font-weight:bold\">URL: </span><a href=\"http://hl7.org/fhir/extensions/5.2.0/StructureDefinition-flag-detail.html\">http://hl7.org/fhir/StructureDefinition/flag-detail</a><br/></td></tr>#xD;\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck134.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vline.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin_slicer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_slice_item.png\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Slice Item\" class=\"hierarchy\"/> <a href=\"StructureDefinition-flag-patient-eu-core-definitions.html#Flag.extension:flagPriorityExt\" title=\"Extension URL = http://hl7.org/fhir/StructureDefinition/flag-priority\">extension:flagPriorityExt</a><a name=\"Flag.extension:flagPriorityExt\"> </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\">0..1</td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R4/datatypes.html#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\">An alarm code</span><br/><span style=\"font-weight:bold\">URL: </span><a href=\"http://hl7.org/fhir/extensions/5.2.0/StructureDefinition-flag-priority.html\">http://hl7.org/fhir/StructureDefinition/flag-priority</a><br class=\"binding\"/><span style=\"font-weight:bold\" title=\"null\" class=\"binding\">Binding: </span><a href=\"http://hl7.org/fhir/R4/valueset-flag-priority.html\" title=\"http://hl7.org/fhir/ValueSet/flag-priority\" class=\"binding\">FlagPriorityCodes</a><span title=\"null\" class=\"binding\"> (</span><a href=\"http://hl7.org/fhir/R4/terminologies.html#example\" title=\"Instances are not expected or even encouraged to draw from the specified value set.  The value set merely provides examples of the types of concepts intended to be included.\" class=\"binding\">example</a><span title=\"null\" class=\"binding\">)</span><span title=\"null\" class=\"binding\">: </span><span title=\"null\" class=\"binding\">A code of the alarm.</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_bck125.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vline.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin_end_slicer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_slice_item.png\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Slice Item\" class=\"hierarchy\"/> <a href=\"StructureDefinition-flag-patient-eu-core-definitions.html#Flag.extension:note\" title=\"Extension URL = http://hl7.org/fhir/StructureDefinition/note\">extension:note</a><a name=\"Flag.extension:note\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">0..*</td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">(Complex)</td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">Additional notes that apply to this resource or element.</span><br/><span style=\"font-weight:bold\">URL: </span><a href=\"http://hl7.org/fhir/extensions/5.2.0/StructureDefinition-note.html\">http://hl7.org/fhir/StructureDefinition/note</a><br/></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_bck1241.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vline.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_blank.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin_end_slice.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_element.gif\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Element\" class=\"hierarchy\"/> <a href=\"StructureDefinition-flag-patient-eu-core-definitions.html#Flag.extension:note.value[x]\">value[x]</a><a name=\"Flag.extension:note.value_x_\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/></tr>#xD;\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck12400.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vline.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_blank.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_blank.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin_end.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_element.gif\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Element\" class=\"hierarchy\"/> <a href=\"StructureDefinition-flag-patient-eu-core-definitions.html#Flag.extension:note.value[x].text\">text</a><a name=\"Flag.extension:note.value_x_.text\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">1</span><span style=\"opacity: 0.5\">..</span><span style=\"opacity: 0.5\">1</span></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a style=\"opacity: 0.5; opacity: 0.5\" href=\"http://hl7.org/fhir/R4/datatypes.html#markdown\">markdown</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\">Additional information about the alert</td></tr>#xD;\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_element.gif\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Element\" class=\"hierarchy\"/> <a href=\"StructureDefinition-flag-patient-eu-core-definitions.html#Flag.identifier\">identifier</a><a name=\"Flag.identifier\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><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 style=\"opacity: 0.5; opacity: 0.5\" href=\"http://hl7.org/fhir/R4/datatypes.html#Identifier\">Identifier</a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">Alert business Identifier</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-flag-patient-eu-core-definitions.html#Flag.status\">status</a><a name=\"Flag.status\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">1</span><span style=\"opacity: 0.5\">..</span><span style=\"opacity: 0.5\">1</span></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a style=\"opacity: 0.5; opacity: 0.5\" href=\"http://hl7.org/fhir/R4/datatypes.html#code\">code</a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">Alert status</td></tr>#xD;\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_element.gif\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Element\" class=\"hierarchy\"/> <a href=\"StructureDefinition-flag-patient-eu-core-definitions.html#Flag.code\">code</a><a name=\"Flag.code\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">1</span><span style=\"opacity: 0.5\">..</span><span style=\"opacity: 0.5\">1</span></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a style=\"opacity: 0.5; opacity: 0.5\" href=\"http://hl7.org/fhir/R4/datatypes.html#CodeableConcept\">CodeableConcept</a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">Coded or textual message to display to user.</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_reference.png\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Reference to another Resource\" class=\"hierarchy\"/> <a href=\"StructureDefinition-flag-patient-eu-core-definitions.html#Flag.subject\">subject</a><a name=\"Flag.subject\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">1</span><span style=\"opacity: 0.5\">..</span><span style=\"opacity: 0.5\">1</span></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R4/references.html\">Reference</a>(<a href=\"StructureDefinition-patient-eu-core.html\">Patient (EU core)</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\">Who/What is flag about?</span></td></tr>#xD;\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_element.gif\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Element\" class=\"hierarchy\"/> <a href=\"StructureDefinition-flag-patient-eu-core-definitions.html#Flag.period\">period</a><a name=\"Flag.period\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">0</span><span style=\"opacity: 0.5\">..</span><span style=\"opacity: 0.5\">1</span></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a style=\"opacity: 0.5; opacity: 0.5\" href=\"http://hl7.org/fhir/R4/datatypes.html#Period\">Period</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\">Time period when the alert is active</td></tr>#xD;\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck00.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin_end.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_element.gif\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Element\" class=\"hierarchy\"/> <a href=\"StructureDefinition-flag-patient-eu-core-definitions.html#Flag.author\">author</a><a name=\"Flag.author\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">0</span><span style=\"opacity: 0.5\">..</span><span style=\"opacity: 0.5\">1</span></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R4/references.html\">Reference</a>(<a style=\"opacity: 0.5; opacity: 0.5\" href=\"http://hl7.org/fhir/R4/device.html\">Device</a> | <a style=\"opacity: 0.5; opacity: 0.5\" href=\"http://hl7.org/fhir/R4/organization.html\">Organization</a> | <a style=\"opacity: 0.5; opacity: 0.5\" href=\"http://hl7.org/fhir/R4/patient.html\">Patient</a> | <a style=\"opacity: 0.5; opacity: 0.5\" href=\"http://hl7.org/fhir/R4/practitioner.html\">Practitioner</a> | <a style=\"opacity: 0.5; opacity: 0.5\" href=\"http://hl7.org/fhir/R4/practitionerrole.html\">PractitionerRole</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\">Author of the alert</td></tr>#xD;\n<tr><td colspan=\"5\" class=\"hierarchy\"><br/><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"Legend for this format\"><img src=\"data:image/png;base64, \" alt=\"doco\" style=\"background-color: inherit\"/> Documentation for this format</a></td></tr></table></div>"
      ] ;
      fhir:StructureDefinition.url [ fhir:value "http://hl7.eu/fhir/base/StructureDefinition/flag-patient-eu-core"] ;
      fhir:StructureDefinition.version [ fhir:value "2.0.0"] ;
      fhir:StructureDefinition.name [ fhir:value "FlagPatientEuCore"] ;
      fhir:StructureDefinition.title [ fhir:value "Flag: Patient (EU core)"] ;
      fhir:StructureDefinition.status [ fhir:value "active"] ;
      fhir:StructureDefinition.date [ fhir:value "2026-08-31T14:10:19+00:00"^^xsd:dateTime] ;
      fhir:StructureDefinition.publisher [ fhir:value "HL7 Europe"] ;
      fhir:StructureDefinition.contact [
         fhir:index 0 ;
         fhir:ContactDetail.name [ fhir:value "HL7 Europe" ] ;
         fhir:ContactDetail.telecom [
           fhir:index 0 ;
           fhir:ContactPoint.system [ fhir:value "url" ] ;
           fhir:ContactPoint.value [ fhir:value "http://hl7.eu" ]
         ]
      ] ;
      fhir:StructureDefinition.description [ fhir:value "This profile introduces essential constraints and extensions for the Flag resource - for patient related alerts - that apply across multiple use cases.\nOther specialized flag profiles may be specified in the future for other kind of subjects (e.g. related to practitioners, devices, etc.)."] ;
      fhir:StructureDefinition.jurisdiction [
         fhir:index 0 ;
         fhir:CodeableConcept.coding [
           fhir:index 0 ;
           fhir:Coding.system [ fhir:value "http://unstats.un.org/unsd/methods/m49/m49.htm" ] ;
           fhir:Coding.code [ fhir:value "150" ] ;
           fhir:Coding.display [ fhir:value "Europe" ]
         ]
      ] ;
      fhir:StructureDefinition.copyright [ fhir:value "Copyright HL7 Europe. Licensed under creative commons public domain (CC0 1.0)."] ;
      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:index 1 ;
         fhir:StructureDefinition.mapping.identity [ fhir:value "w5" ] ;
         fhir:StructureDefinition.mapping.uri [ fhir:value "http://hl7.org/fhir/fivews" ] ;
         fhir:StructureDefinition.mapping.name [ fhir:value "FiveWs Pattern Mapping" ]
      ] ;
      fhir:StructureDefinition.kind [ fhir:value "resource"] ;
      fhir:StructureDefinition.abstract [ fhir:value "false"^^xsd:boolean] ;
      fhir:StructureDefinition.type [ fhir:value "Flag"] ;
      fhir:StructureDefinition.baseDefinition [
         fhir:value "http://hl7.org/fhir/StructureDefinition/Flag" ;
         fhir:link <http://hl7.org/fhir/StructureDefinition/Flag>
      ] ;
      fhir:StructureDefinition.derivation [ fhir:value "constraint"] ;
      fhir:StructureDefinition.snapshot [
         fhir:Element.extension [
           fhir:index 0 ;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version" ] ;
           fhir:Extension.valueString [ fhir:value "4.0.1" ]
         ] ;
         fhir:StructureDefinition.snapshot.element [
           fhir:index 0 ;
           fhir:Element.id [ fhir:value "Flag" ] ;
           fhir:ElementDefinition.path [ fhir:value "Flag" ] ;
           fhir:ElementDefinition.short [ fhir:value "Key information to flag to healthcare providers" ] ;
           fhir:ElementDefinition.definition [ fhir:value "Prospective warnings of potential issues when providing care to the patient." ] ;
           fhir:ElementDefinition.alias [
             fhir:value "Barriers to Care" ;
             fhir:index 0
           ], [
             fhir:value "Alert" ;
             fhir:index 1
           ], [
             fhir:value "Warning" ;
             fhir:index 2
           ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "*" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Flag" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "*" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "dom-2" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "If the resource is contained in another resource, it SHALL NOT contain nested Resources" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "contained.contained.empty()" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "not(parent::f:contained and f:contained)" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/DomainResource" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/DomainResource>
             ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "dom-3" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/DomainResource" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/DomainResource>
             ]
           ], [
             fhir:index 2 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "dom-4" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/DomainResource" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/DomainResource>
             ]
           ], [
             fhir:index 3 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "dom-5" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "If a resource is contained in another resource, it SHALL NOT have a security label" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "contained.meta.security.empty()" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "not(exists(f:contained/*/f:meta/f:security))" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/DomainResource" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/DomainResource>
             ]
           ], [
             fhir:index 4 ;
             fhir:Element.extension [
               fhir:index 0 ;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice" ] ;
               fhir:Extension.valueBoolean [ fhir:value "true"^^xsd:boolean ]
             ], [
               fhir:index 1 ;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation" ] ;
               fhir:Extension.valueMarkdown [ fhir:value "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time." ]
             ] ;
             fhir:ElementDefinition.constraint.key [ fhir:value "dom-6" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "warning" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "A resource should have narrative for robust management" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "text.`div`.exists()" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "exists(f:text/h:div)" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/DomainResource" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/DomainResource>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "Entity. Role, or Act" ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "Observation[classCode=ISSUE, moodCode=EVN]" ]
           ]
         ], [
           fhir:index 1 ;
           fhir:Element.id [ fhir:value "Flag.id" ] ;
           fhir:ElementDefinition.path [ fhir:value "Flag.id" ] ;
           fhir:ElementDefinition.short [ fhir:value "Logical id of this artifact" ] ;
           fhir:ElementDefinition.definition [ fhir:value "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes." ] ;
           fhir:ElementDefinition.comment [ fhir:value "The only time that a resource does not have an id is when it is being submitted to the server using a create operation." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Resource.id" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:Element.extension [
               fhir:index 0 ;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type" ] ;
               fhir:Extension.valueUrl [ fhir:value "id" ]
             ] ;
             fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhirpath/System.String" ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ]
         ], [
           fhir:index 2 ;
           fhir:Element.id [ fhir:value "Flag.meta" ] ;
           fhir:ElementDefinition.path [ fhir:value "Flag.meta" ] ;
           fhir:ElementDefinition.short [ fhir:value "Metadata about the resource" ] ;
           fhir:ElementDefinition.definition [ fhir:value "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Resource.meta" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "Meta" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ]
         ], [
           fhir:index 3 ;
           fhir:Element.id [ fhir:value "Flag.implicitRules" ] ;
           fhir:ElementDefinition.path [ fhir:value "Flag.implicitRules" ] ;
           fhir:ElementDefinition.short [ fhir:value "A set of rules under which this content was created" ] ;
           fhir:ElementDefinition.definition [ fhir:value "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc." ] ;
           fhir:ElementDefinition.comment [ fhir:value "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Resource.implicitRules" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "uri" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.isModifierReason [ fhir:value "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation" ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ]
         ], [
           fhir:index 4 ;
           fhir:Element.id [ fhir:value "Flag.language" ] ;
           fhir:ElementDefinition.path [ fhir:value "Flag.language" ] ;
           fhir:ElementDefinition.short [ fhir:value "Language of the alert content" ] ;
           fhir:ElementDefinition.definition [ fhir:value "The base language in which the resource is written." ] ;
           fhir:ElementDefinition.comment [ fhir:value "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute)." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Resource.language" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "code" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.binding [
             fhir:Element.extension [
               fhir:index 0 ;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet" ] ;
               fhir:Extension.valueCanonical [
                 fhir:value "http://hl7.org/fhir/ValueSet/all-languages" ;
                 fhir:link <http://hl7.org/fhir/ValueSet/all-languages>
               ]
             ], [
               fhir:index 1 ;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ] ;
               fhir:Extension.valueString [ fhir:value "Language" ]
             ] ;
             fhir:ElementDefinition.binding.strength [ fhir:value "preferred" ] ;
             fhir:ElementDefinition.binding.description [ fhir:value "A human language." ] ;
             fhir:ElementDefinition.binding.valueSet [
               fhir:value "http://hl7.org/fhir/ValueSet/languages|4.0.1" ;
               fhir:link <http://hl7.org/fhir/ValueSet/languages|4.0.1>
             ]
           ]
         ], [
           fhir:index 5 ;
           fhir:Element.id [ fhir:value "Flag.text" ] ;
           fhir:ElementDefinition.path [ fhir:value "Flag.text" ] ;
           fhir:ElementDefinition.short [ fhir:value "Text summary of the resource, for human interpretation" ] ;
           fhir:ElementDefinition.definition [ fhir:value "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety." ] ;
           fhir:ElementDefinition.comment [ fhir:value "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later." ] ;
           fhir:ElementDefinition.alias [
             fhir:value "narrative" ;
             fhir:index 0
           ], [
             fhir:value "html" ;
             fhir:index 1
           ], [
             fhir:value "xhtml" ;
             fhir:index 2
           ], [
             fhir:value "display" ;
             fhir:index 3
           ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "DomainResource.text" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "Narrative" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "Act.text?" ]
           ]
         ], [
           fhir:index 6 ;
           fhir:Element.id [ fhir:value "Flag.contained" ] ;
           fhir:ElementDefinition.path [ fhir:value "Flag.contained" ] ;
           fhir:ElementDefinition.short [ fhir:value "Contained, inline Resources" ] ;
           fhir:ElementDefinition.definition [ fhir:value "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope." ] ;
           fhir:ElementDefinition.comment [ fhir:value "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels." ] ;
           fhir:ElementDefinition.alias [
             fhir:value "inline resources" ;
             fhir:index 0
           ], [
             fhir:value "anonymous resources" ;
             fhir:index 1
           ], [
             fhir:value "contained resources" ;
             fhir:index 2
           ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "*" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "DomainResource.contained" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "*" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "Resource" ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "N/A" ]
           ]
         ], [
           fhir:index 7 ;
           fhir:Element.id [ fhir:value "Flag.extension" ] ;
           fhir:ElementDefinition.path [ fhir:value "Flag.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.ordered [ fhir:value "false"^^xsd:boolean ] ;
             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 "*" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "DomainResource.extension" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "*" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "Extension" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ext-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "Must have either extensions or value[x], not both" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "extension.exists() != value.exists()" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ]
         ], [
           fhir:index 8 ;
           fhir:Element.id [ fhir:value "Flag.extension:flagDetailExt" ] ;
           fhir:ElementDefinition.path [ fhir:value "Flag.extension" ] ;
           fhir:ElementDefinition.sliceName [ fhir:value "flagDetailExt" ] ;
           fhir:ElementDefinition.short [ fhir:value "Resource with details for flag" ] ;
           fhir:ElementDefinition.definition [ fhir:value "Points to the Observation, AllergyIntolerance or other record that provides additional supporting information about this flag." ] ;
           fhir:ElementDefinition.comment [ fhir:value "Note that This extension will be replaced by Flag.supportingInfo in the FHIR R6 release." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "*" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "DomainResource.extension" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "*" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "Extension" ] ;
             fhir:ElementDefinition.type.profile [
               fhir:value "http://hl7.org/fhir/StructureDefinition/flag-detail" ;
               fhir:index 0 ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/flag-detail>
             ]
           ] ;
           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.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.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 9 ;
           fhir:Element.id [ fhir:value "Flag.extension:flagPriorityExt" ] ;
           fhir:ElementDefinition.path [ fhir:value "Flag.extension" ] ;
           fhir:ElementDefinition.sliceName [ fhir:value "flagPriorityExt" ] ;
           fhir:ElementDefinition.short [ fhir:value "An alarm code" ] ;
           fhir:ElementDefinition.definition [ fhir:value "A code that identifies the priority of the alert, for example the Alert Priority flags column in IHE PCD TF 2 Table B.8-4." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "DomainResource.extension" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "*" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "Extension" ] ;
             fhir:ElementDefinition.type.profile [
               fhir:value "http://hl7.org/fhir/StructureDefinition/flag-priority" ;
               fhir:index 0 ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/flag-priority>
             ]
           ] ;
           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.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.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 10 ;
           fhir:Element.id [ fhir:value "Flag.extension:note" ] ;
           fhir:ElementDefinition.path [ fhir:value "Flag.extension" ] ;
           fhir:ElementDefinition.sliceName [ fhir:value "note" ] ;
           fhir:ElementDefinition.short [ fhir:value "Additional notes that apply to this resource or element." ] ;
           fhir:ElementDefinition.definition [ fhir:value "Additional notes that apply to this resource or element." ] ;
           fhir:ElementDefinition.comment [ fhir:value "This extension SHALL NOT be used if the resource already has standard 'note' element (or equivalent) of type Annotation on the same element" ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "*" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "DomainResource.extension" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "*" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "Extension" ] ;
             fhir:ElementDefinition.type.profile [
               fhir:value "http://hl7.org/fhir/StructureDefinition/note" ;
               fhir:index 0 ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/note>
             ]
           ] ;
           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.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.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 11 ;
           fhir:Element.id [ fhir:value "Flag.extension:note.id" ] ;
           fhir:ElementDefinition.path [ fhir:value "Flag.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 "id" ]
             ] ;
             fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhirpath/System.String" ]
           ] ;
           fhir:ElementDefinition.condition [
             fhir:value "ele-1" ;
             fhir:index 0
           ] ;
           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 12 ;
           fhir:Element.id [ fhir:value "Flag.extension:note.extension" ] ;
           fhir:ElementDefinition.path [ fhir:value "Flag.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.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.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 13 ;
           fhir:Element.id [ fhir:value "Flag.extension:note.url" ] ;
           fhir:ElementDefinition.path [ fhir:value "Flag.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/StructureDefinition/note" ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "N/A" ]
           ]
         ], [
           fhir:index 14 ;
           fhir:Element.id [ fhir:value "Flag.extension:note.value[x]" ] ;
           fhir:ElementDefinition.path [ fhir:value "Flag.extension.value[x]" ] ;
           fhir:ElementDefinition.short [ fhir:value "Notes for this resource/element" ] ;
           fhir:ElementDefinition.definition [ fhir:value "Additional notes that apply to this resource or element." ] ;
           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 "Annotation" ]
           ] ;
           fhir:ElementDefinition.condition [
             fhir:value "ext-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.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 15 ;
           fhir:Element.id [ fhir:value "Flag.extension:note.value[x].id" ] ;
           fhir:ElementDefinition.path [ fhir:value "Flag.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 16 ;
           fhir:Element.id [ fhir:value "Flag.extension:note.value[x].extension" ] ;
           fhir:ElementDefinition.path [ fhir:value "Flag.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 17 ;
           fhir:Element.id [ fhir:value "Flag.extension:note.value[x].author[x]" ] ;
           fhir:ElementDefinition.path [ fhir:value "Flag.extension.value[x].author[x]" ] ;
           fhir:ElementDefinition.short [ fhir:value "Individual responsible for the annotation" ] ;
           fhir:ElementDefinition.definition [ fhir:value "The individual responsible for making the annotation." ] ;
           fhir:ElementDefinition.comment [ fhir:value "Organization is used when there's no need for specific attribution as to who made the comment." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Annotation.author[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/StructureDefinition/Practitioner|4.0.1" ;
               fhir:index 0 ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1>
             ], [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Patient|4.0.1" ;
               fhir:index 1 ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Patient|4.0.1>
             ], [
               fhir:value "http://hl7.org/fhir/StructureDefinition/RelatedPerson|4.0.1" ;
               fhir:index 2 ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/RelatedPerson|4.0.1>
             ], [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Organization|4.0.1" ;
               fhir:index 3 ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Organization|4.0.1>
             ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.type.code [ fhir:value "string" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "N/A" ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "Act.participant[typeCode=AUT].role" ]
           ]
         ], [
           fhir:index 18 ;
           fhir:Element.id [ fhir:value "Flag.extension:note.value[x].time" ] ;
           fhir:ElementDefinition.path [ fhir:value "Flag.extension.value[x].time" ] ;
           fhir:ElementDefinition.short [ fhir:value "When the annotation was made" ] ;
           fhir:ElementDefinition.definition [ fhir:value "Indicates when this particular annotation was made." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Annotation.time" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "dateTime" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "N/A" ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "Act.effectiveTime" ]
           ]
         ], [
           fhir:index 19 ;
           fhir:Element.id [ fhir:value "Flag.extension:note.value[x].text" ] ;
           fhir:ElementDefinition.path [ fhir:value "Flag.extension.value[x].text" ] ;
           fhir:ElementDefinition.short [ fhir:value "Additional information about the alert" ] ;
           fhir:ElementDefinition.definition [ fhir:value "The text of the annotation in markdown format." ] ;
           fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Annotation.text" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "markdown" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "N/A" ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "Act.text" ]
           ]
         ], [
           fhir:index 20 ;
           fhir:Element.id [ fhir:value "Flag.modifierExtension" ] ;
           fhir:ElementDefinition.path [ fhir:value "Flag.modifierExtension" ] ;
           fhir:ElementDefinition.short [ fhir:value "Extensions that cannot be ignored" ] ;
           fhir:ElementDefinition.definition [ fhir:value "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)." ] ;
           fhir:ElementDefinition.comment [ fhir:value "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ] ;
           fhir:ElementDefinition.requirements [ fhir:value "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)." ] ;
           fhir:ElementDefinition.alias [
             fhir:value "extensions" ;
             fhir:index 0
           ], [
             fhir:value "user content" ;
             fhir:index 1
           ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "*" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "DomainResource.modifierExtension" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "*" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "Extension" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ext-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "Must have either extensions or value[x], not both" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "extension.exists() != value.exists()" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.isModifierReason [ fhir:value "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them" ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "N/A" ]
           ]
         ], [
           fhir:index 21 ;
           fhir:Element.id [ fhir:value "Flag.identifier" ] ;
           fhir:ElementDefinition.path [ fhir:value "Flag.identifier" ] ;
           fhir:ElementDefinition.short [ fhir:value "Alert business Identifier" ] ;
           fhir:ElementDefinition.definition [ fhir:value "Business identifiers assigned to this flag by the performer or other systems which remain constant as the resource is updated and propagates from server to server." ] ;
           fhir:ElementDefinition.comment [ fhir:value "This is a business identifier, not a resource identifier (see [discussion](http://hl7.org/fhir/R4/resource.html#identifiers)).  It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types.  For example, multiple Patient and a Person resource instance might share the same social insurance number." ] ;
           fhir:ElementDefinition.requirements [ fhir:value "Allows identification of the flag as it is known by various participating systems and in a way that remains consistent across servers." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "*" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Flag.identifier" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "*" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "Identifier" ]
           ] ;
           fhir:ElementDefinition.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 "w5" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "FiveWs.identifier" ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value ".id" ]
           ]
         ], [
           fhir:index 22 ;
           fhir:Element.id [ fhir:value "Flag.status" ] ;
           fhir:ElementDefinition.path [ fhir:value "Flag.status" ] ;
           fhir:ElementDefinition.short [ fhir:value "Alert status" ] ;
           fhir:ElementDefinition.definition [ fhir:value "Supports basic workflow." ] ;
           fhir:ElementDefinition.comment [ fhir:value "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid." ] ;
           fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Flag.status" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "code" ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ;
           fhir:ElementDefinition.isModifier [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.isModifierReason [ fhir:value "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid" ] ;
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ] ;
           fhir:ElementDefinition.binding [
             fhir:Element.extension [
               fhir:index 0 ;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ] ;
               fhir:Extension.valueString [ fhir:value "FlagStatus" ]
             ] ;
             fhir:ElementDefinition.binding.strength [ fhir:value "required" ] ;
             fhir:ElementDefinition.binding.description [ fhir:value "Indicates whether this flag is active and needs to be displayed to a user, or whether it is no longer needed or was entered in error." ] ;
             fhir:ElementDefinition.binding.valueSet [
               fhir:value "http://hl7.org/fhir/ValueSet/flag-status|4.0.1" ;
               fhir:link <http://hl7.org/fhir/ValueSet/flag-status|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "w5" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "FiveWs.status" ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value ".status" ]
           ]
         ], [
           fhir:index 23 ;
           fhir:Element.id [ fhir:value "Flag.category" ] ;
           fhir:ElementDefinition.path [ fhir:value "Flag.category" ] ;
           fhir:ElementDefinition.short [ fhir:value "Clinical, administrative, etc." ] ;
           fhir:ElementDefinition.definition [ fhir:value "Allows a flag to be divided into different categories like clinical, administrative etc. Intended to be used as a means of filtering which flags are displayed to particular user or in a given context." ] ;
           fhir:ElementDefinition.comment [ fhir:value "The value set will often need to be adjusted based on local business rules and usage context." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "*" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Flag.category" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "*" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "CodeableConcept" ]
           ] ;
           fhir:ElementDefinition.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 "FlagCategory" ]
             ] ;
             fhir:ElementDefinition.binding.strength [ fhir:value "example" ] ;
             fhir:ElementDefinition.binding.description [ fhir:value "A general category for flags for filtering/display purposes." ] ;
             fhir:ElementDefinition.binding.valueSet [
               fhir:value "http://hl7.org/fhir/ValueSet/flag-category|4.0.1" ;
               fhir:link <http://hl7.org/fhir/ValueSet/flag-category|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "w5" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "FiveWs.class" ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value ".code" ]
           ]
         ], [
           fhir:index 24 ;
           fhir:Element.id [ fhir:value "Flag.code" ] ;
           fhir:ElementDefinition.path [ fhir:value "Flag.code" ] ;
           fhir:ElementDefinition.short [ fhir:value "Coded or textual message to display to user." ] ;
           fhir:ElementDefinition.definition [ fhir:value "The coded value or textual component of the flag to display to the user." ] ;
           fhir:ElementDefinition.comment [ fhir:value "If non-coded, use CodeableConcept.text.  This element should always be included in the narrative." ] ;
           fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Flag.code" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "CodeableConcept" ]
           ] ;
           fhir:ElementDefinition.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 "FlagCode" ]
             ] ;
             fhir:ElementDefinition.binding.strength [ fhir:value "example" ] ;
             fhir:ElementDefinition.binding.description [ fhir:value "Detail codes identifying specific flagged issues." ] ;
             fhir:ElementDefinition.binding.valueSet [
               fhir:value "http://hl7.org/fhir/ValueSet/flag-code|4.0.1" ;
               fhir:link <http://hl7.org/fhir/ValueSet/flag-code|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.mapping [
             fhir:index 0 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "w5" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "FiveWs.what[x]" ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value ".value" ]
           ]
         ], [
           fhir:index 25 ;
           fhir:Element.id [ fhir:value "Flag.subject" ] ;
           fhir:ElementDefinition.path [ fhir:value "Flag.subject" ] ;
           fhir:ElementDefinition.short [ fhir:value "Who/What is flag about?" ] ;
           fhir:ElementDefinition.definition [ fhir:value "The patient, location, group, organization, or practitioner etc. this is about record this flag is associated with." ] ;
           fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Flag.subject" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "1"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "Reference" ] ;
             fhir:ElementDefinition.type.targetProfile [
               fhir:value "http://hl7.eu/fhir/base/StructureDefinition/patient-eu-core" ;
               fhir:index 0 ;
               fhir:link <http://hl7.eu/fhir/base/StructureDefinition/patient-eu-core>
             ]
           ] ;
           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 "w5" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "FiveWs.subject[x]" ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value ".participation[typeCode=SBJ].role[classCode=PAT | LOCE | ASSIGNED]" ]
           ], [
             fhir:index 2 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "w5" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "FiveWs.subject" ]
           ]
         ], [
           fhir:index 26 ;
           fhir:Element.id [ fhir:value "Flag.period" ] ;
           fhir:ElementDefinition.path [ fhir:value "Flag.period" ] ;
           fhir:ElementDefinition.short [ fhir:value "Time period when the alert is active" ] ;
           fhir:ElementDefinition.definition [ fhir:value "The period of time from the activation of the flag to inactivation of the flag. If the flag is active, the end of the period should be unspecified." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Flag.period" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "Period" ]
           ] ;
           fhir:ElementDefinition.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 "w5" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "FiveWs.context" ]
           ]
         ], [
           fhir:index 27 ;
           fhir:Element.id [ fhir:value "Flag.encounter" ] ;
           fhir:ElementDefinition.path [ fhir:value "Flag.encounter" ] ;
           fhir:ElementDefinition.short [ fhir:value "Alert relevant during encounter" ] ;
           fhir:ElementDefinition.definition [ fhir:value "This alert is only relevant during the encounter." ] ;
           fhir:ElementDefinition.comment [ fhir:value "If both Flag.encounter and Flag.period are valued, then Flag.period.start shall not be before Encounter.period.start and Flag.period.end shall not be after Encounter.period.end." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Flag.encounter" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "Reference" ] ;
             fhir:ElementDefinition.type.targetProfile [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Encounter|4.0.1" ;
               fhir:index 0 ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Encounter|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.constraint [
             fhir:index 0 ;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ] ;
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ] ;
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ] ;
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ] ;
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ] ;
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ;
           fhir:ElementDefinition.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 "w5" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "FiveWs.context" ]
           ]
         ], [
           fhir:index 28 ;
           fhir:Element.id [ fhir:value "Flag.author" ] ;
           fhir:ElementDefinition.path [ fhir:value "Flag.author" ] ;
           fhir:ElementDefinition.short [ fhir:value "Author of the alert" ] ;
           fhir:ElementDefinition.definition [ fhir:value "The person, organization or device that created the flag." ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Flag.author" ] ;
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
             fhir:ElementDefinition.base.max [ fhir:value "1" ]
           ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "Reference" ] ;
             fhir:ElementDefinition.type.targetProfile [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Device|4.0.1" ;
               fhir:index 0 ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Device|4.0.1>
             ], [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Organization|4.0.1" ;
               fhir:index 1 ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Organization|4.0.1>
             ], [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Patient|4.0.1" ;
               fhir:index 2 ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Patient|4.0.1>
             ], [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1" ;
               fhir:index 3 ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1>
             ], [
               fhir:value "http://hl7.org/fhir/StructureDefinition/PractitionerRole|4.0.1" ;
               fhir:index 4 ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/PractitionerRole|4.0.1>
             ]
           ] ;
           fhir:ElementDefinition.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 "w5" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value "FiveWs.author" ]
           ], [
             fhir:index 1 ;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ] ;
             fhir:ElementDefinition.mapping.map [ fhir:value ".participation[typeCode=AUT].role" ]
           ]
         ]
      ] ;
      fhir:StructureDefinition.differential [
         fhir:StructureDefinition.differential.element [
           fhir:index 0 ;
           fhir:Element.id [ fhir:value "Flag" ] ;
           fhir:ElementDefinition.path [ fhir:value "Flag" ]
         ], [
           fhir:index 1 ;
           fhir:Element.id [ fhir:value "Flag.language" ] ;
           fhir:ElementDefinition.path [ fhir:value "Flag.language" ] ;
           fhir:ElementDefinition.short [ fhir:value "Language of the alert content" ]
         ], [
           fhir:index 2 ;
           fhir:Element.id [ fhir:value "Flag.extension" ] ;
           fhir:ElementDefinition.path [ fhir:value "Flag.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.ordered [ fhir:value "false"^^xsd:boolean ] ;
             fhir:ElementDefinition.slicing.rules [ fhir:value "open" ]
           ]
         ], [
           fhir:index 3 ;
           fhir:Element.id [ fhir:value "Flag.extension:flagDetailExt" ] ;
           fhir:ElementDefinition.path [ fhir:value "Flag.extension" ] ;
           fhir:ElementDefinition.sliceName [ fhir:value "flagDetailExt" ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "*" ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "Extension" ] ;
             fhir:ElementDefinition.type.profile [
               fhir:value "http://hl7.org/fhir/StructureDefinition/flag-detail" ;
               fhir:index 0 ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/flag-detail>
             ]
           ]
         ], [
           fhir:index 4 ;
           fhir:Element.id [ fhir:value "Flag.extension:flagPriorityExt" ] ;
           fhir:ElementDefinition.path [ fhir:value "Flag.extension" ] ;
           fhir:ElementDefinition.sliceName [ fhir:value "flagPriorityExt" ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "1" ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "Extension" ] ;
             fhir:ElementDefinition.type.profile [
               fhir:value "http://hl7.org/fhir/StructureDefinition/flag-priority" ;
               fhir:index 0 ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/flag-priority>
             ]
           ]
         ], [
           fhir:index 5 ;
           fhir:Element.id [ fhir:value "Flag.extension:note" ] ;
           fhir:ElementDefinition.path [ fhir:value "Flag.extension" ] ;
           fhir:ElementDefinition.sliceName [ fhir:value "note" ] ;
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
           fhir:ElementDefinition.max [ fhir:value "*" ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "Extension" ] ;
             fhir:ElementDefinition.type.profile [
               fhir:value "http://hl7.org/fhir/StructureDefinition/note" ;
               fhir:index 0 ;
               fhir:link <http://hl7.org/fhir/StructureDefinition/note>
             ]
           ]
         ], [
           fhir:index 6 ;
           fhir:Element.id [ fhir:value "Flag.extension:note.value[x].text" ] ;
           fhir:ElementDefinition.path [ fhir:value "Flag.extension.value[x].text" ] ;
           fhir:ElementDefinition.short [ fhir:value "Additional information about the alert" ]
         ], [
           fhir:index 7 ;
           fhir:Element.id [ fhir:value "Flag.identifier" ] ;
           fhir:ElementDefinition.path [ fhir:value "Flag.identifier" ] ;
           fhir:ElementDefinition.short [ fhir:value "Alert business Identifier" ]
         ], [
           fhir:index 8 ;
           fhir:Element.id [ fhir:value "Flag.status" ] ;
           fhir:ElementDefinition.path [ fhir:value "Flag.status" ] ;
           fhir:ElementDefinition.short [ fhir:value "Alert status" ]
         ], [
           fhir:index 9 ;
           fhir:Element.id [ fhir:value "Flag.code" ] ;
           fhir:ElementDefinition.path [ fhir:value "Flag.code" ] ;
           fhir:ElementDefinition.short [ fhir:value "Coded or textual message to display to user." ]
         ], [
           fhir:index 10 ;
           fhir:Element.id [ fhir:value "Flag.subject" ] ;
           fhir:ElementDefinition.path [ fhir:value "Flag.subject" ] ;
           fhir:ElementDefinition.type [
             fhir:index 0 ;
             fhir:ElementDefinition.type.code [ fhir:value "Reference" ] ;
             fhir:ElementDefinition.type.targetProfile [
               fhir:value "http://hl7.eu/fhir/base/StructureDefinition/patient-eu-core" ;
               fhir:index 0 ;
               fhir:link <http://hl7.eu/fhir/base/StructureDefinition/patient-eu-core>
             ]
           ]
         ], [
           fhir:index 11 ;
           fhir:Element.id [ fhir:value "Flag.period" ] ;
           fhir:ElementDefinition.path [ fhir:value "Flag.period" ] ;
           fhir:ElementDefinition.short [ fhir:value "Time period when the alert is active" ]
         ], [
           fhir:index 12 ;
           fhir:Element.id [ fhir:value "Flag.author" ] ;
           fhir:ElementDefinition.path [ fhir:value "Flag.author" ] ;
           fhir:ElementDefinition.short [ fhir:value "Author of the alert" ]
         ]
      ] .

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

    <http://hl7.org/fhir/StructureDefinition/flag-patient-eu-core.ttl> a owl:Ontology ;
      owl:imports fhir:fhir.ttl ;
      owl:versionIRI <http://build.fhir.org/StructureDefinition/flag-patient-eu-core.ttl> .