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:
@@ -11,6 +11,7 @@ export const UserAggregateResultSchema = z.object({ _count: z.object({
|
||||
npiProviders: z.number(),
|
||||
claims: z.number(),
|
||||
insuranceCredentials: z.number(),
|
||||
shoppingVendors: z.number(),
|
||||
updatedPayments: z.number(),
|
||||
backups: z.number(),
|
||||
backupDestinations: z.number(),
|
||||
@@ -22,7 +23,9 @@ export const UserAggregateResultSchema = z.object({ _count: z.object({
|
||||
aiSettings: z.number(),
|
||||
officeHours: z.number(),
|
||||
officeContact: z.number(),
|
||||
procedureTimeslot: z.number()
|
||||
procedureTimeslot: z.number(),
|
||||
insuranceContacts: z.number(),
|
||||
patientConversations: z.number()
|
||||
}).optional(),
|
||||
_sum: z.object({
|
||||
id: z.number().nullable()
|
||||
|
||||
Reference in New Issue
Block a user