Skip to content

[docs] Immunization for 3.1 - #123

Open
billjohnc wants to merge 7 commits into
mainfrom
claude/vibrant-almeida-fc28d5
Open

billjohnc wants to merge 7 commits into
mainfrom
claude/vibrant-almeida-fc28d5

Conversation

@billjohnc

Copy link
Copy Markdown
Contributor

Summary

Adds user documentation for Care's Immunization module to docs version 3.1: one concept page and eight flow pages, each flow with a narrated, subtitled video and step screenshots.

All pages are new; no existing page is replaced. Immunization exists only on develop (Care 3.1). It is absent from the 3.0 branches of care and care_fe, so nothing is written to version-3.0.

Pages

Concept: versioned_docs/version-3.1/concepts/clinical/immunization.mdx

Flows, in versioned_docs/version-3.1/flows/clinical/immunization/, listed in the sidebar under Flows › Clinical › Immunization (after Notes):

  1. Create an immunization policy
  2. Edit an immunization policy
  3. View a patient's immunizations
  4. Apply an immunization policy to a patient
  5. Record an immunization
  6. Record a dose from the schedule
  7. Change a recommendation's status
  8. Correct an immunization record

Media for these pages is in static/media/clinical/immunization/: 8 videos with posters and captions, and 50 step screenshots.

