{
  "resourceType" : "MessageDefinition",
  "id" : "referral-order-status",
  "language" : "en",
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: MessageDefinition referral-order-status</b></p><a name=\"referral-order-status\"> </a><a name=\"hcreferral-order-status\"> </a><p><b>url</b>: <a href=\"MessageDefinition-referral-order-status.html\">MessageDefinition Referral Order Status (O51)</a></p><p><b>version</b>: 0.1.0</p><p><b>name</b>: ReferralOrderStatus</p><p><b>title</b>: Referral Order Status (O51)</p><p><b>status</b>: Draft</p><p><b>experimental</b>: true</p><p><b>date</b>: 2026-11-01</p><p><b>publisher</b>: Kevin Mayfield</p><p><b>contact</b>: <a href=\"https://github.com/KevinMayfield/PatientCareCoordination\">https://github.com/KevinMayfield/PatientCareCoordination</a></p><p><b>description</b>: </p><div><p>FHIR Message equivalent of the IHE 360X HL7 v2.5.1 <code>OSU^O51^OSU_O51</code> order status update.\nThe <a href=\"StructureDefinition-ReferralTask.html\">Referral Task</a> carries the status\n(<code>status</code>, <code>businessStatus</code>, <code>statusReason</code>); for an interim note [PCC-59] or outcome\n[PCC-57] the message also carries the clinical document referenced from <code>Task.output</code>.</p>\n<p>The message does <strong>not</strong> carry a <code>Patient</code> resource. Both sides of the exchange already\nknow the patient from the referral, so <code>Task.for</code> identifies the patient by NHS Number\n(<code>for.identifier</code>), <code>Task.requester</code> the referrer (professional code) and <code>Task.owner</code>\nthe Referral Recipient (service identifier), alongside the references.</p>\n<table class=\"grid\">\n<thead>\n<tr>\n<th>360X</th>\n<th>ORC-1 / ORC-5</th>\n<th>Task.businessStatus</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Accept [PCC-55]</td>\n<td>OK / IP</td>\n<td>accepted</td>\n</tr>\n<tr>\n<td>Decline [PCC-55, PCC-56]</td>\n<td>UA / CA</td>\n<td>declined</td>\n</tr>\n<tr>\n<td>Deferred (NHS, indicative)</td>\n<td>OH / HD</td>\n<td>deferred</td>\n</tr>\n<tr>\n<td>Redirected (NHS, indicative)</td>\n<td>RU / RP</td>\n<td>redirected</td>\n</tr>\n<tr>\n<td>Interim Consultation Note [PCC-59]</td>\n<td>SC / A</td>\n<td>interim-report</td>\n</tr>\n<tr>\n<td>Referral Outcome [PCC-57]</td>\n<td>SC / CM</td>\n<td>completed</td>\n</tr>\n<tr>\n<td>Cancel Request [PCC-58]</td>\n<td>CA / CA</td>\n<td>cancel-requested</td>\n</tr>\n<tr>\n<td>Cancel Confirmation [PCC-58]</td>\n<td>CR / CA</td>\n<td>cancelled</td>\n</tr>\n</tbody>\n</table>\n</div><p><b>jurisdiction</b>: <span title=\"Codes:{urn:iso:std:iso:3166 GB}\">United Kingdom of Great Britain and Northern Ireland</span></p><p><b>event</b>: <a href=\"http://terminology.hl7.org/7.5.0/CodeSystem-v2-0003.html#v2-0003-O51\">event: O51</a> (OSU – Order Status Update)</p><p><b>category</b>: Notification</p><h3>Focus</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Code</b></td><td><b>Profile</b></td><td><b>Min</b></td><td><b>Max</b></td></tr><tr><td style=\"display: none\">*</td><td>Task</td><td><a href=\"StructureDefinition-ReferralTask.html\">Referral Task</a></td><td>1</td><td>1</td></tr></table><p><b>responseRequired</b>: Never</p></div>"
  },
  "url" : "https://fhir.acmeexample.org.uk/PatientCareCoordination/MessageDefinition/referral-order-status",
  "version" : "0.1.0",
  "name" : "ReferralOrderStatus",
  "title" : "Referral Order Status (O51)",
  "status" : "draft",
  "experimental" : true,
  "date" : "2026-11-01",
  "publisher" : "Kevin Mayfield",
  "contact" : [{
    "telecom" : [{
      "system" : "url",
      "value" : "https://github.com/KevinMayfield/PatientCareCoordination"
    }]
  }],
  "description" : "FHIR Message equivalent of the IHE 360X HL7 v2.5.1 `OSU^O51^OSU_O51` order status update.\nThe [Referral Task](StructureDefinition-ReferralTask.html) carries the status\n(`status`, `businessStatus`, `statusReason`); for an interim note [PCC-59] or outcome\n[PCC-57] the message also carries the clinical document referenced from `Task.output`.\n\nThe message does **not** carry a `Patient` resource. Both sides of the exchange already\nknow the patient from the referral, so `Task.for` identifies the patient by NHS Number\n(`for.identifier`), `Task.requester` the referrer (professional code) and `Task.owner`\nthe Referral Recipient (service identifier), alongside the references.\n\n| 360X | ORC-1 / ORC-5 | Task.businessStatus |\n|---|---|---|\n| Accept [PCC-55] | OK / IP | accepted |\n| Decline [PCC-55, PCC-56] | UA / CA | declined |\n| Deferred (NHS, indicative) | OH / HD | deferred |\n| Redirected (NHS, indicative) | RU / RP | redirected |\n| Interim Consultation Note [PCC-59] | SC / A | interim-report |\n| Referral Outcome [PCC-57] | SC / CM | completed |\n| Cancel Request [PCC-58] | CA / CA | cancel-requested |\n| Cancel Confirmation [PCC-58] | CR / CA | cancelled |",
  "jurisdiction" : [{
    "coding" : [{
      "system" : "urn:iso:std:iso:3166",
      "code" : "GB",
      "display" : "United Kingdom of Great Britain and Northern Ireland"
    }]
  }],
  "eventCoding" : {
    "system" : "http://terminology.hl7.org/CodeSystem/v2-0003",
    "code" : "O51"
  },
  "category" : "notification",
  "focus" : [{
    "code" : "Task",
    "profile" : "https://fhir.acmeexample.org.uk/PatientCareCoordination/StructureDefinition/ReferralTask",
    "min" : 1,
    "max" : "1"
  }],
  "responseRequired" : "never"
}