- Shipped
- October 24, 2026 at 5:45 PM UTC
- Author
- Kamo
- Commit
- 70d28a1
Notes - Reads return the current text (original after addenda), author/cosigner names and exact id keys; GET /notes/{id} re-reads one note, audited. - Only the author revises a draft; a stale baseVersionId is refused rather than overwritten; blank notes and blank amendments are refused; signing checks the version the signer saw; no new note on a closed chart; unknown note types and self-cosign refused; cosigner can be set on a draft (PUT /notes/{id}/cosigner). - Entered-in-error endpoint with reason, who and when (author or MANAGE_EHR_SETTINGS). - Practice note templates (list/save/retire). Visits - Starting from an appointment needs Document Clinical Notes as well as Manage Encounters; refuses cancelled/no-show/finished appointments and starts more than 12h early; the booked clinician is always granted, the caller only if clinical staff and the appointment is within 12h (the booked clinician may start a past one); every grant is a fail-closed CONFIGURE audit event; a roomed appointment is never moved back. Joining an open visit grants the joiner on the same terms. - Walk-in visits (POST /walk-in) with a required reason, recorded on the visit and the audit row; refused while a visit is already open. - End visit / close chart need Document Clinical Notes; close refuses with no signed note; refusals are ClinicalRefusalException (400 with the message) so a clinician sees why, not "No such record". Documents (new): /documents **************** Stored through ImageService as PATIENT_CHART imgs (CONFIDENTIAL, content-addressed imaging bucket), read back from MinIO by key; PDF/JPEG/PNG/HEIC/TIFF up to 25 MB; SHA-256 recorded; never deleted. Clinical categories need **************** and a care relationship; cards/ID/consent also open to EDIT_PATIENT_DEMOGRAPHICS (audited basis PANEL). Every read audited. Printouts: GET **************** and /prescriptions/{id}/print.
