{
  "resourceType" : "Basic",
  "id" : "Task",
  "language" : "en",
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: SubscriptionTopic Task</b></p><a name=\"Task\"> </a><a name=\"hcTask\"> </a><table class=\"grid\"><tr><td><b>SubscriptionTopic</b></td><td>HRex Task Subscription Topic</td></tr><tr><td><b>Description</b></td><td><div><p>The HRex Task Update Subscription Topic allows for monitoring for newly created tasks as well as updates to assigned or requested tasks. For example, when the status changes from “in-progress” to &quot;completed&quot;.</p>\n</div></td></tr><tr><td><b>Copyright Statement:</b></td><td> null</td></tr></table><table class=\"grid\"><tr><td colspan=\"4\"><b>Resource Triggers</b></td></tr><tr><th><b>Resource</b></th><th><b>Interactions</b></th><th><b>Criteria</b></th><th><b>Description</b></th></tr><tr><td><a href=\"http://hl7.org/fhir/R4/task.html\">http://hl7.org/fhir/StructureDefinition/Task</a></td><td>create, update</td><td><div><ul>\n<li>previous = status:not=draft&amp;intent=order</li>\n<li>create result = test-passes</li>\n<li>current = status:not=draft&amp;intent=order</li>\n<li>delete result = test-fails</li>\n<li>require both = true</li>\n</ul>\n</div></td><td><div><p>A HRex Task Data Request Profile is created or updated</p>\n</div></td></tr></table><table class=\"grid\"><tr><td colspan=\"4\"><b>Can Filter By</b></td></tr><tr><th><b>Resource</b></th><th><b>Filter Parameter</b></th><th><b>Filter Definition</b></th><th><b>Modifiers</b></th></tr><tr><td><a href=\"http://hl7.org/fhir/R4/task.html\">http://hl7.org/fhir/StructureDefinition/Task</a></td><td>code</td><td><a href=\"http://hl7.org/fhir/SearchParameter/clinical-code\">code</a></td><td/></tr><tr><td><a href=\"http://hl7.org/fhir/R4/task.html\">http://hl7.org/fhir/StructureDefinition/Task</a></td><td>owner</td><td><a href=\"http://hl7.org/fhir/SearchParameter/Task-owner\">owner</a></td><td>Identifier</td></tr><tr><td><a href=\"http://hl7.org/fhir/R4/task.html\">http://hl7.org/fhir/StructureDefinition/Task</a></td><td>requester</td><td><a href=\"http://hl7.org/fhir/SearchParameter/Task-requester\">requester</a></td><td>Identifier</td></tr><tr><td><a href=\"http://hl7.org/fhir/R4/task.html\">http://hl7.org/fhir/StructureDefinition/Task</a></td><td>status</td><td><a href=\"http://hl7.org/fhir/SearchParameter/Task-status\">status</a></td><td/></tr></table></div>"
  },
  "extension" : [{
    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
    "valueCode" : "cic"
  },
  {
    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
    "valueInteger" : 3,
    "_valueInteger" : {
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
        "valueCanonical" : "http://hl7.org/fhir/us/davinci-hrex/ImplementationGuide/davinci-hrex"
      }]
    }
  },
  {
    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
    "valueCode" : "trial-use",
    "_valueCode" : {
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
        "valueCanonical" : "http://hl7.org/fhir/us/davinci-hrex/ImplementationGuide/davinci-hrex"
      }]
    }
  },
  {
    "url" : "http://hl7.org/fhir/5.0/StructureDefinition/extension-SubscriptionTopic.url",
    "valueUri" : "http://hl7.org/fhir/us/davinci-hrex/SubscriptionTopic/Task"
  },
  {
    "url" : "http://hl7.org/fhir/5.0/StructureDefinition/extension-SubscriptionTopic.version",
    "valueString" : "1.2.0"
  },
  {
    "url" : "http://hl7.org/fhir/5.0/StructureDefinition/extension-SubscriptionTopic.name",
    "valueString" : "HRexTaskTopic"
  },
  {
    "url" : "http://hl7.org/fhir/5.0/StructureDefinition/extension-SubscriptionTopic.title",
    "valueString" : "HRex Task Subscription Topic"
  },
  {
    "url" : "http://hl7.org/fhir/5.0/StructureDefinition/extension-SubscriptionTopic.status",
    "valueCode" : "active"
  },
  {
    "url" : "http://hl7.org/fhir/5.0/StructureDefinition/extension-SubscriptionTopic.date",
    "valueDateTime" : "2026-03-24T17:16:48+11:00"
  },
  {
    "url" : "http://hl7.org/fhir/5.0/StructureDefinition/extension-SubscriptionTopic.publisher",
    "valueString" : "HL7 International / Clinical Interoperability Council"
  },
  {
    "url" : "http://hl7.org/fhir/5.0/StructureDefinition/extension-SubscriptionTopic.contact",
    "valueContactDetail" : {
      "telecom" : [{
        "system" : "url",
        "value" : "http://www.hl7.org/Special/committees/cic"
      }]
    }
  },
  {
    "url" : "http://hl7.org/fhir/5.0/StructureDefinition/extension-SubscriptionTopic.description",
    "valueMarkdown" : "The HRex Task Update Subscription Topic allows for monitoring for newly created tasks as well as updates to assigned or requested tasks. For example, when the status changes from “in-progress” to \"completed\"."
  },
  {
    "url" : "http://hl7.org/fhir/5.0/StructureDefinition/extension-SubscriptionTopic.jurisdiction",
    "valueCodeableConcept" : {
      "coding" : [{
        "system" : "urn:iso:std:iso:3166",
        "code" : "US"
      }]
    }
  },
  {
    "extension" : [{
      "url" : "description",
      "valueMarkdown" : "A HRex Task Data Request Profile is created or updated"
    },
    {
      "url" : "resource",
      "valueUri" : "http://hl7.org/fhir/StructureDefinition/Task"
    },
    {
      "url" : "supportedInteraction",
      "valueCode" : "create"
    },
    {
      "url" : "supportedInteraction",
      "valueCode" : "update"
    },
    {
      "extension" : [{
        "url" : "previous",
        "valueString" : "status:not=draft&intent=order"
      },
      {
        "url" : "resultForCreate",
        "valueCode" : "test-passes"
      },
      {
        "url" : "current",
        "valueString" : "status:not=draft&intent=order"
      },
      {
        "url" : "resultForDelete",
        "valueCode" : "test-fails"
      },
      {
        "url" : "requireBoth",
        "valueBoolean" : true
      }],
      "url" : "queryCriteria"
    }],
    "url" : "http://hl7.org/fhir/5.0/StructureDefinition/extension-SubscriptionTopic.resourceTrigger"
  },
  {
    "extension" : [{
      "url" : "description",
      "valueMarkdown" : "Matching based on the `Task.code` code to filter by the specific type of Task (e.g.,data request tasks)."
    },
    {
      "url" : "resource",
      "valueUri" : "Task"
    },
    {
      "url" : "filterParameter",
      "valueString" : "code"
    },
    {
      "url" : "filterDefinition",
      "valueUri" : "http://hl7.org/fhir/SearchParameter/clinical-code"
    }],
    "url" : "http://hl7.org/fhir/5.0/StructureDefinition/extension-SubscriptionTopic.canFilterBy"
  },
  {
    "extension" : [{
      "url" : "description",
      "valueMarkdown" : "Matching based on the Task's Owner or Requester."
    },
    {
      "url" : "resource",
      "valueUri" : "Task"
    },
    {
      "url" : "filterParameter",
      "valueString" : "owner"
    },
    {
      "url" : "filterDefinition",
      "valueUri" : "http://hl7.org/fhir/SearchParameter/Task-owner"
    },
    {
      "url" : "modifier",
      "valueCode" : "identifier"
    }],
    "url" : "http://hl7.org/fhir/5.0/StructureDefinition/extension-SubscriptionTopic.canFilterBy"
  },
  {
    "extension" : [{
      "url" : "description",
      "valueMarkdown" : "Matching based on the Task's Requester."
    },
    {
      "url" : "resource",
      "valueUri" : "Task"
    },
    {
      "url" : "filterParameter",
      "valueString" : "requester"
    },
    {
      "url" : "filterDefinition",
      "valueUri" : "http://hl7.org/fhir/SearchParameter/Task-requester"
    },
    {
      "url" : "modifier",
      "valueCode" : "identifier"
    }],
    "url" : "http://hl7.org/fhir/5.0/StructureDefinition/extension-SubscriptionTopic.canFilterBy"
  },
  {
    "extension" : [{
      "url" : "description",
      "valueMarkdown" : "Limiting notifications based on Task status."
    },
    {
      "url" : "resource",
      "valueUri" : "Task"
    },
    {
      "url" : "filterParameter",
      "valueString" : "status"
    },
    {
      "url" : "filterDefinition",
      "valueUri" : "http://hl7.org/fhir/SearchParameter/Task-status"
    }],
    "url" : "http://hl7.org/fhir/5.0/StructureDefinition/extension-SubscriptionTopic.canFilterBy"
  }],
  "identifier" : [{
    "system" : "urn:ietf:rfc:3986",
    "value" : "urn:oid:2.16.840.1.113883.4.642.40.19.44.1"
  }],
  "code" : {
    "coding" : [{
      "system" : "http://hl7.org/fhir/fhir-types",
      "code" : "SubscriptionTopic"
    }]
  }
}