{
  "resourceType" : "Bundle",
  "id" : "task-poll-response",
  "language" : "en",
  "type" : "searchset",
  "total" : 1,
  "link" : [{
    "relation" : "self",
    "url" : "http://example.org/ehr/fhir/Task?_id=c94fb961-310c-41f1-a54f-fc5f2dba49ee&_include=Task:output"
  }],
  "entry" : [{
    "fullUrl" : "https://example.org/fhir/r4/Task/c94fb961-310c-41f1-a54f-fc5f2dba49ee",
    "resource" : {
      "resourceType" : "Task",
      "id" : "c94fb961-310c-41f1-a54f-fc5f2dba49ee",
      "language" : "en",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"Task_c94fb961-310c-41f1-a54f-fc5f2dba49ee\"> </a><p class=\"res-header-id\"><b>Generated Narrative: Task c94fb961-310c-41f1-a54f-fc5f2dba49ee</b></p><a name=\"c94fb961-310c-41f1-a54f-fc5f2dba49ee\"> </a><a name=\"hcc94fb961-310c-41f1-a54f-fc5f2dba49ee\"> </a><p><b>status</b>: Completed</p><p><b>intent</b>: order</p><p><b>code</b>: <span title=\"Codes:{http://hl7.org/fhir/us/davinci-hrex/CodeSystem/hrex-temp data-request}\">data request task</span></p><p><b>for</b>: <a href=\"http://example.org/ehr/fhir/Patient/pat1\">http://example.org/ehr/fhir/Patient/pat1</a></p><p><b>authoredOn</b>: 2020-07-30 20:07:15-0600</p><p><b>requester</b>: <a href=\"http://example.org/new-payer/fhir/Organization/hl7pay\">http://example.org/new-payer/fhir/Organization/hl7pay</a></p><p><b>owner</b>: <a href=\"http://example.org/provider/fhir/Organization/hl7prov\">http://example.org/provider/fhir/Organization/hl7prov</a></p><p><b>reasonCode</b>: <span title=\"Codes:\">Support prior authorization decision-making</span></p><p><b>reasonReference</b>: <a href=\"http://example.org/new-payer/fhir/Claim/123\">http://example.org/new-payer/fhir/Claim/123</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/us/davinci-hrex/CodeSystem/hrex-temp data-code}\">data code input</span></td><td><span title=\"Codes:{http://loinc.org 34108-1}\">Outpatient Note</span></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/us/davinci-hrex/CodeSystem/hrex-temp data-value}\">data values output</span></td><td><a href=\"http://example.org/ehr/fhir/DocumentReference/287Q73J237\">http://example.org/ehr/fhir/DocumentReference/287Q73J237</a></td></tr></table></div>"
      },
      "status" : "completed",
      "intent" : "order",
      "code" : {
        "coding" : [{
          "system" : "http://hl7.org/fhir/us/davinci-hrex/CodeSystem/hrex-temp",
          "code" : "data-request"
        }]
      },
      "for" : {
        "reference" : "http://example.org/ehr/fhir/Patient/pat1"
      },
      "authoredOn" : "2020-07-30T20:07:15-06:00",
      "requester" : {
        "reference" : "http://example.org/new-payer/fhir/Organization/hl7pay"
      },
      "owner" : {
        "reference" : "http://example.org/provider/fhir/Organization/hl7prov"
      },
      "reasonCode" : {
        "text" : "Support prior authorization decision-making"
      },
      "reasonReference" : {
        "reference" : "http://example.org/new-payer/fhir/Claim/123"
      },
      "input" : [{
        "type" : {
          "coding" : [{
            "system" : "http://hl7.org/fhir/us/davinci-hrex/CodeSystem/hrex-temp",
            "code" : "data-code"
          }]
        },
        "valueCodeableConcept" : {
          "coding" : [{
            "system" : "http://loinc.org",
            "code" : "34108-1"
          }]
        }
      }],
      "output" : [{
        "type" : {
          "coding" : [{
            "system" : "http://hl7.org/fhir/us/davinci-hrex/CodeSystem/hrex-temp",
            "code" : "data-value"
          }]
        },
        "valueReference" : {
          "reference" : "http://example.org/ehr/fhir/DocumentReference/287Q73J237"
        }
      }]
    },
    "search" : {
      "mode" : "match"
    }
  },
  {
    "fullUrl" : "https://example.org/fhir/r4/DocumentReference/c94fb961-310c-41f1-a54f-gd5325dgds7",
    "resource" : {
      "resourceType" : "DocumentReference",
      "id" : "c94fb961-310c-41f1-a54f-gd5325dgds7",
      "language" : "en",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"DocumentReference_c94fb961-310c-41f1-a54f-gd5325dgds7\"> </a><p class=\"res-header-id\"><b>Generated Narrative: DocumentReference c94fb961-310c-41f1-a54f-gd5325dgds7</b></p><a name=\"c94fb961-310c-41f1-a54f-gd5325dgds7\"> </a><a name=\"hcc94fb961-310c-41f1-a54f-gd5325dgds7\"> </a><p><b>status</b>: Current</p><p><b>type</b>: <span title=\"Codes:{http://loinc.org 34117-2}\">History and physical note</span></p><p><b>category</b>: <span title=\"Codes:{http://loinc.org 47039-3}\">Hospital Admission history and physical note</span></p><p><b>subject</b>: <a href=\"http://example.org/ehr/fhir/Patient/pat1\">http://example.org/ehr/fhir/Patient/pat1</a></p><p><b>date</b>: 2013-07-01 23:11:33+1000</p><p><b>author</b>: <a href=\"http://example.org/ehr/fhir/Practitioner/pract1\">http://example.org/ehr/fhir/Practitioner/pract1</a></p><p><b>description</b>: Physical</p><blockquote><p><b>content</b></p><h3>Attachments</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>ContentType</b></td><td><b>Language</b></td><td><b>Url</b></td><td><b>Title</b></td><td><b>Creation</b></td></tr><tr><td style=\"display: none\">*</td><td>text/plain</td><td>English (United States)</td><td><a href=\"http://example.org/ehr/fhir/Binary/1e404af3-077f-4bee-b7a6-a9be97e1ce32\">http://example.org/ehr/fhir/Binary/1e404af3-077f-4bee-b7a6-a9be97e1ce32</a></td><td>Physical</td><td>2005-12-24</td></tr></table><p><b>format</b>: <a href=\"https://profiles.ihe.net/fhir/ihe.formatcode.fhir/1.1.0/CodeSystem-formatcode.html#formatcode-urn.58ihe.58pcc.58apr.58handp.582008\">IHE Format Code set for use with Document Sharing: urn:ihe:pcc:apr:handp:2008</a> (PCC APR HANDP)</p></blockquote></div>"
      },
      "status" : "current",
      "type" : {
        "coding" : [{
          "system" : "http://loinc.org",
          "code" : "34117-2",
          "display" : "History and physical note"
        }]
      },
      "category" : [{
        "coding" : [{
          "system" : "http://loinc.org",
          "code" : "47039-3",
          "display" : "Hospital Admission history and physical note"
        }]
      }],
      "subject" : {
        "reference" : "http://example.org/ehr/fhir/Patient/pat1"
      },
      "date" : "2013-07-01T23:11:33+10:00",
      "author" : [{
        "reference" : "http://example.org/ehr/fhir/Practitioner/pract1"
      }],
      "description" : "Physical",
      "content" : [{
        "attachment" : {
          "contentType" : "text/plain",
          "language" : "en-US",
          "url" : "http://example.org/ehr/fhir/Binary/1e404af3-077f-4bee-b7a6-a9be97e1ce32",
          "title" : "Physical",
          "creation" : "2005-12-24"
        },
        "format" : {
          "system" : "http://ihe.net/fhir/ihe.formatcode.fhir/CodeSystem/formatcode",
          "code" : "urn:ihe:pcc:apr:handp:2008"
        }
      }]
    },
    "search" : {
      "mode" : "include"
    }
  }]
}