- 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>
26 lines
2.2 KiB
TypeScript
26 lines
2.2 KiB
TypeScript
import * as z from 'zod';
|
|
import type { Prisma } from '../../../generated/prisma';
|
|
import { IntFilterObjectSchema as IntFilterObjectSchema } from './IntFilter.schema';
|
|
import { StringFilterObjectSchema as StringFilterObjectSchema } from './StringFilter.schema';
|
|
import { DateTimeFilterObjectSchema as DateTimeFilterObjectSchema } from './DateTimeFilter.schema';
|
|
import { UserScalarRelationFilterObjectSchema as UserScalarRelationFilterObjectSchema } from './UserScalarRelationFilter.schema';
|
|
import { UserWhereInputObjectSchema as UserWhereInputObjectSchema } from './UserWhereInput.schema';
|
|
import { ClaimListRelationFilterObjectSchema as ClaimListRelationFilterObjectSchema } from './ClaimListRelationFilter.schema';
|
|
import { AppointmentProcedureListRelationFilterObjectSchema as AppointmentProcedureListRelationFilterObjectSchema } from './AppointmentProcedureListRelationFilter.schema'
|
|
|
|
const npiproviderwhereinputSchema = z.object({
|
|
AND: z.union([z.lazy(() => NpiProviderWhereInputObjectSchema), z.lazy(() => NpiProviderWhereInputObjectSchema).array()]).optional(),
|
|
OR: z.lazy(() => NpiProviderWhereInputObjectSchema).array().optional(),
|
|
NOT: z.union([z.lazy(() => NpiProviderWhereInputObjectSchema), z.lazy(() => NpiProviderWhereInputObjectSchema).array()]).optional(),
|
|
id: z.union([z.lazy(() => IntFilterObjectSchema), z.number().int()]).optional(),
|
|
userId: z.union([z.lazy(() => IntFilterObjectSchema), z.number().int()]).optional(),
|
|
npiNumber: z.union([z.lazy(() => StringFilterObjectSchema), z.string()]).optional(),
|
|
providerName: z.union([z.lazy(() => StringFilterObjectSchema), z.string()]).optional(),
|
|
createdAt: z.union([z.lazy(() => DateTimeFilterObjectSchema), z.coerce.date()]).optional(),
|
|
user: z.union([z.lazy(() => UserScalarRelationFilterObjectSchema), z.lazy(() => UserWhereInputObjectSchema)]).optional(),
|
|
claims: z.lazy(() => ClaimListRelationFilterObjectSchema).optional(),
|
|
appointmentProcedures: z.lazy(() => AppointmentProcedureListRelationFilterObjectSchema).optional()
|
|
}).strict();
|
|
export const NpiProviderWhereInputObjectSchema: z.ZodType<Prisma.NpiProviderWhereInput> = npiproviderwhereinputSchema as unknown as z.ZodType<Prisma.NpiProviderWhereInput>;
|
|
export const NpiProviderWhereInputObjectZodSchema = npiproviderwhereinputSchema;
|