feat: MassHealth service history extraction, shown in Patient Details

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-05 08:38:13 -05:00
co-authored by Claude Opus 5.5
parent 1ee3b0cfc9
commit 33bea3822c
172 changed files with 4044 additions and 127 deletions
@@ -8,7 +8,8 @@ import { PaymentUncheckedCreateNestedManyWithoutPatientInputObjectSchema as Paym
import { CommunicationUncheckedCreateNestedManyWithoutPatientInputObjectSchema as CommunicationUncheckedCreateNestedManyWithoutPatientInputObjectSchema } from './CommunicationUncheckedCreateNestedManyWithoutPatientInput.schema';
import { PatientDocumentUncheckedCreateNestedManyWithoutPatientInputObjectSchema as PatientDocumentUncheckedCreateNestedManyWithoutPatientInputObjectSchema } from './PatientDocumentUncheckedCreateNestedManyWithoutPatientInput.schema';
import { PatientConversationUncheckedCreateNestedOneWithoutPatientInputObjectSchema as PatientConversationUncheckedCreateNestedOneWithoutPatientInputObjectSchema } from './PatientConversationUncheckedCreateNestedOneWithoutPatientInput.schema';
import { CloudFolderUncheckedCreateNestedManyWithoutPatientInputObjectSchema as CloudFolderUncheckedCreateNestedManyWithoutPatientInputObjectSchema } from './CloudFolderUncheckedCreateNestedManyWithoutPatientInput.schema'
import { CloudFolderUncheckedCreateNestedManyWithoutPatientInputObjectSchema as CloudFolderUncheckedCreateNestedManyWithoutPatientInputObjectSchema } from './CloudFolderUncheckedCreateNestedManyWithoutPatientInput.schema';
import { PatientServiceHistoryUncheckedCreateNestedManyWithoutPatientInputObjectSchema as PatientServiceHistoryUncheckedCreateNestedManyWithoutPatientInputObjectSchema } from './PatientServiceHistoryUncheckedCreateNestedManyWithoutPatientInput.schema'
const makeSchema = () => z.object({
id: z.number().int().optional(),
@@ -44,7 +45,8 @@ const makeSchema = () => z.object({
communications: z.lazy(() => CommunicationUncheckedCreateNestedManyWithoutPatientInputObjectSchema).optional(),
documents: z.lazy(() => PatientDocumentUncheckedCreateNestedManyWithoutPatientInputObjectSchema).optional(),
conversation: z.lazy(() => PatientConversationUncheckedCreateNestedOneWithoutPatientInputObjectSchema).optional(),
cloudFolders: z.lazy(() => CloudFolderUncheckedCreateNestedManyWithoutPatientInputObjectSchema).optional()
cloudFolders: z.lazy(() => CloudFolderUncheckedCreateNestedManyWithoutPatientInputObjectSchema).optional(),
serviceHistory: z.lazy(() => PatientServiceHistoryUncheckedCreateNestedManyWithoutPatientInputObjectSchema).optional()
}).strict();
export const PatientUncheckedCreateWithoutProceduresInputObjectSchema: z.ZodType<Prisma.PatientUncheckedCreateWithoutProceduresInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientUncheckedCreateWithoutProceduresInput>;
export const PatientUncheckedCreateWithoutProceduresInputObjectZodSchema = makeSchema();