Skip to main content

Building an ICU Early Warning Pipeline with Clinical Scores

· 5 min read
Nikhil Kunche
Founder, Aethryva Deeptech

Early warning scores detect clinical deterioration hours before a cardiac arrest or a sepsis crisis. NEWS2 was adopted across the UK NHS specifically because it reduces unexpected ICU admissions, code blue events, and mortality. qSOFA screens for sepsis using three bedside observations that require zero lab work. SOFA quantifies organ failure severity on a 0 to 24 scale.

Most hospitals track vitals. Almost none compute these scores automatically. The data is there. The scoring is not.

Here is a pipeline that takes a table of ICU patient vitals, computes all three scores for every patient, and generates a priority sorted risk report.

From Lab CSV to Clinical Report: Automating Lab Value Interpretation at Scale

· 6 min read
Nikhil Kunche
Founder, Aethryva Deeptech

Hospital laboratories produce thousands of results daily. Each result needs to be interpreted against reference ranges, checked for critical values, and flagged for follow up. This is manual triage done by lab technicians and duty doctors scrolling through lists.

A creatinine of 5.9 mg/dL and a potassium of 7.1 mEq/L sitting in a queue for two hours because nobody noticed the critical flag is a preventable death. Hyperkalemia above 6.5 causes cardiac arrhythmias. That's the kind of result that needs to trigger an immediate phone call, and it gets missed when buried under 500 normal results.

Here is a script that reads a CSV of lab results, interprets every value against clinical reference ranges, flags critical results, computes derived values like eGFR, and generates a per patient summary sorted by severity.

Automated Polypharmacy Review: Catching Drug Interactions Across Multi Drug Regimens

· 4 min read
Nikhil Kunche
Founder, Aethryva Deeptech

A patient on 5 drugs has 10 possible pairwise interactions. A patient on 8 drugs has 28. A patient on 12 drugs has 66. The formula is n*(n-1)/2, and it grows fast.

Nobody checks all of them manually. Clinical pharmacists performing medication reconciliation focus on the drugs they know are dangerous together and rely on memory for the rest. That's where things get missed.

Here is a script that takes a medication list and checks every pair, generates a severity matrix, and identifies which drugs need renal or hepatic dose adjustment.

A Prescription Safety Auditor in 50 Lines of Python

· 4 min read
Nikhil Kunche
Founder, Aethryva Deeptech

34% of prescriptions in Indian hospitals contain medication errors. 47.2% of those errors are wrong dose. 37.2% involve antibiotics. These numbers come from a 2024 systematic review across multiple Indian hospital settings. NABH flagged dosage miscalculation as a key patient safety challenge in March 2024.

A study at Massachusetts General Hospital showed that clinical decision support software can prevent up to 95% of medication errors in operating rooms. The tools exist. They're just not accessible.

Here is a prescription safety auditor, written in Python, that does what a clinical pharmacist does during medication review. It takes a patient profile and a new prescription, then returns SAFE, WARNING, or REJECT with reasons.