feat: add PreAuth tab, preauth selenium flow, and PreAuth No column
- Insurance Forms modal: split into Insurance Claim / PreAuth tabs - PreAuth tab: same patient info + service lines, no toggle/direct combos - Excluded Recalls & New Patients, Composite Fillings (Front/Back), Pedo from PreAuth combos - Extractions: replaced Simple/Surg/Baby Teeth EXT with Full Bony EXT (D7240) - MH PreAuth button: rewritten selenium worker to use masshealth-dental.org, selects Dental Prior Authorization (2nd option), skips Date of Service field - agent.py: convert pdf_path to pdf_url for /claim-pre-auth endpoint - nginx + Express: raise body size limit to 50mb (fix 413 errors) - DB schema: appointmentId optional on Claim, add preAuthNumber field, add PREAUTH status - Backend: create PREAUTH claim record on preauth submit, save preAuthNumber on completion - Claims table: add PreAuth No column (blue) next to Claim No Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { IntFilterObjectSchema as IntFilterObjectSchema } from './IntFilter.schema';
|
||||
import { IntNullableFilterObjectSchema as IntNullableFilterObjectSchema } from './IntNullableFilter.schema';
|
||||
import { StringFilterObjectSchema as StringFilterObjectSchema } from './StringFilter.schema';
|
||||
import { DateTimeFilterObjectSchema as DateTimeFilterObjectSchema } from './DateTimeFilter.schema';
|
||||
import { EnumMissingTeethStatusFilterObjectSchema as EnumMissingTeethStatusFilterObjectSchema } from './EnumMissingTeethStatusFilter.schema';
|
||||
@@ -9,10 +10,9 @@ import { JsonNullableFilterObjectSchema as JsonNullableFilterObjectSchema } from
|
||||
import { EnumClaimStatusFilterObjectSchema as EnumClaimStatusFilterObjectSchema } from './EnumClaimStatusFilter.schema';
|
||||
import { ClaimStatusSchema } from '../enums/ClaimStatus.schema';
|
||||
import { StringNullableFilterObjectSchema as StringNullableFilterObjectSchema } from './StringNullableFilter.schema';
|
||||
import { IntNullableFilterObjectSchema as IntNullableFilterObjectSchema } from './IntNullableFilter.schema';
|
||||
import { PatientScalarRelationFilterObjectSchema as PatientScalarRelationFilterObjectSchema } from './PatientScalarRelationFilter.schema';
|
||||
import { PatientWhereInputObjectSchema as PatientWhereInputObjectSchema } from './PatientWhereInput.schema';
|
||||
import { AppointmentScalarRelationFilterObjectSchema as AppointmentScalarRelationFilterObjectSchema } from './AppointmentScalarRelationFilter.schema';
|
||||
import { AppointmentNullableScalarRelationFilterObjectSchema as AppointmentNullableScalarRelationFilterObjectSchema } from './AppointmentNullableScalarRelationFilter.schema';
|
||||
import { AppointmentWhereInputObjectSchema as AppointmentWhereInputObjectSchema } from './AppointmentWhereInput.schema';
|
||||
import { UserNullableScalarRelationFilterObjectSchema as UserNullableScalarRelationFilterObjectSchema } from './UserNullableScalarRelationFilter.schema';
|
||||
import { UserWhereInputObjectSchema as UserWhereInputObjectSchema } from './UserWhereInput.schema';
|
||||
@@ -31,7 +31,7 @@ const claimwhereinputSchema = z.object({
|
||||
NOT: z.union([z.lazy(() => ClaimWhereInputObjectSchema), z.lazy(() => ClaimWhereInputObjectSchema).array()]).optional(),
|
||||
id: z.union([z.lazy(() => IntFilterObjectSchema), z.number().int()]).optional(),
|
||||
patientId: z.union([z.lazy(() => IntFilterObjectSchema), z.number().int()]).optional(),
|
||||
appointmentId: z.union([z.lazy(() => IntFilterObjectSchema), z.number().int()]).optional(),
|
||||
appointmentId: z.union([z.lazy(() => IntNullableFilterObjectSchema), z.number().int()]).optional().nullable(),
|
||||
userId: z.union([z.lazy(() => IntFilterObjectSchema), z.number().int()]).optional(),
|
||||
staffId: z.union([z.lazy(() => IntFilterObjectSchema), z.number().int()]).optional(),
|
||||
patientName: z.union([z.lazy(() => StringFilterObjectSchema), z.string()]).optional(),
|
||||
@@ -46,9 +46,10 @@ const claimwhereinputSchema = z.object({
|
||||
updatedAt: z.union([z.lazy(() => DateTimeFilterObjectSchema), z.coerce.date()]).optional(),
|
||||
status: z.union([z.lazy(() => EnumClaimStatusFilterObjectSchema), ClaimStatusSchema]).optional(),
|
||||
claimNumber: z.union([z.lazy(() => StringNullableFilterObjectSchema), z.string()]).optional().nullable(),
|
||||
preAuthNumber: z.union([z.lazy(() => StringNullableFilterObjectSchema), z.string()]).optional().nullable(),
|
||||
npiProviderId: z.union([z.lazy(() => IntNullableFilterObjectSchema), z.number().int()]).optional().nullable(),
|
||||
patient: z.union([z.lazy(() => PatientScalarRelationFilterObjectSchema), z.lazy(() => PatientWhereInputObjectSchema)]).optional(),
|
||||
appointment: z.union([z.lazy(() => AppointmentScalarRelationFilterObjectSchema), z.lazy(() => AppointmentWhereInputObjectSchema)]).optional(),
|
||||
appointment: z.union([z.lazy(() => AppointmentNullableScalarRelationFilterObjectSchema), z.lazy(() => AppointmentWhereInputObjectSchema)]).optional(),
|
||||
user: z.union([z.lazy(() => UserNullableScalarRelationFilterObjectSchema), z.lazy(() => UserWhereInputObjectSchema)]).optional(),
|
||||
staff: z.union([z.lazy(() => StaffNullableScalarRelationFilterObjectSchema), z.lazy(() => StaffWhereInputObjectSchema)]).optional(),
|
||||
npiProvider: z.union([z.lazy(() => NpiProviderNullableScalarRelationFilterObjectSchema), z.lazy(() => NpiProviderWhereInputObjectSchema)]).optional(),
|
||||
|
||||
Reference in New Issue
Block a user