feat: MassHealth service history extraction, shown in Patient Details
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+27
@@ -0,0 +1,27 @@
|
||||
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 { PatientServiceHistoryCountOrderByAggregateInputObjectSchema as PatientServiceHistoryCountOrderByAggregateInputObjectSchema } from './PatientServiceHistoryCountOrderByAggregateInput.schema';
|
||||
import { PatientServiceHistoryAvgOrderByAggregateInputObjectSchema as PatientServiceHistoryAvgOrderByAggregateInputObjectSchema } from './PatientServiceHistoryAvgOrderByAggregateInput.schema';
|
||||
import { PatientServiceHistoryMaxOrderByAggregateInputObjectSchema as PatientServiceHistoryMaxOrderByAggregateInputObjectSchema } from './PatientServiceHistoryMaxOrderByAggregateInput.schema';
|
||||
import { PatientServiceHistoryMinOrderByAggregateInputObjectSchema as PatientServiceHistoryMinOrderByAggregateInputObjectSchema } from './PatientServiceHistoryMinOrderByAggregateInput.schema';
|
||||
import { PatientServiceHistorySumOrderByAggregateInputObjectSchema as PatientServiceHistorySumOrderByAggregateInputObjectSchema } from './PatientServiceHistorySumOrderByAggregateInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: SortOrderSchema.optional(),
|
||||
patientId: SortOrderSchema.optional(),
|
||||
procedureCode: SortOrderSchema.optional(),
|
||||
description: z.union([SortOrderSchema, z.lazy(() => SortOrderInputObjectSchema)]).optional(),
|
||||
toothQuadArchSurface: z.union([SortOrderSchema, z.lazy(() => SortOrderInputObjectSchema)]).optional(),
|
||||
placeOfService: z.union([SortOrderSchema, z.lazy(() => SortOrderInputObjectSchema)]).optional(),
|
||||
serviceDate: z.union([SortOrderSchema, z.lazy(() => SortOrderInputObjectSchema)]).optional(),
|
||||
createdAt: SortOrderSchema.optional(),
|
||||
_count: z.lazy(() => PatientServiceHistoryCountOrderByAggregateInputObjectSchema).optional(),
|
||||
_avg: z.lazy(() => PatientServiceHistoryAvgOrderByAggregateInputObjectSchema).optional(),
|
||||
_max: z.lazy(() => PatientServiceHistoryMaxOrderByAggregateInputObjectSchema).optional(),
|
||||
_min: z.lazy(() => PatientServiceHistoryMinOrderByAggregateInputObjectSchema).optional(),
|
||||
_sum: z.lazy(() => PatientServiceHistorySumOrderByAggregateInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const PatientServiceHistoryOrderByWithAggregationInputObjectSchema: z.ZodType<Prisma.PatientServiceHistoryOrderByWithAggregationInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientServiceHistoryOrderByWithAggregationInput>;
|
||||
export const PatientServiceHistoryOrderByWithAggregationInputObjectZodSchema = makeSchema();
|
||||
Reference in New Issue
Block a user