Clinical Calculators 35
Renal
calc_egfr_ckdepi_2021
eGFR (CKD-EPI 2021, race-free)
Estimated GFR via the 2021 race-free CKD-EPI creatinine equation.
calc_creatinine_clearance
Creatinine Clearance (Cockcroft-Gault)
Creatinine clearance for drug dosing.
calc_fena
Fractional Excretion of Sodium (FENa)
FENa to distinguish prerenal AKI from ATN.
Cardiovascular
calc_chadsvasc
CHA₂DS₂-VASc
Stroke risk in atrial fibrillation.
calc_hasbled
HAS-BLED
Major bleeding risk on anticoagulation in AF.
calc_wells_dvt
Wells Score for DVT
Pretest probability of deep vein thrombosis.
calc_wells_pe
Wells Score for PE
Pretest probability of pulmonary embolism.
calc_qtc
Corrected QT (QTc)
QTc via Bazett and Fridericia.
calc_ldl_friedewald
Calculated LDL (Friedewald)
LDL cholesterol from a standard lipid panel.
calc_max_heart_rate
Maximum & Target Heart Rate
Age-predicted maximum heart rate and target training zone.
Pulmonary
calc_curb65
CURB-65
Community-acquired pneumonia severity.
calc_pao2_fio2_ratio
PaO₂/FiO₂ Ratio (P/F)
Oxygenation ratio for ARDS severity (Berlin).
calc_aa_gradient
A–a Oxygen Gradient
Alveolar–arterial oxygen gradient (sea level).
calc_winters_formula
Winter's Formula (expected PaCO₂)
Expected respiratory compensation in metabolic acidosis.
Emergency
calc_qsofa
qSOFA
Quick SOFA sepsis screen outside the ICU.
calc_parkland
Parkland Burn Formula
Fluid resuscitation in burns (first 24 h).
calc_shock_index
Shock Index
Heart rate divided by systolic BP — a marker of hemodynamic instability.
Neurology
Hepatic
Endocrine
Electrolytes
calc_serum_osmolality
Calculated Serum Osmolality
Estimated serum osmolality from Na, glucose, and BUN.
calc_corrected_sodium
Corrected Sodium (hyperglycemia)
Sodium corrected for hyperglycemia.
calc_water_deficit
Free Water Deficit (hypernatremia)
Estimated free water deficit in hypernatremia.
Hematology
General
calc_bmi
Body Mass Index (BMI)
BMI from weight and height with WHO classification.
calc_corrected_calcium
Albumin-corrected Calcium
Corrected calcium in hypoalbuminemia.
calc_anion_gap
Anion Gap
Serum anion gap (with optional albumin correction).
calc_map
Mean Arterial Pressure (MAP)
MAP from systolic and diastolic blood pressure.
calc_opioid_mme
Opioid MME (single agent)
Daily morphine milligram equivalents for one opioid.
calc_ibw_devine
Ideal Body Weight (Devine)
Ideal body weight from height and sex (Devine formula).
calc_adjusted_body_weight
Adjusted Body Weight
Adjusted body weight for drug dosing in obesity.
calc_bsa_mosteller
Body Surface Area (Mosteller)
Body surface area from height and weight (Mosteller).
calc_bmr_mifflin
Basal Metabolic Rate (Mifflin-St Jeor)
Resting daily energy expenditure (Mifflin-St Jeor).
calc_maintenance_fluids
Maintenance IV Fluids (Holliday-Segar 4-2-1)
Weight-based maintenance fluid rate (Holliday-Segar).
calc_pack_years
Smoking Pack-Years
Cumulative cigarette exposure.
Clinical Tables & Code Lookups 12
search_clinical_codes
Search any clinical/genomics dataset
One generic lookup over every registered NLM Clinical Tables dataset — clinical codes (ICD, HCPCS, LOINC, conditions, NPI, UCUM, HPO) AND genomics (ClinVar, COSMIC, dbVar, genes, dbSNP, PharmVar, …). Returns uniform {code, name} rows.
lookup_icd10
ICD-10-CM diagnosis codes
Search 70,000+ ICD-10-CM diagnosis codes by code or description (US clinical modification, current year).
lookup_icd9
ICD-9-CM (legacy) codes
Legacy ICD-9-CM diagnosis or procedure codes — still used for historical records. Returns the dotted code plus short/long names.
lookup_icd11
WHO ICD-11 codes
WHO ICD-11 — returns code, title, type (stem vs extension), and often a definition.
lookup_hcpcs
HCPCS Level II codes
CMS HCPCS Level II procedure/supply codes (A–V range). Returns short + long descriptions and obsolete/NOC flags; excludes terminated codes by default.
lookup_loinc
LOINC lab codes
LOINC lab tests/measurements and panels — with long common name, component, and computed datatype (REAL, CNE/CWE, ST…).
get_loinc_answers
LOINC answer list
The coded answer list for a LOINC question that has one (CNE/CWE datatype items — e.g. survey/assessment questions).
lookup_hpo
Human Phenotype Ontology
HPO — standardized terms for phenotypic abnormalities in human disease (Monarch Initiative). Returns id, name, and definition.
lookup_condition
Condition → suggested codes
Search 2,400+ medical conditions and get SUGGESTED billing codes for each: ICD-10-CM code/name pairs plus an ICD-9-CM code, with a consumer-friendly name.
lookup_npi
NPI provider registry
The public CMS National Provider Identifier registry — find providers or organizations by name or NPI. Returns NPI, name, provider (specialty) type, and practice address.
lookup_ucum
UCUM units of measure
The Unified Code for Units of Measure — the standard for clinical units (mg/dL, mmol/L, /min…). Returns name, category, and LOINC property.
lookup_clinvar_variant
ClinVar genetic variants
NCBI ClinVar variants (GRCh37) — search by gene, variant name, HGVS, dbSNP rs#, or VariationID. Returns gene, type, HGVS c./p., dbSNP id, and associated conditions.
Drugs — RxNorm · RxTerms · RxClass 11
search_drug
Fuzzy drug search (RxNorm)
Find RxNorm drug concepts by (fuzzy) name via RxNav’s approximate match. Returns {rxcui, name} candidates.
lookup_drug_ingredient
Prescribable drug ingredients
The RxTerms prescribable INGREDIENT list (salts stripped — e.g. "Penicillin G"). Returns {rxcui, name}. The rxcui feeds check_drug_interactions.
lookup_rxterms
Drug products + strengths
RxTerms drug products (name search): for each drug+route ("Lisinopril (Oral Pill)") returns the dispensable strengths/forms, each with an RXCUI — ideal for prescription writing.
rxterms_get_info
RxTerms record by RXCUI
The RxTerms prescribing record for an RXCUI — display/full name, strength, dose form, route, brand name, term type, and generic RXCUI.
check_drug_interactions
Drug–drug interactions
Check for interactions among 2+ medications (drug names or rxcuis).
rxnorm_find_rxcui
RxNorm: resolve name/id → RXCUI
Resolve a drug NAME or an external identifier (NDC, etc.) to RxNorm concept ids (RXCUI). Returns spelling suggestions when a name has no match.
rxnorm_get_drugs
RxNorm: products for a name
List the drug PRODUCTS related to a drug name (RxNorm getDrugs), grouped by term type — SBD (branded drug), SCD (clinical drug), packs. Each concept has an rxcui + full name.
rxnorm_get_related
RxNorm: related concepts
Navigate the RxNorm graph from an RXCUI — ingredient (IN) ↔ brand name (BN) ↔ clinical/branded drug (SCD/SBD) ↔ dose form (DF).
rxnorm_concept_details
RxNorm: concept properties + NDCs
Given an RXCUI, return the concept properties (name, term type, synonym) and the National Drug Codes (NDCs) associated with it.
rxclass_get_drug_classes
RxClass: drug → classes
Given a drug, its classes across many systems — ATC, VA class, MeSH pharmacological action, and MED-RT mechanism of action (MoA), physiologic effect (PE), established pharmacologic class (EPC), may-treat / contraindicated-with.
rxclass_get_class_members
RxClass: class → member drugs
Given a class id and its relaSource, list the member drugs (RxNorm ingredients) of that class — e.g. "all ACE inhibitors".