Files
DentalManagementMHAprilgg/packages/db/shared/schemas/variants/pure/ServiceLine.pure.ts
2026-04-04 22:13:55 -04:00

25 lines
853 B
TypeScript

import * as z from 'zod';
import { ServiceLineStatusSchema } from '../../enums/ServiceLineStatus.schema';
// prettier-ignore
export const ServiceLineModelSchema = z.object({
id: z.number().int(),
claimId: z.number().int().nullable(),
paymentId: z.number().int().nullable(),
procedureCode: z.string(),
procedureDate: z.date(),
quad: z.string().nullable(),
arch: z.string().nullable(),
toothNumber: z.string().nullable(),
toothSurface: z.string().nullable(),
totalBilled: z.number(),
totalPaid: z.number(),
totalAdjusted: z.number(),
totalDue: z.number(),
status: ServiceLineStatusSchema,
claim: z.unknown().nullable(),
payment: z.unknown().nullable(),
serviceLineTransactions: z.array(z.unknown())
}).strict();
export type ServiceLinePureType = z.infer<typeof ServiceLineModelSchema>;