QI-Core Implementation Guide
4.1.0 - release

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

## : Goal example - TTL Representation

Raw ttl | Download

    @prefix fhir: <http://hl7.org/fhir/> .
    @prefix loinc: <http://loinc.org/rdf#> .
    @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:Goal;
      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-goal";
           fhir:index 0;
           fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-goal>     ]
      ];
      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-goal.html\">QICoreGoal</a></p></div><p><b>identifier</b>: id: 123</p><p><b>lifecycleStatus</b>: on-hold</p><p><b>category</b>: Dietary <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"http://terminology.hl7.org/3.0.0/CodeSystem-goal-category.html\">Goal category</a>#dietary)</span></p><p><b>priority</b>: high <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"http://terminology.hl7.org/3.0.0/CodeSystem-goal-priority.html\">Goal priority</a>#high-priority \"High Priority\")</span></p><p><b>description</b>: Target weight is 160 to 180 lbs. <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> ()</span></p><p><b>subject</b>: <a href=\"Patient-example.html\">Patient/example: Peter James Chalmers</a> \" CHALMERS\"</p><p><b>start</b>: 2015-04-05</p><h3>Targets</h3><table class=\"grid\"><tr><td>-</td><td><b>Measure</b></td><td><b>Detail[x]</b></td><td><b>Due[x]</b></td></tr><tr><td>*</td><td>Weight Measured <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"https://loinc.org/\">LOINC</a>#3141-9)</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\">Patient/example: Peter James Chalmers</a> \" CHALMERS\"</p><p><b>addresses</b>: <span>: obesity condition</span></p><p><b>outcomeReference</b>: <a href=\"Observation-example.html\">Observation/example: Body Weight Measured</a></p></div>"
      ];
      fhir:Goal.identifier [
         fhir:index 0;
         fhir:Identifier.value [ fhir:value "123" ]
      ];
      fhir:Goal.lifecycleStatus [ fhir:value "on-hold"];
      fhir:Goal.category [
         fhir:index 0;
         fhir:CodeableConcept.coding [
           fhir:index 0;
           fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/goal-category" ];
           fhir:Coding.code [ fhir:value "dietary" ]     ]
      ];
      fhir:Goal.priority [
         fhir:CodeableConcept.coding [
           fhir:index 0;
           fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/goal-priority" ];
           fhir:Coding.code [ fhir:value "high-priority" ];
           fhir:Coding.display [ fhir:value "High Priority" ]     ];
         fhir:CodeableConcept.text [ fhir:value "high" ]
      ];
      fhir:Goal.description [
         fhir:CodeableConcept.text [ fhir:value "Target weight is 160 to 180 lbs." ]
      ];
      fhir:Goal.subject [
         fhir:Reference.reference [ fhir:value "Patient/example" ];
         fhir:Reference.display [ fhir:value "Peter James Chalmers" ]
      ];
      fhir:Goal.startDate [ fhir:value "2015-04-05"^^xsd:date];
      fhir:Goal.target [
         fhir:index 0;
         fhir:Goal.target.measure [
           fhir:CodeableConcept.coding [
             fhir:index 0;
             a loinc:3141-9;
             fhir:Coding.system [ fhir:value "http://loinc.org" ];
             fhir:Coding.code [ fhir:value "3141-9" ];
             fhir:Coding.display [ fhir:value "Weight Measured" ]       ]     ];
         fhir:Goal.target.detailRange [
           fhir:Range.low [
             fhir:Quantity.value [ fhir:value "160"^^xsd:decimal ];
             fhir:Quantity.unit [ fhir:value "lbs" ];
             fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ];
             fhir:Quantity.code [ fhir:value "[lb_av]" ]       ];
           fhir:Range.high [
             fhir:Quantity.value [ fhir:value "180"^^xsd:decimal ];
             fhir:Quantity.unit [ fhir:value "lbs" ];
             fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ];
             fhir:Quantity.code [ fhir:value "[lb_av]" ]       ]     ];
         fhir:Goal.target.dueDate [ fhir:value "2016-04-05"^^xsd:date ]
      ];
      fhir:Goal.statusDate [ fhir:value "2016-02-14"^^xsd:date];
      fhir:Goal.statusReason [ fhir:value "Patient wants to defer weight loss until after honeymoon."];
      fhir:Goal.expressedBy [
         fhir:Reference.reference [ fhir:value "Patient/example" ];
         fhir:Reference.display [ fhir:value "Peter James Chalmers" ]
      ];
      fhir:Goal.addresses [
         fhir:index 0;
         fhir:Reference.display [ fhir:value "obesity condition" ]
      ];
      fhir:Goal.outcomeReference [
         fhir:index 0;
         fhir:Reference.reference [ fhir:value "Observation/example" ];
         fhir:Reference.display [ fhir:value "Body Weight Measured" ]
      ].

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

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