The concept page has sidebar_position: 14 and the flow category position 14, so that they sort after Referral (13, docs#111) when both land.

Verified against

  • care at ddfd840dbe314b4e53d2a719d2138324d970634b (develop, 23 Nov 2026)
  • care_fe at 5e02f9aa4f690e08375da310511e14606985f788 (develop, 26 Nov 2026)

Both were still the tip of develop on 28 Nov 2026.

How the pages were verified

  • From code. Every statement in the pages rests on a recorded fact with the file, the lines and a quote. There are 583 facts: 198 from the backend, 199 from the frontend, 87 from tracing how users reach each screen and what each picker needs, and 70 from writing and review.
  • At runtime. 29 facts come from probes run over HTTP as non-superuser accounts (Facility Admin, Doctor, Pharmacist) on a local stack at the two commits above, with fictional data only. Each flow was then recorded on the same stack, as Rohan Kapoor (Facility Admin) for the policy flows and Dr. Meera Iyer (Doctor) for the patient flows. Every recorded API call returned success, and the screens matched the written steps.
  • Permissions. Each table lists every permission on the path to the action: opening the encounter, seeing the tab, loading the lists, the pickers, and the save. Each row says where the permission must be held and which default roles hold it. These rules were checked by calling the API:
    • Recording a dose needs "Can Write Immunization" in the encounter's departments. A Doctor whose only role is in General Medicine is refused in an Emergency encounter.
    • A dose can be corrected only while the encounter it was recorded in is open.
    • A recommendation can be changed only while the encounter the policy was applied in is open.
    • Applying a policy adds at most 20 recommendations, and the save is all-or-nothing.
  • Review. Each page was reviewed by a reader who had not written it, against the facts, the templates and .github/references/review-checklist.md.

Where the pages differ from the house style on purpose

  • Language. Simplified Technical English rules apply to steps, prerequisites and tables. Explanations use plain, consistent English instead.
  • Versions. The pages are in 3.1 only, because the module does not exist in 3.0. The conventions file says the versions are kept identical; that cannot hold here.
  • Permissions. Each table lists every permission on the path to the action, not only the final one.
  • Roles. Default role lists leave out "Admin". At this commit the only role named "Admin" belongs to role organizations, not to facilities. The Medications pages for 3.1 make the same choice.
  • Concept page. The concept keeps a Permissions section, which care-concept-doc requires and the template lacks.
  • Media markup. Each video has a captions <track>, and screenshots sit after their steps. The build passes for every language with this markup.

Narration

  • What the voice says. Each video is narrated: one line per step, saying the step and a sentence or two of context taken from that page. The subtitles show the words spoken.
  • How it was made. The speech is AI-generated with ElevenLabs (model eleven_v4).
  • Whose voices. Two cloned voices take turns flow by flow, in sidebar order:
    • Gauri-eng, cloned from Gauri's voice, reads flows 1, 3, 5 and 7.
    • Bill-eng, cloned from Bill's voice, reads flows 2, 4, 6 and 8.
  • Timing. Where a line is longer than its step on screen, the video holds a settled frame until the voice finishes. The subtitles are timed to match.

Left out, and open questions

  • Instance policies. Only a superuser can create or edit an instance-wide policy, so there is no flow for it. The concept page explains that facility staff see instance policies read-only, with Scope "Instance", in their facility's list.
  • Removing things. Care has no way to delete a dose, a recommendation or an applied policy. The pages say so. "Entered in error" is a status of a record.
  • Product and lot. The record has a product field in the backend, but no screen sets it, so the pages leave it out.

Suspected product issues (not filed)

Reproduced on the commits above. Nothing is filed yet, by choice of the person who asked for these pages. Issue drafts with steps, code links and evidence are ready.

  1. The schedule freezes when the visit closes. Recommendations belong to the encounter in which the policy was applied. Once that encounter is completed, the backend refuses every change to them (403 "Access denied to immunization recommendations"). At a later visit, Status fails, and Record dose saves the dose but cannot mark the recommendation Complete, so it stays Due. The pages state this as a prerequisite.
  2. Edit appears on doses from closed encounters. The Immunizations tab shows Edit on every dose of the patient. The backend refuses to update a dose whose encounter is completed (403 "You do not have permission to update immunizations").
  3. The buttons check the facility, the backend checks the encounter. The tab shows Record immunization and Apply policy to anyone who holds the write permission in any department of the facility. The backend requires it in the encounter's departments, so the save can fail. The code comment that says the permissions are "facility scoped" is wrong.
  4. The lists leave out the encounter. The lists do not pass the encounter. A user whose only access is through the encounter gets 403 on both lists, while the same calls with the encounter return 200.
  5. Groups lose their own vaccines. When a policy is applied, a group's vaccine codes, target diseases and timing are not copied to the recommendations inside it, although the editor says a group can "set vaccines shared by the group". The pages tell readers to set them on each recommendation.
  6. Server errors on bad input. The policy list returns 500 when favorite_list is passed. A policy name over 255 characters also returns 500 instead of a validation error. The screens do not send either, so only API clients hit them.
  7. Smaller issues:
    • The read-only alert says "Instance policies can be edited in Administration", but only a superuser can.
    • The referral record picker says "Not Done" where the immunization screens say "Not given".
    • Dose unit names are not translated.

Skill updates

Three lessons for Ezhuthachan, in their own commits:

  • research.md: give each parallel researcher its own facts file and number range, and have it return findings as text. Two agents editing one facts.md overwrite each other, and the harness refuses subagent writes to files named like report-*.md.
  • media.md: how to share another session's stack when the user approves it. Mark the share in the owner's lock folder, queue recordings behind the owner's .recording.lock, and never reset a shared stack.
  • assets/narration/stitch.py: lower the mixed voice by 1 dB. Some cloned-voice clips arrive at about -0.9 dB and AAC lifts them past the -1 dB peak that check.py enforces; two of the eight videos failed without it.

🤖 Generated with Claude Code

billjohnc and others added 4 commits November 28, 2026 16:56
Concept page and eight flow pages for Care's Immunization module
(records, facility immunization policies, applying a policy, the
schedule of recommendations), with step screenshots and the flow
sidebar entries. Verified against care ddfd840 and care_fe 5e02f9a.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ng a stack

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Eight flow videos, narrated (ElevenLabs eleven_v4; cloned voices
Gauri-eng and Bill-eng, alternating in sidebar order) with subtitles
of the spoken words.

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

Some cloned-voice clips arrive at about -0.9 dB and AAC lifts them past
-1 dB; two of eight Immunization videos failed check.py without this.

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: 857623f
Status: ✅  Deploy successful!
Preview URL: https://7119cd87.coredocs.pages.dev
Branch Preview URL: https://claude-vibrant-almeida-fc28d.coredocs.pages.dev

View logs

billjohnc added a commit that referenced this pull request Nov 28, 2026
Position 13 is also taken by the Referral concept in #111, and 14 by
the Immunization concept in #123. The concepts sidebar is
autogenerated, so pages with the same position have no set order.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
billjohnc and others added 3 commits November 29, 2026 00:33
The concept said a patient's immunization records can be shared with a
referral. The screen cannot do it: the Record type list of the Add
record dialog offers only diagnoses, responses, diagnostic reports,
files, specimens and related referrals (care_fe
src/types/emr/referral/referralResource.ts:31-38,
src/components/Referral/ReferralResourcePicker.tsx:114-115,258), and
that dialog is the only one that attaches clinical records
(ReferralSharedRecords.tsx:586). Only a direct API call can attach an
immunization (care emr/resources/referral/spec.py:228). Pinned care
ddfd840, care_fe 5e02f9a.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A report template reads only the fields that Care declares for it, and
no report context has immunizations: grep for immuniz and vaccin in
care emr/reports/ finds nothing, and the encounter context offers
symptoms, diagnoses, allergies, diagnostic reports, form responses,
prescriptions and service requests
(reports/context_builder/data_points/encounter.py:348-392). The sandbox
blocks anything else (reports/renderer/template_engine.py:23-57).
Immunizations are not recorded through a form, so they do not come in
through form responses either (api/viewsets/immunization/). Pinned care
ddfd840.

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>
@billjohnc
billjohnc marked this pull request as ready for review November 29, 2026 17:19

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