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

<CodeSystem xmlns="http://hl7.org/fhir">
  <id value="task-code"/>
  <meta>
    <lastUpdated value="2019-11-01T09:29:23.356+11:00"/>
    <profile value="http://hl7.org/fhir/StructureDefinition/shareablecodesystem"/>
  </meta>
  <text>
    <status value="generated"/>
    <div xmlns="http://www.w3.org/1999/xhtml">
      <h2>Task Codes</h2>
      <div>
        <p>Codes indicating the type of action that is expected to be performed</p>

      </div>
      <p>This code system http://hl7.org/fhir/CodeSystem/task-code defines the following codes:</p>
      <table class="codes">
        <tr>
          <td style="white-space:nowrap">
            <b>Code</b>
          </td>
          <td>
            <b>Display</b>
          </td>
          <td>
            <b>Definition</b>
          </td>
        </tr>
        <tr>
          <td style="white-space:nowrap">approve
            <a name="task-code-approve"> </a>
          </td>
          <td>Activate/approve the focal resource</td>
          <td>Take what actions are needed to transition the focus resource from &#39;draft&#39; to &#39;active&#39; or &#39;in-progress&#39;, as appropriate for the resource type.  This may involve additing additional content, approval, validation, etc.</td>
        </tr>
        <tr>
          <td style="white-space:nowrap">fulfill
            <a name="task-code-fulfill"> </a>
          </td>
          <td>Fulfill the focal request</td>
          <td>Act to perform the actions defined in the focus request.  This might result in a &#39;more assertive&#39; request (order for a plan or proposal, filler order for a placer order), but is intend to eventually result in events.  The degree of fulfillment requested might be limited by Task.restriction.</td>
        </tr>
        <tr>
          <td style="white-space:nowrap">abort
            <a name="task-code-abort"> </a>
          </td>
          <td>Mark the focal resource as no longer active</td>
          <td>Abort, cancel or withdraw the focal resource, as appropriate for the type of resource.</td>
        </tr>
        <tr>
          <td style="white-space:nowrap">replace
            <a name="task-code-replace"> </a>
          </td>
          <td>Replace the focal resource with the input resource</td>
          <td>Replace the focal resource with the specified input resource</td>
        </tr>
        <tr>
          <td style="white-space:nowrap">change
            <a name="task-code-change"> </a>
          </td>
          <td>Change the focal resource</td>
          <td>Update the focal resource of the owning system to reflect the content specified as the Task.focus</td>
        </tr>
        <tr>
          <td style="white-space:nowrap">suspend
            <a name="task-code-suspend"> </a>
          </td>
          <td>Suspend the focal resource</td>
          <td>Transition the focal resource from &#39;active&#39; or &#39;in-progress&#39; to &#39;suspended&#39;</td>
        </tr>
        <tr>
          <td style="white-space:nowrap">resume
            <a name="task-code-resume"> </a>
          </td>
          <td>Re-activate the focal resource</td>
          <td>Transition the focal resource from &#39;suspended&#39; to &#39;active&#39; or &#39;in-progress&#39; as appropriate for the resource type.</td>
        </tr>
      </table>
    </div>
  </text>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
    <valueCode value="oo"/>
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
    <valueCode value="draft"/>
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm">
    <valueInteger value="1"/>
  </extension>
  <url value="http://hl7.org/fhir/CodeSystem/task-code"/>
  <identifier>
    <system value="urn:ietf:rfc:3986"/>
    <value value="urn:oid:2.16.840.1.113883.4.642.4.1397"/>
  </identifier>
  <version value="4.0.1"/>
  <name value="TaskCode"/>
  <title value="Task Codes"/>
  <status value="active"/>
  <experimental value="false"/>
  <publisher value="FHIR Project team"/>
  <contact>
    <telecom>
      <system value="url"/>
      <value value="http://hl7.org/fhir"/>
    </telecom>
  </contact>
  <description value="Codes indicating the type of action that is expected to be performed"/>
  <caseSensitive value="true"/>
  <valueSet value="http://hl7.org/fhir/ValueSet/task-code"/>
  <content value="complete"/>
  <concept>
    <code value="approve"/>
    <display value="Activate/approve the focal resource"/>
    <definition value="Take what actions are needed to transition the focus resource from &#39;draft&#39; to &#39;active&#39; or &#39;in-progress&#39;, as appropriate for the resource type.  This may involve additing additional content, approval, validation, etc."/>
  </concept>
  <concept>
    <code value="fulfill"/>
    <display value="Fulfill the focal request"/>
    <definition value="Act to perform the actions defined in the focus request.  This might result in a &#39;more assertive&#39; request (order for a plan or proposal, filler order for a placer order), but is intend to eventually result in events.  The degree of fulfillment requested might be limited by Task.restriction."/>
  </concept>
  <concept>
    <code value="abort"/>
    <display value="Mark the focal resource as no longer active"/>
    <definition value="Abort, cancel or withdraw the focal resource, as appropriate for the type of resource."/>
  </concept>
  <concept>
    <code value="replace"/>
    <display value="Replace the focal resource with the input resource"/>
    <definition value="Replace the focal resource with the specified input resource"/>
  </concept>
  <concept>
    <code value="change"/>
    <display value="Change the focal resource"/>
    <definition value="Update the focal resource of the owning system to reflect the content specified as the Task.focus"/>
  </concept>
  <concept>
    <code value="suspend"/>
    <display value="Suspend the focal resource"/>
    <definition value="Transition the focal resource from &#39;active&#39; or &#39;in-progress&#39; to &#39;suspended&#39;"/>
  </concept>
  <concept>
    <code value="resume"/>
    <display value="Re-activate the focal resource"/>
    <definition value="Transition the focal resource from &#39;suspended&#39; to &#39;active&#39; or &#39;in-progress&#39; as appropriate for the resource type."/>
  </concept>
</CodeSystem>