Recipe — pre-consult summary
Recipe — pre-consult
Section titled “Recipe — pre-consult”Read
../integration-guide.mdfirst for auth, webhook verification, and the 4 flows. This page only covers what’s specific to thepre-consultsummary type.
What it is
Section titled “What it is”A pre-visit clinical summary intended for the doctor to read before the patient walks in (or before the tele-consult begins). Built from any combination of:
- Patient questionnaire answers (typed, selected, or voice-transcribed)
- Uploaded prior reports (lab work, imaging, discharge papers)
- Pre-collected structured data the integrator already holds (DB rows, vital signs, prior visit notes)
Output emphasizes chief complaint, relevant history, current medications, red flags, and a one-paragraph clinical narrative.
Recommended flows
Section titled “Recommended flows”Any flow works. Common combinations:
| Use case | Flow |
|---|---|
| WhatsApp pre-visit form, no uploads | Flow 1 (/v1/intake-sessions) |
| WhatsApp pre-visit form, with uploads + voice | Flow 2 (/v1/sessions patient-link) |
| Integrator’s own form already collected the data | Flow 3 (direct mode) |
| Doctor wants the LLM to ask follow-up questions | Flow 4 (dynamic) |
Type aliases
Section titled “Type aliases”| Alias | Mapped to |
|---|---|
pre-anc-visit | pre-consult (PregCare/Klarity backward compat) |
pre-visit-clinic | pre-consult |
Specialty handling
Section titled “Specialty handling”specialty is highly recommended — it determines which template SNOW
resolves for the form (Flows 1, 2) and how the LLM is biased (all flows).
| Specialty | Default template | Notes |
|---|---|---|
obstetrics | anc_first_visit | Multilingual ANC form (English/Hindi/Telugu/Marathi) |
gynecology | gyn_pre_consult | Standard gyn outpatient |
pediatrics | peds_pre_consult | Parent-filled, child-focused |
cardiology | cardio_pre_consult | — |
orthopedics | ortho_pre_consult | — |
dermatology | derm_pre_consult | — |
ent | ent_pre_consult | — |
psychiatry | psych_pre_consult | — |
ophthalmology | ophthal_pre_consult | — |
dentistry | dental_pre_consult | — |
general | general_pre_consult | Fallback |
Override the resolved template by passing template_code explicitly.
Request body — Flow 3 (direct mode)
Section titled “Request body — Flow 3 (direct mode)”{ "type": "pre-consult", "specialty": "obstetrics", "initiator": "system", "patient": { "id": "<your-patient-uuid>", "name": "Priya Sharma", "age": 28, "gravida": 2, "para": 1, "lmp": "2026-02-14" }, "document_ids": [ "<doc-uuid-1>", "<doc-uuid-2>" ], "custom_questions": [ { "id": "chief_complaint", "question": "Reason for visit", "answer": "Routine ANC checkup, mild back pain" } ], "metadata": { "source": "<your-app-name>", "user_id": "<your-user-id>", "visit_type": "anc_routine" }}For Flows 1, 2, 4 see the integration guide; the body is simpler (mostly
just type + specialty + identifiers).
Output schema (in session.completed webhook)
Section titled “Output schema (in session.completed webhook)”{ "session_id": "...", "type": "pre-consult", "specialty": "obstetrics", "triage_tier": "routine", // "emergency" | "urgent" | "routine" "patient_id": "...", "patient_name": "Priya Sharma", "summary": { "chief_complaint": "Mild lower back pain x 1 week", "history_of_presenting_illness": "...", "relevant_history": { "obstetric": "G2P1, 16 wks GA by LMP 2026-02-14", "medical": "No HTN, no diabetes", "surgical": "Prior C-section 2024", "family": "...", "social": "..." }, "current_medications": [ "Folic acid 5mg OD", "Iron-folate" ], "allergies": [ "None" ], "red_flags": [], "narrative": "28-year-old G2P1 at 16 weeks ...", "recommended_evaluations": [ "Routine ANC labs", "USG" ], "language": "en" }, "metadata": { "template_code": "anc_first_visit", "template_version": 1, "model_version": "...", "latency_ms": 8421 }, "citations": [ /* links back to source documents/answers */ ]}Triage tier
Section titled “Triage tier”The triage_tier field is set by SNOW’s safety-net rules:
emergency— red flags present requiring same-day attentionurgent— needs evaluation within 24-48hroutine— standard scheduled visit
Use this to prioritize the doctor’s worklist or route emergency cases.
Example request (Flow 1, intake-sessions)
Section titled “Example request (Flow 1, intake-sessions)”curl -X POST https://api.summary.to/v1/intake-sessions \ -H "Authorization: Bearer sn_live_<your_key>" \ -H "Content-Type: application/json" \ -d '{"specialty":"obstetrics"}'Response: token + intake_url to deliver to the patient. Patient submits.
You receive intake_session.completed webhook with the same summary
shape as above.
Pricing tier
Section titled “Pricing tier”Same as base platform pricing. Heavy LLM use (long iterative Flow 4
sessions, ~10 turns) costs more than a one-shot Flow 1. See
/v1/billing/credits/balance for current consumption.
Limitations / known gaps
Section titled “Limitations / known gaps”- Tenant branding (logo, doctor name, primary color) is returned by
/infoon Flows 1, 2, 4 but not yet rendered on the hosted form. v2. - Custom multi-page forms aren’t supported on Flow 1 (single-submit). Use Flow 2 if you need multi-page.
- LLM dynamic Q&A (Flow 4) does not yet support custom_questions pre-seeding mid-conversation; the LLM owns the flow once started.
- Recipes for other types (
emergency,discharge,referral,lab-requisition,medication,patient-instructions) are not yet written; see the integration guide for the inline list of supportedtypevalues until they’re broken out.
Related
Section titled “Related”../integration-guide.md— auth, flows, webhooks../sessions-vs-intake-sessions.md— deeper dive on Flow 1 vs Flow 2 semantic differences../intake-session-sample-payloads.md— full sample payloads for Flow 1