@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 sct: <http://snomed.info/id/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

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

<http://hl7.org/fhir/PlanDefinition/protocol-example> a fhir:PlanDefinition ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "protocol-example"] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n\n      <p>\n        <b>id: </b>example, \n      </p>\n\n      <p>\n        <b>identifier: </b>, \n        <b>system: </b>http://acme.org, \n        <b>value: </b>example-1, \n      </p>\n      <p>\n        <b>title: </b>Obesity Assessment Protocol, \n      </p>\n      <p>\n        <b>status: </b>draft, \n      </p>\n      <p>\n        <b>type: </b>condition, \n      </p>\n      <p>\n        <b>purpose: </b>Example of A medical algorithm for assessment and treatment of overweight and obesity, \n      </p>\n      <p>\n        <b>author: </b>, \n        <b>display: </b>National Heart, Lung, and Blood Institute http://www.nhlbi.nih.gov/health-pro/guidelines/current/obesity-guidelines/e_textbook/txgd/algorthm/algorthm.htm, \n      </p>\n      <p>\n        <b>step: </b>, \n        <b>name: </b>Measure BMI, \n        <b>description: </b>Measure, Weight, Height, Waist, Circumference; Calculate BMI  Weight must be measured so that the BMI can be calculated. Most charts are based on weights obtained with the patient wearing undergarments and no shoes. BMI can be manually calculated (kg/[height in meters]2), but is more easily obtained from a nomogram. Waist circumference is important because evidence suggests that abdominal fat is a particularly strong determinant of cardiovascular risk in those with a BMI of 25 to 34.9 kg/m2. Increased waist circumference can also be a marker of increased risk even in persons of normal weight. The technique for measuring waist circumference is described in the text. A nutrition assessment will also help to assess the diet and physical activity habits of overweight patients, \n        <b>precondition: </b>, \n        <b>union: </b>, \n        <b>description: </b>The practitioner must seek to determine whether the patient has ever been overweight. While a technical definition is provided, a simple question such as 'Have you ever been overweight?' will accomplish the same goal. Questions directed towards weight history, dietary habits, physical activities, and medications may provide useful information about the origins of obesity in particular patients., \n        <b>condition: </b>, \n        <b>type: </b>, \n        <b>coding: </b>, \n        <b>system: </b>http://acme.org, \n        <b>code: </b>1234, \n        <b>display: </b>Obesity, \n        <b>valueBoolean: </b>true, \n        <b>union: </b>, \n        <b>description: </b>BMI Measured in Past 2 Years  For those who have not been overweight, a 2 year interval is appropriate for the reassessment of BMI. While this time span is not evidence-based, it is believed to be a reasonable compromise between the need to identify weight gain at an early stage and the need to limit the time, effort, and cost of repeated measurements., \n        <b>condition: </b>, \n        <b>type: </b>, \n        <b>text: </b>BMI in last 2 years, \n        <b>valueBoolean: </b>false, \n        <b>activity: </b>, \n        <b>detail: </b>, \n        <b>category: </b>procedure, \n        <b>code: </b>, \n        <b>coding: </b>, \n        <b>system: </b>http://loinc.org, \n        <b>code: </b>39156-5, \n        <b>display: </b>Body mass index (BMI) [Ratio], \n        <b>performer: </b>, \n        <b>display: </b>Nurse Ratched, \n        <b>description: </b>Extra information on activity , \n      </p>\n    </div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:contained ( [
     a fhir:ActivityDefinition ;
     fhir:id [ fhir:v "procedure" ] ;
     fhir:status [ fhir:v "draft" ] ;
     fhir:description [ fhir:v "Extra information on activity " ] ;
     fhir:kind [ fhir:v "ServiceRequest" ] ;
     fhir:code [
       fhir:coding ( [
         a loinc:39156-5 ;
         fhir:system [
           fhir:v "http://loinc.org"^^xsd:anyURI ;
           fhir:l <http://loinc.org>
         ] ;
         fhir:code [ fhir:v "39156-5" ] ;
         fhir:display [ fhir:v "Body mass index (BMI) [Ratio]" ]
       ] )
     ] ;
     fhir:participant ( [
       fhir:type [ fhir:v "practitioner" ] ;
       fhir:role [
         fhir:coding ( [
           fhir:system [
             fhir:v "http://terminology.hl7.org/CodeSystem/practitioner-role"^^xsd:anyURI ;
             fhir:l <http://terminology.hl7.org/CodeSystem/practitioner-role>
           ] ;
           fhir:code [ fhir:v "doctor" ] ;
           fhir:display [ fhir:v "Doctor" ]
         ] )
       ]
     ] )
  ] ) ; # 
  fhir:extension ( [
     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 "cds"
     ]
  ] ) ; # 
  fhir:identifier ( [
     fhir:system [
       fhir:v "http://acme.org"^^xsd:anyURI ;
       fhir:l <http://acme.org>
     ] ;
     fhir:value [ fhir:v "example-1" ]
  ] [
     fhir:system [
       fhir:v "urn:ietf:rfc:3986"^^xsd:anyURI ;
       fhir:l <urn:ietf:rfc:3986>
     ] ;
     fhir:value [ fhir:v "urn:oid:2.16.840.1.113883.4.642.11.14" ]
  ] ) ; # 
  fhir:name [ fhir:v "ObesityAssessmentProtocol"] ; # 
  fhir:title [ fhir:v "Obesity Assessment Protocol"] ; # 
  fhir:type [
     fhir:coding ( [
       fhir:code [ fhir:v "clinical-protocol" ]
     ] )
  ] ; # 
  fhir:status [ fhir:v "draft"] ; # 
  fhir:publisher [ fhir:v "HL7 International / Clinical Decision Support"] ; # 
  fhir:contact ( [
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "http://www.hl7.org/Special/committees/dss" ]
     ] )
  ] ) ; # 
  fhir:description [ fhir:v "Obesity Assessment Protocol"] ; # 
  fhir:useContext ( [
     fhir:code [
       fhir:code [ fhir:v "focus" ]
     ] ;
     fhir:value [
       a fhir:CodeableConcept ;
       fhir:coding ( [
         a sct:414916001 ;
         fhir:system [
           fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
           fhir:l <http://snomed.info/sct>
         ] ;
         fhir:code [ fhir:v "414916001" ] ;
         fhir:display [ fhir:v "Obesity (disorder)" ]
       ] )
     ]
  ] ) ; # 
  fhir:purpose [ fhir:v "Example of A medical algorithm for assessment and treatment of overweight and obesity"] ; # 
  fhir:author ( [
     fhir:name [ fhir:v "National Heart, Lung, and Blood Institute" ] ;
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "https://www.nhlbi.nih.gov/health-pro/guidelines" ]
     ] )
  ] ) ; # 
  fhir:relatedArtifact ( [
     fhir:type [ fhir:v "derived-from" ] ;
     fhir:display [ fhir:v "Overweight and Obesity Treatment Guidelines" ] ;
     fhir:document [
       fhir:url [
         fhir:v "http://www.nhlbi.nih.gov/health-pro/guidelines/current/obesity-guidelines/e_textbook/txgd/algorthm/algorthm.htm"^^xsd:anyURI ;
         fhir:l <http://www.nhlbi.nih.gov/health-pro/guidelines/current/obesity-guidelines/e_textbook/txgd/algorthm/algorthm.htm>
       ]
     ]
  ] ) ; # 
  fhir:goal ( [
     fhir:id [ fhir:v "reduce-bmi-ratio" ] ;
     fhir:category [
       fhir:text [ fhir:v "Treatment" ]
     ] ;
     fhir:description [
       fhir:text [ fhir:v "Reduce BMI to below 25" ]
     ] ;
     fhir:priority [
       fhir:text [ fhir:v "medium-priority" ]
     ] ;
     fhir:start [
       fhir:text [ fhir:v "When the patient's BMI Ratio is at or above 25" ]
     ] ;
     fhir:addresses ( [
       fhir:coding ( [
         a sct:414916001 ;
         fhir:system [
           fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
           fhir:l <http://snomed.info/sct>
         ] ;
         fhir:code [ fhir:v "414916001" ] ;
         fhir:display [ fhir:v "Obesity (disorder)" ]
       ] )
     ] ) ;
     fhir:documentation ( [
       fhir:type [ fhir:v "justification" ] ;
       fhir:display [ fhir:v "Evaluation and Treatment Strategy" ] ;
       fhir:document [
         fhir:url [
           fhir:v "https://www.nhlbi.nih.gov/health-pro/guidelines/current/obesity-guidelines/e_textbook/txgd/42.htm"^^xsd:anyURI ;
           fhir:l <https://www.nhlbi.nih.gov/health-pro/guidelines/current/obesity-guidelines/e_textbook/txgd/42.htm>
         ]
       ]
     ] ) ;
     fhir:target ( [
       fhir:measure [
         fhir:coding ( [
           a loinc:39156-5 ;
           fhir:system [
             fhir:v "http://loinc.org"^^xsd:anyURI ;
             fhir:l <http://loinc.org>
           ] ;
           fhir:code [ fhir:v "39156-5" ] ;
           fhir:display [ fhir:v "Body mass index (BMI) [Ratio]" ]
         ] )
       ] ;
       fhir:detail [
         a fhir:Range ;
         fhir:high [
           fhir:value [ fhir:v 24.9 ] ;
           fhir:unit [ fhir:v "kg/m2" ]
         ]
       ] ;
       fhir:due [
         fhir:value [ fhir:v "1"^^xsd:decimal ] ;
         fhir:unit [ fhir:v "a" ]
       ]
     ] )
  ] ) ; # 
  fhir:action ( [
     fhir:title [ fhir:v "Measure BMI" ] ;
     fhir:description [ fhir:v "Measure, Weight, Height, Waist, Circumference; Calculate BMI" ] ;
     fhir:textEquivalent [ fhir:v "Weight must be measured so that the BMI can be calculated. Most charts are based on weights obtained with the patient wearing undergarments and no shoes. BMI can be manually calculated (kg/[height in meters]2), but is more easily obtained from a nomogram. Waist circumference is important because evidence suggests that abdominal fat is a particularly strong determinant of cardiovascular risk in those with a BMI of 25 to 34.9 kg/m2. Increased waist circumference can also be a marker of increased risk even in persons of normal weight. The technique for measuring waist circumference is described in the text. A nutrition assessment will also help to assess the diet and physical activity habits of overweight patients" ] ;
     fhir:goalId ( [ fhir:v "reduce-bmi-ratio" ] ) ;
     fhir:condition ( [
       fhir:kind [ fhir:v "applicability" ] ;
       fhir:expression [
         fhir:description [ fhir:v "The practitioner must seek to determine whether the patient has ever been overweight. While a technical definition is provided, a simple question such as 'Have you ever been overweight?' will accomplish the same goal. Questions directed towards weight history, dietary habits, physical activities, and medications may provide useful information about the origins of obesity in particular patients.  For those who have not been overweight, a 2 year interval is appropriate for the reassessment of BMI. While this time span is not evidence-based, it is believed to be a reasonable compromise between the need to identify weight gain at an early stage and the need to limit the time, effort, and cost of repeated measurements." ] ;
         fhir:language [ fhir:v "text/cql-identifier" ] ;
         fhir:expression [ fhir:v "exists ([Condition: Obesity]) or not exists ([Observation: BMI] O where O.effectiveDateTime 2 years or less before Today())" ]
       ]
     ] ) ;
     fhir:requiredBehavior [ fhir:v "must-unless-documented" ] ;
     fhir:cardinalityBehavior [ fhir:v "single" ] ;
     fhir:definition [
       a fhir:Canonical ;
       fhir:v "#procedure"^^xsd:anyURI ;
       fhir:l <#procedure>
     ]
  ] ) . # 

# -------------------------------------------------------------------------------------

