Skip to content
medScript

medScript

Clinical documentation, reimagined for doctors

Created on 22nd March 2026

•

medScript

medScript

Clinical documentation, reimagined for doctors

The problem medScript solves

The Problem

A typical doctor in India sees 40–80 patients per day in OPD. For each one, they manually write notes, recall drug dosages from memory, maintain error-prone paper prescriptions, and have no structured records for follow-ups. That's hours of paperwork daily — on top of clinical work. Junior doctors in rural and semi-urban settings have it worse: no specialists to consult, no access to clinical guidelines, and no system to flag risky cases.


The Solution

medScript is a voice-first AI clinical assistant for outpatient doctors.

  • Doctor speaks — records a short voice note during or after consultation
  • AI structures — generates a complete SOAP note, ICD-10 diagnosis with confidence scores, drug prescriptions with dosage and duration, and red-flag alerts
  • Doctor reviews — resolves AI-flagged uncertainties, approves, and finalizes in under a minute
  • Patient gets a clean record — accessible via a 6-character privacy code, no PII exposed
  • Encrypted at rest — AES-256-GCM; only the treating doctor and patient can access it

Documentation per consultation drops from 8–12 minutes to under 2.


Why India Specifically

  • Rural doctors lack specialist access — AI diagnosis suggestions with confidence scores act as a second opinion
  • Drug names shown with local Indian brand equivalents — directly actionable
  • Government hospital referral search built in
  • Offline-first — core workflow runs without internet; syncs when connected
  • DPDP Act compliant — patient data encrypted, identified only by code

Expansion

Pharmacy partnerships · Lab referral integrations · Insurance pre-authorization via structured ICD-10 output · Anonymized case library for medical education

Challenges we ran into

Challenges We Ran Into

1. Cellular Network Killed Our Fine-Tuned Model

We trained a medical LLM on a Kaggle dataset for ~4 hours. When it came time to deploy, slow cellular data made the model endpoint unreliable and too latency-heavy for real-time consultation workflows. We pivoted to a RAG pipeline over a curated India-specific medical knowledge base — faster, more controllable, and easier to update without retraining.


2. Encrypting Patient Data Without Breaking Queries

Adding AES-256-GCM encryption at rest meant every sensitive field (SOAP notes, transcripts, diagnoses, prescriptions) had to change from queryable JSONB to opaque TEXT columns. The hard constraint: HITL flags had to stay as plain JSONB because our critical-patient SQL query uses jsonb_array_elements() on them. Getting encryption/decryption to sit cleanly in the data layer — invisible to the application above it — required careful separation between what must be private and what must be queryable.


3. Conditional RAG — Useful Without Always Hitting the Vector DB

The RAG pipeline only activates when the AI's diagnosis confidence falls below a threshold or when red flags are present. Implementing this conditionally required:

  • Building a retrieval gate
  • Chunking India-specific clinical guidelines into MongoDB Atlas with vector embeddings
  • Wiring the vector search index correctly

Atlas requires the search index to be created manually in the UI before queries work — which cost us significant debugging time before we realized it wasn't a code issue at all.

Tracks Applied (1)

Healthcare

Why It Belongs in the Healthcare Track MedScript AI is not a generic AI tool with a healthcare skin. It is built ground...Read More

Discussion

Builders also viewed

See more projects on Devfolio