{
  "resourceType" : "Task",
  "id" : "questionnaire-example",
  "language" : "en",
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\"><p class=\"res-header-id\"><b>Generated Narrative: Task questionnaire-example</b></p><a name=\"questionnaire-example\"> </a><a name=\"hcquestionnaire-example\"> </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\">Language: en</p></div><p><b>basedOn</b>: <a href=\"MedicationRequest-example.html\">MedicationRequest: identifier = http://example.org/portal/prescriptions#12345689\u00a0(use:\u00a0official,\u00a0); status = draft; intent = order; medication[x] = -&gt;Medication Azithromycin 250 mg oral tablet; authoredOn = 2015-01-15; reasonCode = Traveler's Diarrhea (disorder); note = Patient told to take with food</a></p><p><b>status</b>: Ready</p><p><b>intent</b>: order</p><p><b>code</b>: <span title=\"Codes:{http://hl7.org/fhir/uv/sdc/CodeSystem/temp complete-questionnaire}\">Complete Questionnaire</span></p><p><b>for</b>: <a href=\"Patient-example.html\">Amy V. Shaw  Female, DoB: 1987-02-20 ( Medical Record Number:\u00a01032702\u00a0(use:\u00a0usual,\u00a0))</a></p><p><b>encounter</b>: <a href=\"Encounter-example.html\">Encounter: identifier = http://example.org/zorgportal/identifiers/visits#v1451\u00a0(use:\u00a0official,\u00a0); status = in-progress; class = ambulatory (ActCode#AMB); type = Patient-initiated encounter; priority = Non-urgent cardiological admission; reasonCode = Heart valve replacement</a></p><p><b>authoredOn</b>: 2018-08-09</p><p><b>requester</b>: <a href=\"http://example.org/fhir/Organization/payer\">http://example.org/fhir/Organization/payer</a></p><p><b>reasonCode</b>: <span title=\"Codes:\">Helps assess opioid appropriateness</span></p><blockquote><p><b>input</b></p><p><b>type</b>: <span title=\"Codes:{http://hl7.org/fhir/uv/sdc/CodeSystem/temp questionnaire}\">Questionnaire</span></p><p><b>value</b>: <code>http://example.org/Questionnaire/XYZ|2</code></p></blockquote><blockquote><p><b>input</b></p><p><b>type</b>: <span title=\"Codes:{http://hl7.org/fhir/uv/sdc/CodeSystem/temp response-endpoint}\">Response Endpoint</span></p><p><b>value</b>: <a href=\"http://example.org/somePayer\">http://example.org/somePayer</a></p></blockquote></div>"
  },
  "basedOn" : [{
    "reference" : "MedicationRequest/example"
  }],
  "status" : "ready",
  "intent" : "order",
  "code" : {
    "coding" : [{
      "system" : "http://hl7.org/fhir/uv/sdc/CodeSystem/temp",
      "code" : "complete-questionnaire"
    }]
  },
  "for" : {
    "reference" : "Patient/example"
  },
  "encounter" : {
    "reference" : "Encounter/example"
  },
  "authoredOn" : "2018-08-09",
  "requester" : {
    "reference" : "http://example.org/fhir/Organization/payer"
  },
  "reasonCode" : {
    "text" : "Helps assess opioid appropriateness"
  },
  "input" : [{
    "type" : {
      "coding" : [{
        "system" : "http://hl7.org/fhir/uv/sdc/CodeSystem/temp",
        "code" : "questionnaire"
      }]
    },
    "valueCanonical" : "http://example.org/Questionnaire/XYZ|2"
  },
  {
    "type" : {
      "coding" : [{
        "system" : "http://hl7.org/fhir/uv/sdc/CodeSystem/temp",
        "code" : "response-endpoint"
      }]
    },
    "valueUrl" : "http://example.org/somePayer"
  }]
}