{
  "resourceType" : "Task",
  "id" : "VirtualWardReferralAccepted",
  "meta" : {
    "profile" : ["https://fhir.acmeexample.org.uk/PatientCareCoordination/StructureDefinition/ReferralTask"]
  },
  "language" : "en",
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: Task VirtualWardReferralAccepted</b></p><a name=\"VirtualWardReferralAccepted\"> </a><a name=\"hcVirtualWardReferralAccepted\"> </a><div style=\"display: inline-block; background-color: #fbffeb; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\"/><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-ReferralTask.html\">Referral Task</a></p></div><p><b>basedOn</b>: <a href=\"ServiceRequest-VirtualWardReferral.html\">ServiceRequest Referral to virtual ward</a></p><p><b>status</b>: In Progress</p><p><b>businessStatus</b>: <span title=\"Codes:{https://fhir.acmeexample.org.uk/PatientCareCoordination/CodeSystem/referral-workflow-status accepted}\">Referral accepted</span></p><p><b>intent</b>: order</p><p><b>code</b>: <span title=\"Codes:{http://hl7.org/fhir/CodeSystem/task-code fulfill}\">Fulfill the focal request</span></p><p><b>focus</b>: <a href=\"ServiceRequest-VirtualWardReferral.html\">ServiceRequest Referral to virtual ward</a></p><p><b>for</b>: <a href=\"Patient-Patient-Manchester.html\">Sansa MANCHESTER  Female, DoB: 1972-09-21 ( National Health Plan Identifier: NHS Number#9737383192)</a></p><p><b>authoredOn</b>: 2026-10-06 09:20:00+0100</p><p><b>lastModified</b>: 2026-10-06 11:00:00+0100</p><p><b>requester</b>: <a href=\"PractitionerRole-GPKhanRole.html\">Khan (https://fhir.hl7.org.uk/Id/gmp-number#GMP Number#G7654321): General practitioner at ANCOATS URBAN VILLAGE MEDICAL PRACTICE (https://fhir.nhs.uk/Id/ods-organization-code#ODS Organisation Code#P84673)</a></p><p><b>owner</b>: <a href=\"HealthcareService-VirtualWardService.html\">Respiratory Virtual Ward by Manchester University NHS Foundation Trust (https://fhir.nhs.uk/Id/ods-organization-code#ODS Organisation Code#R0A)</a></p><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:{https://fhir.acmeexample.org.uk/PatientCareCoordination/CodeSystem/referral-task-parameter encounter}\">Encounter</span></td><td><a href=\"Encounter-VirtualWardStay.html\">Encounter: extension = Discharged on clinical advice; identifier = Account number: VW-20261006-01; status = finished; class = inpatient encounter (ActCode#IMP); serviceType = Pulmonary medicine; period = 2026-10-06 11:00:00+0100 --&gt; 2026-10-13 10:00:00+0100</a></td></tr></table></div>"
  },
  "basedOn" : [{
    "reference" : "ServiceRequest/VirtualWardReferral",
    "identifier" : {
      "type" : {
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/v2-0203",
          "code" : "PLAC"
        }]
      },
      "system" : "https://fhir.example-practice.nhs.uk/Id/referral",
      "value" : "REF-2026-000456",
      "assigner" : {
        "identifier" : {
          "system" : "https://fhir.nhs.uk/Id/ods-organization-code",
          "value" : "P84673"
        }
      }
    }
  }],
  "status" : "in-progress",
  "businessStatus" : {
    "coding" : [{
      "system" : "https://fhir.acmeexample.org.uk/PatientCareCoordination/CodeSystem/referral-workflow-status",
      "code" : "accepted"
    }]
  },
  "intent" : "order",
  "code" : {
    "coding" : [{
      "system" : "http://hl7.org/fhir/CodeSystem/task-code",
      "code" : "fulfill"
    }]
  },
  "focus" : {
    "reference" : "ServiceRequest/VirtualWardReferral"
  },
  "for" : {
    "reference" : "Patient/Patient-Manchester"
  },
  "authoredOn" : "2026-10-06T09:20:00+01:00",
  "lastModified" : "2026-10-06T11:00:00+01:00",
  "requester" : {
    "reference" : "PractitionerRole/GPKhanRole"
  },
  "owner" : {
    "reference" : "HealthcareService/VirtualWardService"
  },
  "output" : [{
    "type" : {
      "coding" : [{
        "system" : "https://fhir.acmeexample.org.uk/PatientCareCoordination/CodeSystem/referral-task-parameter",
        "code" : "encounter"
      }]
    },
    "valueReference" : {
      "reference" : "Encounter/VirtualWardStay"
    }
  }]
}