QI-Core Implementation Guide
4.1.0 - release

Publication Build: This will be filled in by the publication tooling

## : Flag example - TTL Representation

Raw ttl | Download

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

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

     a fhir:Flag;
      fhir:nodeRole fhir:treeRoot;
      fhir:Resource.id [ fhir:value "example"];
      fhir:Resource.meta [
         fhir:Meta.profile [
           fhir:value "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-flag";
           fhir:index 0;
           fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-flag>     ]
      ];
      fhir:DomainResource.text [
         fhir:Narrative.status [ fhir:value "generated" ];
         fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative</b></p><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\">Resource \"example\" </p><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-qicore-flag.html\">QICoreFlag</a></p></div><p><b>identifier</b>: id: 12345</p><p><b>status</b>: inactive</p><p><b>category</b>: admin <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (local#admin \"Admin\")</span></p><p><b>code</b>: Patient has a big dog at his home. Always always wear a suit of armor or take other active      counter-measures <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (local#bigdog \"Big dog\")</span></p><p><b>subject</b>: <a href=\"Patient-example.html\">Patient/example: Peter Patient</a> \" CHALMERS\"</p><p><b>period</b>: 2015-01-17 --&gt; 2016-12-01</p><p><b>author</b>: <a href=\"Practitioner-example.html\">Practitioner/example: Nancy Nurse</a> \" CAREFUL\"</p></div>"
      ];
      fhir:Flag.identifier [
         fhir:index 0;
         fhir:Identifier.value [ fhir:value "12345" ]
      ];
      fhir:Flag.status [ fhir:value "inactive"];
      fhir:Flag.category [
         fhir:index 0;
         fhir:CodeableConcept.coding [
           fhir:index 0;
           fhir:Coding.system [ fhir:value "http://example.org/local" ];
           fhir:Coding.code [ fhir:value "admin" ];
           fhir:Coding.display [ fhir:value "Admin" ]     ];
         fhir:CodeableConcept.text [ fhir:value "admin" ]
      ];
      fhir:Flag.code [
         fhir:CodeableConcept.coding [
           fhir:index 0;
           fhir:Coding.system [ fhir:value "http://example.org/local" ];
           fhir:Coding.code [ fhir:value "bigdog" ];
           fhir:Coding.display [ fhir:value "Big dog" ]     ];
         fhir:CodeableConcept.text [ fhir:value "Patient has a big dog at his home. Always always wear a suit of armor or take other active      counter-measures" ]
      ];
      fhir:Flag.subject [
         fhir:Reference.reference [ fhir:value "Patient/example" ];
         fhir:Reference.display [ fhir:value "Peter Patient" ]
      ];
      fhir:Flag.period [
         fhir:Period.start [ fhir:value "2015-01-17"^^xsd:date ];
         fhir:Period.end [ fhir:value "2016-12-01"^^xsd:date ]
      ];
      fhir:Flag.author [
         fhir:Reference.reference [ fhir:value "Practitioner/example" ];
         fhir:Reference.display [ fhir:value "Nancy Nurse" ]
      ].

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

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