Product Requirements Document

HealthCube Labs

An at-home diagnostics platform — patients book blood tests and health packages, a phlebotomist collects the sample at home, and reports come back as smart, trending, AI-explained results. This document specifies the Customer app (booking, reports, AI Care, bookings, profile), the operations CRM, and the phlebotomist collection app.

Version 1.0 · DraftDate June 2026Status For reviewClassification Confidential

1. Overview

1.1 Purpose

This document defines the requirements for HealthCube Labs, an at-home diagnostics service in the style of a modern lab-test marketplace. A patient logs in, browses health packages and individual tests, books a home sample collection at a chosen slot, pays online or on collection, and receives digital reports. Reports are presented as trending parameters (improving or worsening over time, per family member) with an AI Care layer that flags what needs attention and when to see a doctor. Behind the app, an operations CRM manages the catalogue, bookings and reports, and a phlebotomist app routes collection agents to patients' homes and tracks sample status to the lab.

1.2 Product vision

Make diagnostics feel effortless and understood: book in a minute, get tested at home, and actually understand your results — not a wall of numbers, but clear trends and next steps for the whole family.

1.3 Surfaces

Three products ship together: the Customer app (Home, Reports, AI Care, Bookings, Profile), the web CRM for operations, and the Phlebotomist app for at-home collection and sample tracking.

1.4 Scope

In scope (v1): phone/Google/WhatsApp login; offers & category discovery; packages and individual tests with full detail; a four-step booking flow (details → member → slot → payment) with WhatsApp confirmation; smart reports with parameter trends; an AI Care summary; member-wise bookings; family members & VIP membership; the operations CRM; and the phlebotomist collection app with live sample status.

Out of scope (v1): tele-consultation video, medicine delivery, insurance claims, and a public web storefront beyond SEO/landing.

2. Personas

PersonaDescriptionPrimary goals
Patient / CustomerBooks tests for self and family.Quick booking, home collection, clear trending reports, know when to worry.
Family memberPerson a test is booked for (self / spouse / parent / child).Own report history & trends under one account.
PhlebotomistCollection agent visiting homes.See the day's jobs, navigate, verify patient, update sample status to lab.
Ops / CRM adminRuns the lab operations.Manage catalogue & pricing, assign phlebos, upload reports, handle coupons & payments.

3. Login & Onboarding

Patients sign in with a phone number + OTP, Google, or WhatsApp — whichever is fastest. A first-run flow captures name, age/DOB and a home address for collection. WhatsApp login also doubles as the channel for booking confirmations and report-ready alerts. See login → booking → confirmation in the demo →

4. Home & Discovery

The home screen leads with an offers banner carousel, then a horizontally-scrollable category strip — Full Body, Heart, Fever, Vitamin, Diabetes, Thyroid and more, shown as small icons with labels. Below sit health packages (Advance Full Body, Stay Fit India, Heart Health, Vitamin Profile…) and then individual tests. A search bar spans tests, packages and categories. Everything is one tap from booking.

5. Package & Test Detail

A package or test page shows everything the patient needs to decide: the tests / parameters included (grouped and counted), the fasting requirement, report turnaround, age suitability, sample type, the price and MRP, an applicable coupon, and an Add to cart action fixed to the bottom. This is Step 1 of booking — get the patient confident about what they're buying.

6. Booking Flow

Booking is four clear steps:

StepWhat happens
1 · DetailsReview package/test details & add to cart (Section 5).
2 · MemberChoose who the test is for — self or a family member (add a new member inline).
3 · SlotPick a collection date on a horizontal date slider, then an available time slot (morning / afternoon).
4 · PaymentPrice breakdown — MRP, diagnostic fee, expert consultation (free), discount, VIP-member discount, then total. Pay via Pay on collection or Pay now (UPI / card).

On success, a WhatsApp-style confirmation appears — the booking is confirmed and the patient gets a WhatsApp message with the details and slot.

7. Reports

The Reports tab turns raw lab values into smart, virtual reports. For each test done over time, key parameters are shown with a trend — improved or degraded versus previous results — per family member, over a month or a year. A patient can see at a glance that their HbA1c is trending down, their Vitamin D recovered, or their LDL crept up, and download the full PDF report.

8. AI Care

AI Care reads the latest report and explains it in plain language: what looks off, which parameters are flagged, and what needs a doctor consultation versus what's fine to monitor. It's a guidance layer — clearly marked as informational and not a substitute for professional medical advice — that helps patients act on their results instead of ignoring them.

9. Bookings

The Bookings tab lists bookings member-wise, each card showing the booking ID, collection date, amount, patient name and age, and a status action — Download report when ready, or Sample in progress while pending. Each card offers Book again and View booking. It's the patient's complete diagnostic history in one place.

10. Profile · Members & VIP

Profile holds the account, family members (each with their own report history), saved addresses, coupons, and the VIP membership — a paid tier that unlocks extra discounts on every booking (surfaced in the payment breakdown as a VIP-member discount).

11. CRM (Operations)

The web CRM is the operations backbone. Admins manage the catalogue (packages, tests, parameters, pricing, MRP), oversee bookings and assign phlebotomists, upload and release reports, configure coupons and the VIP tier, manage payments and refunds, and monitor operations from a dashboard.

12. Phlebotomist App

The phlebotomist ("collection agent") app receives the day's assigned bookings, shows the patient's location and route, and tracks each collection through a live sample status lifecycle — Arriving → Reached → In progress → On route → Delivered to lab. The agent verifies the patient (OTP), collects the sample, and the status updates flow back to the patient app and the CRM in real time.

