{
  "resourceType" : "Bundle",
  "id" : "VirtualWardDischargeReport",
  "meta" : {
    "profile" : ["http://hl7.eu/fhir/hdr/StructureDefinition/bundle-eu-hdr"]
  },
  "language" : "en",
  "identifier" : {
    "system" : "https://fhir.mft.nhs.uk/Id/document",
    "value" : "DOC-77801"
  },
  "type" : "document",
  "timestamp" : "2026-10-13T12:00:00+01:00",
  "entry" : [{
    "fullUrl" : "urn:uuid:5c1b1f5e-2d0a-4c41-9a7e-2a0a7c1d0001",
    "resource" : {
      "resourceType" : "Composition",
      "id" : "VirtualWardDischargeComposition",
      "meta" : {
        "profile" : ["http://hl7.eu/fhir/hdr/StructureDefinition/composition-eu-hdr"]
      },
      "language" : "en",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"Composition_VirtualWardDischargeComposition\"> </a><p class=\"res-header-id\"><b>Generated Narrative: Composition VirtualWardDischargeComposition</b></p><a name=\"VirtualWardDischargeComposition\"> </a><a name=\"hcVirtualWardDischargeComposition\"> </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=\"http://hl7.eu/fhir/hdr/1.0.0/StructureDefinition-composition-eu-hdr.html\">Composition (HDR)</a></p></div><p><b>identifier</b>: <code>https://fhir.mft.nhs.uk/Id/document</code>/DOC-77801</p><p><b>status</b>: Final</p><p><b>type</b>: <span title=\"Codes:{http://loinc.org 34105-7}\">Hospital Discharge Summary</span></p><p><b>encounter</b>: <a href=\"Bundle-VirtualWardDischargeReport.html#urn-uuid-5c1b1f5e-2d0a-4c41-9a7e-2a0a7c1d0003\">Encounter: 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></p><p><b>date</b>: 2026-10-13 12:00:00+0100</p><p><b>author</b>: Respiratory Virtual Ward, Manchester University NHS Foundation Trust</p><p><b>title</b>: Virtual ward discharge report</p></div>"
      },
      "identifier" : {
        "system" : "https://fhir.mft.nhs.uk/Id/document",
        "value" : "DOC-77801"
      },
      "status" : "final",
      "type" : {
        "coding" : [{
          "system" : "http://loinc.org",
          "code" : "34105-7",
          "display" : "Hospital Discharge Summary"
        }]
      },
      "subject" : {
        "reference" : "urn:uuid:5c1b1f5e-2d0a-4c41-9a7e-2a0a7c1d0002"
      },
      "encounter" : {
        "reference" : "urn:uuid:5c1b1f5e-2d0a-4c41-9a7e-2a0a7c1d0003"
      },
      "date" : "2026-10-13T12:00:00+01:00",
      "author" : [{
        "display" : "Respiratory Virtual Ward, Manchester University NHS Foundation Trust"
      }],
      "title" : "Virtual ward discharge report",
      "section" : [{
        "title" : "Hospital course",
        "code" : {
          "coding" : [{
            "system" : "http://loinc.org",
            "code" : "8648-8"
          }]
        },
        "text" : {
          "status" : "generated",
          "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">Seven days on the respiratory virtual ward with twice-daily SpO2 monitoring. Oral steroids and antibiotics. SpO2 improved to 95% on air. No escalation needed.</div>"
        }
      },
      {
        "title" : "Plan of care",
        "code" : {
          "coding" : [{
            "system" : "http://loinc.org",
            "code" : "18776-5"
          }]
        },
        "text" : {
          "status" : "generated",
          "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">GP review in 2 weeks. Refer to pulmonary rehabilitation.</div>"
        }
      }]
    }
  },
  {
    "fullUrl" : "urn:uuid:5c1b1f5e-2d0a-4c41-9a7e-2a0a7c1d0002",
    "resource" : {
      "resourceType" : "Patient",
      "id" : "PatientManchesterInline",
      "meta" : {
        "profile" : ["https://fhir.acmeexample.org.uk/PatientCareCoordination/StructureDefinition/Patient"]
      },
      "language" : "en",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"Patient_PatientManchesterInline\"> </a><p class=\"res-header-id\"><b>Generated Narrative: Patient PatientManchesterInline</b></p><a name=\"PatientManchesterInline\"> </a><a name=\"hcPatientManchesterInline\"> </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-Patient.html\">Patient</a></p></div><p style=\"border: 1px #661aff solid; background-color: #e6e6ff; padding: 10px;\">Sansa MANCHESTER  Female, DoB: 1972-09-21 ( National Health Plan Identifier: NHS Number#9737383192)</p><hr/><table class=\"grid\"><tr><td style=\"background-color: #f3f5da\" title=\"Ways to contact the Patient\">Contact Detail</td><td colspan=\"3\">M13 9PL </td></tr></table></div>"
      },
      "identifier" : [{
        "type" : {
          "coding" : [{
            "system" : "http://terminology.hl7.org/CodeSystem/v2-0203",
            "code" : "NH"
          }]
        },
        "system" : "https://fhir.nhs.uk/Id/nhs-number",
        "value" : "9737383192"
      }],
      "name" : [{
        "family" : "MANCHESTER",
        "given" : ["Sansa"]
      }],
      "gender" : "female",
      "birthDate" : "1972-09-21",
      "address" : [{
        "postalCode" : "M13 9PL"
      }]
    }
  },
  {
    "fullUrl" : "urn:uuid:5c1b1f5e-2d0a-4c41-9a7e-2a0a7c1d0003",
    "resource" : {
      "resourceType" : "Encounter",
      "id" : "VirtualWardStayInline",
      "meta" : {
        "profile" : ["http://hl7.eu/fhir/hdr/StructureDefinition/encounter-eu-hdr"]
      },
      "language" : "en",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"Encounter_VirtualWardStayInline\"> </a><p class=\"res-header-id\"><b>Generated Narrative: Encounter VirtualWardStayInline</b></p><a name=\"VirtualWardStayInline\"> </a><a name=\"hcVirtualWardStayInline\"> </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=\"http://hl7.eu/fhir/hdr/1.0.0/StructureDefinition-encounter-eu-hdr.html\">Encounter (HDR)</a></p></div><p><b>identifier</b>: Account number/VW-20261006-01</p><p><b>status</b>: Finished</p><p><b>class</b>: <a href=\"http://terminology.hl7.org/7.5.0/CodeSystem-v3-ActCode.html#v3-ActCode-IMP\">ActCode: IMP</a> (inpatient encounter)</p><p><b>serviceType</b>: <span title=\"Codes:{http://snomed.info/sct 418112009}\">Pulmonary medicine</span></p><p><b>subject</b>: <a href=\"Bundle-VirtualWardDischargeReport.html#urn-uuid-5c1b1f5e-2d0a-4c41-9a7e-2a0a7c1d0002\">Sansa MANCHESTER  Female, DoB: 1972-09-21 ( National Health Plan Identifier: NHS Number#9737383192)</a></p><p><b>basedOn</b>: Identifier: Placer Identifier/REF-2026-000456</p><p><b>period</b>: 2026-10-06 11:00:00+0100 --&gt; 2026-10-13 10:00:00+0100</p><h3>Hospitalizations</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>AdmitSource</b></td></tr><tr><td style=\"display: none\">*</td><td><span title=\"Codes:{https://fhir.acmeexample.org.uk/PatientCareCoordination/CodeSystem/virtual-ward-admission-route step-up}\">Step-up</span></td></tr></table><h3>Locations</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Location</b></td></tr><tr><td style=\"display: none\">*</td><td>Patient's home</td></tr></table><p><b>serviceProvider</b>: Identifier: <a href=\"NamingSystem-ods-organization-code-namingsystem.html\" title=\"The identifier system for an Organisation registered with the Organisation Data Service (ODS).\">ODS Organisation Code</a>/R0A</p></div>"
      },
      "identifier" : [{
        "type" : {
          "coding" : [{
            "system" : "http://terminology.hl7.org/CodeSystem/v2-0203",
            "code" : "AN"
          }]
        },
        "system" : "https://fhir.mft.nhs.uk/Id/spell",
        "value" : "VW-20261006-01",
        "assigner" : {
          "identifier" : {
            "system" : "https://fhir.nhs.uk/Id/ods-organization-code",
            "value" : "R0A"
          }
        }
      }],
      "status" : "finished",
      "class" : {
        "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode",
        "code" : "IMP"
      },
      "serviceType" : {
        "coding" : [{
          "system" : "http://snomed.info/sct",
          "code" : "418112009",
          "display" : "Pulmonary medicine"
        }]
      },
      "subject" : {
        "reference" : "urn:uuid:5c1b1f5e-2d0a-4c41-9a7e-2a0a7c1d0002"
      },
      "basedOn" : [{
        "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"
        }
      }],
      "period" : {
        "start" : "2026-10-06T11:00:00+01:00",
        "end" : "2026-10-13T10:00:00+01:00"
      },
      "hospitalization" : {
        "admitSource" : {
          "coding" : [{
            "system" : "https://fhir.acmeexample.org.uk/PatientCareCoordination/CodeSystem/virtual-ward-admission-route",
            "code" : "step-up",
            "display" : "Step-up"
          }]
        }
      },
      "location" : [{
        "location" : {
          "display" : "Patient's home"
        }
      }],
      "serviceProvider" : {
        "identifier" : {
          "system" : "https://fhir.nhs.uk/Id/ods-organization-code",
          "value" : "R0A"
        }
      }
    }
  }]
}