feat: appointment type inference, procedure codes on cards, claim attachment fixes

- Add appointment type categories matching insurance claim form (recall, filling, pedo, dentures, implant, endo, crown, perio, extraction, ortho, consultation, emergency, other)
- Auto-infer appointment type from CDT codes with priority rules (endo > implant > crown > ...)
- typeLocked flag prevents auto-overwrite when user manually sets type
- Show appointment type label and procedure codes on schedule cards
- Background sync on /day route retroactively fixes stale appointment types
- Fix PUT /api/claims/:id to save claimFiles (previously silently dropped)
- Auto-link AppointmentFile records to ClaimFile when claim is created or updated
- Fix D5750 (denture reline) CDT range to map correctly to dentures category
- Fix typeLocked Zod rejection in appointment update route

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
ff
2026-05-29 14:18:10 -04:00
co-authored by Claude Sonnet 4.6
parent b20dc8e976
commit 9d0cfe5dba
260 changed files with 2443 additions and 1968 deletions
@@ -56,8 +56,8 @@
{
"Procedure Code": "D0230",
"Description": "Intraoral - periapical, each additional radiographic image",
"PriceLTEQ21": "13",
"PriceGT21": "13"
"PriceLTEQ21": 60,
"PriceGT21": 60
},
{
"Procedure Code": "D0240",
@@ -854,8 +854,8 @@
{
"Procedure Code": "D7210",
"Description": "Extraction, erupted tooth requiring removal of bone and/or sectioning of tooth, and including elevation of mucoperiosteal flap if indicated",
"PriceLTEQ21": "149",
"PriceGT21": "149"
"PriceLTEQ21": 200,
"PriceGT21": 200
},
{
"Procedure Code": "D7220",