Skip to content

[docs] Billing for 3.1: verified against the 3.1 code, with screenshots and videos - #109

Open
sonzsara wants to merge 15 commits into
ohcnetwork:mainfrom
sonzsara:claude/billing-module-3-1-update-716aad
Open

sonzsara wants to merge 15 commits into
ohcnetwork:mainfrom
sonzsara:claude/billing-module-3-1-update-716aad

Conversation

@sonzsara

@sonzsara sonzsara commented Nov 27, 2026 •

Copy link
Copy Markdown

Updates the Care 3.1 Billing docs to match the 3.1 code, and adds the tasks the section was missing. Every statement was checked against the code, and the flows were recorded on a running Care built from the same commits.

What changed (version 3.1 only)

Replaced (24 pages): the 4 Billing concepts (Account, Charge Item, Invoice, Payment Reconciliation) and all 20 existing Billing flows.

Added (13 flows):

  • Account: Rebalance an account, Add or remove account tags, Link an encounter to an account
  • Charge Item: Add a package of charge items (Quick Add), Add bed charges, Print charge items
  • Invoice: Change the items of a draft invoice (split from Edit), Print invoices
  • Payments: Record an advance payment (split from Record payment), Record a credit note, Find payments, Print a payment receipt, Transfer an amount to another account

The new flows are added to versioned_sidebars/version-3.1-sidebars.json.

Media: annotated screenshots on all 33 flow pages (178 images, downscaled to 1440 px), and narrated, subtitled videos for six key flows: create account, settle and close, add charge items, create invoice, issue invoice and record payment. Media adds about 47 MB under static/media/billing/.

The biggest corrections

  • Creating an account: Billing > Accounts has no Create Account button. Accounts are created from the patient's Accounts tab or the encounter's Account card.
  • Locking an invoice: a lock limits who can open the invoice and hides its total in lists. It does not stop editing, issuing, balancing or cancelling.
  • Balanced invoices: a Balanced invoice can still be cancelled; its paid items go back to Billable.
  • Moving charge items: this needs "Can Create Charge Item", not "Can Update". Cancelling a charge item needs both update and cancel permissions.
  • Move payment page: it described Transfer Payment, which records a new transfer pair. Moving existing payments is Change Account on the account's Payments tab. Both are now documented separately.
  • The "Admin" role: pages named "Facility Admin and Admin". Only Facility Admin can hold these permissions in a facility; see the role bug below.
  • Permission tables: every table now lists the full path: reading the account or invoice, opening the page, the pickers, and the final action. Before, they listed only the last permission.

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. #17346 only re-aligns the checkboxes of the charge items table, so nothing changed. #16440 adds a Reports section to the account page's more-options (⋮) menu and shows Generate Report only with Can Read Template and an active account report template; "View an account" now says so. The screenshots of the open more-options menu (view-account-8, record-credit-note-1, transfer-payment-2) were taken before #16440 and do not show the Reports section yet.

From code: 792 facts with file, lines and quotes, and a permission path for each flow.

At runtime: a local stack started from those commits, with fixture data renamed to invented people.

  • Every flow was recorded there as a Facility Admin, and each recording's API calls were compared with the traced permission path.
  • Probes as Nurse and Staff users confirmed the error messages, the locked-invoice screen, and the role assignments.

Reviews: each 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.
  • Concepts: they keep a Permissions section, as the concept guide asks and the existing concepts do, although concept-template.md has none.
  • 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: the six videos are narrated. For each step, the voice reads the step plus a sentence or two 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 by video: Gauri reads create account, add charge items and issue invoice; Bill reads settle and close, create invoice and record payment.
    • 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 questions

Not written:

  • "Record charge items in an encounter form": no navigation path to that form was found in the UI.

Open questions:

  • What the billing statuses Care Completed and Billing, and the statuses Inactive, On Hold and Entered in Error, mean in practice. The pages state only what Care does with them.
  • Whether reopening a closed account through Edit is a supported task. It is documented as a variant, because the code allows it.
  • When staff should use Transfer Payment and when Change Account.
  • How to return an overpayment, and how to correct a payment on an invoice that is already Balanced.
  • Whether a user without "Can Read Payment Reconciliation" can print charge items. No test user lacks that permission.

Product bugs found on the way

Recorded in the session; not filed from here unless listed with an issue link.

  • "Admin" role: two default roles share the name "Admin", and the role sync merges them. The facility "Admin" role that holds the billing permissions cannot be given in any facility (confirmed at runtime).
  • Print Charge Items: the page checks can_manage_locked_invoice_in_facility, which is not a permission name. So when any item is on a locked invoice, only superusers can print.
  • Moving payments: without permission, the refusal says "Access Denied to Charge Item".
  • Untranslated labels: Edit Account shows "imp" instead of "Inpatient", and the payment page's invoice badge shows "balanced".
  • Settle & Close warning: it says "negative balance" when the patient owes money.
  • Locks: a lock does not stop changes. The product owner says it is meant to.
  • Buttons the backend refuses: many billing buttons are shown to users who lack the permission.
  • Stale totals: Total Billable is not recalculated after charge items are added, edited or cancelled.
  • Moving payments between patients: the backend lets payments move to another patient's account.

