Decision Suite
All seven endpoints follow the same async pattern: submit aPOST request, receive 202 Accepted with a job_id, then poll GET /api/v1/jobs/:id for the completed result.
Patient Risk & Priority — POST /api/v1/health/risk-priority
Patient Risk & Priority — POST /api/v1/health/risk-priority
Accepts patient vitals, history, and labs as JSON. Returns a risk level, time-sensitivity classification, and ranked recommended actions.
Request
Body parameters
Must be
"patient_data".JSON-stringified patient data: vitals, complaint, history, labs. Max 120,000 characters.
Optional base64-encoded or
data:-prefixed image for vision-assisted analysis (HuatuoGPT when configured). Max 8 MB.Arbitrary JSON metadata (locale, facility, etc.). Max 16,000 characters serialized.
"report" or "json". Defaults to "json".Include step-level timing in the completed job payload. Defaults to
false.Response fields (completed job)
One of
"critical", "high", "moderate", or "low".One of
"immediate", "hours", "days", or "weeks".Primary recommended next action for the care team.
Ranked list of specific action strings.
Conditions that should prompt immediate escalation.
Explanation of the risk classification.
Specific risk signals extracted from the patient data.
Mandatory disclaimer text.
Adherence Detection — POST /api/v1/health/adherence
Adherence Detection — POST /api/v1/health/adherence
Accepts a patient care timeline as JSON. Returns an adherence risk rating, missed follow-up items, predicted dropout window, and intervention recommendations.
Request
Body parameters
Must be
"patient_timeline".JSON-stringified care timeline (appointments, medications, lab visits). Must be valid JSON. Max 200,000 characters.
Optional free-text clinical notes to supplement the timeline. Max 64,000 characters.
Response fields (completed job)
One of
"high", "moderate", or "low".Recommended immediate intervention action.
Array of missed appointments or medications. Each item includes
type, description, optional date, and severity.Estimated timeframe when the patient is at highest dropout risk.
Specific outreach or support actions to improve adherence.
Engagement proxy between
0 (disengaged) and 1 (fully engaged).Identified barriers to care (e.g. transport, cost, literacy).
Conditions that warrant urgent care team follow-up.
Specific adherence risk signals.
Clinical Notes Structuring — POST /api/v1/health/notes-structure
Clinical Notes Structuring — POST /api/v1/health/notes-structure
Accepts free-text clinical notes and returns structured entities: symptoms, conditions, medications, risk factors, and a chronological timeline. Useful for EHR pre-population and audit workflows.
Request
Body parameters
Must be
"clinical_notes".The free-text clinical notes to structure. Max 64,000 characters.
Optional hint about the note format, e.g.
"soap", "discharge_summary". Max 64 characters.Response fields (completed job)
Concise narrative summary of the structured note.
Extracted symptoms. Each item includes
name, severity, onset, duration, and status.Identified conditions. Each item includes
name, icd_hint, status, and confidence.Medications mentioned. Each item includes
name, dose, frequency, route, status, and start_date.Identified risk factors. Each item includes
factor and optional detail.Chronological event list. Each item includes
date, event, and optional detail.Clinical Decision Support — POST /api/v1/health/decision-support
Clinical Decision Support — POST /api/v1/health/decision-support
Accepts a clinical situation as JSON and returns a reasoning-backed recommended action, alternatives, contraindications, and evidence references.
Request
Body parameters
Must be
"clinical_query".JSON-stringified clinical situation (patient demographics, presentation, current medications, relevant labs). Must be valid JSON. Max 120,000 characters.
Optional additional structured fields to supplement
data.Optional reference guidelines to ground the recommendation, e.g.
"AHA/ACC 2023". Max 64,000 characters.Response fields (completed job)
Primary recommended clinical action.
Detailed reasoning behind the recommendation.
Confidence score between
0 and 1.Alternative actions. Each item includes
action, rationale, and when_to_prefer.Specific contraindications relevant to the clinical situation.
Supporting evidence. Each item includes
guideline, recommendation, and strength.Warning signs requiring immediate attention.
Medication Check — POST /api/v1/health/medication-check
Medication Check — POST /api/v1/health/medication-check
Accepts a medication list as JSON and returns interaction warnings, contraindications, duplicate therapy flags, dosing notes, and renal/hepatic adjustment guidance.
Request
Body parameters
Must be
"medication_review".JSON-stringified medication list including names, doses, frequencies, and relevant patient conditions. Must be valid JSON. Max 200,000 characters.
Response fields (completed job)
Drug-drug interactions. Each item includes
drug_a, drug_b, severity, mechanism, and recommendation.Medication-condition contraindications. Each item includes
medication, condition, severity, and recommendation.Duplicate therapy flags (same class or overlapping mechanism).
Specific lab or clinical monitoring items to order.
Dose-specific guidance notes.
Renal dose adjustment recommendations.
Hepatic dose adjustment recommendations.
Safety notes for pregnancy or lactation.
Highest-priority safety concerns for immediate attention.
Narrative summary of the full medication review.
Medical Scan Analysis — POST /api/v1/health/scan-analysis
Medical Scan Analysis — POST /api/v1/health/scan-analysis
Accepts an imaging scan plus a modality label. Returns structured findings, a radiologist-style impression, a plain-language explanation, urgency classification, and optional measurements. Uses the MONAI sidecar for segmentation when configured.
Request
Body parameters
Must be
"medical_scan".Base64-encoded scan image or
data:-prefixed URL. Max 8 MB.Imaging modality, e.g.
"chest_xray", "abdominal_ct", "brain_mri". Max 64 characters.Optional clinical question to focus the analysis, e.g.
"Rule out pulmonary embolism". Max 4,000 characters.Response fields (completed job)
Structured findings. Each item includes
region, description, severity, and confidence.Radiologist-style overall impression.
Patient-friendly explanation of the scan findings.
Whether any anomalies were identified.
One of
"stat", "routine", or "non_urgent".Recommended next diagnostic or clinical step.
Differential diagnoses. Each item includes
condition and likelihood.Quantitative measurements. Each item includes
structure, value, unit, and normal_range.Research Assist — POST /api/v1/health/research-assist
Research Assist — POST /api/v1/health/research-assist
Accepts a research query and optional dataset attachment. Returns analysis, statistical insights, methodology review, literature connections, and recommended next steps.
Request
Body parameters
Must be
"research_query".JSON-stringified research query. Include
question, study_type, population, and outcome fields where applicable. Must be valid JSON. Max 100,000 characters.Optional base64-encoded dataset attachment for analysis. Max 8 MB.
Response fields (completed job)
Narrative summary of the research analysis.
Statistical findings. Each item includes
test, result, interpretation, and p_value.Includes
strengths, weaknesses, and suggestions arrays.Related literature. Each item includes
topic, summary, and citations.Suggested follow-on research or validation steps.
Identified limitations of the current analysis.