Repository navigation
Conversation
Billing settings (Settings > Billing): a concept page and six flows for the discount configuration, discount codes, discount components and the invoice number expression; tax and informational codes are described as read-only. Print Templates (Settings > Print Templates): a concept page in Platform, beside report templates, and three flows. Verified against care ddfd840 and care_fe 5e02f9a (develop). Version 3.1 only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Deploying coredocs with
|
| Latest commit: |
44d487f
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://a8695f21.coredocs.pages.dev |
| Branch Preview URL: | https://claude-docs-billing-setup-pr.coredocs.pages.dev |
…plate flows Nine flows get a video under Overview and a screenshot after each step (45 screenshots at full resolution). Recorded as a Facility Admin on a local stack at care ddfd840 / care_fe 5e02f9a with invented data. Videos are narrated with AI voices (ElevenLabs eleven_v4, cloned voices of Gauri and Bill, alternating by flow) and subtitled; frames are held where a line is longer than its step. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds Care 3.1 pages for two facility settings areas that no page on main or in any open PR covers: Settings → Billing (discounts and invoice numbering) and Settings → Print Templates. Every statement was checked against the 3.1 code; three behaviours were confirmed by probes on a running Care built from the same commits.
What is added (version 3.1 only, new files only)
Billing settings (
concepts/billing/,flows/billing/billing-settings/)Print templates (
concepts/platform/,flows/platform/print-template/)Sidebar (
versioned_sidebars/version-3.1-sidebars.json): two new categories only — Billing Settings first under Flows → Billing, and Print Template under Flows → Platform, between Tag and Report Template. No existing entry is changed.No file of #109 or any other open PR is edited.
Placement (chosen while the requester was away; please review)
flows/facility/belong to another open docs effort (Users & profile).Links to and from #109 Billing
This PR links only to pages that exist on main and that #109 rewrites:
concepts/billing/charge-item.mdx,concepts/billing/invoice.mdx,flows/billing/invoice/create-invoice.mdx,flows/billing/invoice/edit-invoice.mdx,flows/billing/charge-item/edit-charge-item.mdx. The links keep working after #109 merges (same paths).#109 should link back (exact places below): the invoice concept's Number row → Set the invoice number expression; the charge item concept's discount configuration sentence → Billing settings; "only the discounts that are set up for the facility" in Edit a charge item and Change the items of a draft invoice → Create a discount component; Print invoices, Print a payment receipt and Print charge items → Print template.
Links other open PRs should add to these pages
concepts/billing/invoice.mdxNumber row →../../flows/billing/billing-settings/set-invoice-number-expression.mdx;concepts/billing/charge-item.mdxdiscount configuration sentence →./billing-settings.mdx#discount-configuration;flows/billing/charge-item/edit-charge-item.mdxandflows/billing/invoice/edit-invoice-items.mdxdiscount note →../billing-settings/create-discount-component.mdx;print-invoice.mdx,print-payment-receipt.mdx,print-charge-items.mdx→../../../concepts/platform/print-template.mdx.concepts/definitions/charge-item-definition.mdxDiscounts and Taxes →../billing/billing-settings.mdx#discount-codes-and-components,#discount-configuration,#taxes-and-informational-codes;create-charge-item-definition.mdxandset-category-taxes-and-discounts.mdxprerequisite "has discount components" →../../billing/billing-settings/create-discount-component.mdx.flows/clinical/diagnostic-report/print-a-diagnostic-report.mdx→../../../concepts/platform/print-template.mdx.flows/supply/purchase-delivery/view-purchase-delivery.mdx→../../../concepts/platform/print-template.mdx.print-appointment.mdxandprint-appointment-list.mdx→../../../concepts/platform/print-template.mdx; the Create Invoice mention →../../billing/invoice/create-invoice.mdxand../../billing/billing-settings/set-invoice-number-expression.mdx.Verified against
careddfd840dbe314b4e53d2a719d2138324d970634b(develop, 23 Nov 2026)care_fe5e02f9aa4f690e08375da310511e14606985f788(develop, 26 Nov 2026)From code: about 500 facts with file, lines and quotes, and a permission path from sign-in to save for each flow.
At runtime (a local stack at those commits, invented data only): probes as a Facility Admin confirmed (1) a facility that never saved a discount configuration cannot save discount codes, (2) which invoice number expressions the check accepts, and (3) that the only print template of a facility cannot be removed.
Reviews: every page had a separate review against the facts by a reviewer who did not write it; all findings were applied or recorded.
Media: every flow has a video under Overview and a screenshot after each step (9 videos, 45 screenshots at full resolution, about 28 MB under
static/media/billing/billing-settings/andstatic/media/platform/print-template/). Each flow was recorded as a Facility Admin on that stack; every recording's API calls match the traced permission path, with no refused call. City General Hospital's settings were put back as they were after recording.Intentional differences from the house style
###sub-sections for the parts that need explaining. The resource name is not bolded in the Definition, because bold is used only for on-screen labels and there is no FHIR resource to link.<track>with subtitles, and screenshots are placed after the step they show.eleven_v4): cloned voices of Gauri and Bill, alternating by video in sidebar order. Where a line is longer than its step, the video holds a settled frame and the subtitles are timed to match. Nobody has listened to these yet; please check for mispronounced labels.Product issues found (not filed)
Confirmed at runtime:
fis accepted and never filled in: every invoice gets the literal text, for exampleINV-{invoice_count}.From code:
4. Maximum Applicable Discounts: the help text says "to a single invoice"; the backend applies it to each charge item, and only to charge items created from a charge item definition. The form starts at 0 when nothing is saved, and 0 removes every discount.
5. Billing settings show every button to every facility member; the backend refuses users without "Can Update on Facility", with "You do not have permission to create Facilities" even for an update.
6. Print Templates is shown only to holders in the facility's root organization; the backend also accepts the geographic organization.
7. A discount component without a discount code cannot be picked in charge item definitions or invoice edits, although the form says "Leave empty if no code is required".
8. Discount code help text says users can enter the code to apply a discount; no screen does that.
9. The 100-item limits for codes and components stop at 99.
10. Once saved, an invoice number expression cannot be cleared in the UI (Save is disabled while empty).
11. The create and edit discount sheets close before the save finishes; a refused save loses the input.
12. "Either amount or factor is required" is attached to a path the form does not show (medium confidence).
13. Renaming a discount code does not update the copy inside its components (low).
14. Billing settings and print templates resend whole lists from a cached facility record; two administrators can overwrite each other (medium).
15. Print templates: a watermark saves with empty text and prints nothing; logo settings are kept but unused while a header image is set; Medication Administration ignores Portrait and uses 6 mm margins when blank although the editor says 10 mm; image sizes accept 0 and negatives.
16. Cosmetic: page title "Discount Monetary Components" vs sidebar "Discount Components"; icon-only row actions without accessible names; "₹" hard-coded.
17. Pre-existing: the default role "Admin" holds "Can Update on Facility" but cannot be given in a facility.
Open questions (for the requester)
🤖 Generated with Claude Code