Skip to content

[docs] Medications for 3.1: verified against the 3.1 code, with screenshots and narrated videos - #117

Open
billjohnc wants to merge 9 commits into
mainfrom
claude/medications-module-update-f9fa37
Open

billjohnc wants to merge 9 commits into
mainfrom
claude/medications-module-update-f9fa37

Conversation

@billjohnc

@billjohnc billjohnc commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Updates the Care 3.1 Medications docs to match the 3.1 code, and adds the pharmacy tasks the section was missing. Every statement was checked against the code, and every flow was recorded on a running Care built from the same commits.

What changed (version 3.1 only)

Replaced (21 pages): the 4 Medications concepts (Medication request, administration, dispense, statement), the 4 references, and 13 existing flows.

Added (15 pages):

  • Concepts: Dispense order, Medication return
  • Reference: Dispense order
  • Prescribing: Stop a medicine
  • Administration: Print the drug chart
  • Dispensing at the pharmacy: Open the prescription queue, Preview a patient's prescriptions, Bill and dispense prescribed medicines, Dispense medicines without a prescription, Collect payment and complete a dispense order, Change items in an open dispense order, Put a dispense order on hold and resume it, Cancel a dispense order, Find and print a dispense order, Return dispensed medicines

Removed (2 pages):

  • "Manage a prescription": naming a prescription or adding medicines to an existing one no longer exists in 3.1. Each save makes one new prescription. Its links now go to the view and prescribe pages.
  • "Mark a medication statement as entered in error": it is a section of "Update a medication statement" now, because both happen in the same form.

"Dispense a medication" keeps its address and is retitled "Dispense from an encounter"; the pharmacy task has its own page. The sidebar (versioned_sidebars/version-3.1-sidebars.json) lists the 25 flows in the order a user meets them.

Media: all 25 flow pages have annotated screenshots (177 images) and a narrated, subtitled video.

The biggest corrections

  • The encounter tab is Medications, not "Medicines". Forms save with Save Changes, and Care then returns to the encounter's Overview.
  • Prescriptions: they have no name, and you cannot pick an existing one. Edit cannot add medicines; it changes a saved medicine's note or marks it Entered in Error. Discontinue is new.
  • Pharmacy: the old pages described only the encounter's Dispense drawer. Pharmacists dispense from the Prescription Queue through Bill Medications, a dispense order, payment and completion, all documented now.
  • Returns: the old dispense concept said Care has no return action. 3.1 has medication returns, which add stock back and issue a refund invoice.
  • Medication statements: the patient's "Add Patient Updates" page refuses the statement form in 3.1. The pages now start from the encounter's Forms, with a facility-built form that has the Medication Statement question.
  • Statement period: Care accepts a changed effective period, but the form shows it read-only once saved. The concept says both; the flow describes the form.
  • Permissions: every table now covers the whole path, including "Pharmacist in Care", the read permissions and where each must be held. Several old rows named roles that cannot do the action.
  • The "Admin" role: pages listed "Admin" as a default holder. Care keeps one database role of that name, for role organizations only, so nobody can hold it in a facility. Default role lists now leave it out.

Verified against

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

