Skip to content

[docs] Healthcare Services, Devices and Resource Requests for 3.1, with narrated videos - #137

Open
billjohnc wants to merge 6 commits into
mainfrom
claude/docs-devices-services-requests-3-1-e21674
Open

billjohnc wants to merge 6 commits into
mainfrom
claude/docs-devices-services-requests-3-1-e21674

Conversation

@billjohnc

@billjohnc billjohnc commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Documentation for Healthcare Services, Devices and Resource Requests in Care 3.1: 3 concept pages and 20 task flows, each flow with a narrated video and step screenshots. Version 3.1 only.

This supersedes the pages of #80 ("Add Device, Healthcare Service and Resource Request docs for 3.1"). #80 was merged on 11 Aug into docs/facility-department-location after that branch had already gone to main through #78, so its merge commit e1fa5ffb never reached main. Its pages were written against August code; here every line was re-verified against the pinned code, and many were wrong (see "What changed from #80").

Pages

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

  • healthcare-service.mdx: replaces the page on main.
  • device.mdx: replaces the page on main.
  • resource-request.mdx: new. Main had only a reference page.

Flows (versioned_docs/version-3.1/flows/facility/, three new sidebar categories after Location):

Healthcare Service Device Resource Request
View healthcare services Create a device Create a resource request
Create a healthcare service View devices View resource requests
Edit a healthcare service Edit a device Update the status of a resource request
Delete a healthcare service Link a device to a location Assign a resource request
Set up a pharmacy Set a device's managing department Comment on a resource request
Open a service from Services Record a device's service history Print a resource request letter
Link a device to an encounter (new: the encounter's Devices tab)
Delete a device

Media: static/media/facility/{healthcare-service,device,resource-request}/ (20 videos with posters and captions, 128 screenshots at full resolution). Sidebar: versioned_sidebars/version-3.1-sidebars.json, only the three new categories.

The page list was confirmed by billjohnc on 29 Nov 2026, with two decisions: the create page documents only the patient profile start point, and resource request pages state plainly that no permission is needed (no caution note).

Verified against

  • care ddfd840dbe314b4e53d2a719d2138324d970634b (23 Nov 2026) and care_fe 5e02f9aa4f690e08375da310511e14606985f788 (26 Nov 2026), the latest develop on 29 Nov 2026 and the same commits as the other open 3.1 PRs.
  • Code: about 420 facts with file, lines and quote; every sentence in the drafts was marked with the facts it rests on and checked by a reviewer who did not write it. Permission tables trace the whole path from navigation to save, not only the final permission.
  • Runtime: a local stack started from the pinned commits (invented data only). Probes settled 25 points (for example: a department-only user cannot see a device they create; clearing a device date does not clear it; Staff are refused when linking a device to an encounter; any staff user can create a resource request for any facility). Every recording's API log was compared with the page's permission table, and two missed gates were added ("Pharmacist in Care" for the Prescription Queue; location read for editing a location).
  • Roles are default roles. The role named "Admin" is left out of default-role lists: on the stack it has only the role-organization context, so the facility role picker does not offer it.

Differences from the house style, on purpose

  • Language: Simplified Technical English rules for steps, prerequisites, notes and tables; plain, consistent English for explanations.
  • Versions: 3.1 only, the version whose code was verified.
  • Permissions: each table covers the whole path to the action (reaching the page, pickers, save) and says where each permission must be held. Resource request pages have no table, because Care has no permission for them; the Permissions section says so in prose.
  • Concept status tables: the device Status and Availability Status tables list the values without a meaning per value, because the code gives only the labels.
  • Media markup: each flow has a <video> with a captions <track>, and screenshots after the steps they show (the same markup as [docs] Medications for 3.1: verified against the 3.1 code, with screenshots and narrated videos #117).
  • Narration: each video has a voice that reads a short script per step: the step and one sentence of context taken from the page, with subtitles of the spoken words. The voices are AI-generated with ElevenLabs (model eleven_v4), from two voices cloned for the Care team: Gauri-eng and Bill-eng, taking turns flow by flow in sidebar order. Where a line is longer than its step on screen, the video holds a settled frame and the subtitles are timed to match.

What changed from #80 and from main

  • Healthcare service concept (main): permissions do not cascade down the organization tree (create needs "Can Create Healthcare Service on Facility" in the Administration department; read works in any department); the managing department is optional; the service type cannot be set in the app; Internal Type changes the location cards on Services and which services booking lists, nothing in the backend; slugs and Admin removed.
  • Device concept (main): listing devices needs only membership, while service and encounter history need "Can List Devices on Facility"; devices are released when the encounter is completed, cancelled, entered in error or discontinued; moving a device needs Disassociate first.
  • Add Device, Healthcare Service and Resource Request docs for 3.1 #80 device pages: Edit is in the page header; moving a location takes two steps; the Technical Details card and Overview/Responses tabs were missing; contact types were in the wrong order; no encounter link flow. The location and department page is split in two because their permissions differ.
  • Add Device, Healthcare Service and Resource Request docs for 3.1 #80 healthcare service pages: no Services page and no pharmacy setup; Delete is shown to users the backend refuses.
  • Add Device, Healthcare Service and Resource Request docs for 3.1 #80 resource request pages: creation is open to any staff user (not only facility members); there is no approval rule (anyone who can see a request can set any status); the field is "Reason for Request"; the letter's "Approved/Rejected by" line shows the last editor.

Left out, and questions for review

  • Links to pages that exist only in other open PRs are not added, so the build stays green: Medications ([docs] Medications for 3.1: verified against the 3.1 code, with screenshots and narrated videos #117: Prescription Queue, dispensing), Scheduling ([docs] Scheduling for 3.1 #119: booking, schedules), Encounter ([docs] Encounter for 3.1 #129: find an encounter), the Locations session's forms pages (device forms and the Responses tab), and the print template pages. They are listed for the coordinator below.
  • set-up-a-pharmacy links concepts/facility/location.mdx#inventory-usage. The heading comes with the Locations PR; until it merges, the build warns about this one anchor.
  • Not verified at runtime: whether New Dispense dispenses from the wrong pharmacy when the remembered location is stale. The pages say only what the code shows.
  • The edit-refusal message for healthcare services is not quoted (no fact).
  • Open questions are in the session's questions.md; none blocks a page.

Possible product issues (recorded, not filed)

Resource requests:

  1. No authorization at all. No permission exists and the viewsets define no checks. Any signed-in staff user can create a request with any facility as the requesting facility and any patient. Anyone who belongs to the requesting facility or the Facility for Care Support (any role, also members of their geo organizations) can change the status to anything at any time, reassign, delete and comment.
  2. Comments can be deleted by anyone who can see the request (API only).
  3. An assignee cannot be cleared; changing the Facility for Care Support keeps the old assignee, even if they are not a member of the new facility (confirmed at runtime).
  4. Only public facilities can be chosen as Facility for Care Support.
  5. The approving facility is never set or shown; such requests appear in no list.
  6. The detail page hides the assignee and the priority.
  7. The update form shows "Choose the category" for existing requests, though the saved category is kept.
  8. "supplies" has no label in the app and is re-saved as "other" on edit.
  9. The linked patient's phone and address are visible to everyone who can see the request.
  10. The empty list says "create a new resource", but the list has no create control; the form also works without a patient at an unlinked URL.
  11. A user who belongs only to the Facility for Care Support sees "Not Found" and an empty sidebar on the request page.
  12. The letter's "Approved/Rejected by" line names whoever last edited the request.
  13. No server-side phone validation or length limits: a long title or number gives a 500.

Devices:

  1. The list and device page check only membership; the page then loads histories that need "Can List Devices on Facility", so Volunteer and Administrator get errors.
  2. A user whose role is only in a department can create a device and then cannot see it.
  3. No device button checks permissions; users are refused on save.
  4. On the encounter Devices tab, Staff see "Associate a device to this encounter" and the save is refused.
  5. Linking a device that is on another patient's encounter moves it without warning; the picker also lists lost or destroyed devices.
  6. Manufacture and expiration dates cannot be cleared once set; the date picker opens on the current month.
  7. When removing a managing department is refused, the toast shows and then the sheet's error handler crashes.
  8. The department picker preselects your only department, so Add Organization can save Administration by accident.
  9. Missing locale keys fax, pager, sms on the device page.

Healthcare services:

  1. Delete is shown to users who hold the write permission only in a department; the backend refuses them. Add and Edit are not gated.
  2. The settings detail page sends every location to the Prescription Queue, whatever the service type.
  3. Update does not check that the managing department belongs to the facility (API only).
  4. New Dispense relies on a pharmacy remembered only from the Services page.
  5. Inventory Usage rules exist only in the frontend.
  6. Internal Type cannot be removed once set.
  7. The default fixtures create the demo pharmacy's location with Inventory Usage None.
  8. Copy: the locations popover reuses activity-definition text; every service page says "Accurate diagnostic tests across departments."; two messages are hard-coded English.

Evidence for each, with file and lines, is in the session's report.md and research/*.md.

What the skill learned

Moved to the consolidated Ezhuthachan skill update, #141. This PR no longer changes .claude/skills/.

For other open PRs

Pages here that other PRs could link once both are merged:

🤖 Generated with Claude Code

billjohnc and others added 4 commits November 29, 2026 02:30
Three concepts (healthcare service and device replace main's pages;
resource request is new) and 20 flows, verified against care ddfd840
and care_fe 5e02f9a, with step screenshots. Supersedes the pages of #80,
which never reached main.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Some ElevenLabs clips peak near -0.6 dB, so 5 of 20 narrated videos
failed check.py's -1 dB limit. A limiter after the mix holds peaks at
about -1.5 dB.

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

AI-generated narration (ElevenLabs eleven_v4; voices Gauri-eng and
Bill-eng, alternating by flow) reads the step and one sentence of
context from each page; subtitles show the spoken words.

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: 188ae9b
Status: ✅  Deploy successful!
Preview URL: https://2efd3e92.coredocs.pages.dev
Branch Preview URL: https://claude-docs-devices-services.coredocs.pages.dev

View logs

billjohnc and others added 2 commits November 30, 2026 21:10
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