health-api

v1.0.6
io.github.Nicodemus941/health-api Checked 3 days ago Published 6 months ago

Clinical AI for lab analysis, biomarker scoring, health narratives, and risk insights.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

analyze_lab_results

Analyze lab biomarkers: score each value against reference ranges, flag abnormalities, calculate overall risk score, and return clinical interpretations. Use this when you have structured lab values (name, value, unit, reference ranges).

ParameterTypeDescription
biomarkers *arrayArray of lab biomarkers to analyze

normalize_lab_text

Extract and normalize lab biomarkers from raw lab report text (e.g., copy-pasted from a PDF or OCR output). Returns structured biomarker objects with standardized names.

ParameterTypeDescription
rawText *stringRaw text from a lab report — can be messy or unstructured

normalize_biomarkers

Standardize biomarker names and optionally convert units. Maps aliases like 'HbA1c', 'Hemoglobin A1c', 'Glycated Hemoglobin' → 'HbA1c'. Supports mg/dL ↔ mmol/L conversion for glucose, cholesterol, triglycerides.

ParameterTypeDescription
biomarkers *array
targetUnitstringDesired output unit for applicable biomarkers (e.g., 'mg/dL' or 'mmol/L')

generate_clinical_insights

Generate prioritized clinical insights from lab biomarkers. Returns findings ranked by priority (critical → elevated → normal), specific recommendations, and overall risk assessment. Best for powering clinical decision support features.

ParameterTypeDescription
biomarkers *array
contextstringAdditional clinical context (e.g., 'patient has Type 2 diabetes')
patientAgenumberPatient age in years (optional, improves risk assessment)

generate_health_narrative

Generate a plain-English health narrative from lab results. Suitable for patient-facing summaries, health reports, or wellness app descriptions. Translates clinical data into clear, actionable language.

ParameterTypeDescription
biomarkers *array
patientAgenumberPatient age (optional)
patientNamestringPatient name for personalized narrative (optional)

get_health_score

Calculate an aggregate health score (0–100) from biomarker data. Breaks down into category scores: metabolic, cardiovascular, kidney, liver, thyroid. Higher score = better health.

ParameterTypeDescription
biomarkers *array

predict_disease_risk

Predict risk for 10 chronic diseases from biomarker data: Diabetes, Cardiovascular, Metabolic Syndrome, Thyroid, Kidney (CKD), Liver/NAFLD, Anemia, Systemic Inflammation, Vitamin D deficiency, and Insulin Resistance. Returns risk score (0-100), tier, confidence, ICD-10 codes, timeline estimates, and personalized recommendations. Costs 15 credits.

ParameterTypeDescription
biomarkers *arrayArray of lab biomarkers to assess disease risk against

analyze_biomarker_timeline

Analyze longitudinal trends for one or more biomarkers across multiple time points. Performs linear regression, calculates rate of change, projects values 6 and 12 months forward, and estimates when biomarkers will cross clinical thresholds. Use this when the patient has multiple lab results over time to detect if their health is improving or deteriorating. Costs 10 credits.

ParameterTypeDescription
timelines *arrayArray of biomarker time series to analyze

get_api_account

Get your E-Labus API account status: current plan, credit balance, and usage summary. Use this to check how many API credits remain.