feat: share patients across all users
Removed per-user patient filtering so all staff accounts see the same patient pool. Previously each user only saw patients they created. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -21,6 +21,7 @@ export const UserFindFirstOrThrowSelectSchema: z.ZodType<Prisma.UserSelect> = z.
|
||||
npiProviders: z.boolean().optional(),
|
||||
claims: z.boolean().optional(),
|
||||
insuranceCredentials: z.boolean().optional(),
|
||||
shoppingVendors: z.boolean().optional(),
|
||||
updatedPayments: z.boolean().optional(),
|
||||
backups: z.boolean().optional(),
|
||||
backupDestinations: z.boolean().optional(),
|
||||
@@ -33,6 +34,8 @@ export const UserFindFirstOrThrowSelectSchema: z.ZodType<Prisma.UserSelect> = z.
|
||||
officeHours: z.boolean().optional(),
|
||||
officeContact: z.boolean().optional(),
|
||||
procedureTimeslot: z.boolean().optional(),
|
||||
insuranceContacts: z.boolean().optional(),
|
||||
patientConversations: z.boolean().optional(),
|
||||
_count: z.boolean().optional()
|
||||
}).strict() as unknown as z.ZodType<Prisma.UserSelect>;
|
||||
|
||||
@@ -48,6 +51,7 @@ export const UserFindFirstOrThrowSelectZodSchema = z.object({
|
||||
npiProviders: z.boolean().optional(),
|
||||
claims: z.boolean().optional(),
|
||||
insuranceCredentials: z.boolean().optional(),
|
||||
shoppingVendors: z.boolean().optional(),
|
||||
updatedPayments: z.boolean().optional(),
|
||||
backups: z.boolean().optional(),
|
||||
backupDestinations: z.boolean().optional(),
|
||||
@@ -60,6 +64,8 @@ export const UserFindFirstOrThrowSelectZodSchema = z.object({
|
||||
officeHours: z.boolean().optional(),
|
||||
officeContact: z.boolean().optional(),
|
||||
procedureTimeslot: z.boolean().optional(),
|
||||
insuranceContacts: z.boolean().optional(),
|
||||
patientConversations: z.boolean().optional(),
|
||||
_count: z.boolean().optional()
|
||||
}).strict();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user