Developer: DR.KESHARI

Hospital Node

hospitalnode.in · hnorder.in

India medical market · pharmacy · labs · care

Prescription medicines require valid Rx. Vaccines administered by licensed partners only.

PrivacyTermsConsentPaymentsLogisticsLicenses

Hospital Node

hospitalnode.in · hnorder.in

Module 1Module 3Module 4Module 5Hospital AIPortal

Platform Phase 3 MVP · Module 2 · Registry CD

Module 2 — AI Symptom Checker

Five layers: structured intake → deterministic emergency gate → OpenAI elaboration (non-emergency only) → doctor handoff queue → clinician audit. Mapped to Hospital AI on hospitalnode.in.

Never diagnoses · never recommends drug+dose · always ends with consult doctor · emergency = call 112/108

Integration: 48% · /api/module2/status

Module 1 identityModule 3 pharmacyModule 4 paymentsCore Phase 1 (PD-03)Hospital AI liveModule 5 teleconsultHospital AI (live)

Safety posture (spec)

Never give a diagnosis

Partial

Never recommend specific drug + dose

Partial

Always recommend doctor consult

Partial

Emergency → call 112/108 immediately

Partial

Layer 3 never changes emergency status

Partial

Acute journey → Module 2 layers

  1. 1Symptom describeL1 intake/symptom-checkPartial
  2. 2Emergency gateL2 triage/symptom-checkPartial
  3. 3AI elaborationL3 OpenAI/api/symptom/checkPartial
  4. 4Book doctorL4 handoff/module5Partial
  5. 5Clinical auditL5 review/clinical/symptom-reviewPartial

Five layers

Layer 1 · intake

Structured symptom intake

Partial

POST /api/symptom/check with structured payload + symptom_check_sessions persistence.

POST /symptom-checker/sessions

  • LiveSymptom check
  • PartialHospital AI chat
  • PartialPortal search
Gaps (2)
  • DPDP consent for symptom data storage not separate from general terms
  • Mobile Expo intake wired; web at /symptom-check

Layer 2 · emergency-gate

Deterministic red-flag triage (no LLM)

Partial

triage-service.ts stem-based checkRedFlags() runs before LLM on POST /api/symptom/check.

(inline on POST /symptom-checker/sessions)

  • LiveSymptom check gate
  • PartialHospital AI system hint (108/102)
  • LiveFooter emergency disclaimer
Gaps (3)
  • Red-flag rules are placeholder in spec — physician sign-off still required
  • Hospital AI free-text chat still lacks deterministic gate (use /symptom-check path)
  • Mental health helplines surfaced on emergency path in symptom check UI

Layer 3 · elaboration

OpenAI elaboration (non-emergency only)

Partial

Krishna AI unified reply on non-emergency /api/symptom/check only; emergency blocks LLM.

POST /symptom-checker/sessions/{id}/elaborate

  • PartialSymptom check (safe path)
  • PartialHospital AI orchestrator
  • PartialNestJS hospital-ai-api
Gaps (3)
  • Free-text Hospital AI chat still runs LLM without Layer 2 gate
  • No separate POST .../elaborate endpoint (inline on check)
  • Layer 3 cannot change urgency (spec) — enforced on symptom check path

Layer 4 · doctor-handoff

Doctor consultation request queue

Gap

practitioner_bookings / appointments API — not linked to symptom session_id; no doctor claim queue.

POST /symptom-checker/sessions/{id}/request-consultation · GET /consultations/queue · POST /consultations/{id}/claim · POST /consultations/{id}/complete · GET /consultations/me

  • PartialAppointments browse
  • PartialCustomer appointments
  • PartialFrontline consult entry
Gaps (5)
  • No consultation_requests table keyed to symptom session
  • Emergency sessions cannot request consult (spec 409) — not implemented
  • Doctor claim/complete workflow for symptom follow-up missing
  • Module 5 teleconsult/video closes this gap later
  • require_active_role(doctor) for queue not wired

Layer 5 · clinician-audit

Mandatory doctor review gate (AI output blocked until approved)

Partial

symptom_check_sessions.review_status gate (migration 115): non-emergency ai_elaboration is NEVER returned by /api/symptom/check or /api/clinical/symptom-check — a verified, active practitioner must approve/edit/reject via POST /api/clinical/symptom-check/review before patient_visible_elaboration is set. RLS restricts the UPDATE to practitioners.is_verified = true.

GET /symptom-checker/admin/sessions · GET /symptom-checker/admin/stats · POST /symptom-checker/admin/sessions/{id}/flag · GET /symptom-checker/admin/flags

  • LiveDoctor review queue
  • LivePatient status poll
  • PartialHuman Intelligence admin
Gaps (4)
  • No missed_red_flag flag-creation workflow to grow RED_FLAG_RULES from reviewed sessions
  • Consultation outcome cross-reference with triage classification missing
  • DPDP consent for staff review of symptom data — open legal question in spec
  • No SLA/notification when a session sits pending review too long

API map (spec → hospitalnode)

  • POST /symptom-checker/sessionsPartial

  • POST .../elaboratePartial

  • POST .../request-consultationGap

  • GET /consultations/queueGap

  • GET /symptom-checker/admin/sessionsLive

  • POST .../admin/.../flagGap