feat: add Lab RX feature with template management and auto-seed defaults
- New lab_rx_template table with sortOrder and Prisma migrations - Backend CRUD + reorder routes at /api/lab-rx/templates - Auto-seeds 3 Highland Dental Studio defaults on first use per user - LabRxModal: template picker, inline rename, up/down reorder, full template form with sections (Template Name / Lab Info / Case Details) - RX popup: Tooth Number, Shade, Due Date, Doctor (from NPI providers), Instructions pre-filled with "Please make / Thank you!", print output - lab-rx-templates.ts config file for future git-managed additions Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,84 +0,0 @@
|
||||
import * as z from 'zod';
|
||||
export const AppointmentGroupByResultSchema = z.array(z.object({
|
||||
id: z.number().int(),
|
||||
patientId: z.number().int(),
|
||||
userId: z.number().int(),
|
||||
staffId: z.number().int(),
|
||||
title: z.string(),
|
||||
date: z.date(),
|
||||
startTime: z.string(),
|
||||
endTime: z.string(),
|
||||
type: z.string(),
|
||||
typeLocked: z.boolean(),
|
||||
notes: z.string(),
|
||||
procedureCodeNotes: z.string(),
|
||||
status: z.string(),
|
||||
movedByAi: z.boolean(),
|
||||
createdAt: z.date(),
|
||||
_count: z.object({
|
||||
id: z.number(),
|
||||
patientId: z.number(),
|
||||
userId: z.number(),
|
||||
staffId: z.number(),
|
||||
title: z.number(),
|
||||
date: z.number(),
|
||||
startTime: z.number(),
|
||||
endTime: z.number(),
|
||||
type: z.number(),
|
||||
typeLocked: z.number(),
|
||||
notes: z.number(),
|
||||
procedureCodeNotes: z.number(),
|
||||
status: z.number(),
|
||||
movedByAi: z.number(),
|
||||
createdAt: z.number(),
|
||||
eligibilityStatus: z.number(),
|
||||
patient: z.number(),
|
||||
user: z.number(),
|
||||
staff: z.number(),
|
||||
procedures: z.number(),
|
||||
claims: z.number(),
|
||||
files: z.number()
|
||||
}).optional(),
|
||||
_sum: z.object({
|
||||
id: z.number().nullable(),
|
||||
patientId: z.number().nullable(),
|
||||
userId: z.number().nullable(),
|
||||
staffId: z.number().nullable()
|
||||
}).nullable().optional(),
|
||||
_avg: z.object({
|
||||
id: z.number().nullable(),
|
||||
patientId: z.number().nullable(),
|
||||
userId: z.number().nullable(),
|
||||
staffId: z.number().nullable()
|
||||
}).nullable().optional(),
|
||||
_min: z.object({
|
||||
id: z.number().int().nullable(),
|
||||
patientId: z.number().int().nullable(),
|
||||
userId: z.number().int().nullable(),
|
||||
staffId: z.number().int().nullable(),
|
||||
title: z.string().nullable(),
|
||||
date: z.date().nullable(),
|
||||
startTime: z.string().nullable(),
|
||||
endTime: z.string().nullable(),
|
||||
type: z.string().nullable(),
|
||||
notes: z.string().nullable(),
|
||||
procedureCodeNotes: z.string().nullable(),
|
||||
status: z.string().nullable(),
|
||||
createdAt: z.date().nullable()
|
||||
}).nullable().optional(),
|
||||
_max: z.object({
|
||||
id: z.number().int().nullable(),
|
||||
patientId: z.number().int().nullable(),
|
||||
userId: z.number().int().nullable(),
|
||||
staffId: z.number().int().nullable(),
|
||||
title: z.string().nullable(),
|
||||
date: z.date().nullable(),
|
||||
startTime: z.string().nullable(),
|
||||
endTime: z.string().nullable(),
|
||||
type: z.string().nullable(),
|
||||
notes: z.string().nullable(),
|
||||
procedureCodeNotes: z.string().nullable(),
|
||||
status: z.string().nullable(),
|
||||
createdAt: z.date().nullable()
|
||||
}).nullable().optional()
|
||||
}));
|
||||
Reference in New Issue
Block a user