{
  "resourceType" : "Observation",
  "id" : "ruleoutcome-therapy-issue-with-base-narrative",
  "meta" : {
    "profile" : ["http://resmed.com/fhir/core/StructureDefinition/observation-rmd-patient-therapy-rule-outcome"]
  },
  "text" : {
    "status" : "generated",
    "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>"
  },
  "basedOn" : [{
    "reference" : "ServiceRequest/sully-rule-instance2"
  }],
  "status" : "final",
  "category" : [{
    "coding" : [{
      "system" : "http://terminology.resmed.com/CodeSystem/resmed-observation-category-code-system",
      "code" : "rule-outcome"
    }]
  },
  {
    "coding" : [{
      "system" : "http://terminology.hl7.org/CodeSystem/observation-category",
      "code" : "therapy"
    }]
  }],
  "code" : {
    "coding" : [{
      "system" : "http://resmed.com/fhir/core/CodeSystem/rmd-ruleOutcomeTypes-cs",
      "code" : "therapy-rule-scored"
    }]
  },
  "subject" : {
    "reference" : "Patient/patient-example"
  },
  "effectiveDateTime" : "2021-12-07T12:00:00Z",
  "issued" : "2021-12-07T11:59:00Z",
  "interpretation" : [{
    "coding" : [{
      "system" : "http://resmed.com/fhir/core/CodeSystem/rmd-therapyRuleOutcomeInterpretations-cs",
      "code" : "issue-active"
    }]
  }],
  "device" : {
    "reference" : "Device/device-ACE-example"
  },
  "component" : [{
    "code" : {
      "coding" : [{
        "system" : "http://resmed.com/fhir/core/CodeSystem/rmd-ruleOutcomeComponent-cs",
        "code" : "clinical-metric"
      }]
    },
    "valueCodeableConcept" : {
      "coding" : [{
        "system" : "http://terminology.resmed.com/CodeSystem/resmed-observation-metrics-code-system",
        "code" : "apnea-hypopnea-index"
      }]
    }
  },
  {
    "code" : {
      "coding" : [{
        "system" : "http://resmed.com/fhir/core/CodeSystem/rmd-ruleOutcomeComponent-cs",
        "code" : "statistic"
      }]
    },
    "valueCodeableConcept" : {
      "coding" : [{
        "system" : "http://terminology.resmed.com/CodeSystem/resmed-statistics-code-system",
        "code" : "centile-50"
      }]
    }
  },
  {
    "code" : {
      "coding" : [{
        "system" : "http://resmed.com/fhir/core/CodeSystem/rmd-ruleOutcomeComponent-cs",
        "code" : "threshold"
      }]
    },
    "valueQuantity" : {
      "value" : 10,
      "unit" : "events/hour",
      "system" : "http://unitsofmeasure.org",
      "code" : "/h"
    }
  },
  {
    "code" : {
      "coding" : [{
        "system" : "http://resmed.com/fhir/core/CodeSystem/rmd-ruleOutcomeComponent-cs",
        "code" : "comparison-operator"
      }]
    },
    "valueCodeableConcept" : {
      "coding" : [{
        "system" : "http://hl7.org/fhir/quantity-comparator",
        "code" : ">"
      }]
    }
  },
  {
    "code" : {
      "coding" : [{
        "system" : "http://resmed.com/fhir/core/CodeSystem/rmd-ruleOutcomeComponent-cs",
        "code" : "evaluation-period"
      }]
    },
    "valueQuantity" : {
      "value" : 5,
      "unit" : "day",
      "system" : "http://unitsofmeasure.org",
      "code" : "d"
    }
  },
  {
    "code" : {
      "coding" : [{
        "system" : "http://resmed.com/fhir/core/CodeSystem/rmd-ruleOutcomeComponent-cs",
        "code" : "evaluations"
      }]
    },
    "valueInteger" : 5
  },
  {
    "code" : {
      "coding" : [{
        "system" : "http://resmed.com/fhir/core/CodeSystem/rmd-ruleOutcomeComponent-cs",
        "code" : "period"
      }]
    },
    "valueQuantity" : {
      "value" : 90,
      "unit" : "day",
      "system" : "http://unitsofmeasure.org",
      "code" : "d"
    }
  }]
}