@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/phq9-severity-assessment> a fhir:ObservationDefinition ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "phq9-severity-assessment"] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>Criteria for assessing the severity a Patient Health Questionnaire-9 (PHQ-9) score (SNOMED CT 720433000) indicates. The score is a whole number from 0 to 27, in the UCUM unit {score}. Each band includes its lower bound and excludes its upper bound; the table lists the scores each band holds.</p><table class=\"grid\"><tr><th>PHQ-9 score</th><th>Interpretation</th><th>Meaning</th></tr><tr><td>0&#8211;4</td><td>371928007 Not significant (reference range)</td><td>Minimal depression</td></tr><tr><td>5&#8211;9</td><td>255604002 Mild</td><td>Mild depression</td></tr><tr><td>10&#8211;14</td><td>1255665007 Moderate</td><td>Moderate depression</td></tr><tr><td>15&#8211;19</td><td>371924009 Moderate to severe</td><td>Moderately severe depression</td></tr><tr><td>20&#8211;27</td><td>24484000 Severe</td><td>Severe depression</td></tr></table></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:url [ fhir:v "http://fhir.qualityregistry.org/ObservationDefinition/phq9-severity-assessment"^^xsd:anyURI] ; # 
  fhir:name [ fhir:v "Phq9SeverityAssessment"] ; # 
  fhir:title [ fhir:v "PHQ-9 Severity Assessment"] ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:experimental [ fhir:v false] ; # 
  fhir:description [ fhir:v "The criteria the registry applies to a Patient Health Questionnaire-9 (PHQ-9) score to set its Observation.interpretation. The bands follow the PHQ-9 depression severity thresholds of 5, 10, 15 and 20: minimal depression maps to not significant and moderately severe depression to moderate to severe. The score is a whole number from 0 to 27, carried in valueQuantity with the UCUM unit {score}. As in every definition of this guide, each band includes its lower bound and excludes its upper bound, so for a whole-number score the band from n to n + 1 holds the single score n; the table lists the scores each band holds. A score outside 0 to 27 falls in no band and receives no interpretation.\n\n| PHQ-9 score | Interpretation | Meaning |\n| --- | --- | --- |\n| 0–4 | 371928007 Not significant | Minimal depression |\n| 5–9 | 255604002 Mild | Mild depression |\n| 10–14 | 1255665007 Moderate | Moderate depression |\n| 15–19 | 371924009 Moderate to severe | Moderately severe depression |\n| 20–27 | 24484000 Severe | Severe depression |"] ; # 
  fhir:code [
     fhir:coding ( [
       a sct:720433000 ;
       fhir:system [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "720433000" ] ;
       fhir:display [ fhir:v "Patient Health Questionnaire Nine Item score (observable entity)" ]
     ] )
  ] ; # 
  fhir:permittedDataType ( [ fhir:v "Quantity"] ) ; # 
  fhir:permittedUnit ( [
     fhir:system [ fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ] ;
     fhir:code [ fhir:v "{score}" ] ;
     fhir:display [ fhir:v "{score}" ]
  ] ) ; # 
  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 ( [
           a sct:371928007 ;
           fhir:system [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ] ;
           fhir:code [ fhir:v "371928007" ] ;
           fhir:display [ fhir:v "Not significant (qualifier value)" ]
         ] ) ;
         fhir:text [ fhir:v "Minimal depression" ]
       ]
     ] ) ;
     fhir:rangeCategory [ fhir:v "reference" ] ;
     fhir:range [
       fhir:low [
         fhir:value [ fhir:v "0"^^xsd:decimal ] ;
         fhir:unit [ fhir:v "{score}" ] ;
         fhir:system [ fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "{score}" ]
       ] ;
       fhir:high [
         fhir:value [ fhir:v "5"^^xsd:decimal ] ;
         fhir:unit [ fhir:v "{score}" ] ;
         fhir:system [ fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "{score}" ]
       ]
     ]
  ] [
     fhir:extension ( [
       fhir:url [ fhir:v "http://fhir.qualityregistry.org/StructureDefinition/qualified-value-interpretation-ext"^^xsd:anyURI ] ;
       fhir:value [
         a fhir:CodeableConcept ;
         fhir:coding ( [
           a sct:255604002 ;
           fhir:system [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ] ;
           fhir:code [ fhir:v "255604002" ] ;
           fhir:display [ fhir:v "Mild (qualifier value)" ]
         ] ) ;
         fhir:text [ fhir:v "Mild depression" ]
       ]
     ] ) ;
     fhir:range [
       fhir:low [
         fhir:value [ fhir:v "5"^^xsd:decimal ] ;
         fhir:unit [ fhir:v "{score}" ] ;
         fhir:system [ fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "{score}" ]
       ] ;
       fhir:high [
         fhir:value [ fhir:v "10"^^xsd:decimal ] ;
         fhir:unit [ fhir:v "{score}" ] ;
         fhir:system [ fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "{score}" ]
       ]
     ]
  ] [
     fhir:extension ( [
       fhir:url [ fhir:v "http://fhir.qualityregistry.org/StructureDefinition/qualified-value-interpretation-ext"^^xsd:anyURI ] ;
       fhir:value [
         a fhir:CodeableConcept ;
         fhir:coding ( [
           a sct:1255665007 ;
           fhir:system [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ] ;
           fhir:code [ fhir:v "1255665007" ] ;
           fhir:display [ fhir:v "Moderate (qualifier value)" ]
         ] ) ;
         fhir:text [ fhir:v "Moderate depression" ]
       ]
     ] ) ;
     fhir:range [
       fhir:low [
         fhir:value [ fhir:v "10"^^xsd:decimal ] ;
         fhir:unit [ fhir:v "{score}" ] ;
         fhir:system [ fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "{score}" ]
       ] ;
       fhir:high [
         fhir:value [ fhir:v "15"^^xsd:decimal ] ;
         fhir:unit [ fhir:v "{score}" ] ;
         fhir:system [ fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "{score}" ]
       ]
     ]
  ] [
     fhir:extension ( [
       fhir:url [ fhir:v "http://fhir.qualityregistry.org/StructureDefinition/qualified-value-interpretation-ext"^^xsd:anyURI ] ;
       fhir:value [
         a fhir:CodeableConcept ;
         fhir:coding ( [
           a sct:371924009 ;
           fhir:system [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ] ;
           fhir:code [ fhir:v "371924009" ] ;
           fhir:display [ fhir:v "Moderate to severe (qualifier value)" ]
         ] ) ;
         fhir:text [ fhir:v "Moderately severe depression" ]
       ]
     ] ) ;
     fhir:range [
       fhir:low [
         fhir:value [ fhir:v "15"^^xsd:decimal ] ;
         fhir:unit [ fhir:v "{score}" ] ;
         fhir:system [ fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "{score}" ]
       ] ;
       fhir:high [
         fhir:value [ fhir:v "20"^^xsd:decimal ] ;
         fhir:unit [ fhir:v "{score}" ] ;
         fhir:system [ fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "{score}" ]
       ]
     ]
  ] [
     fhir:extension ( [
       fhir:url [ fhir:v "http://fhir.qualityregistry.org/StructureDefinition/qualified-value-interpretation-ext"^^xsd:anyURI ] ;
       fhir:value [
         a fhir:CodeableConcept ;
         fhir:coding ( [
           a sct:24484000 ;
           fhir:system [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ] ;
           fhir:code [ fhir:v "24484000" ] ;
           fhir:display [ fhir:v "Severe (severity modifier) (qualifier value)" ]
         ] ) ;
         fhir:text [ fhir:v "Severe depression" ]
       ]
     ] ) ;
     fhir:range [
       fhir:low [
         fhir:value [ fhir:v "20"^^xsd:decimal ] ;
         fhir:unit [ fhir:v "{score}" ] ;
         fhir:system [ fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "{score}" ]
       ] ;
       fhir:high [
         fhir:value [ fhir:v "28"^^xsd:decimal ] ;
         fhir:unit [ fhir:v "{score}" ] ;
         fhir:system [ fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "{score}" ]
       ]
     ]
  ] ) . # 

# -------------------------------------------------------------------------------------