The pages were written against care_fe 5e02f9a (26 Nov 2026). On 30 Nov 2026 they were re-checked against the later changes that touch them, and two were added: the location selector of the dispense drawer also starts with your own locations (#17339), and the Medication Return page now lists the returns of the location (#17368). The recordings are from 5e02f9a; the screens they show did not change.

From code: 1,331 facts with file, lines and quotes, and a permission path for each flow. A script checked every quote against its cited lines.

At runtime: a local stack started from those commits, with fixture data renamed to invented people.

  • 13 probes as Nurse, Staff, Pharmacist and Facility Admin users confirmed the refusals and empty lists the code predicted.
  • Every flow was recorded as the role its page names (Doctor, Nurse, Pharmacist or Facility Admin, never a superuser). Each recording's API calls were compared with the page's permission table, and 13 pages were corrected where the screen differed.

Reviews: every page had a separate review against the facts by a reviewer who did not write it.

Intentional differences from the house style

  • Language: Simplified Technical English rules apply to instructions (steps, prerequisites, warnings, tables). Explanations use plain, consistent English.
  • Versions: the pages were verified only against 3.1, so they go only to 3.1. 3.0 is untouched.
  • Permissions: each table covers the whole path to the action, not only the final permission.
  • Concepts: they keep a Permissions section, as the concept guide asks and the existing concepts do, although concept-template.md has none. Longer explanations sit in "Where to find it" and "How it connects", sections other concepts already use, so each Definition stays at two to four sentences.
  • Flow titles: they follow the existing site, not the template's "How to …".
  • Media markup: each video carries a <track> with subtitles, and screenshots are placed after the step they show.
  • Narration: every video is narrated. For each step, the voice reads the step plus a sentence or two of context taken from that page's own text, 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 "Open the prescription queue", about 3 seconds showing a Care error message were cut from the recording.

Left out, and open questions

  • Not documented: the patient's Past Medications tab, and the Nutrition view beyond one sentence. Prescription templates have no page of their own: the prescribe page's note on Templates links the existing response template pages (Apply a response template, and from Related, the concept and the create and update pages).
  • Open product questions:
    • Is it intended that Pharmacists cannot create returns, dispense without a prescription, or cancel an order whose invoice is issued? The pages describe Care as it is: a Facility Admin does these by default.
    • Is it intended that a pharmacist can reactivate a cancelled prescription, and change one after the encounter is closed?
    • Should the Medication Statement form have its own entry point? Today facilities must build a form that contains the question.

Suspected product bugs found on the way

These came from the code and, where marked, a run. None is filed yet.

  • The Medication Return list was always empty: the screen asked for returns with a filter the 3.1 backend no longer reads (confirmed by a run). Fixed since these pages were checked, by care_fe #17368 (9fda14ba9, 29 Nov 2026).
  • The encounter's Dispense History shows no orders to Doctors, Nurses or Staff, and its Dispense drawer cannot complete its order for them (confirmed).
  • New Dispense uses the pharmacy this browser opened last, not the one it was opened from (confirmed).
  • Pharmacists are offered Mark as Already Given, Remove Medication and Cancel Prescription, which the backend refuses for them (confirmed).
  • A Pharmacist sees "Not Found" when choosing a patient on the Dispense Orders page or in the queue (confirmed).
  • The administer dialog swaps "Last administered by" and "Prescribed by", and its medicine heading is empty (confirmed).
  • Edit Administration never lets you set the end time.
  • The dispense order print stops at 14 lines and does not mark cancelled ones (confirmed).
  • The encounter_class filter on medication requests returns HTTP 500 (confirmed).
  • Opening an encounter writes a default account every time.
  • Two findings are security-relevant. They are left out of this pull request, to be reported to the Care team privately.

Skill

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

🤖 Generated with Claude Code

billjohnc and others added 3 commits November 28, 2026 06:58
Replace the 4 Medications concepts, 4 references and 13 flows with pages
verified against care ddfd840 and care_fe 5e02f9a. Add Dispense order and
Medication return concepts, the Dispense order reference, and 12 flows:
Stop a medicine, Print the drug chart, and the pharmacy tasks from the
Prescription Queue to returns. Remove "Manage a prescription" and fold
"entered in error" into "Update a medication statement". Add annotated
screenshots for every flow and list the flows in the 3.1 sidebar.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
One video per flow, narrated with AI voices (ElevenLabs, eleven_v4;
cloned voices of Gauri and Bill, alternating flow by flow), with
subtitles that show what the voice says.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…close recorded encounters

- permissions.md: Care keeps one database role named "Admin", for role
  organizations only; check before naming it in a default role list.
- research.md: give parallel researchers, writers and reviewers their
  own fact ranges and files, and a shared brief; write report.md yourself.
- media.md: Care limits active encounters per patient; close the
  encounters a recording creates.
- kit.ts: hide the dev server's TanStack devtools buttons.
- make_plan.py: print usage for --help instead of writing a plan.
- stitch.py: end each video at the shorter of sound and picture.

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: a2b5de5
Status: ✅  Deploy successful!
Preview URL: https://a2a8f422.coredocs.pages.dev
Branch Preview URL: https://claude-medications-module-up.coredocs.pages.dev

View logs

billjohnc and others added 2 commits November 29, 2026 00:34
This PR removed "Manage a prescription" and "Mark a medication statement as entered in error". The site has no redirect plugin, so their URLs would return 404 for anyone with a bookmark or an old link. Each page is back at its old path with its old title and a short pointer to the pages that now cover the task. They stay out of the sidebar but show it, so readers can move on.

Facts: a save of new medicines creates a prescription (care medication/request/spec.py:282-300; care_fe MedicationRequestQuestion.tsx:432-443). The medication statement form offers Entered in Error in the Status list of a saved statement (care_fe MedicationStatementQuestion.tsx:861-864). Pinned care ddfd840, care_fe 5e02f9a.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The prescribe page mentioned a Templates button without saying what it does or where it is documented. That button is the response template sheet (care_fe MedicationRequestQuestion.tsx:119,1138, ManageResponseTemplatesSheet), and applying a template adds its medicines to the form (MedicationRequestQuestion.tsx:833-853). Main already documents response templates, so the note now points to "Apply a response template", and Related lists the concept and its three flows. Pinned care_fe 5e02f9a.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
billjohnc added a commit that referenced this pull request Nov 28, 2026
The pages listed Admin as a default facility role and said it was the
facility role, not the role-organization one. The code says the
opposite. The permission definitions name an Admin role for facilities
(care security/permissions/encounter.py:24-29,
security/permissions/patient.py:43-62), but roles are stored by name
and the role-organization Admin is synced last, so the only role named
Admin has the ROLE_ORG context (security/roles/role.py:57-67,
management/commands/sync_permissions_roles.py:37-45). The facility role
pickers ask only for FACILITY roles (care_fe RoleSelect.tsx used with
RoleContext.FACILITY in LinkFacilityUserSheet.tsx:207,
EditFacilityUserRoleSheet.tsx:177, LinkUserToDepartmentSheet.tsx:131;
care security/api/viewsets/roles.py:10-15), so no one is offered Admin
in a facility. Each explanation now uses the shared wording from #117.
Pinned care ddfd840, care_fe 5e02f9a.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
billjohnc and others added 2 commits November 30, 2026 16:28
…ations

care_fe aecced559 (#17339)

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
billjohnc and others added 2 commits November 30, 2026 21:09
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