Bug #451
closedRadiology Orders: "Cancel" on a booked order only cancels the appointment (Normal goes back to Queued, Stat and Urgent are refused with no override option), and no order can reach Cancelled
0%
Description
When a booked radiology order is cancelled, the order goes back to Queued and the toast says "Appointment cancelled". The order itself is not cancelled, and the Cancelled column on the board stays empty (0). The user clicked "Cancel" expecting the order to be cancelled. Nothing on the screen says that only the appointment was cancelled, or that the order is still active and waiting for a new slot. When the booked slot is a confirmed one ("hard (appointment)" slot), the cancel is refused with a message that gives the user no way forward.
Details
Environment: https://nssh.demo.clinq.health (NSS Hospital demo, build v2026.10.11)
Module: Diagnostics > Radiology > Radiology Orders (Kanban board, order dialog) and Schedule
Logged in as: roshni.h+6@expericia.com (Radiologist role), as shown in the screenshots
Reported by: Roshni Harish
Date: 19 Oct 2026 (observed between about 14:30 and 17:51)
Steps to reproduce
Create an order and book a slot for it (here RAD-ORD-1-8, Abirami Arumugam, Chest X-Ray PA View and CT Brain Plain and Contrast). The order shows in Scheduled.
Open the order and click Cancel. [Roshni to confirm: the exact place and button, for example the Cancel button in the order dialog, or on the booking in the Schedule page.]
Look at the message at the top right and at the board.
Expected
The wording is clear about what is being cancelled: "Cancel appointment" (releases the slot, the order stays active) and "Cancel order" (the order is cancelled). The user can see which one they are using.
When the user cancels the appointment, a message says what happens next, for example "Appointment cancelled. The order is back in Queued and needs a new slot."
When the user cancels the order, it moves to the Cancelled column with a reason, who cancelled it and when, and it leaves the active lists and counts.
A confirmed ("hard") slot that needs an override should show a dialog that explains this and lets an authorised user approve it, or says who can.
Actual
After clicking Cancel on the booked order, a toast says "Appointment cancelled" and the order appears in Queued (RAD-ORD-1-8 in the 17:51 screenshot, "4 minutes ago"). The board still shows 8 of 8 orders, and the Cancelled column count is 0.
The same happened earlier in the day: RAD-ORD-1-5 (Meera Iyer, Chest X-Ray PA View) went from Scheduled back to Queued between 14:30 and 17:05, and no order reached Cancelled.
On another attempt (about 17:19), two red messages appeared at the same time: "Error: Clearing a hard (appointment) slot requires an override." and the same sentence again without the "Error" heading. The order stayed in Scheduled (RAD-ORD-1-1, Roshni Harish, Stat). I do not know which order the attempt was on (to be confirmed). The message has no Override button, no reason field, and does not say who can approve.
The message does not say that the priority (or the slot type) is the reason for the refusal.
The toast disappears after a few seconds, so it is easy to miss. The order card shows nothing to say that an appointment was cancelled.
What happens on Cancel, by priority
Priority Order seen What happens on Cancel How sure
Normal RAD-ORD-1-8, RAD-ORD-1-5 Works. Toast "Appointment cancelled" and the order goes back to Queued. The order is not cancelled. Seen, and confirmed by Roshni Harish
Stat RAD-ORD-1-1 (the order in Scheduled at the time) Refused: "Clearing a hard (appointment) slot requires an override." (shown twice). The order stays in Scheduled. No override option. Likely, not confirmed (the order was not noted at the time)
Urgent not noted Same as Stat: refused, no override option, the order stays in Scheduled. Reported by Roshni Harish, not seen by me
The suspected rule: Stat and Urgent orders get hard (appointment) slots that need an override to clear, while Normal orders get soft (queue) slots that clear freely. The behaviour is as reported; the reason (hard and soft slots) is a guess from the pattern and has not been confirmed. In every case, no order reaches Cancelled.
Also noticed
The order dialog for an order in Waiting (RAD-ORD-1-8) has a separate red Cancel order button. So an order-level cancel exists. I have not tested whether it moves the order to Cancelled, or whether it is also available once the order is Scheduled.
The status filter has a Cancelled option and the board has a Cancelled column, so the status exists, but I have not seen any order in it.
Why it matters
Staff and patients depend on cancellations being clear. If the user thinks the order is cancelled but it is back in the Queued list, it can be scheduled or scanned by mistake. If the user wants to cancel the appointment only, a message that is easy to miss does not confirm what happened. A hard-slot refusal with no explanation leaves the user stuck.
Suggested fix
Use clear labels: "Cancel appointment" and "Cancel order", and keep the two visibly separate.
After cancelling an appointment, show a message that stays long enough to read: "Appointment cancelled. Order is back in Queued. Book a new slot or cancel the order." Offer both choices.
For "Cancel order", ask for a reason, move the order to Cancelled, record who and when, and take it out of the active lists, the dashboard counts and the Reading Worklist.
For a confirmed ("hard") slot, show one dialog that explains the slot is confirmed, and let an authorised user approve it with a reason (or say who can).
Show the error once, in plain words, and keep the result visible on the order.
Record "appointment cancelled" (with reason, user and time) in the order history.
Priority
Medium
AV Updated by Alminta V. 24 days ago
- Status changed from New to Resolved
- Assignee changed from Alminta V. to Roshni Harish.
- Resolved By set to Alminta V.
RH Updated by Roshni Harish. 21 days ago
- Status changed from Resolved to Closed