Skip to content

[docs] Service Request for 3.1 - #128

Open
billjohnc wants to merge 7 commits into
mainfrom
claude/service-request-3-1-update-62f51e
Open

billjohnc wants to merge 7 commits into
mainfrom
claude/service-request-3-1-update-62f51e

Conversation

@billjohnc

@billjohnc billjohnc commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Updates the Care 3.1 Service Request docs to match the 3.1 code, and adds the page lab staff use to find requests for a location. 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 (6 pages): the Service Request concept, the reference, and the four existing flows (Create a service request, View service requests, Complete a service request, Cancel a service request).

Added (1 page): Find service requests for a location: a location's Service Requests page, reached from Services > a laboratory service > View Requests or from the location's sidebar. The sidebar (versioned_sidebars/version-3.1-sidebars.json) lists the five flows in the order a user meets them.

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

The biggest corrections

  • Where permissions are held: a service request permission counts in the encounter's departments, or in a department of one of the request's locations. The old tables named only the permission and listed the Admin role, which cannot be given in a facility.
  • Opening a request also needs "Can Read Activity Definition". The service request page loads the activity definition; without it the page shows only an error. By default a Pharmacist can list a location's requests but cannot open one.
  • Ordering: the save button is Save Changes, not "Submit". The pages now cover the other ways in (Quick Actions, the Encounter Actions dialog, shortcut R), templates, the 20-per-save limit, the price on each card, and that ordering creates charge items. The unsupported note that "mandatory fields depend on configuration" is gone.
  • Completing: the button is Save & Complete. Mark as Complete appears only when a report is final or the category is Procedure or Counselling, and the completion note replaces the request's note. The M shortcut note is gone (it works only on some pages).
  • Viewing: See Details is shown only while the encounter is open; the pages say how to reach a closed encounter's requests from a location. The Location column shows the patient's location, not the request's.
  • Final statuses: the old concept said Care blocks every action on a final request. The service request page does; the backend still accepts tag changes, specimens and reports (finding F107).
  • Cancelling: the menu is More Actions, and cancelling aborts every linked charge item. If one is on an invoice that is not a draft, the cancel fails.
  • Reference: removed the claim that service requests create observations and procedures; added the endpoints and actions, list filters, validation messages, what ordering from an activity definition copies, charge items, and an authorization summary.

How it was verified

  • Code: care ddfd840dbe314b4e53d2a719d2138324d970634b (develop, 23 Nov 2026) and care_fe 5e02f9aa4f690e08375da310511e14606985f788 (develop, 26 Nov 2026). Every fact cites its file and lines; all quotes were re-checked against those commits by script, and every permission, role and path gate was re-read by hand.
  • At runtime: a local stack started from those commits, with fixture data and invented people. Flows were recorded as Dr. Meera Iyer (Doctor, in the encounter's department) and Rohan Kapoor (Facility Admin), never a superuser. Each recording's API calls were compared with its permission table; none was refused.
  • Reviews: every page had a separate review against the facts by a reviewer who did not write it, and the reference's inherited statements were each re-verified in code.

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 (including the encounter's Service Requests tab, the activity definition and the location), with where each permission must be held.
  • Concept: it keeps a Permissions section and a "How it connects" section, as the concept guide asks and the other 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 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.

Left out, and open points

  • API-only fields: Do Not Perform and Occurrence are in the reference only; no screen sets them (decision by billjohnc). Draft, On Hold and Ended stay in the concept, marked as set by no screen.
  • Ordering through a facility's own form with a Service Request question has one sentence; filling forms is the Questionnaire Response module's page.
  • Not linked yet: the Specimen module's new "Find a specimen by its QR code" ([docs] Specimen for 3.1 #138) and the Questionnaire Response module's "Fill a form" page ([docs] Questionnaire Response for 3.1 #130). The Scan the QR code button gets one line here; whichever PR merges second can add the link.
  • Stale page outside this module: flows/definitions/activity-definition/use-activity-definition-to-order-a-service.mdx repeats the ordering steps and says Submit where the button is Save Changes. Left untouched here.
  • Overlap: the Diagnostic Report PR ([docs] Diagnostic Report for 3.1 #121) documents results; these pages link only to diagnostic report pages already on main.
  • Not proven by permission removal: the paths were confirmed by recording as Doctor and Facility Admin; the Pharmacist case (can list, cannot open) rests on code.

Product issues found (not filed)

  • F100: on a closed encounter, the Service Requests tab hides See Details, so requests open only from a location's page.
  • F101: a Pharmacist can list a location's requests but cannot open one (no "Can Read Activity Definition").
  • F102: an Education request, or one without a final report, cannot be completed from the screen.
  • F103: ordering from an activity definition does not check that the requester is a member of the facility.
  • F104: ordering skips the encounter-status check that the plain create has.
  • F105: ordering copies the category from the activity definition's resource category instead of its classification when the body has none.
  • F106: More Actions is offered on an Entered in Error request; both actions are refused.
  • F107: the final-status lock exists only in the screen; the backend still accepts tags, specimens and reports.
  • F108: the status filters offer "Unknown", which the backend does not have.
  • F109: body site is recorded but never shown on the service request page.
  • F110: creating from the Service Requests tab returns to the Overview, not the tab.
  • F111: the M shortcut for Mark as Complete works only when the page has a specimen card.
  • F112: clearing the completion note keeps the old note (not run).
  • F113: an unknown healthcare service id gives a server error (not run).
  • F114: the page shows the activity definition's current title and service, not the request's.
  • F115: after a cancel, the open page still shows the charge item as Billable until reload (runtime).

🤖 Generated with Claude Code

billjohnc and others added 2 commits November 28, 2026 20:08
Rewrite the Service Request concept and the create, view, complete and
cancel flows against care ddfd840 and care_fe 5e02f9a, add Find service
requests for a location, and update the reference with the API behaviour.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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: 29e006c
Status: ✅  Deploy successful!
Preview URL: https://050d32d9.coredocs.pages.dev
Branch Preview URL: https://claude-service-request-3-1-u.coredocs.pages.dev

View logs

billjohnc and others added 4 commits November 28, 2026 20:19
The encounter page does not wait for the patient read: it falls back to
the patient embedded in the encounter (care_fe EncounterProvider.tsx:232),
and a completed encounter opens with the patient read at 404. Opening the
encounter page therefore needs no "Can view clinical data about patients";
that permission only shows the Service Requests tab.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PR #121 deletes update-a-diagnostic-report.mdx and moves the update
steps into enter-diagnostic-report-results.mdx, which this list already
links on the line above. Pointing the link there would list the same page
twice, so the line goes. After #121 merges, its new page "Review and
approve diagnostic report results" can be added here.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The charge items section on the service request page offers Add Charge
Items and Create Invoice (care_fe ChargeItemsSection.tsx:103-128). Each
charge item card shows its title, quantity, price, status and an invoice
link, with no edit or cancel control (ChargeItemCard.tsx). So staff can
add charge items there, but not change them. Pinned care_fe 5e02f9a.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The note under the table already says no facility department can give
the Admin role, but the table still listed it. The role sync keeps one
role per name and the role-organization Admin comes last (care
sync_permissions_roles.py:37-45, roles/role.py:57-67,83-95), and the
facility pickers ask only for facility roles (care api/viewsets/roles.py:10-15,
care_fe LinkUserToDepartmentSheet.tsx:131). The three permissions name
ADMIN_ROLE in care security/permissions/service_request.py and
specimen.py; the rest of each list is unchanged. The note now uses the
same wording as the other module pages. Pinned care ddfd840, care_fe 5e02f9a.

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