← Back to blog
May 15, 2026 · 9 min read · By DRP-OS Team

Lab Reports, X-rays & Documents — Organized by Patient, Accessible Anywhere

Patient files scattered across WhatsApp chats, email, paper folders, and your phone? Here's how to organize everything — lab reports, X-rays, consent forms — so you can find any file in 5 seconds.

Ask any solo doctor where the patient's last lab report is, and you'll get a familiar answer: "Somewhere — let me check WhatsApp." Or "I think it's in my email." Or "Maybe in the folder on the shelf."

Patient files in most Indian clinics are scattered. Lab reports come on WhatsApp from labs. X-rays come on email. Consent forms are signed on paper. Insurance papers are scanned and lost. Every patient file you actually need takes 5-10 minutes to find.

This article explains how to fix that — using a file management system designed around how clinic files actually flow.

The 3-way file linking model

Most file storage tools — Google Drive, Dropbox — organize by folder. That doesn't fit clinics, because a clinic file naturally belongs to multiple things at once:

  • It belongs to a patient (this is Rakesh Kumar's report)
  • It belongs to a specific visit (this report was ordered during the May 15th consultation)
  • It belongs to a folder/category (Lab Reports / Blood Tests / 2026)

DRP-OS handles all three. Every file is linked to:

  • patient_id — which patient this belongs to
  • visit_id — which specific consultation it relates to (optional)
  • folder_id — which folder it sits in (optional)
  • category — document, image, video, prescription, or other

This means you can find the same file three ways:

  1. From the patient's record (Rakesh Kumar → All files)
  2. From the visit (May 15th visit → Files attached)
  3. From the folder (Lab Reports / Blood Tests → All files in this category)

You never lose a file again because there's always a route to it.

Folder structure that matches clinic workflow

You can nest folders inside folders. Common clinic folder structures:

Lab Reports/
├── Blood Tests/
├── Urine Tests/
├── Stool Tests/
└── Imaging/
    ├── X-Rays/
    ├── Ultrasound/
    └── MRI Scans/

Consent Forms/
├── Surgery consent/
└── Anesthesia consent/

Patient Photos/
├── Pre-treatment/
└── Post-treatment/

Insurance/
├── TPA documents/
└── Claim forms/

Each folder can also be linked to a specific patient. So Rakesh Kumar has his own "Lab Reports" folder under his patient record — separate from the clinic-wide Lab Reports folder.

Password-protected folders

Some files are sensitive — sexually transmitted infections, mental health records, HIV status, financial documents. DRP-OS lets you password-protect specific folders.

The schema includes:

  • is_locked — boolean flag
  • password_hash — bcrypt-hashed password

A receptionist scrolling through patient records won't see contents of locked folders. The doctor enters the folder password to view.

This isn't paranoia. It's a legal requirement under India's upcoming Digital Personal Data Protection Act (DPDP) — sensitive personal data needs access controls. Most clinic software ignores this. DRP-OS builds it in from day one.

What file types are supported

The category field divides files into:

  • Document — PDFs, Word files, lab reports, prescriptions, insurance papers
  • Image — JPEG, PNG photos — clinical photos, X-rays, scanned documents
  • Video — short clips (movement analysis, dermatology follow-ups, dental videos)
  • Prescription — system-generated prescription PDFs (auto-saved per visit)
  • Other — anything that doesn't fit above

The mime_type field stores the technical file type. size_bytes tracks storage usage per file. Storage usage per clinic is tracked in clinic_settings.storage_used_bytes.

Auto-attachment from visits

When you generate a prescription PDF in DRP-OS, it's automatically:

  1. Stored in the clinic_files table
  2. Linked to the patient (patient_id)
  3. Linked to the visit (visit_id)
  4. Categorized as "prescription"
  5. Filed in the patient's default "Prescriptions" folder

The PDF path is stored in clinic_visits.pdf_path. So one year from now, you can pull up that exact visit and re-download the same prescription PDF the patient received that day.

Real workflows this enables

Follow-up consultation: Patient returns 2 weeks later. You open their record, see the visit history, click on the May 15th visit. All files from that visit — lab reports, prescription PDF, photos — are right there. You see what you prescribed, you see the lab values, you can compare to today.

Insurance claim: Patient asks for all documents from the past 3 months. You open their files, filter by date, see everything: prescriptions, lab reports, consent forms. Download as ZIP. Done.

Specialist referral: Patient is being referred to a specialist. You bundle their relevant files (last 3 lab reports + 2 imaging studies + your notes) and forward via secure link. Specialist sees everything before the appointment.

Audit / inspection: CDSCO or state medical council inspector asks for records. Every patient's complete history is in one place, time-stamped, with audit trail. No paper folders to dig through.

What about storage limits?

Storage usage per clinic is tracked in storage_used_bytes. DRP-OS Clinic plans include:

  • Starter (₹1,499/mo): Reasonable storage for solo practice
  • Professional (₹2,999/mo): More storage + multi-doctor support
  • Enterprise (₹5,999/mo): Higher storage + multi-clinic networks

Files are stored on secure cloud infrastructure. Backups are automated. Files can be exported as bulk download if you ever leave the system — your data is yours.

What about WhatsApp lab reports?

A real problem: labs in India often send reports via WhatsApp. Doctors save them to phone, forget, lose track.

The workflow with DRP-OS: when a WhatsApp report comes in, you forward it to a dedicated email or upload it through the file manager (mobile-friendly). It gets attached to the right patient + visit in under 30 seconds. No more "let me check WhatsApp."

Try it

The file manager is included in every DRP-OS Clinic plan — starter, professional, and enterprise. Start your 24-hour free trial. No credit card needed.

Questions? WhatsApp +91 9560793054.

Try DRP-OS Clinic free for 24 hours

Built for Indian solo doctors. GST invoices, Hindi prescriptions, patient records. ₹1,499/month. No credit card.

Start free trial →

Related articles

May 15, 2026 · 10 min

A Patient Portal Where Patients Actually See Their Records

Patients shouldn't have to WhatsApp your receptionist to ask "what did the doctor prescribe last time?" Here's a patien…

May 15, 2026 · 11 min

Followups That Actually Happen: Cut No-Shows, Increase Repeat Visits

You see a diabetic patient on May 15 and tell them "come back in 3 months." They don't. The next time you see them, the…

May 15, 2026 · 12 min

Patient Lifetime Value: Know Your Best Patients (And Get More Like Them)

A patient who spends ₹50,000 with you over 5 years is worth more than 30 walk-ins. But most clinic software treats them…