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:
@@ -9,6 +9,7 @@ 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';
|
||||
@@ -17,6 +18,8 @@ import { UserNullableScalarRelationFilterObjectSchema as UserNullableScalarRelat
|
||||
import { UserWhereInputObjectSchema as UserWhereInputObjectSchema } from './UserWhereInput.schema';
|
||||
import { StaffNullableScalarRelationFilterObjectSchema as StaffNullableScalarRelationFilterObjectSchema } from './StaffNullableScalarRelationFilter.schema';
|
||||
import { StaffWhereInputObjectSchema as StaffWhereInputObjectSchema } from './StaffWhereInput.schema';
|
||||
import { NpiProviderNullableScalarRelationFilterObjectSchema as NpiProviderNullableScalarRelationFilterObjectSchema } from './NpiProviderNullableScalarRelationFilter.schema';
|
||||
import { NpiProviderWhereInputObjectSchema as NpiProviderWhereInputObjectSchema } from './NpiProviderWhereInput.schema';
|
||||
import { ServiceLineListRelationFilterObjectSchema as ServiceLineListRelationFilterObjectSchema } from './ServiceLineListRelationFilter.schema';
|
||||
import { ClaimFileListRelationFilterObjectSchema as ClaimFileListRelationFilterObjectSchema } from './ClaimFileListRelationFilter.schema';
|
||||
import { PaymentNullableScalarRelationFilterObjectSchema as PaymentNullableScalarRelationFilterObjectSchema } from './PaymentNullableScalarRelationFilter.schema';
|
||||
@@ -43,10 +46,12 @@ 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(),
|
||||
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(),
|
||||
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(),
|
||||
serviceLines: z.lazy(() => ServiceLineListRelationFilterObjectSchema).optional(),
|
||||
claimFiles: z.lazy(() => ClaimFileListRelationFilterObjectSchema).optional(),
|
||||
payment: z.union([z.lazy(() => PaymentNullableScalarRelationFilterObjectSchema), z.lazy(() => PaymentWhereInputObjectSchema)]).optional()
|
||||
|
||||
Reference in New Issue
Block a user