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:
ff
2026-05-17 23:04:26 -04:00
parent b148c0de30
commit 8cab823d60
219 changed files with 14090 additions and 718 deletions

View File

@@ -11,6 +11,7 @@ export const UserUpdateResultSchema = z.nullable(z.object({
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()),
@@ -22,5 +23,7 @@ export const UserUpdateResultSchema = z.nullable(z.object({
aiSettings: z.unknown().optional(),
officeHours: z.unknown().optional(),
officeContact: z.unknown().optional(),
procedureTimeslot: z.unknown().optional()
procedureTimeslot: z.unknown().optional(),
insuranceContacts: z.array(z.unknown()),
patientConversations: z.array(z.unknown())
}));