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,37 +0,0 @@
|
||||
import * as z from 'zod';
|
||||
// prettier-ignore
|
||||
export const UserInputSchema = z.object({
|
||||
id: z.number().int(),
|
||||
username: z.string(),
|
||||
password: z.string(),
|
||||
autoBackupEnabled: z.boolean(),
|
||||
autoBackupHour: z.number().int(),
|
||||
usbBackupEnabled: z.boolean(),
|
||||
usbBackupHour: z.number().int(),
|
||||
autoMhCheckEnabled: z.boolean(),
|
||||
autoMhCheckDayOfWeek: z.number().int(),
|
||||
autoMhCheckHour: z.number().int(),
|
||||
patients: z.array(z.unknown()),
|
||||
appointments: z.array(z.unknown()),
|
||||
staff: z.array(z.unknown()),
|
||||
npiProviders: z.array(z.unknown()),
|
||||
claims: z.array(z.unknown()),
|
||||
insuranceCredentials: z.array(z.unknown()),
|
||||
shoppingVendors: z.array(z.unknown()),
|
||||
updatedPayments: z.array(z.unknown()),
|
||||
backups: z.array(z.unknown()),
|
||||
backupDestinations: z.array(z.unknown()),
|
||||
notifications: z.array(z.unknown()),
|
||||
cloudFolders: z.array(z.unknown()),
|
||||
cloudFiles: z.array(z.unknown()),
|
||||
communications: z.array(z.unknown()),
|
||||
twilioSettings: z.unknown().optional().nullable(),
|
||||
aiSettings: z.unknown().optional().nullable(),
|
||||
officeHours: z.unknown().optional().nullable(),
|
||||
officeContact: z.unknown().optional().nullable(),
|
||||
procedureTimeslot: z.unknown().optional().nullable(),
|
||||
insuranceContacts: z.array(z.unknown()),
|
||||
patientConversations: z.array(z.unknown())
|
||||
}).strict();
|
||||
|
||||
export type UserInputType = z.infer<typeof UserInputSchema>;
|
||||
Reference in New Issue
Block a user