feat: add CCA claim submission with Selenium automation

- Add CCA claim submit Selenium worker (login, fill form, attach docs, submit, capture dashboard PDF)
- Add CCA fee schedule (procedureCodesMH.json renamed, procedureCodesCCA.json added with D6010)
- Add backend route /api/claims/cca-claim, processor, and Selenium client
- Wire CCA claim handler in claims-page with job tracking and PDF preview popup
- Add insurance type dropdown in claim form (same options as eligibility page)
- Auto-populate insurance type from patient.insuranceProvider in claim form and patient edit form
- Map fee schedule by insurance type in Map Price button and combo buttons
- Fix CCA login speed (remove fixed sleeps, use readyState check)
- Fix CCA claim DOB format bug (was sending MM-DD-YYYY, now sends YYYY-MM-DD)
- Fix npiProviderId not saved for CCA claims
- Change Add Service → CCA Claim button (blue), MH → MH Claim

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Gitead
2026-05-22 13:34:03 -04:00
parent 58b2e4af93
commit 0e664e4813
21 changed files with 4768 additions and 77 deletions

View File

@@ -22,6 +22,10 @@ const DocumentPage = lazy(() => import("./pages/documents-page"));
const DatabaseManagementPage = lazy(() => import("./pages/database-management-page"));
const ReportsPage = lazy(() => import("./pages/reports-page"));
const CloudStoragePage = lazy(() => import("./pages/cloud-storage-page"));
const JobMonitorPage = lazy(() => import("./pages/job-monitor-page"));
const ChartPage = lazy(() => import("./pages/chart-page"));
const DentalShoppingSearchTagPage = lazy(() => import("./pages/dental-shopping-search-tag-page"));
const DentalShoppingLoginInfoPage = lazy(() => import("./pages/dental-shopping-login-info-page"));
const NotFound = lazy(() => import("./pages/not-found"));
function Router() {
return (<Switch>
@@ -31,14 +35,20 @@ function Router() {
<ProtectedRoute path="/patient-connection" component={() => <PatientConnectionPage />}/>
<ProtectedRoute path="/appointments" component={() => <AppointmentsPage />}/>
<ProtectedRoute path="/patients" component={() => <PatientsPage />}/>
<ProtectedRoute path="/settings" component={() => <SettingsPage />}/>
<ProtectedRoute path="/chart/:section" component={() => <ChartPage />}/>
<ProtectedRoute path="/chart" component={() => <ChartPage />}/>
<ProtectedRoute path="/settings/:section" component={() => <SettingsPage />} adminOnly/>
<ProtectedRoute path="/settings" component={() => <SettingsPage />} adminOnly/>
<ProtectedRoute path="/claims" component={() => <ClaimsPage />}/>
<ProtectedRoute path="/insurance-status" component={() => <InsuranceStatusPage />}/>
<ProtectedRoute path="/payments" component={() => <PaymentsPage />}/>
<ProtectedRoute path="/documents" component={() => <DocumentPage />}/>
<ProtectedRoute path="/database-management" component={() => <DatabaseManagementPage />}/>
<ProtectedRoute path="/database-management" component={() => <DatabaseManagementPage />} adminOnly/>
<ProtectedRoute path="/reports" component={() => <ReportsPage />}/>
<ProtectedRoute path="/cloud-storage" component={() => <CloudStoragePage />}/>
<ProtectedRoute path="/dental-shopping/search-tag" component={() => <DentalShoppingSearchTagPage />}/>
<ProtectedRoute path="/dental-shopping/login-info" component={() => <DentalShoppingLoginInfoPage />}/>
<ProtectedRoute path="/job-monitor" component={() => <JobMonitorPage />} adminOnly/>
<Route path="/auth" component={() => <AuthPage />}/>
<Route component={() => <NotFound />}/>
</Switch>);