Skip to content

[docs] Encounter for 3.1 - #129

Open
billjohnc wants to merge 7 commits into
mainfrom
claude/encounter-3-1-update-348de6
Open

billjohnc wants to merge 7 commits into
mainfrom
claude/encounter-3-1-update-348de6

Conversation

@billjohnc

@billjohnc billjohnc commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Updates the Care 3.1 Encounter docs to match the 3.1 code, and adds three encounter 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 (10 pages): the Encounter concept, the Encounter reference, and 8 flows: Create an encounter, Update encounter details, Assign an encounter location, Manage encounter departments, Manage encounter tags, Discharge a patient, Complete an encounter, Restart an encounter.

Added (3 flows): Find an encounter, View the patient's other encounters, Start a planned encounter. The sidebar (versioned_sidebars/version-3.1-sidebars.json) lists them after Create an encounter.

Not touched: flows/clinical/encounter/manage-encounter-care-team.mdx and its sidebar line belong to the Care Team pull request (billjohnc chose to keep it as a short pointer page). The Encounter pages now link the Care Team flows (flows/clinical/care-team/...) directly.

Media: all 11 Encounter flow pages have step screenshots (61 images) and a narrated, subtitled video.

The biggest corrections

  • Encounter type: it can no longer be changed after creation (the update form and API dropped it in Aug 2026). The pages say so, and tell staff who chose the wrong type to mark the encounter Entered in error and create a new one (billjohnc's answer).
  • Update form: opened with Edit on the encounter details bar (or Shift+U); no class field; the status list offers Planned, In Progress, On Hold, Cancelled, Discontinued and Entered in error; it saves with Save Changes.
  • Where things are: the facility sidebar's Encounters & Locations section, the Encounters list with Encounter Types and Set Default, the encounter page's tabs (Medications, Immunizations and Referrals are new), the side panel's Details, Actions and Reports tabs, and Encounter History in place of the old left rail.
  • Created from an appointment: the schedule's departments, encounter type and care team are filled in, and the conditions for Start Consultation and Create Planned Encounter are stated. The create form also fills in your preferred departments.
  • Beds: by default only the Facility Admin can assign or move a bed from an encounter. Saving a bed also updates the bed, which needs "Can Create/Update Facility Locations", and Care saves all or nothing. The page says so, as Care is today (billjohnc's choice; see F1 below).
  • Departments: added with a picker and Add Organizations; removing a department takes effect for access only after the encounter is next saved (F12); the last department can be removed.
  • Completion: each way to complete is listed with what it does: some also close the appointment and token, and the appointment bar's buttons ask for no confirmation.
  • Restart: offered for Completed encounters only; with the default limit of 0 hours, Care refuses every restart.
  • Care team: being on the care team gives no access to the encounter.
  • Permissions and roles: every table covers the whole path, including the read permissions and where each must be held. Default roles are Doctor, Nurse and Facility Admin for the encounter permissions; "Admin" is left out of every list because it cannot be given in a facility; "Administrator" is listed where a permission includes it. The old pages' "Administrator ... Facility Administrator" lists were wrong.

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. "Find an encounter" now describes the new All Encounters search (#17373): the placeholder "Name, ID, phone", one search at a time, the remembered field, the phone input, and no Undo notice. The encounter concept now describes Scan QR and the links on the appointment bar. #17364 (mobile layout) and #17358 (tabs) change nothing the pages say. Screenshots -1, -2, -4, -5 and -6 of "Find an encounter" were retaken on 30 Nov 2026 at care_fe abf394594, with the patient's name blurred. Its YouTube video still shows the search box before #17373 and stays as it is until the YouTube decision.

From code: 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 and invented people only.

  • Probes confirmed that a Nurse's bed assignment is refused and rolled back while a Facility Admin's goes through (F1), and that access through a removed department lasts until the encounter is saved again (F12).
  • Every flow was recorded as the role its page names (Doctor, or Facility Admin for beds; never a superuser). Each recording's API calls were compared with the page's permission table: no 403s. Three page details were corrected from what the recordings showed.

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.
  • Concept: it keeps its "Permissions" and "Where to find" sections, as the existing page and most 3.1 concepts do, although concept-template.md has neither.
  • 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 one short sentence 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.
    • The Restart video shows Care's refusal under the default 0-hour limit, as a default deployment behaves (billjohnc's choice).

Left out, and open questions

  • Search by Location (the bed board): named once; it belongs to the Location docs (billjohnc's answer).
  • Completions that close the appointment: the page names "Can update bookings on Object" and "Can Create on Token" with their default roles, but not where they must be held; that is the Scheduling docs' ground.
  • Videos cover the main path: Assign an encounter location shows steps 1-4 and 8; some videos skip optional steps (each page still describes them). Set Default on the Encounters list was not recorded because it changes a setting shared by the other recordings.
  • Demo data: the shared test stack holds patients of the same names from other docs sessions, so the patient search in Create an encounter shows several "Maya Raman" rows; the department sheet shows the fixtures' placeholder descriptions.
  • Older open pull request: [docs] document the clinical encounter #53 (an automated "[docs] document the clinical encounter", opened 10 Aug 2026 and not updated since) edits the same 3.1 concept and reference and adds flows under flows/clinical/ that the site later placed in flows/clinical/encounter/. This pull request supersedes it for 3.1; it would conflict if both were merged.
  • Links not added: the Questionnaire Response "fill a form" page and the Workspace flows are in other open pull requests; the Encounter pages link them once they are on main.

Suspected product bugs found on the way

From the code and, where marked, a run. None is filed on GitHub.

  • F1 (confirmed by a run): Doctors and Nurses cannot assign a bed from the encounter. The location sheet bundles a bed update that needs "Can Create/Update Facility Locations", and the batch is all-or-nothing.
  • F12 (confirmed by a run): removing a department does not rebuild the encounter's department set, so access through it lasts until the encounter is next saved.
  • F3: encounter edit controls show without "Update Encounter non clinical"; the save is then refused.
  • F6: the last department can be removed from an encounter.
  • F7: the ways to complete an encounter behave differently (only some close the appointment and token; the appointment bar's ones have no confirmation).
  • F4 / F5: Restart is offered only for Completed although the backend restarts any closed status; and it is offered although the default 0-hour limit refuses every restart.
  • F10: the appointment page offers encounter creation without checking "Can Create encounter".
  • F2: a closed encounter keeps its current location.
  • F8 / F9: the department sheet says "Organization"; "Priority" in the create form is not translated.
  • F11 / F13: unused backend display names disagree with the screen; the list's live parameter returns closed encounters (not reachable from the screen).
  • F14 (run): the encounter page requests a patient record that facility staff cannot read once all the patient's encounters are closed; the page still opens using the encounter's copy of the patient, so there is no visible effect.
  • F15 (seen once): a read-only encounter picked from Encounter History still shows the Account panel's edit icon.

🤖 Generated with Claude Code

billjohnc and others added 2 commits November 28, 2026 20:17
Concept, reference and the encounter flows, checked against care ddfd840
and care_fe 5e02f9a. New flows: Find an encounter, View the patient's
other encounters, Start a planned encounter. manage-encounter-care-team
is left to the Care Team pages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each of the 11 Encounter flows gets a narrated, subtitled video and
step screenshots, recorded on a local stack at care ddfd840 / care_fe
5e02f9a. Three page details are corrected from what the recordings
showed: the create form fills in preferred departments, "Locations
under my care" counts only direct department membership, and the
department picker needs Done before Add Organizations.

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: 724a109
Status: ✅  Deploy successful!
Preview URL: https://c21da843.coredocs.pages.dev
Branch Preview URL: https://claude-encounter-3-1-update.coredocs.pages.dev

View logs

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
billjohnc and others added 3 commits November 30, 2026 16:21
…tient does now.

care_fe fd7b43688 (#17373)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… chips, one search at a time and the remembered field.

care_fe fd7b43688 (#17373)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
care_fe abf394594 (AppointmentEncounterHeader.tsx)

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

care_fe abf394594 (#17373)

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