Skill update

Moved to the consolidated Ezhuthachan skill update, #141. This PR no longer changes .claude/skills/.

🤖 Generated with Claude Code

sonzsara and others added 2 commits November 27, 2026 14:48
Rewrite the four Billing concepts and the 20 existing Billing flows
against care@ddfd840 and care_fe@5e02f9a (develop), and add 13 flows
the section was missing: rebalance, account tags, linking an encounter,
Quick Add packages, bed charges, printing charge items, editing draft
invoice items, printing invoices, advance payments, credit notes,
finding payments, payment receipts and transfers.

Permission tables now list the whole path to each action. Every flow
has screenshots from a local stack at the same commits, and six key
flows have captioned videos. The new flows are added to the 3.1 flow
sidebar.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Teach the recording guide what the Billing session learned: record
against a production build (the dev server shows a devtools button in
every frame), rename fixture data to authentic, globally understandable
names with placeholder contacts, give each recorded patient two tags so
the name stays on one line, and clear repeated-run records before list
screenshots.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sonzsara
sonzsara marked this pull request as ready for review November 27, 2026 09:24
sonzsara and others added 9 commits November 27, 2026 16:21
Each video now has a spoken narration and subtitles of the spoken words.
The voices are AI clones of Gauri and Bill, made with ElevenLabs, taking
turns by video. Each line reads the step and a sentence or two of context
from the page's own text.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The account flow pages used the same template alt text for every screenshot ("Care screen for step N, <heading>"). The alt text now says which screen or dialog each image shows and what is highlighted or filled in, written from the images themselves.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The charge item flow pages used the same template alt text for every screenshot. The alt text now says which screen or dialog each image shows and what is highlighted or filled in, written from the images themselves.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The invoice flow pages used the same template alt text for every screenshot. The alt text now says which screen or dialog each image shows and what is highlighted or filled in, written from the images themselves.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The payment reconciliation flow pages used the same template alt text for every screenshot. The alt text now says which screen or dialog each image shows and what is highlighted or filled in, written from the images themselves.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The list of ways charge items appear left out encounter forms. The form
editor offers each Structured question type whose subjects include the
form's subject (care_fe QuestionTypePicker.tsx:103-110), and Charge Items
declares subjects ["encounter"] (structured/definitions/chargeItem.ts:6-10,
en.json structured_type__charge_item). Staff pick charge item
definitions in it; each row carries the encounter
(ChargeItemQuestion.tsx:244-253), and submitting the form posts them to
apply_charge_item_defs (chargeItem.ts:12-32), which checks Can Create
Charge Item and adds one charge item per row (care
viewsets/charge_item.py:334-428).

Pinned care ddfd840, care_fe 5e02f9a.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The reference said `locked` freezes the invoice against further edits.
The viewset checks the lock only when a single invoice is retrieved
(care viewsets/invoice.py:100-102 -> check_invoice_lock_permission,
:410-414, Can Manage Locked Invoice) and in the lock and unlock actions
(:417-457). Update, attach and remove items, status changes and
cancel_invoice never read it (:176-408). This matches ohcnetwork#109's concept: "A
lock does not stop changes".

Pinned care ddfd840.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The reference said `number` is generated for return invoices. Both ways
an invoice is created fill it from the facility's
invoice_number_expression: the invoice API when the request sends no
number (care viewsets/invoice.py:151-155) and generate_return_invoice
(resources/invoice/return_items_invoice.py:54-57). With no expression
the number is an empty string (default_expression_evaluator.py:15-19).

Pinned care ddfd840.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Collect Payment / Record Credit Note sheet renders the deployment's
additional (extension) fields for payment reconciliation at the end of
the form, after Notes, and nothing when none are configured (care_fe
PaymentReconciliationSheet.tsx:230-233, 248-253, 461, 802, 819;
useExtensions.tsx:549-556). Record payment, advance payment and credit
note all open this sheet (InvoiceShow.tsx:1502-1508,
PaymentStatusBanner.tsx:727-732, AccountShow.tsx:407, 459, 752-757).
Pinned care ddfd840, care_fe 5e02f9a.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
billjohnc and others added 2 commits November 30, 2026 16:37
…ive account report template

care_fe 6a40c4913 (#16440)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
care_fe 6a40c4913 (#16440)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
billjohnc and others added 2 commits November 30, 2026 21:10
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>

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.

2 participants