@prefix fhir: <http://hl7.org/fhir/> .
@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://fhir.qualityregistry.org/ObservationDefinition/self-reported-glucose-assessment> a fhir:ObservationDefinition ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "self-reported-glucose-assessment"] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>Criteria for assessing a self-reported glucose reading (SNOMED CT 33747003), in mmol/L. Each band includes its lower bound and excludes its upper bound.</p><table class=\"grid\"><tr><th>Glucose (mmol/L)</th><th>Interpretation</th><th>Meaning</th></tr><tr><td>&lt; 4.0</td><td>L Low</td><td>Below optimal level, risk of hypoglycemia</td></tr><tr><td>&#8805; 4.0 and &lt; 7.0</td><td>N Normal (reference range)</td><td>Optimal level</td></tr><tr><td>&#8805; 7.0 and &lt; 10.0</td><td>H High</td><td>Above optimal level</td></tr><tr><td>&#8805; 10.0</td><td>HU Significantly high</td><td>Above recommended level</td></tr></table></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:url [ fhir:v "http://fhir.qualityregistry.org/ObservationDefinition/self-reported-glucose-assessment"^^xsd:anyURI] ; # 
  fhir:name [ fhir:v "SelfReportedGlucoseAssessment"] ; # 
  fhir:title [ fhir:v "Self-Reported Glucose Assessment"] ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:experimental [ fhir:v false] ; # 
  fhir:description [ fhir:v "The criteria the registry applies to a self-reported glucose reading to set its Observation.interpretation. Each band includes its lower bound and excludes its upper bound.\n\n| Glucose (mmol/L) | Interpretation | Meaning |\n| --- | --- | --- |\n| < 4.0 | L Low | Below optimal level, risk of hypoglycemia |\n| ≥ 4.0 and < 7.0 | N Normal | Optimal level |\n| ≥ 7.0 and < 10.0 | H High | Above optimal level |\n| ≥ 10.0 | HU Significantly high | Above recommended level |"] ; # 
  fhir:code [
     fhir:coding ( [
       a sct:33747003 ;
       fhir:system [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "33747003" ] ;
       fhir:display [ fhir:v "Glucose measurement, blood (procedure)" ]
     ] )
  ] ; # 
  fhir:permittedDataType ( [ fhir:v "Quantity"] ) ; # 
  fhir:permittedUnit ( [
     fhir:system [ fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ] ;
     fhir:code [ fhir:v "mmol/L" ] ;
     fhir:display [ fhir:v "millimole per liter" ]
  ] ) ; # 
  fhir:qualifiedValue ( [
     fhir:extension ( [
       fhir:url [ fhir:v "http://fhir.qualityregistry.org/StructureDefinition/qualified-value-interpretation-ext"^^xsd:anyURI ] ;
       fhir:value [
         a fhir:CodeableConcept ;
         fhir:coding ( [
           fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation"^^xsd:anyURI ] ;
           fhir:code [ fhir:v "L" ] ;
           fhir:display [ fhir:v "Low" ]
         ] ) ;
         fhir:text [ fhir:v "Below optimal level, risk of hypoglycemia" ]
       ]
     ] ) ;
     fhir:range [
       fhir:high [
         fhir:value [ fhir:v "4"^^xsd:decimal ] ;
         fhir:unit [ fhir:v "mmol/L" ] ;
         fhir:system [ fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "mmol/L" ]
       ]
     ]
  ] [
     fhir:extension ( [
       fhir:url [ fhir:v "http://fhir.qualityregistry.org/StructureDefinition/qualified-value-interpretation-ext"^^xsd:anyURI ] ;
       fhir:value [
         a fhir:CodeableConcept ;
         fhir:coding ( [
           fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation"^^xsd:anyURI ] ;
           fhir:code [ fhir:v "N" ] ;
           fhir:display [ fhir:v "Normal" ]
         ] ) ;
         fhir:text [ fhir:v "Optimal level" ]
       ]
     ] ) ;
     fhir:rangeCategory [ fhir:v "reference" ] ;
     fhir:range [
       fhir:low [
         fhir:value [ fhir:v "4"^^xsd:decimal ] ;
         fhir:unit [ fhir:v "mmol/L" ] ;
         fhir:system [ fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "mmol/L" ]
       ] ;
       fhir:high [
         fhir:value [ fhir:v "7"^^xsd:decimal ] ;
         fhir:unit [ fhir:v "mmol/L" ] ;
         fhir:system [ fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "mmol/L" ]
       ]
     ]
  ] [
     fhir:extension ( [
       fhir:url [ fhir:v "http://fhir.qualityregistry.org/StructureDefinition/qualified-value-interpretation-ext"^^xsd:anyURI ] ;
       fhir:value [
         a fhir:CodeableConcept ;
         fhir:coding ( [
           fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation"^^xsd:anyURI ] ;
           fhir:code [ fhir:v "H" ] ;
           fhir:display [ fhir:v "High" ]
         ] ) ;
         fhir:text [ fhir:v "Above optimal level" ]
       ]
     ] ) ;
     fhir:range [
       fhir:low [
         fhir:value [ fhir:v "7"^^xsd:decimal ] ;
         fhir:unit [ fhir:v "mmol/L" ] ;
         fhir:system [ fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "mmol/L" ]
       ] ;
       fhir:high [
         fhir:value [ fhir:v "10"^^xsd:decimal ] ;
         fhir:unit [ fhir:v "mmol/L" ] ;
         fhir:system [ fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "mmol/L" ]
       ]
     ]
  ] [
     fhir:extension ( [
       fhir:url [ fhir:v "http://fhir.qualityregistry.org/StructureDefinition/qualified-value-interpretation-ext"^^xsd:anyURI ] ;
       fhir:value [
         a fhir:CodeableConcept ;
         fhir:coding ( [
           fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation"^^xsd:anyURI ] ;
           fhir:code [ fhir:v "HU" ] ;
           fhir:display [ fhir:v "Significantly high" ]
         ] ) ;
         fhir:text [ fhir:v "Above recommended level" ]
       ]
     ] ) ;
     fhir:range [
       fhir:low [
         fhir:value [ fhir:v "10"^^xsd:decimal ] ;
         fhir:unit [ fhir:v "mmol/L" ] ;
         fhir:system [ fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "mmol/L" ]
       ]
     ]
  ] ) . # 

# -------------------------------------------------------------------------------------

