Skip to content

[docs] Locations, bed board and facility forms for 3.1 - #135

Open
billjohnc wants to merge 10 commits into
mainfrom
claude/docs-locations-forms-3-1-332b8e
Open

billjohnc wants to merge 10 commits into
mainfrom
claude/docs-locations-forms-3-1-332b8e

Conversation

@billjohnc

@billjohnc billjohnc commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Care 3.1 documentation for Locations (Settings → Locations was rebuilt in care_fe #17224), the bed board (Search by Location and a location's Beds page, care_fe #17222), the Location Overview page, and forms and responses for a location, a device or the facility (care_fe #16914). Version 3.1 only.

Page list chosen without a stage-4 round: billjohnc chose "Go ahead, play safe" (relayed by the coordinating session). Anything the code could not settle is left out of the pages and listed under Open questions below. Please review the page list and the questions.

Pages

Concepts (versioned_docs/version-3.1/concepts/facility/):

Page Status
location.mdx — Locations Updated. The old Availability row ("Reserved when a patient is assigned") is replaced by the four bed states the bed board shows. Adds Inventory Usage (what each value turns on), Tags, Beds and the bed board, the location's own pages and forms, and the full permission picture.
facility-forms.mdx — Location, device and facility forms New.

Flows, Location (flows/facility/location/), in sidebar order:

Page Status
create-location.mdx — Create a location Updated (Add Location sheet, top level vs inside a location, Inventory Usage)
add-beds.mdx — Add beds to a location New
view-locations.mdx — View locations Rewritten: the List and Map tabs and the table/card views are gone
edit-location.mdx — Edit a location Updated: entry points moved; one Edit Location sheet
manage-location-tags.mdx — Manage a location's tags New
manage-location-organizations.mdx — Manage a location's organizations Rewritten: the button is now in the Edit Location sheet
reorder-locations.mdx — Reorder locations Rewritten: Move Up / Move Down in the ⋮ menu, no paging
delete-location.mdx — Delete a location Updated: ⋮ menu and the Edit Location sheet
open-a-location-overview.mdx — Open a location's overview New
view-the-bed-board.mdx — View the bed board New

Flows, Forms (flows/facility/forms/, new category "Forms" under Facility): submit-a-form.mdx, view-form-responses.mdx, mark-a-response-as-entered-in-error.mdx.

Sidebar: versioned_sidebars/version-3.1-sidebars.json — the Location items list and one new "Forms" category after it.

Verified against

  • care develop @ ddfd840dbe314b4e53d2a719d2138324d970634b (23 Nov 2026)
  • care_fe develop @ abf39459484735a57a5139d5c66438ec8b490ad1 (30 Nov 2026)

The pages were written against care_fe 5e02f9a (26 Nov 2026) and re-checked on 30 Nov 2026 against #17359, #17378 and #17358. The bed board now shows only the beds directly in a location, with rooms under More areas; it and the Locations page have a location search, a panel button and a folded breadcrumb, and a bed tile's menu has Move Earlier and Move Later. The pages say so. The screens that really changed were retaken on 30 Nov 2026 at care_fe abf394594 on the same stack: the "View the bed board" video and screenshots -2, -4 and -5; view-locations-6; add-beds-1 and -8; the "Open a location overview" video and -7. Following billjohnc's rules of 30 Nov, patient names are blurred while recording, and the narration reads each step as a sentence, without step numbers. The other Settings screenshots and videos differ only by the new search box and breadcrumb bar and are kept, by billjohnc's choice.

Every sentence about Care was traced to a fact with its file and lines at these commits (about 600 facts), then read by fresh-eyes reviewers who checked each claim against its fact. Permission tables trace the full path (navigation, page load, pickers, save), not only the final permission. Screenshots and narrated videos are recorded on a local stack at the same commits with invented data only (see Media).

Differences from the house style, on purpose

  • Language tiers. Steps, prerequisites and field tables follow ASD-STE100 writing rules; overviews and concept prose are plain, consistent English.
  • Version. Written to 3.1 only; the 3.0 location pages describe different screens.
  • Permissions. Each table covers the whole path to the action. Role lists are defaults. The role named "Admin" is left out of default-role lists (the facility role picker never offers it).
  • Flow titles have no "How to" prefix, like every other 3.1 flow.

Media

All 13 flow pages have annotated screenshots (77 images, under static/media/facility/location/ and static/media/facility/forms/) and a narrated, subtitled video under the Overview.

  • Where and as whom: a local Care stack at the commits above (care ddfd840, care_fe 5e02f9a), with invented data only (City General Hospital, Main Block → Ward 3, patients Rahul Menon, Lakshmi Pillai and Vikram Singh). Settings flows are recorded as a Facility Admin, the bed board, overview and forms as a Nurse. No superuser on camera.
  • Runtime checks: every recorded flow's API calls went to the local backend with no 4xx, and were compared with each page's Permissions table. Recording corrected four pages: the department picker pre-selects your own department and the sheet closes after Add Organizations; selecting a healthcare service opens its Locations page; the encounter tab is labelled Overview; the overview needs Can Read Healthcare Service, and the submit flow now lists Can View Resource Responses for the list it opens after saving.
  • Variants: the forms pages also show the device page and the facility settings, as screenshots.
  • Narration: every video is narrated. For each step, the voice reads the step plus one short sentence of context taken from that page's own text or its facts, and the subtitles show what it says.
    • The voices are AI-generated with ElevenLabs (model eleven_v4). They are cloned voices of Gauri and Bill, alternating flow by flow in sidebar order.
    • Where a spoken line is longer than its step on screen, the video holds a settled frame and the subtitles are timed to match.
    • In "Manage a location's tags", the expiry and error steps (4 and 6) do not occur with the tag used, so the video goes from step 3 to step 5.
    • Nobody has listened to the finished videos yet; a mispronounced label is something only a listen catches.

Left out, because it could not be verified or is not for product users

  • The bed availability dashboard (/facility/{id}/bed-availability): it has no navigation link at this commit (Q3).
  • Structured questions on location, device and facility forms (Q6).
  • What a user whose roles are only in the root department sees on the bed board (read from code, not run).
  • Which text appears on screen when a tag change is refused.
  • Assigning a patient to a bed: that is done from the encounter; the bed board links to the existing flow.

Open questions (none blocks a page)

  • Q1 "Reserved": the bed board shows Reserved for a bed marked Occupied with no patient on it (for example a bed booked for later). The API's own availability field says "reserved" when a patient is on the bed, and no 3.1 screen shows that field. The pages follow the bed board.
  • Q2 Inventory Usage: what are Supplier, Consumption and Adjustment for? On screen they behave like any value other than None. The pages say what each value turns on and give no intent.
  • Q3 Is the bed availability dashboard meant to be reachable in 3.1?
  • Q4 Is creating a top-level location meant to need "Can Create Facility Organizations" in the root department (by default only Facility Admin), not "Can Create/Update Facility Locations"? The pages document what the backend does.
  • Q5 Should staff whose roles are only in departments be able to submit facility forms? Today the permission must be held in the root department or a government organization.
  • Q6 Can these forms contain structured questions, and what does the form show for them?

Possible product issues (found while documenting; not filed)

Certain from the code unless marked otherwise. File paths are in care (backend) or care_fe (frontend) at the commits above.

  1. An occupied bed can be deleted through the API. The backend's check for a patient on delete is a TODO (care/emr/api/viewsets/location.py:86-90); only the screen hides Delete.
  2. Inventory Usage is enforced only by the frontend. The backend stores it and never reads it; dispense, orders and deliveries do not check it.
  3. Location Overview quick links ignore Inventory Usage. Pharmacy, Items and To Dispatch are listed for a location whose Inventory Usage is None and open an error page, while the sidebar hides them (LocationOverview.tsx). High.
  4. Settings → Locations shows every write control to every user (Add Location, Edit, Move Up/Down, Delete, tags); the backend refuses on save. canWriteFacilityLocation is defined but unused. The top-level Add Location is also shown to Staff, who lack the permission it needs.
  5. Form and response controls have no permission check. Submit forms, the Responses entries and the device Responses tab show for everyone; for example a Pharmacist can open a location, but the list fails and Save is refused. High (from code).
  6. Patient names visible with only "Can List Facility Locations". The location API returns the current encounter on a bed, and a location's Beds page has no visibility condition, so Pharmacist and Administrator see patients on beds although Search by Location is hidden from them. Medium.
  7. "Bed Encounter Details" shows the newest bed assignment of any status, so it can show a past patient (BedBookingSheet.tsx:38-49). Medium.
  8. Bed assignment checks. The conflict check misses open-ended overlaps (location.py:442-468, high), and an end time sent with an active assignment is still stored (location.py:428-430).
  9. A Facility Admin whose only role is in the root department probably gets an empty bed board ("No locations are assigned to your departments yet."), because the tree uses only departments linked directly to a location. Read from code; not run.
  10. Top-level location create is gated on "Can Create Facility Organizations", not the location permission (care/security/authorization/facility_location.py:35-43). See Q4.
  11. "Can List / Can Create/Update Facility Location Organizations" are defined and never checked.
  12. Location names are never checked for uniqueness. Medium.
  13. The bed board shows status Unknown as "Inactive"; Settings shows "Unknown". Low.
  14. Move Up / Move Down writes location type "OTHER" to a location that has none (useLocationActions.ts:58). Low.
  15. "Mark as entered in error" is always shown; after 120 minutes (default) the backend refuses. Low.
  16. submit_resource skips the form read check, and instance forms opened by id are not checked ("TODO: Authorization for instance level missing", questionnaire.py:286-287). API only. Low.
  17. Settings → Healthcare Services: a service's Locations card always opens the Prescriptions page, whatever the service type. Low.
  18. The "Is Geo Admin" check limits organizations only when the facility has government organizations (care/security/authorization/base.py:37). Read, not run.
  19. The location associate_encounter action returns nothing and would likely fail; the frontend does not call it. Low.

Links other open PRs should add (for the PR fixer)

  • [docs] Encounter for 3.1 #129 Encounter: concepts/clinical/encounter.mdx:184 ("Search by Location opens the bed board") should link ../../flows/facility/location/view-the-bed-board.mdx; flows/clinical/encounter/find-an-encounter.mdx:49 (which says the entry belongs to the location pages) should link ../../facility/location/view-the-bed-board.mdx.
  • [docs] Questionnaire Response for 3.1 #130 Questionnaire Response: add a scope note that forms for a location, a device or the facility store responses with no patient, linking concepts/facility/facility-forms.mdx (from concepts/clinical/ it is ../facility/facility-forms.mdx).
  • [docs] Definitions & Terminology for 3.1 #112 Definitions: where concepts/definitions/questionnaire.mdx:42 and flows/definitions/questionnaire/create-questionnaire.mdx:68 name the Location, Device and Facility subject types, link ../facility/facility-forms.mdx (from the concept) and ../../../concepts/facility/facility-forms.mdx (from the flow).
  • Devices, services & resource requests session: the device pages can link ../forms/submit-a-form.mdx and ../forms/view-form-responses.mdx; the pharmacy setup can link ../../../concepts/facility/location.mdx#inventory-usage.

🤖 Generated with Claude Code

Rewrite the location pages for the rebuilt Settings > Locations (care_fe #17224),
add the bed board (#17222), the Location Overview, and forms and responses for a
location, a device or the facility (#16914). Verified against care ddfd840 and
care_fe 5e02f9a.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Deploying coredocs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 967f7a5
Status: ✅  Deploy successful!
Preview URL: https://fcac66e4.coredocs.pages.dev
Branch Preview URL: https://claude-docs-locations-forms.coredocs.pages.dev

View logs

billjohnc and others added 7 commits November 29, 2026 02:29
…t runtime

Screenshots recorded on a local stack at care ddfd840 / care_fe 5e02f9a with
invented data. Runtime corrections: the department picker pre-selects your own
department and the sheet closes after Add Organizations; selecting a service
opens its Locations page; the encounter tab is labelled Overview; the overview
needs Can Read Healthcare Service and the submit flow lists Can View Resource
Responses for the list it opens.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Thirteen videos recorded on a local stack at care ddfd840 / care_fe 5e02f9a with
invented data. Each is narrated by an AI voice (ElevenLabs, eleven_v4; cloned
voices Gauri-eng and Bill-eng, taking turns flow by flow in sidebar order), with
subtitles of the spoken words; frames are held where a line is longer than its
step.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
care_fe 9b12a7597 (#17359)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…the bed board

care_fe 9b12a7597 (#17359)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…with Clear filters

care_fe 9b12a7597 (#17359)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… breadcrumb on the Locations page

care_fe 9b12a7597 (#17359)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
care_fe 9b12a7597 (#17359)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
billjohnc and others added 2 commits November 30, 2026 21:38
…ew bed board

care_fe 9b12a7597 (#17359)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each narrated video now plays from the Open Healthcare Network YouTube
channel (playlist "Care 3.1 documentation"), with its subtitles on
YouTube. The .mp4, .vtt and poster files are removed from this branch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant