- New GET /api/claims/:id/ada-form fills the 2024 ADA Dental Claim Form (J43024) with payer address, patient/subscriber, CDT lines, fees, missing teeth, billing (office) NPI and treating NPI; signatures blank - "BCBS Claim (ADA Form)" button saves the claim and opens the PDF; Claim All routes BCBS patients to it; "Print ADA Form" in claim view - Settings > NPI Providers: "Add Office NPI" (billing name, NPI, license, TIN) and optional per-provider license number - Migration: office_contact billing fields, NpiProvider.licenseNumber Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
36 lines
3.2 KiB
TypeScript
36 lines
3.2 KiB
TypeScript
import * as z from 'zod';
|
|
import type { Prisma } from '../../../generated/prisma';
|
|
import { SortOrderSchema } from '../enums/SortOrder.schema';
|
|
import { SortOrderInputObjectSchema as SortOrderInputObjectSchema } from './SortOrderInput.schema';
|
|
import { OfficeContactCountOrderByAggregateInputObjectSchema as OfficeContactCountOrderByAggregateInputObjectSchema } from './OfficeContactCountOrderByAggregateInput.schema';
|
|
import { OfficeContactAvgOrderByAggregateInputObjectSchema as OfficeContactAvgOrderByAggregateInputObjectSchema } from './OfficeContactAvgOrderByAggregateInput.schema';
|
|
import { OfficeContactMaxOrderByAggregateInputObjectSchema as OfficeContactMaxOrderByAggregateInputObjectSchema } from './OfficeContactMaxOrderByAggregateInput.schema';
|
|
import { OfficeContactMinOrderByAggregateInputObjectSchema as OfficeContactMinOrderByAggregateInputObjectSchema } from './OfficeContactMinOrderByAggregateInput.schema';
|
|
import { OfficeContactSumOrderByAggregateInputObjectSchema as OfficeContactSumOrderByAggregateInputObjectSchema } from './OfficeContactSumOrderByAggregateInput.schema'
|
|
|
|
const makeSchema = () => z.object({
|
|
id: SortOrderSchema.optional(),
|
|
userId: SortOrderSchema.optional(),
|
|
officeName: z.union([SortOrderSchema, z.lazy(() => SortOrderInputObjectSchema)]).optional(),
|
|
receptionistName: z.union([SortOrderSchema, z.lazy(() => SortOrderInputObjectSchema)]).optional(),
|
|
dentistName: z.union([SortOrderSchema, z.lazy(() => SortOrderInputObjectSchema)]).optional(),
|
|
phoneNumber: z.union([SortOrderSchema, z.lazy(() => SortOrderInputObjectSchema)]).optional(),
|
|
email: z.union([SortOrderSchema, z.lazy(() => SortOrderInputObjectSchema)]).optional(),
|
|
fax: z.union([SortOrderSchema, z.lazy(() => SortOrderInputObjectSchema)]).optional(),
|
|
streetAddress: z.union([SortOrderSchema, z.lazy(() => SortOrderInputObjectSchema)]).optional(),
|
|
city: z.union([SortOrderSchema, z.lazy(() => SortOrderInputObjectSchema)]).optional(),
|
|
state: z.union([SortOrderSchema, z.lazy(() => SortOrderInputObjectSchema)]).optional(),
|
|
zipCode: z.union([SortOrderSchema, z.lazy(() => SortOrderInputObjectSchema)]).optional(),
|
|
billingName: z.union([SortOrderSchema, z.lazy(() => SortOrderInputObjectSchema)]).optional(),
|
|
billingNpi: z.union([SortOrderSchema, z.lazy(() => SortOrderInputObjectSchema)]).optional(),
|
|
billingLicense: z.union([SortOrderSchema, z.lazy(() => SortOrderInputObjectSchema)]).optional(),
|
|
billingTaxId: z.union([SortOrderSchema, z.lazy(() => SortOrderInputObjectSchema)]).optional(),
|
|
_count: z.lazy(() => OfficeContactCountOrderByAggregateInputObjectSchema).optional(),
|
|
_avg: z.lazy(() => OfficeContactAvgOrderByAggregateInputObjectSchema).optional(),
|
|
_max: z.lazy(() => OfficeContactMaxOrderByAggregateInputObjectSchema).optional(),
|
|
_min: z.lazy(() => OfficeContactMinOrderByAggregateInputObjectSchema).optional(),
|
|
_sum: z.lazy(() => OfficeContactSumOrderByAggregateInputObjectSchema).optional()
|
|
}).strict();
|
|
export const OfficeContactOrderByWithAggregationInputObjectSchema: z.ZodType<Prisma.OfficeContactOrderByWithAggregationInput> = makeSchema() as unknown as z.ZodType<Prisma.OfficeContactOrderByWithAggregationInput>;
|
|
export const OfficeContactOrderByWithAggregationInputObjectZodSchema = makeSchema();
|