{
  "resourceType" : "Provenance",
  "id" : "alertRaised",
  "meta" : {
    "profile" : ["http://resmed.com/fhir/core/StructureDefinition/patient-alert-raised"]
  },
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative: Provenance</b><a name=\"alertRaised\"> </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 Provenance &quot;alertRaised&quot; </p><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-patient-alert-raised.html\">Patient Alert Raised Provenance</a></p></div><p><b>target</b>: <a href=\"Patient-patient-ECN1234.html\">Patient/patient-ECN1234</a></p><p><b>recorded</b>: Jan 1, 2021, 9:34:00 AM</p><p><b>reason</b>: coordination of care <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"http://terminology.hl7.org/5.0.0/CodeSystem-v3-ActReason.html\">ActReason</a>#COC)</span></p><p><b>activity</b>: Raised <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"CodeSystem-resmed-provenance-activity-type-code-system.html\">ResMed Provenance activity type CodeSystem</a>#ALERTRAISED)</span></p><h3>Agents</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Type</b></td><td><b>Role</b></td><td><b>Who</b></td></tr><tr><td style=\"display: none\">*</td><td>performer <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"http://terminology.hl7.org/5.0.0/CodeSystem-v3-ParticipationType.html\">ParticipationType</a>#PRF)</span></td><td>healthcare provider <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"http://terminology.hl7.org/5.0.0/CodeSystem-v3-RoleClass.html\">RoleClass</a>#PROV)</span></td><td><a href=\"Device-device-ACE-example.html\">Device/device-ACE-example</a></td></tr></table><h3>Entities</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Role</b></td><td><b>What</b></td></tr><tr><td style=\"display: none\">*</td><td>source</td><td><a name=\"containedAHIAlert\"> </a><blockquote><p/><p><a name=\"containedAHIAlert\"> </a></p><p><b>identifier</b>: id:\u00a0DetectedIssue/patient-ECN1234/TherapyNotification_AHI</p><p><b>status</b>: preliminary</p><p><b>code</b>: TherapyNotification_AHI <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"CodeSystem-resmed-detected-issue-code-code-system.html\">ResMed DetectedIssue code CodeSystem</a>#TherapyNotification_AHI)</span></p><p><b>detail</b>: {&quot;Leak&quot;: 1234}</p></blockquote></td></tr></table><hr/><blockquote><p><b>Generated Narrative: DetectedIssue #containedAHIAlert</b><a name=\"containedAHIAlert\"> </a></p><p><b>identifier</b>: id:\u00a0DetectedIssue/patient-ECN1234/TherapyNotification_AHI</p><p><b>status</b>: preliminary</p><p><b>code</b>: TherapyNotification_AHI <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"CodeSystem-resmed-detected-issue-code-code-system.html\">ResMed DetectedIssue code CodeSystem</a>#TherapyNotification_AHI)</span></p><p><b>detail</b>: {&quot;Leak&quot;: 1234}</p></blockquote></div>"
  },
  "contained" : [{
    "resourceType" : "DetectedIssue",
    "id" : "containedAHIAlert",
    "meta" : {
      "profile" : ["http://resmed.com/fhir/core/StructureDefinition/contained-detected-issue"]
    },
    "identifier" : [{
      "value" : "DetectedIssue/patient-ECN1234/TherapyNotification_AHI"
    }],
    "status" : "preliminary",
    "code" : {
      "coding" : [{
        "system" : "http://terminology.resmed.com/CodeSystem/detectedissue-category",
        "code" : "TherapyNotification_AHI"
      }]
    },
    "detail" : "{\"Leak\": 1234}"
  }],
  "target" : [{
    "reference" : "Patient/patient-ECN1234"
  }],
  "recorded" : "2021-01-01T09:34:00Z",
  "reason" : [{
    "coding" : [{
      "system" : "http://terminology.hl7.org/CodeSystem/v3-ActReason",
      "code" : "COC"
    }]
  }],
  "activity" : {
    "coding" : [{
      "system" : "http://terminology.resmed.com/CodeSystem/provenance-activity-type",
      "code" : "ALERTRAISED",
      "display" : "Raised"
    }]
  },
  "agent" : [{
    "type" : {
      "coding" : [{
        "system" : "http://terminology.hl7.org/CodeSystem/v3-ParticipationType",
        "code" : "PRF"
      }]
    },
    "role" : [{
      "coding" : [{
        "system" : "http://terminology.hl7.org/CodeSystem/v3-RoleClass",
        "code" : "PROV"
      }]
    }],
    "who" : {
      "reference" : "Device/device-ACE-example"
    }
  }],
  "entity" : [{
    "role" : "source",
    "what" : {
      "reference" : "#containedAHIAlert",
      "display" : "Leak above 20% for 2 days in a row"
    }
  }]
}