Pharmacy · VERSION 026fdf3e
Recognize a refused medication return and stop
Recognize the recorded ordinary Pharmacist permission boundary: the return form is visible, but saving is refused with Cannot write delivery orders. Close the unsaved request and hand off through the facility workflow; this recording created no return order or stock/financial change.
Pharmacist
Visible return permission refusal
Capture details
Genuine natural 1728 × 977 root-native original on exact local unpushed 026f source. Bounded fictional ledger return only: role refusal or authorized Normal single-unit branch. No physical medicine/cash movement, invoice issuance, provider submission, OS printing, account closure or full Pharmacy qualification. The prior dispense-category defect remains unrepaired; the document preview retains its untranslated return_date heading.
Image SHA-256 c2936c50ef2a1aa0d3734c3089ba697a8b40969c9346e27db1dcd8767e2bc74d
- Creation failed: This visible notification reports failure, not a saved return.
- Cannot write delivery orders: The permission refusal is visible in this fourth original.
- Close the unsaved request: Stop after a permission refusal and hand off to a configured authorized operator.
Denied request closed with the original dispense retained
Capture details
Genuine natural 1728 × 977 root-native original on exact local unpushed 026f source. Bounded fictional ledger return only: role refusal or authorized Normal single-unit branch. No physical medicine/cash movement, invoice issuance, provider submission, OS printing, account closure or full Pharmacy qualification. The prior dispense-category defect remains unrepaired; the document preview retains its untranslated return_date heading.
Image SHA-256 f1c8352d310bad5eb15f64425c9f08a8fee81e339ff0ac155ef5855c8d0b8761
- Original order remains Completed: Closing the denied form returns to the existing dispense.
- Original quantity six: The denied request did not change the visible original quantity.
- Existing payment summary: The original paid summary remains; it is not a return payout.
- Return entry remains visible: A visible entry point alone is not write authorization.
10 of 10 content blocks have reviewed image alignment.
Before you begin
- Use the recorded ordinary Pharmacist context at Main Pharmacy and match the same synthetic patient and existing six-unit Completed dispense. The paid summary belongs to the original supply, not a refund.
Recorded release 026fdf3e · 2026-10-20T12:19:56.397Z · 1728 × 977 Denied request closed with the original dispense retained
Capture details
Genuine natural 1728 × 977 root-native original on exact local unpushed 026f source. Bounded fictional ledger return only: role refusal or authorized Normal single-unit branch. No physical medicine/cash movement, invoice issuance, provider submission, OS printing, account closure or full Pharmacy qualification. The prior dispense-category defect remains unrepaired; the document preview retains its untranslated return_date heading.
Image SHA-256
f1c8352d310bad5eb15f64425c9f08a8fee81e339ff0ac155ef5855c8d0b8761- Original order remains Completed: Closing the denied form returns to the existing dispense.
- Original quantity six: The denied request did not change the visible original quantity.
- Existing payment summary: The original paid summary remains; it is not a return payout.
- Return entry remains visible: A visible entry point alone is not write authorization.
- The form is a fictional software exercise only. No medicine was physically returned, no cash refund was collected or paid, and no permission or role change was made.
Recorded release 026fdf3e · 2026-10-20T12:19:00.637Z · 1728 × 977 Fictional one-unit return intention before the refusal
Capture details
Genuine natural 1728 × 977 root-native original on exact local unpushed 026f source. Bounded fictional ledger return only: role refusal or authorized Normal single-unit branch. No physical medicine/cash movement, invoice issuance, provider submission, OS printing, account closure or full Pharmacy qualification. The prior dispense-category defect remains unrepaired; the document preview retains its untranslated return_date heading.
Image SHA-256
623238f7cb596a346e7a351ee83e50e996bde96df0a0b96bf21e66b61c32797a- Synthetic return name: The name identifies this separate ledger exercise.
- Training-only scope: The note records one fictional unit and excludes physical medicine and cash movement.
- Create Return: The visible control does not establish that the current role can save the request.
1. Match the patient and review the unsaved return form
Medication Return opens a side sheet for the same patient. It prefills a name and offers an optional note. Opening this form creates no order and does not establish permission to save it.
Return form opened from the completed dispense
Capture details
Genuine natural 1728 × 977 root-native original on exact local unpushed 026f source. Bounded fictional ledger return only: role refusal or authorized Normal single-unit branch. No physical medicine/cash movement, invoice issuance, provider submission, OS printing, account closure or full Pharmacy qualification. The prior dispense-category defect remains unrepaired; the document preview retains its untranslated return_date heading.
Image SHA-256 79dc660736ad589228fd54c2e29064209efcbb24da4003e111a5661098ca3dd5
- Prefilled return name: The form is still unsaved; confirm the patient before naming the return.
- Optional note: The recorded case used this field to identify a fictional training return.
- Cancel: Close an unsaved request without creating a return order.
2. Read the recorded training intention
The operator entered a recognizable synthetic one-unit return name and a note that excludes physical medicine movement, clinical instruction and cash refund. These are still unsaved fields. The underlying six-unit original dispense remains Completed and Fully Paid.
Fictional one-unit return intention before the refusal
Capture details
Genuine natural 1728 × 977 root-native original on exact local unpushed 026f source. Bounded fictional ledger return only: role refusal or authorized Normal single-unit branch. No physical medicine/cash movement, invoice issuance, provider submission, OS printing, account closure or full Pharmacy qualification. The prior dispense-category defect remains unrepaired; the document preview retains its untranslated return_date heading.
Image SHA-256 623238f7cb596a346e7a351ee83e50e996bde96df0a0b96bf21e66b61c32797a
- Synthetic return name: The name identifies this separate ledger exercise.
- Training-only scope: The note records one fictional unit and excludes physical medicine and cash movement.
- Create Return: The visible control does not establish that the current role can save the request.
3. Recognize the permission refusal and stop
The save was refused. The visible fourth original retains Error creating medication return and Cannot write delivery orders. The capture sequence contains two controlled refused attempts; the second was made only to retain the immediate error on screen and is not a repeat-click instruction. Neither attempt created a delivery order or supply delivery in the bound read-only records.
Visible return permission refusal
Capture details
Genuine natural 1728 × 977 root-native original on exact local unpushed 026f source. Bounded fictional ledger return only: role refusal or authorized Normal single-unit branch. No physical medicine/cash movement, invoice issuance, provider submission, OS printing, account closure or full Pharmacy qualification. The prior dispense-category defect remains unrepaired; the document preview retains its untranslated return_date heading.
Image SHA-256 c2936c50ef2a1aa0d3734c3089ba697a8b40969c9346e27db1dcd8767e2bc74d
- Creation failed: This visible notification reports failure, not a saved return.
- Cannot write delivery orders: The permission refusal is visible in this fourth original.
- Close the unsaved request: Stop after a permission refusal and hand off to a configured authorized operator.
4. Close the denied form and arrange an authorized handoff
The operator closed the unsaved sheet with Escape. The same Completed six-unit dispense and SAR 38.00 paid summary remained. Stop after the refusal and use the facility’s authorized return process. In the separate recorded lesson, the existing Facility Admin signed in normally; no access grant or role edit was used.
Denied request closed with the original dispense retained
Capture details
Genuine natural 1728 × 977 root-native original on exact local unpushed 026f source. Bounded fictional ledger return only: role refusal or authorized Normal single-unit branch. No physical medicine/cash movement, invoice issuance, provider submission, OS printing, account closure or full Pharmacy qualification. The prior dispense-category defect remains unrepaired; the document preview retains its untranslated return_date heading.
Image SHA-256 f1c8352d310bad5eb15f64425c9f08a8fee81e339ff0ac155ef5855c8d0b8761
- Original order remains Completed: Closing the denied form returns to the existing dispense.
- Original quantity six: The denied request did not change the visible original quantity.
- Existing payment summary: The original paid summary remains; it is not a return payout.
- Return entry remains visible: A visible entry point alone is not write authorization.
A visible button does not grant return-write access
The return entry is visible to this Pharmacist, but this no-origin patient return requires the destination’s external-supply-delivery write permission. In this source version the configured write roles are Facility Admin and Admin; Pharmacist has supply-delivery read access. The actual save refusal confirms the boundary for this actor and location. Do not infer that every account or site has identical configured access.
Visible return permission refusal
Capture details
Genuine natural 1728 × 977 root-native original on exact local unpushed 026f source. Bounded fictional ledger return only: role refusal or authorized Normal single-unit branch. No physical medicine/cash movement, invoice issuance, provider submission, OS printing, account closure or full Pharmacy qualification. The prior dispense-category defect remains unrepaired; the document preview retains its untranslated return_date heading.
Image SHA-256 c2936c50ef2a1aa0d3734c3089ba697a8b40969c9346e27db1dcd8767e2bc74d
- Creation failed: This visible notification reports failure, not a saved return.
- Cannot write delivery orders: The permission refusal is visible in this fourth original.
- Close the unsaved request: Stop after a permission refusal and hand off to a configured authorized operator.
Denied request closed with the original dispense retained
Capture details
Genuine natural 1728 × 977 root-native original on exact local unpushed 026f source. Bounded fictional ledger return only: role refusal or authorized Normal single-unit branch. No physical medicine/cash movement, invoice issuance, provider submission, OS printing, account closure or full Pharmacy qualification. The prior dispense-category defect remains unrepaired; the document preview retains its untranslated return_date heading.
Image SHA-256 f1c8352d310bad5eb15f64425c9f08a8fee81e339ff0ac155ef5855c8d0b8761
- Original order remains Completed: Closing the denied form returns to the existing dispense.
- Original quantity six: The denied request did not change the visible original quantity.
- Existing payment summary: The original paid summary remains; it is not a return payout.
- Return entry remains visible: A visible entry point alone is not write authorization.
The refused request changed no scoped business state
The fixed snapshots show all 17 scoped collections unchanged after each refusal and after closing the form: no return order, no return item, no stock change, no new charge/invoice and no payment change. This is a comparison of the synthetic case and Main Pharmacy stock, not a whole-database audit. The earlier dispense-category defect already existed before these attempts and remains unresolved.
Visible return permission refusal
Capture details
Genuine natural 1728 × 977 root-native original on exact local unpushed 026f source. Bounded fictional ledger return only: role refusal or authorized Normal single-unit branch. No physical medicine/cash movement, invoice issuance, provider submission, OS printing, account closure or full Pharmacy qualification. The prior dispense-category defect remains unrepaired; the document preview retains its untranslated return_date heading.
Image SHA-256 c2936c50ef2a1aa0d3734c3089ba697a8b40969c9346e27db1dcd8767e2bc74d
- Creation failed: This visible notification reports failure, not a saved return.
- Cannot write delivery orders: The permission refusal is visible in this fourth original.
- Close the unsaved request: Stop after a permission refusal and hand off to a configured authorized operator.
Denied request closed with the original dispense retained
Capture details
Genuine natural 1728 × 977 root-native original on exact local unpushed 026f source. Bounded fictional ledger return only: role refusal or authorized Normal single-unit branch. No physical medicine/cash movement, invoice issuance, provider submission, OS printing, account closure or full Pharmacy qualification. The prior dispense-category defect remains unrepaired; the document preview retains its untranslated return_date heading.
Image SHA-256 f1c8352d310bad5eb15f64425c9f08a8fee81e339ff0ac155ef5855c8d0b8761
- Original order remains Completed: Closing the denied form returns to the existing dispense.
- Original quantity six: The denied request did not change the visible original quantity.
- Existing payment summary: The original paid summary remains; it is not a return payout.
- Return entry remains visible: A visible entry point alone is not write authorization.
Troubleshooting
Create Return is visible but saving says Cannot write delivery orders
Stop and close the unsaved request. Record the refusal and ask the facility’s configured authorized operator to follow the return workflow. Do not keep retrying, grant yourself access or treat the original paid banner as evidence that a return was saved.
Visible return permission refusal
Capture details
Genuine natural 1728 × 977 root-native original on exact local unpushed 026f source. Bounded fictional ledger return only: role refusal or authorized Normal single-unit branch. No physical medicine/cash movement, invoice issuance, provider submission, OS printing, account closure or full Pharmacy qualification. The prior dispense-category defect remains unrepaired; the document preview retains its untranslated return_date heading.
Image SHA-256 c2936c50ef2a1aa0d3734c3089ba697a8b40969c9346e27db1dcd8767e2bc74d
- Creation failed: This visible notification reports failure, not a saved return.
- Cannot write delivery orders: The permission refusal is visible in this fourth original.
- Close the unsaved request: Stop after a permission refusal and hand off to a configured authorized operator.
Denied request closed with the original dispense retained
Capture details
Genuine natural 1728 × 977 root-native original on exact local unpushed 026f source. Bounded fictional ledger return only: role refusal or authorized Normal single-unit branch. No physical medicine/cash movement, invoice issuance, provider submission, OS printing, account closure or full Pharmacy qualification. The prior dispense-category defect remains unrepaired; the document preview retains its untranslated return_date heading.
Image SHA-256 f1c8352d310bad5eb15f64425c9f08a8fee81e339ff0ac155ef5855c8d0b8761
- Original order remains Completed: Closing the denied form returns to the existing dispense.
- Original quantity six: The denied request did not change the visible original quantity.
- Existing payment summary: The original paid summary remains; it is not a return payout.
- Return entry remains visible: A visible entry point alone is not write authorization.
Source evidence
Every citation uses this exact committed version. The private source repository requires access.
- repositories/platform/mansoq-web/src/pages/Facility/services/pharmacy/MedicationReturnSheet.tsx:100 ·
026fdf3ef482f27cd29dd84a1efc699d1768bd07Source file checksum
9604617c375666f4db55238676070d443d8c19351ac33622879ef970cacd7764 - repositories/platform/mansoq-web/src/pages/Facility/services/pharmacy/components/DispenseOrderViewFooter.tsx:289 ·
026fdf3ef482f27cd29dd84a1efc699d1768bd07Source file checksum
9ddc555df83d78afd04ed0e339630d6e67ccd52a1545d5103a835d8633d0acd6 - repositories/platform/mansoq-core/mansoq/emr/api/viewsets/inventory/delivery_order.py:160 ·
026fdf3ef482f27cd29dd84a1efc699d1768bd07Source file checksum
d18ed0813750bf23a1da2a7553880bb340724b8c63396e0a2e045c0b66843063 - repositories/platform/mansoq-core/mansoq/security/authorization/supply_delivery.py:27 ·
026fdf3ef482f27cd29dd84a1efc699d1768bd07Source file checksum
934acb2a4580c391a692d0af4a0b1fbd39955bbc2e98c84fbe4acf1bd6922fcc - repositories/platform/mansoq-core/mansoq/security/permissions/supply_delivery.py:38 ·
026fdf3ef482f27cd29dd84a1efc699d1768bd07Source file checksum
5bab550ead04c1b8dde1cbbf0b7db7ce9b76fa2db3b9909d0c0dadc4cb43b012 - repositories/platform/mansoq-web/src/pages/Facility/services/pharmacy/hooks/useUpdateDispenseOrderStatus.ts:77 ·
026fdf3ef482f27cd29dd84a1efc699d1768bd07Source file checksum
bf44ba50b41c5e36c9cdfd0ed61fa4f4a729282fb99e743b8a316de7588652bb



