@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 sct: <http://snomed.info/id/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<http://fhir.org/guides/onc/us-quality-core/Observation/negation-example> a fhir:Observation ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "negation-example"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "http://fhir.org/guides/onc/us-quality-core/StructureDefinition/us-quality-core-observationcancelled" ;
       fhir:index 0 ;
       fhir:link <http://fhir.org/guides/onc/us-quality-core/StructureDefinition/us-quality-core-observationcancelled>
     ]
  ] ;
  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: Observation negation-example</b></p><a name=\"negation-example\"> </a><a name=\"hcnegation-example\"> </a><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\"/><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-us-quality-core-observationcancelled.html\">US Quality Core Observation Cancelled</a></p></div><p><b>US Quality Core Not Done Reason</b>: <span title=\"Codes:{http://snomed.info/sct 410536001}\">Contraindicated (qualifier value)</span></p><p><b>status</b>: Cancelled</p><p><b>category</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/observation-category laboratory}\">Laboratory</span></p><p><b>code</b>: <span title=\"Codes:\">Not Done Value Set: Hemoglobin lab test</span> (Not done value set: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1045.131/expansion\">Hemoglobin lab test</a>)</p><p><b>subject</b>: <a href=\"Patient-example.html\">Jim Chalmers  Male, DoB: 1974-12-25 ( Social Security number (use: usual, period: 2001-05-06 --&gt; (ongoing)))</a></p><p><b>encounter</b>: <a href=\"Encounter-example.html\">Encounter: identifier = http://example.org/encounters#ENC-20130404-appendicitis; status = finished; class = inpatient encounter (ActCode#IMP); type = Initial hospital inpatient or observation care, per day, for the evaluation and management of a patient, which requires a medically appropriate history and/or examination and high level of medical decision making. When using total time on the date of the encounter for code selection, 75 minutes must be met or exceeded.; period = 2013-04-04 18:00:00-0400 --&gt; 2013-04-06 11:00:00-0400</a></p><p><b>effective</b>: 2013-04-02 10:30:10+0100 --&gt; 2013-04-05 10:30:10+0100</p><p><b>issued</b>: 2013-04-03 15:30:10+0100</p><p><b>performer</b>: <a href=\"Organization-example1.html\">Hendricks Country Hospital</a></p><p><b>value</b>: <span title=\"Codes:\"></span></p></div>"
  ] ;
  fhir:DomainResource.extension [
     fhir:index 0 ;
     fhir:Extension.url [ fhir:value "http://fhir.org/guides/onc/us-quality-core/StructureDefinition/us-quality-core-notDoneReason" ] ;
     fhir:Extension.valueCodeableConcept [
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         a sct:410536001 ;
         fhir:Coding.system [ fhir:value "http://snomed.info/sct" ] ;
         fhir:Coding.code [ fhir:value "410536001" ] ;
         fhir:Coding.display [ fhir:value "Contraindicated (qualifier value)" ]
       ]
     ]
  ] ;
  fhir:Observation.status [ fhir:value "cancelled"] ;
  fhir:Observation.category [
     fhir:index 0 ;
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/observation-category" ] ;
       fhir:Coding.code [ fhir:value "laboratory" ] ;
       fhir:Coding.display [ fhir:value "Laboratory" ]
     ]
  ] ;
  fhir:Observation.code [
     fhir:Element.extension [
       fhir:index 0 ;
       fhir:Extension.url [ fhir:value "http://fhir.org/guides/onc/us-quality-core/StructureDefinition/us-quality-core-notDoneValueSet" ] ;
       fhir:Extension.valueCanonical [
         fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.131" ;
         fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.131>
       ]
     ] ;
     fhir:CodeableConcept.text [ fhir:value "Not Done Value Set: Hemoglobin lab test" ]
  ] ;
  fhir:Observation.subject [
     fhir:link <http://fhir.org/guides/onc/us-quality-core/Patient/example> ;
     fhir:Reference.reference [ fhir:value "Patient/example" ]
  ] ;
  fhir:Observation.encounter [
     fhir:link <http://fhir.org/guides/onc/us-quality-core/Encounter/example> ;
     fhir:Reference.reference [ fhir:value "Encounter/example" ]
  ] ;
  fhir:Observation.effectivePeriod [
     fhir:Period.start [ fhir:value "2013-04-02T10:30:10+01:00"^^xsd:dateTime ] ;
     fhir:Period.end [ fhir:value "2013-04-05T10:30:10+01:00"^^xsd:dateTime ]
  ] ;
  fhir:Observation.issued [ fhir:value "2013-04-03T15:30:10+01:00"^^xsd:dateTime] ;
  fhir:Observation.performer [
     fhir:index 0 ;
     fhir:link <http://fhir.org/guides/onc/us-quality-core/Organization/example1> ;
     fhir:Reference.reference [ fhir:value "Organization/example1" ] ;
     fhir:Reference.display [ fhir:value "Hendricks Country Hospital" ]
  ] ;
  fhir:Observation.valueCodeableConcept [
     fhir:Element.extension [
       fhir:index 0 ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/data-absent-reason" ] ;
       fhir:Extension.valueCode [ fhir:value "not-performed" ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<http://fhir.org/guides/onc/us-quality-core/Observation/negation-example.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

