Update combined static Vd and weight-based settings

This commit is contained in:
2026-02-07 10:12:06 +00:00
parent b7a585a223
commit 199872d742
7 changed files with 73 additions and 77 deletions

View File

@@ -39,8 +39,7 @@ export const DEFAULT_F_ORAL = 0.96;
// Type definitions
export interface AdvancedSettings {
standardVd: { preset: 'adult' | 'child' | 'custom'; customValue: string }; // Volume of distribution (L)
weightBasedVd: { enabled: boolean; bodyWeight: string }; // kg
standardVd: { preset: 'adult' | 'child' | 'custom' | 'weight-based'; customValue: string; bodyWeight: string }; // Volume of distribution (L)
foodEffect: { enabled: boolean; tmaxDelay: string }; // hours
urinePh: { mode: 'normal' | 'acidic' | 'alkaline' }; // pH effect on elimination
fOral: string; // bioavailability fraction
@@ -138,8 +137,7 @@ export const getDefaultState = (): AppState => ({
absorptionHalfLife: '0.7' // Updated from 0.9 for better ~1h Tmax of prodrug
},
advanced: {
standardVd: { preset: 'adult', customValue: '377' }, // Adult: 377L (Roberts 2015), Child: ~150-200L
weightBasedVd: { enabled: false, bodyWeight: '70' }, // kg, adult average
standardVd: { preset: 'adult', customValue: '377', bodyWeight: '70' }, // Adult: 377L (Roberts 2015), Child: ~150-200L, Weight-based: ~5.4 L/kg
foodEffect: { enabled: false, tmaxDelay: '1.0' }, // hours delay
urinePh: { mode: 'normal' }, // 'normal' (6-7.5), 'acidic' (<6), 'alkaline' (>7.5)
fOral: String(DEFAULT_F_ORAL), // 0.96 bioavailability