- 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>
55 lines
1.7 KiB
TypeScript
55 lines
1.7 KiB
TypeScript
import * as z from 'zod';
|
|
export const CloudFileAggregateResultSchema = z.object({ _count: z.object({
|
|
id: z.number(),
|
|
userId: z.number(),
|
|
name: z.number(),
|
|
mimeType: z.number(),
|
|
fileSize: z.number(),
|
|
folderId: z.number(),
|
|
isComplete: z.number(),
|
|
totalChunks: z.number(),
|
|
diskPath: z.number(),
|
|
createdAt: z.number(),
|
|
updatedAt: z.number(),
|
|
user: z.number(),
|
|
folder: z.number(),
|
|
chunks: z.number()
|
|
}).optional(),
|
|
_sum: z.object({
|
|
id: z.number().nullable(),
|
|
userId: z.number().nullable(),
|
|
fileSize: z.bigint().nullable(),
|
|
folderId: z.number().nullable(),
|
|
totalChunks: z.number().nullable()
|
|
}).nullable().optional(),
|
|
_avg: z.object({
|
|
id: z.number().nullable(),
|
|
userId: z.number().nullable(),
|
|
fileSize: z.number().nullable(),
|
|
folderId: z.number().nullable(),
|
|
totalChunks: z.number().nullable()
|
|
}).nullable().optional(),
|
|
_min: z.object({
|
|
id: z.number().int().nullable(),
|
|
userId: z.number().int().nullable(),
|
|
name: z.string().nullable(),
|
|
mimeType: z.string().nullable(),
|
|
fileSize: z.bigint().nullable(),
|
|
folderId: z.number().int().nullable(),
|
|
totalChunks: z.number().int().nullable(),
|
|
diskPath: z.string().nullable(),
|
|
createdAt: z.date().nullable(),
|
|
updatedAt: z.date().nullable()
|
|
}).nullable().optional(),
|
|
_max: z.object({
|
|
id: z.number().int().nullable(),
|
|
userId: z.number().int().nullable(),
|
|
name: z.string().nullable(),
|
|
mimeType: z.string().nullable(),
|
|
fileSize: z.bigint().nullable(),
|
|
folderId: z.number().int().nullable(),
|
|
totalChunks: z.number().int().nullable(),
|
|
diskPath: z.string().nullable(),
|
|
createdAt: z.date().nullable(),
|
|
updatedAt: z.date().nullable()
|
|
}).nullable().optional()}); |