Skip to content

[docs] Token management for 3.1 - #102

Draft
billjohnc wants to merge 3 commits into
mainfrom
docs/token-management-105d
Draft

billjohnc wants to merge 3 commits into
mainfrom
docs/token-management-105d

Conversation

@billjohnc

@billjohnc billjohnc commented Nov 23, 2026 •

Copy link
Copy Markdown

Summary

Token management docs for Care 3.1: the Token concept and ten task flows under Scheduling > Token. Four existing pages are rewritten from the current code, and six flows are new.

Page Status
concepts/scheduling/token (Token) Replaced
flows/scheduling/token/create-token-category (Create a token category) Replaced
flows/scheduling/token/edit-token-category (Edit a token category or make it the default) New
flows/scheduling/token/create-token-queue (Create a token queue) New
flows/scheduling/token/set-up-service-points (Set up service points) New
flows/scheduling/token/generate-token-for-appointment (Generate a token for an appointment) New
flows/scheduling/token/create-token (Create a token without an appointment) Replaced
flows/scheduling/token/manage-token-queue (Serve patients from a token queue) Replaced, same slug
flows/scheduling/token/move-token (Move a token in the queue) New
flows/scheduling/token/cancel-token (Cancel a token) Replaced
flows/scheduling/token/view-patient-tokens (View and print a patient's tokens) New

The 3.1 flow sidebar lists all ten flows in the order a reader meets them. Version 3.0 is not changed.

What changed from the old pages

  • Service points belong to the practitioner, location or healthcare service, not to a queue. The board's "Manage service points" only chooses which ones that browser shows.
  • Serve Next Patient is a button on each service point. It takes the token created first among those labelled Waiting or Call Next, not the lowest number.
  • Token numbers are counted per category within a queue. The default category is set per resource type, not per facility.
  • Generate Token on the patient's page appears only when the deployment turns it on (REACT_ENABLE_TOKEN_GENERATION_IN_PATIENT_HOME, off by default). The page says so, as the product team decided.
  • Tokens made from an appointment go into a queue Care generates for that resource and date, not into a queue staff create.
  • Each Permissions table covers the whole path to the action. It also says where each permission must be held: the Administration organization, a department or team, or the organization that manages the resource.

How this was verified

  • Code. Every sentence about Care cites a fact read at ohcnetwork/care@8f9afad (develop, 20 Nov 2026) and ohcnetwork/care_fe@295d992 (develop, 23 Nov 2026). The session holds 799 facts with file, lines and quote, and a script checked each quote against those commits.
  • Permissions. The path of each flow was traced from sign-in through navigation, page load and pickers to the save call, in both repositories.
  • Review. A second reader who had not written the pages checked every fact marker, label and permission table, and every finding was fixed.
  • Runtime. Every flow was recorded against a throwaway local Care started from the same two commits, signed in as the fixture Facility Admin (not a superuser). Only fixture data and three invented patients appear on screen. Each recording's API log was compared with the traced permission path. Every predicted call was made, and no call on a token path was refused. One step was corrected from the recording: in "Move a token in the queue", the Awaiting Re-Call dialog stays open after "Call to".
  • npm run build passes for English and Malayalam.

Differences from the house style, on purpose

  • Language. Simplified Technical English rules apply to steps, prerequisites and outcomes. Overviews and concept sections use plain, consistent English.
  • Versions. The pages go to 3.1 only, the version they were verified against. 3.0 was not re-verified.
  • Permissions. Tables list every permission on the path to the action, not only the last one.
  • H1 and frontmatter. Following the existing 3.1 flows and the review checklist: a plain-title H1 and sidebar_position only. The flow template's "How to …" was not used.
  • Concept Permissions section. Kept, as the current Token concept and the concept skill have it.
  • Media markup. Each flow has a video under its Overview, with a poster and an English captions track (<track kind="captions">), and annotated screenshots after the steps they show. The captions track and inline step screenshots are new on this site. Media lives in static/media/scheduling/token/ (83 files, about 28 MB).
  • Narration. Each video has a spoken track that reads its captions aloud, for example "Step 1. Find the token." It says nothing beyond the captions. The voices are AI-generated with ElevenLabs (model eleven_v4), cloned from two team members, Bill and Gauri. They take turns flow by flow in sidebar order: Gauri reads the first, third, fifth, seventh and ninth flows, and Bill the others. Where a line takes longer to say than its step takes on screen, the video holds a frame until the voice finishes, and the captions are re-timed to match.

Left out because it could not be verified

  • Location and healthcare-service appointments in "Generate a token for an appointment". The facility Appointments page offers a practitioner choice only, and the other entry points were not traced.
  • Other routes into a location's queues (from appointment and encounter pages). The pages describe the route through Services.
  • The permission behind closing a token from the encounter header (Mark as Complete, Close Appointment).
  • Whether a cancelled token can be moved back. The dialog says it cannot be undone, while the Finished tab and the backend allow it. No page states either side.

Product issues found

  • Filed: Patient token list shows the raw key "unfulfilled" for tokens awaiting recall care_fe#17300 (the patient token list shows the raw key "unfulfilled").
  • Noted, not filed:
    • care:
      • Queue generate_token can repeat a token number after a delete (continues #3769; #3770 fixed two of three paths).
      • Appointment tokens can create a second primary queue.
      • The queue list's status filter raises a server error.
    • care_fe:
      • The Finished tab count includes entered-in-error tokens it does not list.
      • The Cancel Token dialog says "cannot be undone" but the token can be moved back.
      • Auto Refresh can show on without refreshing.
      • The queue and service point forms show untranslated validation messages.

🤖 Generated with Claude Code

Rewrite the Token concept and four token flows from the current code, and add
six flows: edit a token category, create a token queue, set up service points,
generate a token for an appointment, move a token, and view a patient's tokens.
Each flow has a recorded video with captions and step screenshots. The 3.1 flow
sidebar lists all ten flows.

Verified against ohcnetwork/care@8f9afad and ohcnetwork/care_fe@295d992.

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

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

Copy link
Copy Markdown

Deploying coredocs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2a4b0e6
Status: ✅  Deploy successful!
Preview URL: https://53f60c6d.coredocs.pages.dev
Branch Preview URL: https://docs-token-management-105d.coredocs.pages.dev

View logs

@rithviknishad
rithviknishad changed the base branch from main to docs/ezhuthachan November 23, 2026 08:54
@rithviknishad
rithviknishad changed the base branch from docs/ezhuthachan to main November 23, 2026 08:55
billjohnc and others added 2 commits November 23, 2026 17:23
Each video now has a spoken track that reads its captions aloud, generated
with ElevenLabs (voice "Alice", model eleven_v4). Where a line takes longer
to say than its step takes on screen, the video holds a frame until the voice
finishes, and the captions are re-timed to match.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Replaces the Alice narration with AI clones of two team members'
voices (ElevenLabs, eleven_v4). They take turns flow by flow in sidebar
order. The captions are re-timed to the new holds.

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