<?xml version="1.0" encoding="UTF-8"?>

<Provenance xmlns="http://hl7.org/fhir">
  <id value="alertCleared"/>
  <meta>
    <profile value="http://resmed.com/fhir/core/StructureDefinition/patient-alert-raised"/>
  </meta>
  <text>
    <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p><b>Generated Narrative: Provenance</b><a name="alertCleared"> </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;alertCleared&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>: Cleared <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>#ALERTCLEARED)</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: DetectedIssue/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: DetectedIssue/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>
  </text>
  <contained>
    <DetectedIssue>
      <id value="containedAHIAlert"/>
      <meta>
        <profile value="http://resmed.com/fhir/core/StructureDefinition/contained-detected-issue"/>
      </meta>
      <identifier>
        <value value="DetectedIssue/patient-ECN1234/TherapyNotification_AHI"/>
      </identifier>
      <status value="preliminary"/>
      <code>
        <coding>
          <system value="http://terminology.resmed.com/CodeSystem/detectedissue-category"/>
          <code value="TherapyNotification_AHI"/>
        </coding>
      </code>
      <detail value="{&quot;Leak&quot;: 1234}"/>
    </DetectedIssue>
  </contained>
  <target>
    <reference value="Patient/patient-ECN1234"/>
  </target>
  <recorded value="2021-01-01T09:34:00Z"/>
  <reason>
    <coding>
      <system value="http://terminology.hl7.org/CodeSystem/v3-ActReason"/>
      <code value="COC"/>
    </coding>
  </reason>
  <activity>
    <coding>
      <system value="http://terminology.resmed.com/CodeSystem/provenance-activity-type"/>
      <code value="ALERTCLEARED"/>
      <display value="Cleared"/>
    </coding>
  </activity>
  <agent>
    <type>
      <coding>
        <system value="http://terminology.hl7.org/CodeSystem/v3-ParticipationType"/>
        <code value="PRF"/>
      </coding>
    </type>
    <role>
      <coding>
        <system value="http://terminology.hl7.org/CodeSystem/v3-RoleClass"/>
        <code value="PROV"/>
      </coding>
    </role>
    <who>
      <reference value="Device/device-ACE-example"/>
    </who>
  </agent>
  <entity>
    <role value="source"/>
    <what>
      <reference value="#containedAHIAlert"/>
      <display value="Leak above 20% for 2 days in a row"/>
    </what>
  </entity>
</Provenance>