feat: Select Procedures flow, batch-column NPI provider fix, auto PDF save
- Add 'Select Procedures' right-click option on appointment page (separate from Claims/PreAuth) - Select Procedures form saves CDT codes + NPI provider to AppointmentProcedure storage - Remove Save button from insurance claim form; Claims/PreAuth opens for insurance submission only - Claims/PreAuth auto-prefills from saved procedures including NPI provider - Batch-column: procedures npiProviderId takes priority over stale claim npiProviderId - Batch-column: auto-save PDF to patient Documents after successful submission (no socket needed) - Add npiProviderId column to AppointmentProcedure table (prisma db push) - Fix 'invalid db creation invocation': guard staffId, npiProviderId, procedureDate as Date object, totalBilled NaN guard - Add full error logging to batch-column catch block Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
51
packages/db/shared/schemas/objects/ServiceLineUncheckedUpdateManyInput.schema.d.ts
vendored
Normal file
51
packages/db/shared/schemas/objects/ServiceLineUncheckedUpdateManyInput.schema.d.ts
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
import * as z from 'zod';
|
||||
import { Prisma } from '../../../generated/prisma';
|
||||
import Decimal from 'decimal.js';
|
||||
export declare const ServiceLineUncheckedUpdateManyInputObjectSchema: z.ZodType<Prisma.ServiceLineUncheckedUpdateManyInput>;
|
||||
export declare const ServiceLineUncheckedUpdateManyInputObjectZodSchema: z.ZodObject<{
|
||||
id: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodLazy<z.ZodType<Prisma.IntFieldUpdateOperationsInput, z.ZodTypeDef, Prisma.IntFieldUpdateOperationsInput>>]>>;
|
||||
claimId: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodLazy<z.ZodType<Prisma.NullableIntFieldUpdateOperationsInput, z.ZodTypeDef, Prisma.NullableIntFieldUpdateOperationsInput>>]>>>;
|
||||
paymentId: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodLazy<z.ZodType<Prisma.NullableIntFieldUpdateOperationsInput, z.ZodTypeDef, Prisma.NullableIntFieldUpdateOperationsInput>>]>>>;
|
||||
procedureCode: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLazy<z.ZodType<Prisma.StringFieldUpdateOperationsInput, z.ZodTypeDef, Prisma.StringFieldUpdateOperationsInput>>]>>;
|
||||
procedureDate: z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodLazy<z.ZodType<Prisma.DateTimeFieldUpdateOperationsInput, z.ZodTypeDef, Prisma.DateTimeFieldUpdateOperationsInput>>]>>;
|
||||
quad: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLazy<z.ZodType<Prisma.NullableStringFieldUpdateOperationsInput, z.ZodTypeDef, Prisma.NullableStringFieldUpdateOperationsInput>>]>>>;
|
||||
arch: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLazy<z.ZodType<Prisma.NullableStringFieldUpdateOperationsInput, z.ZodTypeDef, Prisma.NullableStringFieldUpdateOperationsInput>>]>>>;
|
||||
toothNumber: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLazy<z.ZodType<Prisma.NullableStringFieldUpdateOperationsInput, z.ZodTypeDef, Prisma.NullableStringFieldUpdateOperationsInput>>]>>>;
|
||||
toothSurface: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLazy<z.ZodType<Prisma.NullableStringFieldUpdateOperationsInput, z.ZodTypeDef, Prisma.NullableStringFieldUpdateOperationsInput>>]>>>;
|
||||
totalBilled: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodType<Decimal, z.ZodTypeDef, Decimal>, z.ZodType<Prisma.Decimal, z.ZodTypeDef, Prisma.Decimal>, z.ZodType<import("../../../generated/prisma/runtime/client").DecimalJsLike, z.ZodTypeDef, import("../../../generated/prisma/runtime/client").DecimalJsLike>]>, string | number | import("../../../generated/prisma/runtime/client").DecimalJsLike | Prisma.Decimal | Decimal, string | number | import("../../../generated/prisma/runtime/client").DecimalJsLike | Prisma.Decimal | Decimal>, z.ZodLazy<z.ZodType<Prisma.DecimalFieldUpdateOperationsInput, z.ZodTypeDef, Prisma.DecimalFieldUpdateOperationsInput>>]>>;
|
||||
totalPaid: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodType<Decimal, z.ZodTypeDef, Decimal>, z.ZodType<Prisma.Decimal, z.ZodTypeDef, Prisma.Decimal>, z.ZodType<import("../../../generated/prisma/runtime/client").DecimalJsLike, z.ZodTypeDef, import("../../../generated/prisma/runtime/client").DecimalJsLike>]>, string | number | import("../../../generated/prisma/runtime/client").DecimalJsLike | Prisma.Decimal | Decimal, string | number | import("../../../generated/prisma/runtime/client").DecimalJsLike | Prisma.Decimal | Decimal>, z.ZodLazy<z.ZodType<Prisma.DecimalFieldUpdateOperationsInput, z.ZodTypeDef, Prisma.DecimalFieldUpdateOperationsInput>>]>>;
|
||||
totalAdjusted: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodType<Decimal, z.ZodTypeDef, Decimal>, z.ZodType<Prisma.Decimal, z.ZodTypeDef, Prisma.Decimal>, z.ZodType<import("../../../generated/prisma/runtime/client").DecimalJsLike, z.ZodTypeDef, import("../../../generated/prisma/runtime/client").DecimalJsLike>]>, string | number | import("../../../generated/prisma/runtime/client").DecimalJsLike | Prisma.Decimal | Decimal, string | number | import("../../../generated/prisma/runtime/client").DecimalJsLike | Prisma.Decimal | Decimal>, z.ZodLazy<z.ZodType<Prisma.DecimalFieldUpdateOperationsInput, z.ZodTypeDef, Prisma.DecimalFieldUpdateOperationsInput>>]>>;
|
||||
totalDue: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodType<Decimal, z.ZodTypeDef, Decimal>, z.ZodType<Prisma.Decimal, z.ZodTypeDef, Prisma.Decimal>, z.ZodType<import("../../../generated/prisma/runtime/client").DecimalJsLike, z.ZodTypeDef, import("../../../generated/prisma/runtime/client").DecimalJsLike>]>, string | number | import("../../../generated/prisma/runtime/client").DecimalJsLike | Prisma.Decimal | Decimal, string | number | import("../../../generated/prisma/runtime/client").DecimalJsLike | Prisma.Decimal | Decimal>, z.ZodLazy<z.ZodType<Prisma.DecimalFieldUpdateOperationsInput, z.ZodTypeDef, Prisma.DecimalFieldUpdateOperationsInput>>]>>;
|
||||
status: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["PENDING", "PARTIALLY_PAID", "PAID", "UNPAID", "ADJUSTED", "OVERPAID", "DENIED"]>, z.ZodLazy<z.ZodType<Prisma.EnumServiceLineStatusFieldUpdateOperationsInput, z.ZodTypeDef, Prisma.EnumServiceLineStatusFieldUpdateOperationsInput>>]>>;
|
||||
}, "strict", z.ZodTypeAny, {
|
||||
status?: "PENDING" | "PARTIALLY_PAID" | "PAID" | "OVERPAID" | "DENIED" | "UNPAID" | "ADJUSTED" | Prisma.EnumServiceLineStatusFieldUpdateOperationsInput | undefined;
|
||||
id?: number | Prisma.IntFieldUpdateOperationsInput | undefined;
|
||||
procedureCode?: string | Prisma.StringFieldUpdateOperationsInput | undefined;
|
||||
toothNumber?: string | Prisma.NullableStringFieldUpdateOperationsInput | null | undefined;
|
||||
toothSurface?: string | Prisma.NullableStringFieldUpdateOperationsInput | null | undefined;
|
||||
claimId?: number | Prisma.NullableIntFieldUpdateOperationsInput | null | undefined;
|
||||
paymentId?: number | Prisma.NullableIntFieldUpdateOperationsInput | null | undefined;
|
||||
procedureDate?: Date | Prisma.DateTimeFieldUpdateOperationsInput | undefined;
|
||||
quad?: string | Prisma.NullableStringFieldUpdateOperationsInput | null | undefined;
|
||||
arch?: string | Prisma.NullableStringFieldUpdateOperationsInput | null | undefined;
|
||||
totalBilled?: string | number | import("../../../generated/prisma/runtime/client").DecimalJsLike | Prisma.Decimal | Decimal | Prisma.DecimalFieldUpdateOperationsInput | undefined;
|
||||
totalPaid?: string | number | import("../../../generated/prisma/runtime/client").DecimalJsLike | Prisma.Decimal | Decimal | Prisma.DecimalFieldUpdateOperationsInput | undefined;
|
||||
totalAdjusted?: string | number | import("../../../generated/prisma/runtime/client").DecimalJsLike | Prisma.Decimal | Decimal | Prisma.DecimalFieldUpdateOperationsInput | undefined;
|
||||
totalDue?: string | number | import("../../../generated/prisma/runtime/client").DecimalJsLike | Prisma.Decimal | Decimal | Prisma.DecimalFieldUpdateOperationsInput | undefined;
|
||||
}, {
|
||||
status?: "PENDING" | "PARTIALLY_PAID" | "PAID" | "OVERPAID" | "DENIED" | "UNPAID" | "ADJUSTED" | Prisma.EnumServiceLineStatusFieldUpdateOperationsInput | undefined;
|
||||
id?: number | Prisma.IntFieldUpdateOperationsInput | undefined;
|
||||
procedureCode?: string | Prisma.StringFieldUpdateOperationsInput | undefined;
|
||||
toothNumber?: string | Prisma.NullableStringFieldUpdateOperationsInput | null | undefined;
|
||||
toothSurface?: string | Prisma.NullableStringFieldUpdateOperationsInput | null | undefined;
|
||||
claimId?: number | Prisma.NullableIntFieldUpdateOperationsInput | null | undefined;
|
||||
paymentId?: number | Prisma.NullableIntFieldUpdateOperationsInput | null | undefined;
|
||||
procedureDate?: Date | Prisma.DateTimeFieldUpdateOperationsInput | undefined;
|
||||
quad?: string | Prisma.NullableStringFieldUpdateOperationsInput | null | undefined;
|
||||
arch?: string | Prisma.NullableStringFieldUpdateOperationsInput | null | undefined;
|
||||
totalBilled?: string | number | import("../../../generated/prisma/runtime/client").DecimalJsLike | Prisma.Decimal | Decimal | Prisma.DecimalFieldUpdateOperationsInput | undefined;
|
||||
totalPaid?: string | number | import("../../../generated/prisma/runtime/client").DecimalJsLike | Prisma.Decimal | Decimal | Prisma.DecimalFieldUpdateOperationsInput | undefined;
|
||||
totalAdjusted?: string | number | import("../../../generated/prisma/runtime/client").DecimalJsLike | Prisma.Decimal | Decimal | Prisma.DecimalFieldUpdateOperationsInput | undefined;
|
||||
totalDue?: string | number | import("../../../generated/prisma/runtime/client").DecimalJsLike | Prisma.Decimal | Decimal | Prisma.DecimalFieldUpdateOperationsInput | undefined;
|
||||
}>;
|
||||
//# sourceMappingURL=ServiceLineUncheckedUpdateManyInput.schema.d.ts.map
|
||||
Reference in New Issue
Block a user