Functional contract

SOAP notes

Clinical record for one visit. Organization-visible on the patient chart; authored at the visit’s Location. Appointments without a visit have no SOAP.

Structured SOAP + history shipped Templates + apply last visit shipped Voice-to-text deferred Source: docs/functional/soap-notes.md

Domain

ModelWhat it is
SoapNoteOne per visit. jsonb columns: subjective, objective, assessment, plan
SoapNoteTemplateNamed Organization template applied to a note
PatientHistoryChart timeline: visits, appointments without a visit, diagnostic orders and results

Lazy find_or_create on first open (not at check-in). Partial notes allowed. No draft or signed/locked state. SOAP is never required for ready-to-bill or checkout.

Structure

Patient history

GET /app/patients/:id?tab=history, newest first, cross-location. The SOAP tab lists the patient’s visits with their notes.

RowWhen
VisitEvery visit; linked appointment time/status as secondary meta (not duplicated)
AppointmentMaterialized appointments with no visit (scheduled, canceled, no-show)
Diagnostic orderEvery issued order, including visit-linked ones
Diagnostic resultEvery reported lab work, linked to its order

Virtual series slots excluded. Visit rows link to SOAP. The SOAP show page ends with a collapsed Change history (field-level jsonb diffs via SoapNote::AuditChanges).

Routes

RouteWhoBehavior
GET /app/visits/:visit_id/soap_notepatients.readShow (creates empty if missing)
GET …/soap_note/edit, PATCH …/soap_notesoap.manage at visit LocationEdit and save
POST …/soap_note/apply_previoussoap.manage at visit LocationCopy S/O/A/P from the patient’s most recent other visit note
POST …/soap_note/apply_templatesoap.manage at visit LocationApply an Organization SoapNoteTemplate
POST …/soap_note/save_templatesoap.manage at visit LocationSave the current note as a named Organization template

The Visit 360 workspace (/app/visits/:id?tab=soap) embeds the same note with autosave — see Visits. Whiteboard cards open that workspace.

RBAC

Manage: org admin, location admin, veterinarian (at the visit Location). Read: anyone with patients.read. Receptionist reads only.

Out of scope

Voice-to-text, mobile API, note lock/sign, billing Rx fulfillment, SMS from the plan. Photos (captures) are planned on the shared hands-off upload flow.

Full contract: docs/functional/soap-notes.md.