evo-clinical-unit-harmonization
SkillDev toolsDomain-specific clinical lab unit detection and conversion module with conversion factor registry, physiological range boundaries, and boundary-based auto-detection logic to convert SI units to US conventional units.
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the evo-clinical-unit-harmonization skill
What this skill tells your AI
The instructions your AI receives, as published by openlair/openskill in tasks-evolved/lab-unit-harmonization/environment/skills/evo-clinical-unit-harmonization/SKILL.md and read by ahel’s review.
Converts clinical lab values from SI to US conventional units using boundary-based auto-detection.
Key Functions
build_conversion_registry()- Returns dict mapping column names to analyte configsdetect_and_convert_value(val, config)- Detect and convert a single valueharmonize_column(series, config)- Harmonize an entire columnharmonize_all_features(df, skip_cols)- Harmonize all features in DataFrame
Usage
import sys
sys.path.insert(0, '/app/environment/skills/evo-clinical-unit-harmonization/scripts')
from utils import harmonize_all_features
df = harmonize_all_features(df, skip_cols=['patient_id'])
Conversion Registry
Covers all 62 CKD features including:
- Creatinine (SI umol/L -> US mg/dL, factor 0.0113)
- BUN (SI mmol/L -> US mg/dL, factor 2.8)
- Hemoglobin (SI g/L -> US g/dL, factor 0.1)
- Albumin/Total Protein (SI g/L -> US g/dL, factor 0.1)
- Glucose (SI mmol/L -> US mg/dL, factor 18.0)
- HbA1c (SI mmol/mol -> US %, linear: val*0.0915+2.15)
- Calcium (SI mmol/L -> US mg/dL, factor 4.0)
- Phosphorus (SI mmol/L -> US mg/dL, factor 3.1)
- Cholesterol/LDL/HDL (SI mmol/L -> US mg/dL, factor 38.67)
- Triglycerides (SI mmol/L -> US mg/dL, factor 88.57)
- Uric Acid (SI umol/L -> US mg/dL, factor 0.0168)
- Bilirubin (SI umol/L -> US mg/dL, factor 0.0585)
- Iron/TIBC (SI umol/L -> US ug/dL, factor 5.587)
- Hematocrit (SI L/L -> US %, factor 100)
Signals
- GitHub stars
- 89
- Forks
- 4
- Last commit
- Sep 2026
Advanced
- Catalog kind
- skill
- Gateway key
evo-clinical-unit-harmonization- Source
- github.com/openlair/openskill