feat: add Provider field to appointment form, drive AI claim automation
Adds an optional Provider (NPI) select to the Edit Appointment form, sourced from Settings > NPI Providers. The AI "Claim for Column" batch flow now prefers the appointment's own provider when resolving which provider Selenium should select on the insurance site (e.g. MassHealth rendering provider dropdown), falling back to the existing per-procedure selection, active claim, or first configured provider. Also resyncs packages/db's committed compiled schema/client artifacts with their .ts sources — they had drifted out of sync (some untouched since July), which was silently stripping the new npiProviderId field via stale .strict() zod schemas. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -1 +1 @@
|
||||
{"version":3,"file":"decimal-helpers.d.ts","sourceRoot":"","sources":["decimal-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAMhD,eAAO,MAAM,mBAAmB,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,aAAa,CAM9D,CAAC;AAGH,eAAO,MAAM,oBAAoB,QAAuE,CAAC;AAEzG,eAAO,MAAM,mBAAmB,GAC9B,IAAI,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,aAAa,KAChD,CAAC,IAAI,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,aAiBhC,CAAC"}
|
||||
{"version":3,"file":"decimal-helpers.d.ts","sourceRoot":"","sources":["decimal-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAOrD,eAAO,MAAM,mBAAmB,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,aAAa,CAM9D,CAAC;AAGH,eAAO,MAAM,oBAAoB,QAAuE,CAAC;AAEzG,eAAO,MAAM,mBAAmB,GAC9B,IAAI,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,aAAa,KAChD,CAAC,IAAI,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,aAiBhC,CAAC"}
|
||||
@@ -38,7 +38,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.isValidDecimalInput = exports.DECIMAL_STRING_REGEX = exports.DecimalJSLikeSchema = void 0;
|
||||
const z = __importStar(require("zod"));
|
||||
const prisma_1 = require("../../generated/prisma");
|
||||
const decimal_js_1 = __importDefault(require("decimal.js"));
|
||||
// DECIMAL HELPERS
|
||||
//------------------------------------------------------
|
||||
@@ -56,7 +55,7 @@ const isValidDecimalInput = (v) => {
|
||||
return false;
|
||||
return (
|
||||
// Explicit instance checks first
|
||||
v instanceof prisma_1.Prisma.Decimal ||
|
||||
v instanceof decimal_js_1.default ||
|
||||
// If Decimal.js is present and imported by the generator, this symbol exists at runtime
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore - Decimal may be undefined when not installed; codegen controls the import
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
import * as z from 'zod';
|
||||
|
||||
import { Prisma } from '../../generated/prisma';
|
||||
import Decimal from 'decimal.js';
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
|
||||
import Decimal from "decimal.js";
|
||||
|
||||
// DECIMAL HELPERS
|
||||
//------------------------------------------------------
|
||||
@@ -23,7 +24,7 @@ export const isValidDecimalInput = (
|
||||
if (v === undefined || v === null) return false;
|
||||
return (
|
||||
// Explicit instance checks first
|
||||
v instanceof Prisma.Decimal ||
|
||||
v instanceof Decimal ||
|
||||
// If Decimal.js is present and imported by the generator, this symbol exists at runtime
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore - Decimal may be undefined when not installed; codegen controls the import
|
||||
|
||||
Reference in New Issue
Block a user