13. Booking & Sample Status Model

StatusMeaning
BookedSlot confirmed; WhatsApp confirmation sent.
AssignedPhlebotomist assigned from the CRM.
Arriving / ReachedAgent en route / at the patient's door.
In progressPatient verified (OTP); sample being collected.
On route to labSample collected; heading to the lab.
Delivered to labSample handed to the lab; processing begins.
Report readyReport released; parameters & AI Care available; downloadable.

14. Non-Functional Requirements

Performance

Home & catalogue under 2s; booking steps interactive under 1.5s; live status via push.

Health-data privacy

Reports encrypted at rest & in transit, per-member access control, consent-based sharing.

Lab integration

LIS/NABL lab integration for orders & results; barcoded samples; chain-of-custody.

Payments

Razorpay UPI/card, pay-on-collection reconciliation, coupons & VIP pricing, GST invoicing.

AI safety

AI Care is informational, guard-railed, cites parameters, and always defers to a clinician.

Location & routing

Live phlebo location, optimised routes, geofenced status, audit trail per sample.

15. Open Questions

  1. Lab model — own lab, partner labs, or multi-lab routing by pincode & test type?
  2. AI Care depth at launch — rule-based flags on reference ranges vs an LLM summary, and the medical review process.
  3. Report ingestion — direct LIS integration vs manual PDF upload & parsing for parameter trends.
  4. Phlebotomist model — in-house staff vs gig agents; incentives & slot capacity by area.
  5. VIP membership — pricing, benefits and whether it's per-user or per-family.
  6. Pay-on-collection — cash handling, reconciliation and no-show handling.
Interactive demo

Book it, collect it, understand it.

The patient app, the operations CRM and the phlebotomist app — one system. Switch between them and click through: book a package, assign a collection, and track the sample to the lab.

Delivery timeline

A proposed 22-week build.

Six phases across four tracks, on a week scale. Features flow User Flow → Design → Frontend → Backend, staggered so design and build pipeline cleanly.

Customer App CRM (Laravel) Phlebo App Backend & AI Milestone
Weeks 1–5

Phase 1 · Foundation & Customer core

Architecture, phone/Google/WhatsApp login, home with banners & category strip, packages & test detail.

Weeks 6–9

Phase 2 · Booking & Payments

4-step booking (member, slot slider, payment breakdown), Razorpay + pay-on-collection, WhatsApp confirmation.

Weeks 10–13

Phase 3 · Reports & AI Care

Report ingestion, parameter trends per member, AI Care summaries & doctor-consult flags.

Weeks 14–17

Phase 4 · CRM (Laravel)

Catalogue, bookings & phlebo assignment, report release, coupons, VIP, payments & dashboards.

Weeks 18–20

Phase 5 · Phlebotomist App

Assignments, live location & routing, sample-status lifecycle, OTP verification, earnings.

Weeks 21–22

Phase 6 · Hardening & Handoff

QA · security · lab UAT, reconciliation, store submission & handover.

Technology

Flutter apps, Laravel core.

Two Flutter apps for patients and phlebotomists, a Laravel API & operations CRM, and the integrations that make home diagnostics work — payments, WhatsApp, lab systems, routing and an AI insights layer.

Patient & Phlebo apps

Flutter

iOS + Android from one codebase — booking, reports, AI Care for patients; routing & sample status for agents.

  • Dart / Flutter, shared design system
  • Maps & live location (phlebo)
  • Push + WhatsApp notifications
  • In-app payments & report viewer
API & CRM

Laravel + MySQL

One PHP backend powering both apps and the operations CRM — catalogue, bookings, reports, payments.

  • Laravel REST API + queues
  • Ops CRM (Blade / Filament)
  • MySQL + Redis
  • Role-based access & audit logs
Integrations

Diagnostics stack

The health & ops layer that connects patients, labs and payments.

  • Razorpay UPI / card + pay-on-collection
  • WhatsApp Business API
  • Lab LIS / NABL integration
  • AI insights (report explainers)

System architecture

Patient AppFlutter
Phlebo AppFlutter
HTTPS · REST
Laravel APIauth · routing · queues
Laravel modules
Auth & OTP
Catalogue & Tests
Bookings & Slots
Phlebo & Routing
Reports & Trends
AI Care
Payments & VIP
CRM & Reports
MySQLCore data
RedisCache · queues
S3 storageReport PDFs
Outbound adapters
RazorpayUPI · card
WhatsApp APIconfirmations
Lab LISorders · results
Mapsrouting

Supporting stack

Data

MySQL (core), Redis for caching, queues & live status fan-out.

Payments

Razorpay UPI/card, pay-on-collection reconciliation, coupons & VIP pricing.

Messaging

WhatsApp Business API for confirmations, report-ready & status alerts.

Lab integration

LIS/NABL orders & results ingestion; barcoded sample chain-of-custody.

AI Care

Guard-railed LLM layer that explains reports & flags doctor consults.

Infra & DevOps

Deployable on your VPS — Docker, CI/CD, autoscaling queues.

Why this stack

Flutter for both apps

One codebase ships the patient and phlebo apps to iOS + Android, with maps, camera and payments native.

Laravel for ops & speed

A mature PHP backend with a fast CRM, cheap VPS hosting and a huge Indian hiring pool.

Trends, not just numbers

Parameter history per member turns reports into a story patients actually understand.

Real-time operations

Live phlebo routing and sample status keep patients informed and the lab in sync.