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:
+12
@@ -5,6 +5,7 @@ import { IntNullableWithAggregatesFilterObjectSchema as IntNullableWithAggregate
|
||||
import { StringWithAggregatesFilterObjectSchema as StringWithAggregatesFilterObjectSchema } from './StringWithAggregatesFilter.schema';
|
||||
import { DateTimeWithAggregatesFilterObjectSchema as DateTimeWithAggregatesFilterObjectSchema } from './DateTimeWithAggregatesFilter.schema';
|
||||
import { StringNullableWithAggregatesFilterObjectSchema as StringNullableWithAggregatesFilterObjectSchema } from './StringNullableWithAggregatesFilter.schema';
|
||||
import { DecimalNullableWithAggregatesFilterObjectSchema as DecimalNullableWithAggregatesFilterObjectSchema } from './DecimalNullableWithAggregatesFilter.schema';
|
||||
import { DecimalWithAggregatesFilterObjectSchema as DecimalWithAggregatesFilterObjectSchema } from './DecimalWithAggregatesFilter.schema';
|
||||
import { EnumServiceLineStatusWithAggregatesFilterObjectSchema as EnumServiceLineStatusWithAggregatesFilterObjectSchema } from './EnumServiceLineStatusWithAggregatesFilter.schema';
|
||||
import { ServiceLineStatusSchema } from '../enums/ServiceLineStatus.schema'
|
||||
@@ -25,6 +26,17 @@ const servicelinescalarwherewithaggregatesinputSchema = z.object({
|
||||
arch: z.union([z.lazy(() => StringNullableWithAggregatesFilterObjectSchema), z.string()]).optional().nullable(),
|
||||
toothNumber: z.union([z.lazy(() => StringNullableWithAggregatesFilterObjectSchema), z.string()]).optional().nullable(),
|
||||
toothSurface: z.union([z.lazy(() => StringNullableWithAggregatesFilterObjectSchema), z.string()]).optional().nullable(),
|
||||
icn: z.union([z.lazy(() => StringNullableWithAggregatesFilterObjectSchema), z.string()]).optional().nullable(),
|
||||
paidCode: z.union([z.lazy(() => StringNullableWithAggregatesFilterObjectSchema), z.string()]).optional().nullable(),
|
||||
allowedAmount: z.union([z.lazy(() => DecimalNullableWithAggregatesFilterObjectSchema), z.union([
|
||||
z.number(),
|
||||
z.string(),
|
||||
z.instanceof(Decimal),
|
||||
z.instanceof(Decimal),
|
||||
DecimalJSLikeSchema,
|
||||
]).refine((v) => isValidDecimalInput(v), {
|
||||
message: "Field 'allowedAmount' must be a Decimal",
|
||||
})]).optional().nullable(),
|
||||
totalBilled: z.union([z.lazy(() => DecimalWithAggregatesFilterObjectSchema), z.union([
|
||||
z.number(),
|
||||
z.string(),
|
||||
|
||||
Reference in New Issue
Block a user