@prefix fhir: <http://hl7.org/fhir/> .
@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 -------------------------------------------------------------------

<http://resmed.com/fhir/core/Observation/ruleoutcome-therapy-issue-with-base-narrative> a fhir:Observation ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "ruleoutcome-therapy-issue-with-base-narrative"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "http://resmed.com/fhir/core/StructureDefinition/observation-rmd-patient-therapy-rule-outcome"^^xsd:anyURI ;
       fhir:link <http://resmed.com/fhir/core/StructureDefinition/observation-rmd-patient-therapy-rule-outcome>
     ] )
  ] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en-US\">AHI > 10 events/hour for 5 days in a row in the first 90 days.</div>"
  ] ; # 
  fhir:basedOn ( [
     fhir:link <http://resmed.com/fhir/core/ServiceRequest/sully-rule-instance2> ;
     fhir:reference [ fhir:v "ServiceRequest/sully-rule-instance2" ]
  ] ) ; # 
  fhir:status [ fhir:v "final"] ; # 
  fhir:category ( [
     fhir:coding ( [
       fhir:system [ fhir:v "http://terminology.resmed.com/CodeSystem/resmed-observation-category-code-system"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "rule-outcome" ]
     ] )
  ] [
     fhir:coding ( [
       fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/observation-category"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "therapy" ]
     ] )
  ] ) ; # 
  fhir:code [
     fhir:coding ( [
       fhir:system [ fhir:v "http://resmed.com/fhir/core/CodeSystem/rmd-ruleOutcomeTypes-cs"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "therapy-rule-scored" ]
     ] )
  ] ; # 
  fhir:subject [
     fhir:link <http://resmed.com/fhir/core/Patient/patient-example> ;
     fhir:reference [ fhir:v "Patient/patient-example" ]
  ] ; # 
  fhir:effective [ fhir:v "2021-12-07T12:00:00Z"^^xsd:dateTime] ; # 
  fhir:issued [ fhir:v "2021-12-07T11:59:00Z"^^xsd:dateTime] ; # 
  fhir:interpretation ( [
     fhir:coding ( [
       fhir:system [ fhir:v "http://resmed.com/fhir/core/CodeSystem/rmd-therapyRuleOutcomeInterpretations-cs"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "issue-active" ]
     ] )
  ] ) ; # 
  fhir:device [
     fhir:link <http://resmed.com/fhir/core/Device/device-ACE-example> ;
     fhir:reference [ fhir:v "Device/device-ACE-example" ]
  ] ; # 
  fhir:component ( [
     fhir:code [
       fhir:coding ( [
         fhir:system [ fhir:v "http://resmed.com/fhir/core/CodeSystem/rmd-ruleOutcomeComponent-cs"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "clinical-metric" ]
       ] )
     ] ;
     fhir:value [
       a fhir:CodeableConcept ;
       fhir:coding ( [
         fhir:system [ fhir:v "http://terminology.resmed.com/CodeSystem/resmed-observation-metrics-code-system"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "apnea-hypopnea-index" ]
       ] )
     ]
  ] [
     fhir:code [
       fhir:coding ( [
         fhir:system [ fhir:v "http://resmed.com/fhir/core/CodeSystem/rmd-ruleOutcomeComponent-cs"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "statistic" ]
       ] )
     ] ;
     fhir:value [
       a fhir:CodeableConcept ;
       fhir:coding ( [
         fhir:system [ fhir:v "http://terminology.resmed.com/CodeSystem/resmed-statistics-code-system"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "centile-50" ]
       ] )
     ]
  ] [
     fhir:code [
       fhir:coding ( [
         fhir:system [ fhir:v "http://resmed.com/fhir/core/CodeSystem/rmd-ruleOutcomeComponent-cs"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "threshold" ]
       ] )
     ] ;
     fhir:value [
       a fhir:Quantity ;
       fhir:value [ fhir:v "10"^^xsd:decimal ] ;
       fhir:unit [ fhir:v "events/hour" ] ;
       fhir:system [ fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "/h" ]
     ]
  ] [
     fhir:code [
       fhir:coding ( [
         fhir:system [ fhir:v "http://resmed.com/fhir/core/CodeSystem/rmd-ruleOutcomeComponent-cs"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "comparison-operator" ]
       ] )
     ] ;
     fhir:value [
       a fhir:CodeableConcept ;
       fhir:coding ( [
         fhir:system [ fhir:v "http://hl7.org/fhir/quantity-comparator"^^xsd:anyURI ] ;
         fhir:code [ fhir:v ">" ]
       ] )
     ]
  ] [
     fhir:code [
       fhir:coding ( [
         fhir:system [ fhir:v "http://resmed.com/fhir/core/CodeSystem/rmd-ruleOutcomeComponent-cs"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "evaluation-period" ]
       ] )
     ] ;
     fhir:value [
       a fhir:Quantity ;
       fhir:value [ fhir:v "5"^^xsd:decimal ] ;
       fhir:unit [ fhir:v "day" ] ;
       fhir:system [ fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "d" ]
     ]
  ] [
     fhir:code [
       fhir:coding ( [
         fhir:system [ fhir:v "http://resmed.com/fhir/core/CodeSystem/rmd-ruleOutcomeComponent-cs"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "evaluations" ]
       ] )
     ] ;
     fhir:value [ fhir:v "5"^^xsd:integer ]
  ] [
     fhir:code [
       fhir:coding ( [
         fhir:system [ fhir:v "http://resmed.com/fhir/core/CodeSystem/rmd-ruleOutcomeComponent-cs"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "period" ]
       ] )
     ] ;
     fhir:value [
       a fhir:Quantity ;
       fhir:value [ fhir:v "90"^^xsd:decimal ] ;
       fhir:unit [ fhir:v "day" ] ;
       fhir:system [ fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "d" ]
     ]
  ] ) . # 

# -------------------------------------------------------------------------------------

