@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/PlanDefinition/rmd-sully-rule1> a fhir:PlanDefinition ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "rmd-sully-rule1"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "http://resmed.com/fhir/core/StructureDefinition/rmd-rule-plandefinition"^^xsd:anyURI ;
       fhir:link <http://resmed.com/fhir/core/StructureDefinition/rmd-rule-plandefinition>
     ] )
  ] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative: PlanDefinition</b><a name=\"rmd-sully-rule1\"> </a></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 PlanDefinition &quot;rmd-sully-rule1&quot; </p><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-rmd-rule-plandefinition.html\">ResMed Rule Instance PlanDefinition</a></p></div><p><b>url</b>: <code>http://resmed.com/fhir/core/PlanDefinition/rmd-sully-rule1</code></p><p><b>version</b>: 0.37.0</p><p><b>name</b>: TidalVolumetBelowMlofMedianforConsecutiveDays</p><p><b>type</b>: Rule Instance <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"CodeSystem-resmed-plandefinition-type-identifier-code-system.html\">ResMed Plan Definition Type Identifier CodeSystem</a>#rule)</span></p><p><b>status</b>: active</p><p><b>date</b>: 2024-01-11 18:32:48+0000</p><p><b>publisher</b>: ResMed Corp</p><p><b>contact</b>: ResMed Corp: <a href=\"https://www.resmed.com\">https://www.resmed.com</a>,<a href=\"mailto:atomteam-halifax@resmed.com\">atomteam-halifax@resmed.com</a></p><h3>UseContexts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Code</b></td><td><b>Value[x]</b></td></tr><tr><td style=\"display: none\">*</td><td>Program (Details: http://terminology.hl7.org/CodeSystem/usage-context-type code program = 'Program', stated as 'null')</td><td>airview-compliance-engine <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"CodeSystem-resmed-rule-implementer-identifier-code-system.html\">ResMed Rule Implementer Identifier CodeSystem</a>#ACE)</span></td></tr></table><p><b>jurisdiction</b>: Global (Whole world) <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (m49.htm#001)</span></p><blockquote><p><b>action</b></p><blockquote><p><b>trigger</b></p><p><b>type</b>: data-added</p><blockquote><p><b>data</b></p><table class=\"grid\"><tr><td colspan=\"2\"><b>Type</b>: <a href=\"http://hl7.org/fhir/R4/observation.html\">Observation</a></td></tr></table></blockquote><blockquote><p><b>condition</b></p><p><span title=\"application/x.rmd-ace+json\"><code>{\n          &quot;name&quot;: &quot;TidalVolumeBelowMlofMedianforConsecutiveDays&quot;,\n          &quot;ruleId&quot;: &quot;37fc6546-b750-413f-88b7-3877ad0bd099&quot;,\n          &quot;operator&quot;: &quot;=&quot;,\n          &quot;enabled&quot;: false,\n          &quot;alertName&quot;: &quot;TidalVolume_Median_Abnormal&quot;,\n          &quot;days&quot;: 2,\n          &quot;isMedianRule&quot;: true\n        }</code></span></p></blockquote></blockquote></blockquote></div>"
  ] ; # 
  fhir:url [ fhir:v "http://resmed.com/fhir/core/PlanDefinition/rmd-sully-rule1"^^xsd:anyURI] ; # 
  fhir:version [ fhir:v "0.37.0"] ; # 
  fhir:name [ fhir:v "TidalVolumetBelowMlofMedianforConsecutiveDays"] ; # 
  fhir:type [
     fhir:coding ( [
       fhir:system [ fhir:v "http://terminology.resmed.com/CodeSystem/resmed-plandefinition-type-identifier"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "rule" ]
     ] )
  ] ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:date [ fhir:v "2024-01-11T18:32:48+00:00"^^xsd:dateTime] ; # 
  fhir:publisher [ fhir:v "ResMed Corp"] ; # 
  fhir:contact ( [
     fhir:name [ fhir:v "ResMed Corp" ] ;
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "https://www.resmed.com" ]
     ] [
       fhir:system [ fhir:v "email" ] ;
       fhir:value [ fhir:v "atomteam-halifax@resmed.com" ]
     ] )
  ] ) ; # 
  fhir:useContext ( [
     fhir:code [
       fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/usage-context-type"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "program" ]
     ] ;
     fhir:value [
       a fhir:CodeableConcept ;
       fhir:coding ( [
         fhir:system [ fhir:v "http://terminology.resmed.com/CodeSystem/resmed-rule-implementer-identifier"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "ACE" ]
       ] )
     ]
  ] ) ; # 
  fhir:jurisdiction ( [
     fhir:coding ( [
       fhir:system [ fhir:v "http://unstats.un.org/unsd/methods/m49/m49.htm"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "001" ]
     ] )
  ] ) ; # 
  fhir:action ( [
     fhir:trigger ( [
       fhir:type [ fhir:v "data-added" ] ;
       fhir:data ( [
         fhir:type [ fhir:v "Observation" ]
       ] ) ;
       fhir:condition [
         fhir:language [ fhir:v "application/x.rmd-ace+json" ] ;
         fhir:expression [ fhir:v "{\n          \"name\": \"TidalVolumeBelowMlofMedianforConsecutiveDays\",\n          \"ruleId\": \"37fc6546-b750-413f-88b7-3877ad0bd099\",\n          \"operator\": \"=\",\n          \"enabled\": false,\n          \"alertName\": \"TidalVolume_Median_Abnormal\",\n          \"days\": 2,\n          \"isMedianRule\": true\n        }" ]
       ]
     ] )
  ] ) . # 

# -------------------------------------------------------------------------------------

