Balm

Available

US outpatient physical, occupational or speech therapy clinic software: online booking from real open times, one-use intake links, PT, OT and speech notes signed and locked by their author with addenda and 8-minute-rule CPT units, plans of care certified by referring physician link, approved and numbered invoices, cards, copays, pay links and superbills through your own Stripe, automatic email reminders, secure patient messages, a waitlist, an audited client file and reviewed patient move-in.

Balm is available as MIT-licensed source for self-hosting. See its public source and release documents for setup. Business can also install and run projects for invited accounts; the app shows whether it offers Balm before checkout.

Run Balm on your own computer with one line:

npx -y @runeditrun/rer dev just-every/run-balm

It clones the public source, installs it, sets up a local owner and starts the app; nothing is deployed. To set up without starting, run npx -y @runeditrun/rer setup just-every/run-balm. Without Node 22 or later, run curl -fsSL https://runeditrun.com/install.sh | sh -s -- dev just-every/run-balm.

Or have your agent set it up for a Business: Start a Business with Balm ticked

For HappyToHelp: Assisted is in early access; Managed is in early access.

Category
clinic
Licence
MIT
Version
0.2.1
Requirements
15 clauses
Release signature
Signed by just-every · key rer-ed25519-5a42fb9c9c4f8acb2b32386e9e40461c · statement
Target release
v0.2.1 · published
Publisher’s stage
first-release-local

Outside services

The services the project declares it sends data to, each with its reason.

cloudflare
Worker hosting
mail-provider
A hosted Balm emails sign-in links, invitations, intake links, waitlist offers, plan-of-care links, reminders, pay links and message notices through the owner's own SendGrid or Resend account; Balm on your own computer sends no email. Optional signed provider callbacks reconcile appointment email delivery states on the patient file.
stripe
Cards on file, copays at check-in and pay links through the clinic's own Stripe account; card numbers never reach Balm.
ai-provider
The scribe drafts an unsigned note from the practitioner's dictation with the installation's own Anthropic or OpenAI-compatible key; no patient name or birth date is sent.
twilio
Text reminders and pay links once the clinic's US A2P 10DLC registration is approved and its Twilio settings are deployed; off otherwise.
nppes
Owner-enabled referring-provider lookup at the NPPES NPI Registry API v2.1; off by default. With it off or unreachable, a manually entered NPI is labelled as not checked with NPPES.

Scope and limits

