QI-Core Implementation Guide
7.0.2 - STU 7

QI-Core Implementation Guide, published by HL7 International / Clinical Quality Information. This guide is not an authorized publication; it is the continuous build for version 7.0.2 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/fhir-qi-core/ and changes regularly. See the Directory of published versions

## Resource Profile: QICoreFlag - TTL Profile

Page standards status: Trial-use | Maturity Level: 4

TTL representation of the qicore-flag resource profile.

Raw ttl | Download

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

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

     a fhir:StructureDefinition ;
      fhir:nodeRole fhir:treeRoot ;
      fhir:id [ fhir:v "qicore-flag"] ; #
      fhir:text [
    fhir:status [ fhir:v "extensions" ] ;
    fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: StructureDefinition qicore-flag</b></p><a name=\"qicore-flag\"> </a><a name=\"hcqicore-flag\"> </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-qicore-flag-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-qicore-flag-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\">(QI) active | inactive | entered-in-error</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-qicore-flag-definitions.html#Flag.category\">category</a><a name=\"Flag.category\"> </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#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\">(QI) Clinical, administrative, etc.<br class=\"binding\"/><span style=\"font-weight:bold\" title=\"null\" class=\"binding\">Binding: </span><a href=\"http://hl7.org/fhir/R4/valueset-flag-category.html\" title=\"http://hl7.org/fhir/ValueSet/flag-category\" class=\"binding\">FlagCategory</a><span title=\"null\" class=\"binding\"> (</span><a href=\"http://hl7.org/fhir/R4/terminologies.html#preferred\" title=\"Instances are encouraged to draw from the specified codes for interoperability purposes but are not required to do so to be considered conformant.\" class=\"binding\">preferred</a><span title=\"null\" class=\"binding\">)</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-qicore-flag-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: #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#CodeableConcept\">CodeableConcept</a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">(QI) Coded or textual message to display to user<br class=\"binding\"/><span style=\"font-weight:bold\" title=\"null\" class=\"binding\">Binding: </span><a href=\"http://hl7.org/fhir/R4/valueset-flag-code.html\" title=\"http://hl7.org/fhir/ValueSet/flag-code\" class=\"binding\">FlagCode</a><span title=\"null\" class=\"binding\"> (</span><a href=\"http://hl7.org/fhir/R4/terminologies.html#preferred\" title=\"Instances are encouraged to draw from the specified codes for interoperability purposes but are not required to do so to be considered conformant.\" class=\"binding\">preferred</a><span title=\"null\" class=\"binding\">)</span></td></tr>#xD;\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_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: white; background-color: inherit\" title=\"Reference to another Resource\" class=\"hierarchy\"/> <a href=\"StructureDefinition-qicore-flag-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: 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 href=\"http://hl7.org/fhir/R4/references.html\">Reference</a>(<a href=\"StructureDefinition-qicore-patient.html\">QICore Patient</a> | <a href=\"StructureDefinition-qicore-location.html\">QICore Location</a> | <a href=\"http://hl7.org/fhir/R4/group.html\">Group</a> | <a href=\"StructureDefinition-qicore-organization.html\">QICore Organization</a> | <a href=\"StructureDefinition-qicore-practitioner.html\">QICore Practitioner</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\">(QI) Who/What is flag about?</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-qicore-flag-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: #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#Period\">Period</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\">(QI) Time period when flag is active</td></tr>#xD;\n<tr><td colspan=\"5\" class=\"hierarchy\"><br/><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"Legend for this format\"><img src=\"data:image/png;base64, \" alt=\"doco\" style=\"background-color: inherit\"/> Documentation for this format</a></td></tr></table></div>"^^rdf:XMLLiteral ]
      ] ; #
      fhir:extension ( [
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-modelInfo-primaryCodePath"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-modelInfo-primaryCodePath>     ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "code"     ]
      ] [
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-modelInfo-isIncluded"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-modelInfo-isIncluded>     ] ;
    fhir:value [
    a fhir:Boolean ;
    fhir:v true     ]
      ] [
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-modelInfo-isRetrievable"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-modelInfo-isRetrievable>     ] ;
    fhir:value [
    a fhir:Boolean ;
    fhir:v true     ]
      ] [
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-modelInfo-label"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-modelInfo-label>     ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "Flag"     ]
      ] [
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/structuredefinition-wg>     ] ;
    fhir:value [
    a fhir:Code ;
    fhir:v "cqi"     ]
      ] [
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm>     ] ;
    fhir:value [
    a fhir:Integer ;
    fhir:v 4 ;
          ( fhir:extension [
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom>         ] ;
    fhir:value [
    a fhir:Canonical ;
    fhir:v "http://hl7.org/fhir/us/qicore/ImplementationGuide/us-qicore"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/us/qicore/ImplementationGuide/us-qicore>         ]       ] )     ]
      ] [
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status>     ] ;
    fhir:value [
    a fhir:Code ;
    fhir:v "trial-use" ;
          ( fhir:extension [
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom>         ] ;
    fhir:value [
    a fhir:Canonical ;
    fhir:v "http://hl7.org/fhir/us/qicore/ImplementationGuide/us-qicore"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/us/qicore/ImplementationGuide/us-qicore>         ]       ] )     ]
      ] ) ; #
      fhir:url [
    fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-flag"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-flag>
      ] ; #
      fhir:version [ fhir:v "7.0.2"] ; #
      fhir:name [ fhir:v "QICoreFlag"] ; #
      fhir:title [ fhir:v "QICore Flag"] ; #
      fhir:status [ fhir:v "active"] ; #
      fhir:experimental [ fhir:v false] ; #
      fhir:date [ fhir:v "2018-08-22"^^xsd:date] ; #
      fhir:publisher [ fhir:v "HL7 International / Clinical Quality Information"] ; #
      fhir:contact ( [
    fhir:name [ fhir:v "Clinical Quality Information WG" ] ;
        ( fhir:telecom [
    fhir:system [ fhir:v "url" ] ;
    fhir:value [ fhir:v "http://www.hl7.org/Special/committees/cqi" ]     ] )
      ] ) ; #
      fhir:description [ fhir:v "Profile of Flag for decision support/quality metrics. Defines the core set of elements and extensions for quality rule and measure authors."] ; #
      fhir:jurisdiction ( [
        ( fhir:coding [
    fhir:system [
    fhir:v "urn:iso:std:iso:3166"^^xsd:anyURI ;
    fhir:l <urn:iso:std:iso:3166>       ] ;
    fhir:code [ fhir:v "US" ]     ] )
      ] ) ; #
      fhir:fhirVersion [ fhir:v "4.0.1"] ; #
      fhir:mapping ( [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:uri [
    fhir:v "http://hl7.org/v3"^^xsd:anyURI ;
    fhir:l <http://hl7.org/v3>     ] ;
    fhir:name [ fhir:v "RIM Mapping" ]
      ] [
    fhir:identity [ fhir:v "w5" ] ;
    fhir:uri [
    fhir:v "http://hl7.org/fhir/fivews"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/fivews>     ] ;
    fhir:name [ fhir:v "FiveWs Pattern Mapping" ]
      ] ) ; #
      fhir:kind [ fhir:v "resource"] ; #
      fhir:abstract [ fhir:v false] ; #
      fhir:type [
    fhir:v "Flag"^^xsd:anyURI ;
    fhir:l fhir:Flag
      ] ; #
      fhir:baseDefinition [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Flag"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Flag>
      ] ; #
      fhir:derivation [ fhir:v "constraint"] ; #
      fhir:snapshot [
        ( fhir:extension [
    fhir:url [
    fhir:v "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version>       ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "4.0.1"       ]     ] ) ;
        ( fhir:element [
    fhir:id [ fhir:v "Flag" ] ;
    fhir:path [ fhir:v "Flag" ] ;
    fhir:short [ fhir:v "Key information to flag to healthcare providers" ] ;
    fhir:definition [ fhir:v "Prospective warnings of potential issues when providing care to the patient." ] ;
          ( fhir:alias [ fhir:v "Barriers to Care" ] [ fhir:v "Alert" ] [ fhir:v "Warning" ] ) ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "Flag" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:constraint [
    fhir:key [ fhir:v "dom-2" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "If the resource is contained in another resource, it SHALL NOT contain nested Resources" ] ;
    fhir:expression [ fhir:v "contained.contained.empty()" ] ;
    fhir:xpath [ fhir:v "not(parent::f:contained and f:contained)" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/DomainResource"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/DomainResource>         ]       ] [
    fhir:key [ fhir:v "dom-3" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource" ] ;
    fhir:expression [ fhir:v "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:xpath [ fhir:v "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:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/DomainResource"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/DomainResource>         ]       ] [
    fhir:key [ fhir:v "dom-4" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated" ] ;
    fhir:expression [ fhir:v "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()" ] ;
    fhir:xpath [ fhir:v "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/DomainResource"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/DomainResource>         ]       ] [
    fhir:key [ fhir:v "dom-5" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "If a resource is contained in another resource, it SHALL NOT have a security label" ] ;
    fhir:expression [ fhir:v "contained.meta.security.empty()" ] ;
    fhir:xpath [ fhir:v "not(exists(f:contained/*/f:meta/f:security))" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/DomainResource"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/DomainResource>         ]       ] [
            ( fhir:extension [
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice>           ] ;
    fhir:value [
    a fhir:Boolean ;
    fhir:v true           ]         ] [
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation>           ] ;
    fhir:value [
    a fhir:Markdown ;
    fhir:v "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:key [ fhir:v "dom-6" ] ;
    fhir:severity [ fhir:v "warning" ] ;
    fhir:human [ fhir:v "A resource should have narrative for robust management" ] ;
    fhir:expression [ fhir:v "text.`div`.exists()" ] ;
    fhir:xpath [ fhir:v "exists(f:text/h:div)" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/DomainResource"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/DomainResource>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "Entity. Role, or Act" ]       ] [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "Observation[classCode=ISSUE, moodCode=EVN]" ]       ] )     ] [
    fhir:id [ fhir:v "Flag.id" ] ;
    fhir:path [ fhir:v "Flag.id" ] ;
    fhir:short [ fhir:v "Logical id of this artifact" ] ;
    fhir:definition [ fhir:v "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes." ] ;
    fhir:comment [ fhir:v "The only time that a resource does not have an id is when it is being submitted to the server using a create operation." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Resource.id" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
            ( fhir:extension [
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type>           ] ;
    fhir:value [
    a fhir:Url ;
    fhir:v "id"^^xsd:anyURI ;
    fhir:l fhir:id           ]         ] ) ;
    fhir:code [
    fhir:v "http://hl7.org/fhirpath/System.String"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhirpath/System.String>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v true ]     ] [
    fhir:id [ fhir:v "Flag.meta" ] ;
    fhir:path [ fhir:v "Flag.meta" ] ;
    fhir:short [ fhir:v "Metadata about the resource" ] ;
    fhir:definition [ fhir:v "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Resource.meta" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "Meta"^^xsd:anyURI ;
    fhir:l fhir:Meta         ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v true ]     ] [
    fhir:id [ fhir:v "Flag.implicitRules" ] ;
    fhir:path [ fhir:v "Flag.implicitRules" ] ;
    fhir:short [ fhir:v "A set of rules under which this content was created" ] ;
    fhir:definition [ fhir:v "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc." ] ;
    fhir:comment [ fhir:v "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. 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:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Resource.implicitRules" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "uri"^^xsd:anyURI ;
    fhir:l fhir:uri         ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v true ] ;
    fhir:isModifierReason [ fhir:v "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:isSummary [ fhir:v true ]     ] [
    fhir:id [ fhir:v "Flag.language" ] ;
    fhir:path [ fhir:v "Flag.language" ] ;
    fhir:short [ fhir:v "Language of the resource content" ] ;
    fhir:definition [ fhir:v "The base language in which the resource is written." ] ;
    fhir:comment [ fhir:v "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute)." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Resource.language" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "code"^^xsd:anyURI ;
    fhir:l fhir:code         ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ] ;
    fhir:binding [
            ( fhir:extension [
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet>           ] ;
    fhir:value [
    a fhir:Canonical ;
    fhir:v "http://hl7.org/fhir/ValueSet/all-languages"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/ValueSet/all-languages>           ]         ] [
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName>           ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "Language"           ]         ] ) ;
    fhir:strength [ fhir:v "preferred" ] ;
    fhir:description [ fhir:v "A human language." ] ;
    fhir:valueSet [
    fhir:v "http://hl7.org/fhir/ValueSet/languages|4.0.1"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/ValueSet/languages?version=4.0.1>         ]       ]     ] [
    fhir:id [ fhir:v "Flag.text" ] ;
    fhir:path [ fhir:v "Flag.text" ] ;
    fhir:short [ fhir:v "Text summary of the resource, for human interpretation" ] ;
    fhir:definition [ fhir:v "A human-readable narrative that contains a summary of the resource and 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:comment [ fhir:v "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later." ] ;
          ( fhir:alias [ fhir:v "narrative" ] [ fhir:v "html" ] [ fhir:v "xhtml" ] [ fhir:v "display" ] ) ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "DomainResource.text" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "Narrative"^^xsd:anyURI ;
    fhir:l fhir:Narrative         ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "Act.text?" ]       ] )     ] [
    fhir:id [ fhir:v "Flag.contained" ] ;
    fhir:path [ fhir:v "Flag.contained" ] ;
    fhir:short [ fhir:v "Contained, inline Resources" ] ;
    fhir:definition [ fhir:v "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope." ] ;
    fhir:comment [ fhir:v "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels." ] ;
          ( fhir:alias [ fhir:v "inline resources" ] [ fhir:v "anonymous resources" ] [ fhir:v "contained resources" ] ) ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "DomainResource.contained" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "Resource"^^xsd:anyURI ;
    fhir:l fhir:Resource         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "N/A" ]       ] )     ] [
    fhir:id [ fhir:v "Flag.extension" ] ;
    fhir:path [ fhir:v "Flag.extension" ] ;
    fhir:short [ fhir:v "Additional content defined by implementations" ] ;
    fhir:definition [ fhir:v "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." ] ;
    fhir:comment [ fhir:v "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ] ;
          ( fhir:alias [ fhir:v "extensions" ] [ fhir:v "user content" ] ) ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "DomainResource.extension" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "Extension"^^xsd:anyURI ;
    fhir:l fhir:Extension         ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] [
    fhir:key [ fhir:v "ext-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "Must have either extensions or value[x], not both" ] ;
    fhir:expression [ fhir:v "extension.exists() != value.exists()" ] ;
    fhir:xpath [ fhir:v "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Extension"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Extension>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "N/A" ]       ] )     ] [
    fhir:id [ fhir:v "Flag.modifierExtension" ] ;
    fhir:path [ fhir:v "Flag.modifierExtension" ] ;
    fhir:short [ fhir:v "Extensions that cannot be ignored" ] ;
    fhir:definition [ fhir:v "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it 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:comment [ fhir:v "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ] ;
    fhir:requirements [ fhir:v "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:alias [ fhir:v "extensions" ] [ fhir:v "user content" ] ) ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "DomainResource.modifierExtension" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "Extension"^^xsd:anyURI ;
    fhir:l fhir:Extension         ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] [
    fhir:key [ fhir:v "ext-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "Must have either extensions or value[x], not both" ] ;
    fhir:expression [ fhir:v "extension.exists() != value.exists()" ] ;
    fhir:xpath [ fhir:v "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Extension"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Extension>         ]       ] ) ;
    fhir:isModifier [ fhir:v true ] ;
    fhir:isModifierReason [ fhir:v "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them" ] ;
    fhir:isSummary [ fhir:v false ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "N/A" ]       ] )     ] [
    fhir:id [ fhir:v "Flag.identifier" ] ;
    fhir:path [ fhir:v "Flag.identifier" ] ;
    fhir:short [ fhir:v "Business identifier" ] ;
    fhir:definition [ fhir:v "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:comment [ fhir:v "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:requirements [ fhir:v "Allows identification of the flag as it is known by various participating systems and in a way that remains consistent across servers." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "Flag.identifier" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "Identifier"^^xsd:anyURI ;
    fhir:l fhir:Identifier         ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "w5" ] ;
    fhir:map [ fhir:v "FiveWs.identifier" ]       ] [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v ".id" ]       ] )     ] [
    fhir:id [ fhir:v "Flag.status" ] ;
          ( fhir:extension [
    fhir:url [
    fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-keyelement"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-keyelement>         ] ;
    fhir:value [
    a fhir:Boolean ;
    fhir:v true         ]       ] ) ;
    fhir:path [ fhir:v "Flag.status" ] ;
    fhir:short [ fhir:v "(QI) active | inactive | entered-in-error" ] ;
    fhir:definition [ fhir:v "Supports basic workflow." ] ;
    fhir:comment [ fhir:v "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid." ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Flag.status" ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "code"^^xsd:anyURI ;
    fhir:l fhir:code         ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v true ] ;
    fhir:isModifierReason [ fhir:v "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:isSummary [ fhir:v true ] ;
    fhir:binding [
            ( fhir:extension [
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName>           ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "FlagStatus"           ]         ] ) ;
    fhir:strength [ fhir:v "required" ] ;
    fhir:description [ fhir:v "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:valueSet [
    fhir:v "http://hl7.org/fhir/ValueSet/flag-status|4.0.1"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/ValueSet/flag-status?version=4.0.1>         ]       ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "w5" ] ;
    fhir:map [ fhir:v "FiveWs.status" ]       ] [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v ".status" ]       ] )     ] [
    fhir:id [ fhir:v "Flag.category" ] ;
          ( fhir:extension [
    fhir:url [
    fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-keyelement"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-keyelement>         ] ;
    fhir:value [
    a fhir:Boolean ;
    fhir:v true         ]       ] ) ;
    fhir:path [ fhir:v "Flag.category" ] ;
    fhir:short [ fhir:v "(QI) Clinical, administrative, etc." ] ;
    fhir:definition [ fhir:v "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:comment [ fhir:v "The value set will often need to be adjusted based on local business rules and usage context." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "Flag.category" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "CodeableConcept"^^xsd:anyURI ;
    fhir:l fhir:CodeableConcept         ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v true ] ;
    fhir:binding [
    fhir:strength [ fhir:v "preferred" ] ;
    fhir:valueSet [
    fhir:v "http://hl7.org/fhir/ValueSet/flag-category"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/ValueSet/flag-category>         ]       ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "w5" ] ;
    fhir:map [ fhir:v "FiveWs.class" ]       ] [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v ".code" ]       ] )     ] [
    fhir:id [ fhir:v "Flag.code" ] ;
          ( fhir:extension [
    fhir:url [
    fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-keyelement"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-keyelement>         ] ;
    fhir:value [
    a fhir:Boolean ;
    fhir:v true         ]       ] ) ;
    fhir:path [ fhir:v "Flag.code" ] ;
    fhir:short [ fhir:v "(QI) Coded or textual message to display to user" ] ;
    fhir:definition [ fhir:v "The coded value or textual component of the flag to display to the user." ] ;
    fhir:comment [ fhir:v "If non-coded, use CodeableConcept.text.  This element should always be included in the narrative." ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Flag.code" ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "CodeableConcept"^^xsd:anyURI ;
    fhir:l fhir:CodeableConcept         ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v true ] ;
    fhir:binding [
    fhir:strength [ fhir:v "preferred" ] ;
    fhir:valueSet [
    fhir:v "http://hl7.org/fhir/ValueSet/flag-code"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/ValueSet/flag-code>         ]       ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "w5" ] ;
    fhir:map [ fhir:v "FiveWs.what[x]" ]       ] [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v ".value" ]       ] )     ] [
    fhir:id [ fhir:v "Flag.subject" ] ;
          ( fhir:extension [
    fhir:url [
    fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-keyelement"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-keyelement>         ] ;
    fhir:value [
    a fhir:Boolean ;
    fhir:v true         ]       ] ) ;
    fhir:path [ fhir:v "Flag.subject" ] ;
    fhir:short [ fhir:v "(QI) Who/What is flag about?" ] ;
    fhir:definition [ fhir:v "The patient, location, group, organization, or practitioner etc. this is about record this flag is associated with." ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Flag.subject" ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "Reference"^^xsd:anyURI ;
    fhir:l fhir:Reference         ] ;
            ( fhir:targetProfile [
    fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient>         ] [
    fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-location"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-location>         ] [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Group"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Group>         ] [
    fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-organization"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-organization>         ] [
    fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-practitioner"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-practitioner>         ] )       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "w5" ] ;
    fhir:map [ fhir:v "FiveWs.subject[x]" ]       ] [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v ".participation[typeCode=SBJ].role[classCode=PAT | LOCE | ASSIGNED]" ]       ] [
    fhir:identity [ fhir:v "w5" ] ;
    fhir:map [ fhir:v "FiveWs.subject" ]       ] )     ] [
    fhir:id [ fhir:v "Flag.period" ] ;
          ( fhir:extension [
    fhir:url [
    fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-keyelement"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-keyelement>         ] ;
    fhir:value [
    a fhir:Boolean ;
    fhir:v true         ]       ] ) ;
    fhir:path [ fhir:v "Flag.period" ] ;
    fhir:short [ fhir:v "(QI) Time period when flag is active" ] ;
    fhir:definition [ fhir:v "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:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Flag.period" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "Period"^^xsd:anyURI ;
    fhir:l fhir:Period         ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "w5" ] ;
    fhir:map [ fhir:v "FiveWs.context" ]       ] )     ] [
    fhir:id [ fhir:v "Flag.encounter" ] ;
    fhir:path [ fhir:v "Flag.encounter" ] ;
    fhir:short [ fhir:v "Alert relevant during encounter" ] ;
    fhir:definition [ fhir:v "This alert is only relevant during the encounter." ] ;
    fhir:comment [ fhir:v "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:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Flag.encounter" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "Reference"^^xsd:anyURI ;
    fhir:l fhir:Reference         ] ;
            ( fhir:targetProfile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Encounter|4.0.1"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Encounter?version=4.0.1>         ] )       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "w5" ] ;
    fhir:map [ fhir:v "FiveWs.context" ]       ] )     ] [
    fhir:id [ fhir:v "Flag.author" ] ;
    fhir:path [ fhir:v "Flag.author" ] ;
    fhir:short [ fhir:v "Flag creator" ] ;
    fhir:definition [ fhir:v "The person, organization or device that created the flag." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Flag.author" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "Reference"^^xsd:anyURI ;
    fhir:l fhir:Reference         ] ;
            ( fhir:targetProfile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Device|4.0.1"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Device?version=4.0.1>         ] [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Organization|4.0.1"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Organization?version=4.0.1>         ] [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Patient|4.0.1"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Patient?version=4.0.1>         ] [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Practitioner?version=4.0.1>         ] [
    fhir:v "http://hl7.org/fhir/StructureDefinition/PractitionerRole|4.0.1"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/PractitionerRole?version=4.0.1>         ] )       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "w5" ] ;
    fhir:map [ fhir:v "FiveWs.author" ]       ] [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v ".participation[typeCode=AUT].role" ]       ] )     ] )
      ] ; #
      fhir:differential [
        ( fhir:element [
    fhir:id [ fhir:v "Flag" ] ;
    fhir:path [ fhir:v "Flag" ]     ] [
    fhir:id [ fhir:v "Flag.status" ] ;
          ( fhir:extension [
    fhir:url [
    fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-keyelement"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-keyelement>         ] ;
    fhir:value [
    a fhir:Boolean ;
    fhir:v true         ]       ] ) ;
    fhir:path [ fhir:v "Flag.status" ] ;
    fhir:short [ fhir:v "(QI) active | inactive | entered-in-error" ]     ] [
    fhir:id [ fhir:v "Flag.category" ] ;
          ( fhir:extension [
    fhir:url [
    fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-keyelement"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-keyelement>         ] ;
    fhir:value [
    a fhir:Boolean ;
    fhir:v true         ]       ] ) ;
    fhir:path [ fhir:v "Flag.category" ] ;
    fhir:short [ fhir:v "(QI) Clinical, administrative, etc." ] ;
    fhir:binding [
    fhir:strength [ fhir:v "preferred" ] ;
    fhir:valueSet [
    fhir:v "http://hl7.org/fhir/ValueSet/flag-category"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/ValueSet/flag-category>         ]       ]     ] [
    fhir:id [ fhir:v "Flag.code" ] ;
          ( fhir:extension [
    fhir:url [
    fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-keyelement"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-keyelement>         ] ;
    fhir:value [
    a fhir:Boolean ;
    fhir:v true         ]       ] ) ;
    fhir:path [ fhir:v "Flag.code" ] ;
    fhir:short [ fhir:v "(QI) Coded or textual message to display to user" ] ;
    fhir:binding [
    fhir:strength [ fhir:v "preferred" ] ;
    fhir:valueSet [
    fhir:v "http://hl7.org/fhir/ValueSet/flag-code"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/ValueSet/flag-code>         ]       ]     ] [
    fhir:id [ fhir:v "Flag.subject" ] ;
          ( fhir:extension [
    fhir:url [
    fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-keyelement"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-keyelement>         ] ;
    fhir:value [
    a fhir:Boolean ;
    fhir:v true         ]       ] ) ;
    fhir:path [ fhir:v "Flag.subject" ] ;
    fhir:short [ fhir:v "(QI) Who/What is flag about?" ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "Reference"^^xsd:anyURI ;
    fhir:l fhir:Reference         ] ;
            ( fhir:targetProfile [
    fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient>         ] [
    fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-location"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-location>         ] [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Group"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Group>         ] [
    fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-organization"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-organization>         ] [
    fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-practitioner"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-practitioner>         ] )       ] )     ] [
    fhir:id [ fhir:v "Flag.period" ] ;
          ( fhir:extension [
    fhir:url [
    fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-keyelement"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-keyelement>         ] ;
    fhir:value [
    a fhir:Boolean ;
    fhir:v true         ]       ] ) ;
    fhir:path [ fhir:v "Flag.period" ] ;
    fhir:short [ fhir:v "(QI) Time period when flag is active" ]     ] )
      ] . #