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

<Task xmlns="http://hl7.org/fhir">
  <id value="event-rf-scenario4"/>
  <meta>
    <profile value="http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-reportflagtask"/>
    <profile value="http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-task"/>
  </meta>
  <language value="en"/>
  <text>
    <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: Task event-rf-scenario4</b></p><a name="event-rf-scenario4"> </a><a name="hcevent-rf-scenario4"> </a><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"/><p style="margin-bottom: 0px">Profiles: <a href="StructureDefinition-cpg-reportflagtask.html">CPG Report Flag Task</a>, <a href="StructureDefinition-cpg-task.html">CPG Task</a></p></div><p><b>instantiatesCanonical</b>: <a href="ActivityDefinition-activity-example-reportflag-ad.html">Activity Example Report Flag AD</a></p><p><b>status</b>: Completed</p><p><b>intent</b>: order</p><p><b>code</b>: <span title="Codes:{http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-activity-type-cs report-flag}">Report a flag</span></p><p><b>for</b>: <a href="Patient-rf-scenario4-patient.html">Example Patient Female, DoB: 1990-10-01</a></p><h3>Inputs</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Type</b></td><td><b>Value[x]</b></td></tr><tr><td style="display: none">*</td><td><span title="Codes:{http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-activity-type-cs report-flag}">Report a flag</span></td><td><a href="#hcevent-rf-scenario4/flag">Flag </a></td></tr></table><h3>Outputs</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Type</b></td><td><b>Value[x]</b></td></tr><tr><td style="display: none">*</td><td><span title="Codes:{http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-activity-type-cs report-flag}">Report a flag</span></td><td><a href="Flag-rf-scenario4.html">Flag </a></td></tr></table><hr/><blockquote><p class="res-header-id"><b>Generated Narrative: Flag #flag</b></p><a name="event-rf-scenario4/flag"> </a><a name="hcevent-rf-scenario4/flag"> </a><p><b>status</b>: Active</p><p><b>category</b>: <span title="Codes:{http://terminology.hl7.org/CodeSystem/flag-category admin}">Administrative</span></p><p><b>code</b>: <span title="Codes:">Flag</span></p><p><b>subject</b>: <a href="Patient-rf-scenario4-patient.html">Example Patient Female, DoB: 1990-10-01</a></p></blockquote></div>
  </text>
  <contained>
    <Flag>
      <id value="flag"/>
      <status value="active"/>
      <category>
        <coding>
          <system value="http://terminology.hl7.org/CodeSystem/flag-category"/>
          <code value="admin"/>
          <display value="Administrative"/>
        </coding>
      </category>
      <code>
        <text value="Flag"/>
      </code>
      <subject>
        <reference value="Patient/rf-scenario4-patient"/>
      </subject>
    </Flag>
  </contained>
  <instantiatesCanonical value="http://hl7.org/fhir/uv/cpg/ActivityDefinition/activity-example-reportflag-ad"/>
  <status value="completed"/>
  <intent value="order"/>
  <code>
    <coding>
      <system value="http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-activity-type-cs"/>
      <code value="report-flag"/>
      <display value="Report a flag"/>
    </coding>
  </code>
  <for>
    <reference value="Patient/rf-scenario4-patient"/>
  </for>
  <input>
    <type>
      <coding>
        <system value="http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-activity-type-cs"/>
        <code value="report-flag"/>
        <display value="Report a flag"/>
      </coding>
    </type>
    <valueReference>
      <reference value="#flag"/>
    </valueReference>
  </input>
  <output>
    <type>
      <coding>
        <system value="http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-activity-type-cs"/>
        <code value="report-flag"/>
        <display value="Report a flag"/>
      </coding>
    </type>
    <valueReference>
      <reference value="Flag/rf-scenario4"/>
    </valueReference>
  </output>
</Task>