emr-types
Version:
Comprehensive TypeScript Types Library for Electronic Medical Record (EMR) Applications - Domain-Driven Design with Zod Validation
57 lines • 1.34 kB
TypeScript
/**
* Priority Enum
*
* Common priority values used across domains
*
* @enum Priority
* @description Priority enum for domain entities
*/
export declare enum Priority {
LOW = "low",
NORMAL = "normal",
HIGH = "high",
URGENT = "urgent",
CRITICAL = "critical"
}
/**
* Priority Levels
*
* Numeric values for priority comparison
*/
export declare const PriorityLevels: {
readonly low: 1;
readonly normal: 2;
readonly high: 3;
readonly urgent: 4;
readonly critical: 5;
};
/**
* Priority Utility Functions
*/
export declare const PriorityUtils: {
/**
* Check if priority1 is higher than priority2
*/
isHigher: (priority1: Priority, priority2: Priority) => boolean;
/**
* Check if priority1 is lower than priority2
*/
isLower: (priority1: Priority, priority2: Priority) => boolean;
/**
* Check if priority1 is equal to priority2
*/
isEqual: (priority1: Priority, priority2: Priority) => boolean;
/**
* Get priority display name
*/
getDisplayName: (priority: Priority) => string;
/**
* Get priority color (for UI)
*/
getColor: (priority: Priority) => string;
/**
* Get all priorities sorted by level (highest first)
*/
getAllSorted: () => Priority[];
};
//# sourceMappingURL=Priority.d.ts.map