feat: label AI-rescheduled appointments and add manual confirm option
- Add movedByAi boolean column to Appointment table (default false) - reschedule-graph: set movedByAi=true when AI moves an appointment - PATCH /api/appointments/:id/confirm endpoint clears the movedByAi flag - Schedule grid: show teal AI badge on appointment cards where movedByAi=true - Right-click context menu: 'Manually Confirmed' removes the AI badge via the confirm endpoint Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -4,6 +4,7 @@ import { IntWithAggregatesFilterObjectSchema as IntWithAggregatesFilterObjectSch
|
||||
import { StringWithAggregatesFilterObjectSchema as StringWithAggregatesFilterObjectSchema } from './StringWithAggregatesFilter.schema';
|
||||
import { DateTimeWithAggregatesFilterObjectSchema as DateTimeWithAggregatesFilterObjectSchema } from './DateTimeWithAggregatesFilter.schema';
|
||||
import { StringNullableWithAggregatesFilterObjectSchema as StringNullableWithAggregatesFilterObjectSchema } from './StringNullableWithAggregatesFilter.schema';
|
||||
import { BoolWithAggregatesFilterObjectSchema as BoolWithAggregatesFilterObjectSchema } from './BoolWithAggregatesFilter.schema';
|
||||
import { EnumPatientStatusWithAggregatesFilterObjectSchema as EnumPatientStatusWithAggregatesFilterObjectSchema } from './EnumPatientStatusWithAggregatesFilter.schema';
|
||||
import { PatientStatusSchema } from '../enums/PatientStatus.schema'
|
||||
|
||||
@@ -23,6 +24,7 @@ const appointmentscalarwherewithaggregatesinputSchema = z.object({
|
||||
notes: z.union([z.lazy(() => StringNullableWithAggregatesFilterObjectSchema), z.string()]).optional().nullable(),
|
||||
procedureCodeNotes: z.union([z.lazy(() => StringNullableWithAggregatesFilterObjectSchema), z.string()]).optional().nullable(),
|
||||
status: z.union([z.lazy(() => StringWithAggregatesFilterObjectSchema), z.string()]).optional(),
|
||||
movedByAi: z.union([z.lazy(() => BoolWithAggregatesFilterObjectSchema), z.boolean()]).optional(),
|
||||
createdAt: z.union([z.lazy(() => DateTimeWithAggregatesFilterObjectSchema), z.coerce.date()]).optional(),
|
||||
eligibilityStatus: z.union([z.lazy(() => EnumPatientStatusWithAggregatesFilterObjectSchema), PatientStatusSchema]).optional()
|
||||
}).strict();
|
||||
|
||||
Reference in New Issue
Block a user