What it will not do

  • Insurance billing: eligibility, authorizations, claims, ERA posting and denials
  • Live text messages (built behind the SMS adapter, off until the clinic's A2P registration)
  • A signed-in patient portal and home exercise programs
  • Telehealth video
  • Prescribing
  • Clinical decision support
  • A model account held by Balm (the scribe uses the installation's own AI key)

Declared limits

Status
unmeasured

Requirements

All 15 clauses of Balm’s CONTRACT.md. They say what the project must do; the handover and verification records say what is built and tested.

BALM 4 clauses

  1. BALM-001
    Live roles and server-side authority Every /app page and /api/balm handler resolves the live actor from a native session (or, at /api/balm/agent/*, an owner-bound agent key) and enforces its role in the handler; every write re-checks that authority inside the same D1 batch. Roles: the owner; practitioners, who see only clients they are booked with; reception, who see every file but never intake answers or treatment notes; and agent keys, which only prepare work for a person. Balances, copays and card details are visible to the owner and reception by default. The owner can grant balance visibility to a named active practitioner and revoke it; each grant and revocation is audited and takes effect on the next request. The grant adds only balances for patients already within that practitioner’s scope, not copay or card details or payment powers. A person approves every preparation, and the approval keeps the SHA-256 of the exact approved content. Deactivating staff or revoking a key takes effect on the next request. Acceptance evidence: Call every page and handler signed out, as each role, with a deactivated staff member and with a revoked or foreign agent key; each is refused or scoped by role, and an agent-prepared item is approved only by a signed-in person whose approval records the digest.
  2. BALM-002
    Calendar, recurring series and waitlist offers The schedule is a calendar by day or week and by practitioner or room in the clinic time zone. Staff book, move (the edit form or a drag) and cancel visits; every booking, move, recurring series and waitlist acceptance re-checks in the same D1 batch that no other live visit of that practitioner or that room overlaps, and staff placements stay inside the practitioner's hours. A recurring series is checked date by date before anything is saved: a conflicting date is shown and saves only once a person moved or skipped it, the whole series books in one batch, and skipped dates are recorded. One visit or the rest of a series can be moved or canceled; moving the rest changes none if any would conflict. The waitlist holds clients per practitioner (or any) and service in a date window. A canceled visit at least two hours ahead is offered by email to every fitting entry through a private /offer/<token> link (only its hash is stored); the first acceptance books the visit and closes the offer in one batch, later ones are refused, and the others are emailed that it is taken. Offers close one hour before the visit. Text-message waitlist offers remain unimplemented; the SMS adapter currently supports reminders and pay links (COMM-002). The practitioner's concurrent-patient capacity (SCHED-010) defaults to one, which is this overlap rule. Acceptance evidence: Book a recurring series whose date overlaps an existing visit, see that date shown before saving, move or skip it and book the series in one step; move one visit, then move and cancel the rest of the series; cancel a visit at least two hours ahead, see it offered by email to every fitting waitlist entry, accept as one, see the visit booked, a second acceptance refused and the others emailed that it is taken.
  3. BALM-003
    Patient payments through the clinic's own Stripe account Patients pay through the clinic's own Stripe account; card numbers never reach Balm. The owner connects a Stripe secret key in Clinic (checked with Stripe, sealed with the session secret, never shown again, never exported); on a public https install Balm creates the webhook. A patient saves one card on file from their private /pay/<token> link (30 days, only its hash stored, never exported) after accepting the clinic's authorization, whose exact text and time are kept with the card (Stripe Checkout setup mode, a SetupIntent for off-session use). The desk checks a patient in on the day of the visit and, in the same action, charges the patient's copay to the card off session, once per visit; a refusal is recorded and the visit stays checked in. The desk charges an approved invoice's open amount to the card, or sends the patient a pay link by email (by text through the SMS adapter once the clinic's US A2P registration and Twilio settings exist); the patient pays any amount up to their balance in Stripe Checkout. Every outcome is read back from Stripe (on return, by signed webhook) and a payment posts once: one receipt number, and one bm_payments row per invoice with the reference stripe:<intent>:<invoice>, never above the invoice; a copay waits on its visit and the rest of any payment is credit, both applied when the next invoice is approved. The patient's link shows a statement across visits (charges, payments, running balance) and gives the statement, receipts and per-visit superbills as PDFs; a superbill carries the clinic's tax ID, the practitioner's NPI, the ICD-10 diagnoses and CPT codes with modifiers and units (the signed note's billed units when present) and is refused until all are present. Every check-in, saved or removed card, charge, link, opening and download is audited for the patient. On RER Managed hosting, which has no egress relay yet, connecting Stripe is refused and every payment surface says in one line that online payment is not available yet. PAY-002 to PAY-005 carry the rest of each job. Acceptance evidence: On a self-hosted install with Stripe faked at its HTTP edge, save a card from the patient's link with the authorization, check the patient in and charge the copay in one action with a receipt, send a pay link by email and pay the balance, and see each payment posted to its invoice once, on the statement and on the superbill; replay the Stripe webhook and see nothing posted twice; on RER Managed see the one line.
  4. BALM-004
    Templates, signed notes, plan-of-care link and scribe drafts Treatment notes start from the template set on the visit's service: PT, OT and speech-language initial evaluation, daily note, progress report and discharge summary, each with subjective, objective measures, assessment, goals and plan sections. A note is a draft, saved as revisions, until its author signs the exact latest revision with their typed name and credentials; signing records the time and the SHA-256 of what was signed, is refused while a required section is empty, and locks the note, which the database enforces; later changes are addenda signed when written. Each note records CPT codes with minutes; billed units follow the CMS 8-minute rule (timed codes on their total minutes, whole units first and the rest to the most minutes left over; untimed codes one unit), and an invoice carries the units of its visit's signed notes. The schedule shows each visit's note as signed, not signed or missing and lists attended visits without a signed note. A plan of care (diagnoses, goals, frequency, duration, interventions) is signed by its therapist and sent to the referring physician through a private /plan/<token> link (only its hash is stored, expiring in 30 days); the physician signs once without an account, the plan's content never changes once sent, and the case shows signed or not with the date. The scribe drafts a note in the visit's template from the practitioner's dictation or bullet points with the install's own AI key, which the owner enters on the Clinic page and Balm keeps sealed; it sends no patient name or birth date, says "Add a key to use the scribe." without a key, never signs, and on RER Managed hosting says it is not available yet. CHART-002 to CHART-006 and CHART-012 carry the rest of each job. Acceptance evidence: Write a PT daily note from the visit's template, try to sign with a required section empty and be refused, sign it and see it locked with an addendum allowed; record 38 minutes across two timed codes and see 3 billed units on the note and its invoice; send a plan of care by link, sign it as the physician and see it signed with the date on the case and the schedule; draft a note with the scribe from dictation with a faked model and see an unsigned draft, and without a key see the one line.

SETUP 1 clause

  1. SETUP-001
    Clinic, services, practitioners and hours The owner sets the clinic name, address, tax ID and time zone, services with length and price, practitioners with their discipline and weekly hours, and invites practitioners and reception by email; a first-run checklist shows what is left. The time zone starts from the owner's browser time zone and can change later: booked visits keep their exact moment, weekly hours keep their clock times, and the owner confirms the change when visits are booked. Acceptance evidence: From a fresh install, complete the checklist through the app, invite a practitioner and a receptionist, and see the public booking page offer only the practitioner's hours.

SCHED 1 clause

  1. SCHED-001
    Online booking from real open times New patients book at /book from a practitioner's real open times in 15-minute steps, at least 2 hours and at most 60 days ahead, get the intake link by email, and a taken or invalid slot is refused in the same D1 batch that inserts the appointment, even when two people race for it. Acceptance evidence: Book online for a new patient, see the slot disappear and the intake email sent, book a taken or off-grid slot and be refused, and race two bookings for one slot and see exactly one succeed.

INTAKE 1 clause

  1. INTAKE-001
    One-use intake bound to its form version A booking emails a private intake link through the clinic's mail only when the visit is in the future and the patient has neither a submitted intake for the clinic's current published form version nor an open, unexpired intake link. For request reuse, an open link belongs to an unfinished booked visit whose scheduled end has not passed, with a stored token hash and no submitted response for that visit. The link remains usable after the scheduled start (including in the waiting room) and refuses at the scheduled end, on completion (attended), or on cancellation, whichever happens first. An unanswered link shows the current published form; publication during completion refuses the stale submission and asks the patient to reload. Reuse that link, never duplicate it. A booking entered for a past date never emails anything. After the clinic publishes a new form version, the next booking for a patient whose intake answered an older version emails a fresh link for the current one. Each link accepts answers once, binds them to the exact form version answered, never echoes clinical answers back, and lets only the treating practitioner and the owner read them. Acceptance evidence: Book online, open the emailed link, submit the intake, replay the submission and be refused; reopen the link and see no clinical answers echoed back; read the answers as the treating practitioner and owner and be refused as reception and as another practitioner. A returning patient with a submitted intake for the current form version books and receives no new intake link. A patient with an open, unexpired link books again and the same link stands, without a duplicate. Enter a past-dated booking and see no email sent. After the clinic publishes a new form version, book a patient whose submitted intake answered the older version and see a fresh link emailed for the current version; the earlier answers stay bound to the exact version answered.

CHART 1 clause

  1. CHART-001
    Private revisioned treatment notes Treatment notes are readable only by their author and the owner (and, under CHART-013, the care team the practice grants), and amendments add revisions that keep every earlier text. Acceptance evidence: Write and amend a note as a practitioner; read every revision as the author and the owner, and be refused as reception and another practitioner.

REMIND 1 clause

  1. REMIND-001
    Reminder content a person approves Reminder text is prepared from the appointment (by staff or an agent key), a person approves the exact text, and the approval keeps its digest; the approved text can be exported unchanged. Delivery is COMM-001 and COMM-002. Acceptance evidence: Prepare a reminder with an agent key, approve it as a person, and export the exact approved text with the approval digest recorded.

BILL 1 clause

  1. BILL-001
    Approved, numbered invoices with fixed bytes An invoice is prepared from an attended visit, a person approves it, and only then is it numbered and its downloadable bytes fixed; approval is refused if any frozen fact changed; voiding keeps the number. Acceptance evidence: Prepare, change the visit, see approval refused, re-prepare and approve; download the invoice twice and get identical bytes.

PAY 1 clause

  1. PAY-001
    Payments recorded once per reference Payments received outside Balm are recorded with a unique external reference, never above the invoice, and leave the outstanding balance. Acceptance evidence: Record a check payment, record the same reference again and be refused, and try to exceed the invoice and be refused.

AUDIT 1 clause

  1. AUDIT-001
    Append-only access audit bm_audit is append-only. Opening a patient file, reading intake answers or notes, every change, every invoice or reminder download and every agent read of patient names add rows for that patient; audit rows carry no patient personal details; only the owner reads them. Acceptance evidence: Open a file, read intake and notes, download an invoice and read names with an agent key; the file's audit lists each, and an attempt to update or delete an audit row is refused.

ERASE 1 clause

  1. ERASE-001
    Erasure fenced against old backups The owner erases a patient or staff member who has no health records; the erasure is journaled so a restore or import cannot bring them back, and a patient with health records is retained under HIPAA-002. Acceptance evidence: Erase an unused patient and staff member, restore an older archive and re-import the patient, and see both refused; try to erase a treated patient and be refused.

PORT 1 clause

  1. PORT-001
    Whole-clinic export and restore rer export writes the whole clinic as an archive; rer import restores it into an empty destination and refuses damaged archives and populated stores. Acceptance evidence: Export, damage a copy and see it refused, import into a populated store and see it refused, import into an empty one and see the clinic intact.

MOVE 1 clause

  1. MOVE-001
    Reviewed patient import with undo The owner imports patients from an allied-health practice system patient CSV: preview every row with diagnostics and conflicts, apply exactly the reviewed preview, read the journal with the original file, and undo without losing patients who have since been booked or edited. Acceptance evidence: Preview, apply and undo a synthetic allied-health practice system file in which one patient was booked after import; the booked patient is kept and the journal says why.

View as agent

Everything on this page is in these files, copied unmodified from the release. An agent evaluating Balm can read them instead of the page.

seed.json
The manifest: capabilities, outside services, extension points, limits, operating cost and deployment needs.
CONTRACT.md
The requirements on this page, in source form.
AGENTS.md
Instructions for the coding agent that maintains an installation.
LICENSE
RELEASE.json
README.md
Source setup, available commands and implementation status.
OPERATIONS.md
How the project is set up, operated and deployed.
ACCEPTANCE.md
What the publisher accepts as a finished release.

Every project, with its availability, is in /agents/catalogue.json; the agents page describes the machine-readable files.