mirror of
https://github.com/temetro/temetro.git
synced 2026-07-26 11:58:14 +00:00
bb7478433c
- chat-input: new "Add patient" pill (UserPlus) opens an intake dialog; remounts it via a key each open for a fresh file # / cleared form. On create it runs /patient <new#> so the record's cards open in the chat. - add-patient-dialog: controlled Dialog + form — generated file # (with regenerate), identity (name/age/sex/status/PCP), current vitals, and repeatable allergies & medications. Save builds a Patient and adds it to the store. Save disabled until a name is entered. - lib/patients: generateFileNumber() (unique) + addPatient() (session store; swap point for a real create API). - patient-cards: graceful empty states (no labs / meds / problems / visits / trend) so a brand-new sparse chart renders cleanly. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>