periop-calculators
Version:
Evidence-based perioperative risk assessment calculators for healthcare professionals
40 lines • 1.48 kB
TypeScript
import { MELDScoreInput, MELDScoreResult } from '../types';
/**
* Calculates the MELD (Model for End-Stage Liver Disease) Score
*
* The MELD score is a validated scoring system used to assess the severity of
* end-stage liver disease and predict short-term mortality. It is widely used
* in surgical risk assessment and liver transplant allocation.
*
* Formula: MELD = 3.78 × ln(bilirubin) + 11.2 × ln(INR) + 9.57 × ln(creatinine) + 6.43
*
* @param input - Laboratory values and dialysis status
* @returns MELD score result with risk assessment and recommendations
* @throws {CalculatorError} If input validation fails
*
* @example
* ```typescript
* const result = calculateMELDScore({
* bilirubin: 2.5,
* creatinine: 1.8,
* inr: 1.6,
* dialysis: false
* });
* console.log(result.score); // 18
* console.log(result.risk); // 'moderate'
* ```
*/
export declare function calculateMELDScore(input: MELDScoreInput): MELDScoreResult;
/**
* Helper function to determine if a MELD score indicates high surgical risk
* @param score MELD score
* @returns Whether the score indicates high or very high risk
*/
export declare function isHighRiskMELD(score: number): boolean;
/**
* Helper function to get MELD score interpretation without full calculation
* @param score MELD score
* @returns Risk category
*/
export declare function getMELDRiskCategory(score: number): 'low' | 'moderate' | 'high' | 'very-high';
//# sourceMappingURL=meld.d.ts.map