UNPKG

emr-types

Version:

Comprehensive TypeScript Types Library for Electronic Medical Record (EMR) Applications - Domain-Driven Design with Zod Validation

25 lines 694 B
/** * Base Domain Event * * Base implementation for domain events * * @interface BaseDomainEvent * @description Base domain event implementation */ export interface BaseDomainEvent { /** Unique event identifier */ eventId: string; /** Event type/name */ eventType: string; /** Timestamp when the event occurred */ occurredAt: Date; /** Aggregate ID that the event belongs to */ aggregateId: string; /** Aggregate version when the event was created */ aggregateVersion: number; /** Event data payload */ data: Record<string, any>; /** Event metadata */ metadata?: Record<string, any>; } //# sourceMappingURL=BaseDomainEvent.d.ts.map