22 lines
641 B
TypeScript
22 lines
641 B
TypeScript
import * as z from 'zod';
|
|
export const PatientServiceHistoryFindManyResultSchema = z.object({
|
|
data: z.array(z.object({
|
|
id: z.number().int(),
|
|
patientId: z.number().int(),
|
|
procedureCode: z.string(),
|
|
description: z.string().optional(),
|
|
toothQuadArchSurface: z.string().optional(),
|
|
placeOfService: z.string().optional(),
|
|
serviceDate: z.string().optional(),
|
|
createdAt: z.date(),
|
|
patient: z.unknown()
|
|
})),
|
|
pagination: z.object({
|
|
page: z.number().int().min(1),
|
|
pageSize: z.number().int().min(1),
|
|
total: z.number().int().min(0),
|
|
totalPages: z.number().int().min(0),
|
|
hasNext: z.boolean(),
|
|
hasPrev: z.boolean()
|
|
})
|
|
}); |