Skip to content

[docs] Patient portal and public pages for 3.1 - #143

Draft
billjohnc wants to merge 4 commits into
mainfrom
claude/docs-patient-portal-3-1-6a0e
Draft

billjohnc wants to merge 4 commits into
mainfrom
claude/docs-patient-portal-3-1-6a0e

Conversation

@billjohnc

Copy link
Copy Markdown
Contributor

What this adds (Care 3.1 only)

The patient-facing side of Care, which no page covered so far (gap G8, coverage 2.10 of the 28 Nov docs review). Written for patients, the front-desk staff who help them, and the staff who set up online booking.

New concept (sidebar is autogenerated):

  • concepts/scheduling/patient-portal.mdx: Patient Portal: what it is, signing in with a one-time code, what patients can do, what staff set up, how online bookings look to staff, limits.

New flows, in a new Patient Portal group under Flows > Scheduling (one category appended after Token in version-3.1-sidebars.json; trial merges with #102, #113 and #119 are clean):

  1. Sign in to the patient portal
  2. Find a facility and a practitioner (public pages, no sign-in)
  3. Book an appointment online
  4. Register a new patient while booking
  5. View your appointments
  6. Cancel an appointment online
  7. Reschedule an appointment online
  8. Find facilities near you
  9. Set up online booking for a practitioner (staff)
  10. Handle an appointment booked online (front desk)

No existing page is replaced. #119 (scheduling) and #113 (patient) are linked where their pages exist on main.

Verified against

  • care develop at ddfd840 (23 Nov 2026), care_fe develop at abf394594 (30 Nov 2026).
  • Every statement was checked in the code (backend first where the two disagree) and the behaviour was confirmed on a local stack built from those commits, with invented data only (cast from the shared personas). Runtime checks covered the sign-in messages and lock-out, booking refusals (full slot, duplicate), the non-public facility page, cancel and the In-Consultation refusal, reschedule (including a failed rebooking), registration with age 0, the staff view of an online booking, and Nearby Facilities.

Differences from the house style, on purpose

  • Readers. Flows 1-8 address the patient as "you", because patients use these screens; staff are the readers of flows 9-10. Patient flows keep the Permissions section with one row saying no staff permission is needed, and leave out "You have the permissions listed below."
  • Language. Simplified Technical English rules for steps, plain English for explanations.
  • Versions. 3.1 only: the pages were verified against 3.1 code.
  • Permissions. Staff tables cover the whole path (where the permission must be held), not only the final permission. "Admin" is left out of role lists (not a default facility role).
  • No FHIR link in the concept: there is no FHIR resource for a portal.
  • Media. Each flow has a narrated video (mp4 + WebVTT subtitles) under Overview and screenshots after the steps. The typed one-time code is blurred; nothing else is blurred (billjohnc's choice for this PR). Videos stay in the repo; nothing is uploaded to YouTube.
  • Narration. Each video has a spoken track: a short script that reads as one flow (no step numbers), each step with a sentence of context from the page, and subtitles that show the spoken words. The voices are AI-generated with ElevenLabs (model eleven_v4), cloned from two team members, Bill and Gauri, taking turns flow by flow in sidebar order (Gauri the 1st, 3rd, 5th, 7th and 9th flows, Bill the rest). Where a line takes longer than its step on screen, the video holds a settled frame until the voice finishes, and the subtitles are timed to match.

Links to add after #119 merges

#119's new appointment flows are not on main, so linking them now would break the build:

  • handle-an-online-booking: find-appointments, check-in-patient, reschedule-appointment, cancel-appointment, start-consultation, set-schedule-charges
  • set-up-online-booking: add-or-remove-schedule-session
  • [docs] Scheduling for 3.1 #119's booking and schedule concepts could link the new Patient Portal concept.

Corrections for other open PRs

  • [docs] Patient for 3.1 #113 references/clinical/patient.mdx line 364: a portal registration also requires name and gender; the area must be a government area; an age of 0 does not count. The portal can list and create patients, not update them.
  • [docs] Scheduling for 3.1 #119 concepts/scheduling/booking.mdx line 75: Cancel and Reschedule are offered only while the appointment is not final; Care refuses to cancel an In-Consultation appointment; a portal reschedule cancels the old appointment (status Cancelled, not Rescheduled) and books a new one.
  • [docs] Scheduling for 3.1 #119 concepts/scheduling/schedule.mdx "Make the template public": correct; patients also need the facility to be public, because the facility page (where booking starts) opens only for public facilities.

Left out (could not verify)

  • What a patient sees when the one-hour portal sign-in has expired.
  • The on-screen text when the hourly limit on codes is reached.

Suspected product issues found on the way (nothing filed)

  1. A portal reschedule cancels first and books second; if the new slot is taken, the patient is left with no appointment (confirmed at runtime).
  2. The success page can show "Doctor/Nurse: -" after a reschedule: it takes the name from what the facility page stored, not from the appointment (confirmed).
  3. Nearby Facilities works only when the patient's address area is at the fourth level or deeper: the portal API sends the parent of the patient's area and the sidebar link walks up again from there; a district-level address gives "No facilities found", a top-level one "Select Location First" (confirmed).
  4. A day whose slots are all over shows an empty area instead of "No slots available" (confirmed).
  5. Age 0 is marked "Invalid age" but still submitted; the server answers "Value error, Either age or date of birth is required" (confirmed). Server messages reach patients with the "Value error, " prefix.
  6. The sign-in form accepts Indian numbers starting with 1-5 that the backend refuses (confirmed).
  7. Register Patient is not disabled while saving: a double click, or a resubmit after a failed booking, can create duplicate patients.
  8. Facility page pagination is rendered but sends no page or limit.
  9. Two strings are missing from the locale file ("Your one-time password must be 5 characters.", "years").
  10. Portal-created patients skip some checks of the staff create (name length, required identifiers); both age and date of birth can disagree.
  11. A portal booking request with tags causes a server error (the UI does not send tags).
  12. "Make the template public" is offered on location and healthcare-service schedules, but the portal books practitioners only; Reschedule is offered for non-practitioner appointments.
  13. Public pages treat a patient sign-in older than 14 minutes as signed out, while the portal keeps it; the backend token lasts one hour.
  14. A signed-out patient who opens a portal link lands on the staff tab of the sign-in page; patient sign-in ignores the redirect.
  15. For an online booking, the staff appointment page shows "Last updated by Unknown" (the booking has no staff user).
  16. The portal's Appointment Details dialog runs the time and the patient's age together (for example "11:36 AM34y").

🤖 Generated with Claude Code

billjohnc and others added 4 commits November 30, 2026 17:48
A Patient Portal concept and ten flows: signing in with a one-time code,
finding a facility, booking online, registering while booking, viewing,
cancelling and rescheduling appointments, nearby facilities, and the staff
side (setting up online booking, handling an online booking).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Staff path to Appointments, no marker for online bookings in the board,
non-public facility page, refusal messages, reschedule failure, age 0,
and Nearby Facilities with a top-level area.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Ten narrated videos (mp4 with WebVTT subtitles) and 51 screenshots,
recorded on a local stack at care ddfd840 / care_fe abf394594 with invented
data. Only the typed one-time code is blurred. Also states when Nearby
Facilities can choose an area (address at the fourth level or deeper).

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

Copy link
Copy Markdown

Deploying coredocs with  Cloudflare Pages  Cloudflare Pages

Latest commit: cb056c6
Status: ✅  Deploy successful!
Preview URL: https://f32232ef.coredocs.pages.dev
Branch Preview URL: https://claude-docs-patient-portal-3.coredocs.pages.dev

View logs

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