- 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>
25 lines
670 B
TypeScript
25 lines
670 B
TypeScript
import axios from "axios";
|
|
|
|
const SELENIUM_BASE = process.env.SELENIUM_SERVICE_URL ?? "http://localhost:5002";
|
|
|
|
/**
|
|
* POST /cca-claim
|
|
* Returns { status: "started", session_id: "<uuid>" }
|
|
*/
|
|
export async function forwardToSeleniumCCAClaimAgent(
|
|
data: Record<string, any>
|
|
): Promise<{ status: string; session_id: string }> {
|
|
const resp = await axios.post(`${SELENIUM_BASE}/cca-claim`, data);
|
|
return resp.data;
|
|
}
|
|
|
|
/**
|
|
* GET /session/{sid}/status
|
|
*/
|
|
export async function getSeleniumCCAClaimSessionStatus(
|
|
sessionId: string
|
|
): Promise<Record<string, any>> {
|
|
const resp = await axios.get(`${SELENIUM_BASE}/session/${sessionId}/status`);
|
|
return resp.data;
|
|
}
|