diff --git a/routes/~_dashboard/~patients/actions.tsx b/routes/~_dashboard/~patients/actions.tsx index cee9d1c5..6ec4cc61 100644 --- a/routes/~_dashboard/~patients/actions.tsx +++ b/routes/~_dashboard/~patients/actions.tsx @@ -184,6 +184,7 @@ export const createAppointment = async ( resourceType: payload.resourceType, }), { + // @ts-expect-error id can be null, because FHIRAppointment.id is nullable. id is overridden by getDocData id: null, created: new Date().toISOString(), ...getAppointmentData(payload),