@prefix fhir: <http://hl7.org/fhir/> .
@prefix loinc: <https://loinc.org/rdf/> .
@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 -------------------------------------------------------------------

<http://hl7.org/fhir/us/qicore/Goal/example> a fhir:Goal ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "example"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-goal"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-goal>
     ] )
  ] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: Goal example</b></p><a name=\"example\"> </a><a name=\"hcexample\"> </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-qicore-goal.html\">QICore Goal</a></p></div><p><b>identifier</b>: 123</p><p><b>lifecycleStatus</b>: On Hold</p><p><b>category</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/goal-category dietary}\">Dietary</span></p><p><b>priority</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/goal-priority high-priority}\">high</span></p><p><b>description</b>: <span title=\"Codes:{http://loinc.org 50064-5}\">Target body weight is 160 to 180 lbs.</span></p><p><b>subject</b>: <a href=\"Patient-example.html\">Peter James Chalmers</a></p><p><b>start</b>: 2015-04-05</p><h3>Targets</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Measure</b></td><td><b>Detail[x]</b></td><td><b>Due[x]</b></td></tr><tr><td style=\"display: none\">*</td><td><span title=\"Codes:{http://loinc.org 3141-9}\">Weight Measured</span></td><td>160-180 lbs</td><td>2016-04-05</td></tr></table><p><b>statusDate</b>: 2016-02-14</p><p><b>statusReason</b>: Patient wants to defer weight loss until after honeymoon.</p><p><b>expressedBy</b>: <a href=\"Patient-example.html\">Peter James Chalmers</a></p><p><b>addresses</b>: obesity condition</p><p><b>outcomeReference</b>: <a href=\"Observation-example.html\">Body Weight Measured</a></p></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:identifier ( [
     fhir:value [ fhir:v "123" ]
  ] ) ; # 
  fhir:lifecycleStatus [ fhir:v "on-hold"] ; # 
  fhir:category ( [
     fhir:coding ( [
       fhir:system [
         fhir:v "http://terminology.hl7.org/CodeSystem/goal-category"^^xsd:anyURI ;
         fhir:l <http://terminology.hl7.org/CodeSystem/goal-category>
       ] ;
       fhir:code [ fhir:v "dietary" ]
     ] )
  ] ) ; # 
  fhir:priority [
     fhir:coding ( [
       fhir:system [
         fhir:v "http://terminology.hl7.org/CodeSystem/goal-priority"^^xsd:anyURI ;
         fhir:l <http://terminology.hl7.org/CodeSystem/goal-priority>
       ] ;
       fhir:code [ fhir:v "high-priority" ] ;
       fhir:display [ fhir:v "High Priority" ]
     ] ) ;
     fhir:text [ fhir:v "high" ]
  ] ; # 
  fhir:description [
     fhir:coding ( [
       a loinc:50064-5 ;
       fhir:system [
         fhir:v "http://loinc.org"^^xsd:anyURI ;
         fhir:l <http://loinc.org>
       ] ;
       fhir:code [ fhir:v "50064-5" ] ;
       fhir:display [ fhir:v "Ideal body weight" ]
     ] ) ;
     fhir:text [ fhir:v "Target body weight is 160 to 180 lbs." ]
  ] ; # 
  fhir:subject [
     fhir:l <http://hl7.org/fhir/us/qicore/Patient/example> ;
     fhir:reference [ fhir:v "Patient/example" ] ;
     fhir:display [ fhir:v "Peter James Chalmers" ]
  ] ; # 
  fhir:start [
     a fhir:Date ;
     fhir:v "2015-04-05"^^xsd:date
  ] ; # 
  fhir:target ( [
     fhir:measure [
       fhir:coding ( [
         a loinc:3141-9 ;
         fhir:system [
           fhir:v "http://loinc.org"^^xsd:anyURI ;
           fhir:l <http://loinc.org>
         ] ;
         fhir:code [ fhir:v "3141-9" ] ;
         fhir:display [ fhir:v "Weight Measured" ]
       ] )
     ] ;
     fhir:detail [
       a fhir:Range ;
       fhir:low [
         fhir:value [ fhir:v "160"^^xsd:decimal ] ;
         fhir:unit [ fhir:v "lbs" ] ;
         fhir:system [
           fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ;
           fhir:l <http://unitsofmeasure.org>
         ] ;
         fhir:code [ fhir:v "[lb_av]" ]
       ] ;
       fhir:high [
         fhir:value [ fhir:v "180"^^xsd:decimal ] ;
         fhir:unit [ fhir:v "lbs" ] ;
         fhir:system [
           fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ;
           fhir:l <http://unitsofmeasure.org>
         ] ;
         fhir:code [ fhir:v "[lb_av]" ]
       ]
     ] ;
     fhir:due [
       a fhir:Date ;
       fhir:v "2016-04-05"^^xsd:date
     ]
  ] ) ; # 
  fhir:statusDate [ fhir:v "2016-02-14"^^xsd:date] ; # 
  fhir:statusReason [ fhir:v "Patient wants to defer weight loss until after honeymoon."] ; # 
  fhir:expressedBy [
     fhir:l <http://hl7.org/fhir/us/qicore/Patient/example> ;
     fhir:reference [ fhir:v "Patient/example" ] ;
     fhir:display [ fhir:v "Peter James Chalmers" ]
  ] ; # 
  fhir:addresses ( [
     fhir:display [ fhir:v "obesity condition" ]
  ] ) ; # 
  fhir:outcomeReference ( [
     fhir:l <http://hl7.org/fhir/us/qicore/Observation/example> ;
     fhir:reference [ fhir:v "Observation/example" ] ;
     fhir:display [ fhir:v "Body Weight Measured" ]
  ] ) . # 

<http://hl7.org/fhir/us/qicore/Patient/example> a fhir:Us .

<http://hl7.org/fhir/us/qicore/Observation/example> a fhir:Us .

# -------------------------------------------------------------------------------------

