import { type Order as FrameworkOrder, type OrderUrgency } from '@openmrs/esm-framework'; type FrameworkFulfillerStatus = FrameworkOrder['fulfillerStatus']; export type FulfillerStatus = FrameworkFulfillerStatus | 'DRAFT' | null; export type Order = Omit & { fulfillerStatus?: FulfillerStatus; fulfillerComment?: string | null; }; export interface FlattenedOrder { id: string; patientUuid: string; orderNumber: string; display: string; dateActivated: string; fulfillerStatus: FulfillerStatus; urgency: OrderUrgency; orderer?: string; instructions?: string; fulfillerComment?: string; } export interface GroupedOrders { patientUuid: string; patientId?: string; patientName?: string; patientAge?: number; patientDob?: string; patientSex?: string; totalOrders: number; orders: Array; originalOrders: Array; } export type DateFilterContext = { dateRange: [Date, Date] | null; setDateRange: React.Dispatch>; };