Built to order

Medical Report Explainer Web App with Gemini 4 Hydrogen

This project builds a medical report explainer web app that reads a lab report (PDF or image), extracts each test parameter, and explains it in plain language using the Gemini 4 Hydrogen API. Each value is first flagged low, normal or high against the reference range printed on the report, so the explanation is anchored to the measured value, and an educational-only banner states the app is not medical advice. The demo ships with built-in CBC and lipid samples that run in the browser. Suitable for B.E./B.Tech final-year projects in Computer Science, IT and Web Development.

Chat on WhatsApp — get a quotation

Web Development GitHTML5 · CSS3 · JavaScriptResponsive CSS layoutNode.js Express backendREST JSONGemini 4 Hydrogen APIPDF.js text extractionTesseract.js OCRSoftware
Medical Report Explainer Web App with Gemini 4 Hydrogen — project thumbnail preview
More project photos (2)

The problem

A medical report explainer web app takes a lab report a patient cannot read and turns it into plain language. The Medical Report Explainer Web App with Gemini 4 Hydrogen accepts a report, extracts the test parameters, and asks Google's Gemini 4 Hydrogen model — released 12 November 2026 — to explain each value against its reference range. Lab reports are tables of abbreviated names, numbers and units, and a value outside its range causes worry long before a doctor can be reached. The app is an educational prototype, not a diagnostic tool, but it gives a calm starting point: what each parameter measures, where the value falls, and a short summary. The mechanism is auditable: each value is mapped to low, normal or high against its printed range before the model writes a sentence, so the explanation follows the measurement. Ranges differ by age, sex and laboratory, so the app uses the range printed on the report.

SYSTEM FLOW

6 components 5 connections

Live flow
Drag to explore
100%
userReport upload

Lab report PDF or photo, or a built-in sample

How it works

The app runs as a short pipeline from upload to explanation. A report arrives as a PDF or image, or the user picks a built-in sample, and the text is read out — test names, values, units and the reference range printed beside each value. Each value is compared with its own range and labelled low, normal or high; this flagging happens before the language model is involved, so the explanation is built on a computed fact. The flagged values and report context go to the Gemini 4 Hydrogen API, which writes one explanation per parameter and a short summary, using its 1-million-token context window to hold long reports in a single call. Results render as parameter cards with status badges and a summary panel, with the educational-only banner visible throughout. Uploaded reports are processed for explanation and not stored, and the demo's samples run in the browser with a local rules engine standing in for the API call.

  1. The user uploads a lab report as a PDF or photo, or selects a built-in sample (CBC or lipid profile).
  2. Text extraction reads each test name, value, unit and the reference range printed beside it; photos pass through OCR first.
  3. Each value is compared with its own reference range and labelled low, normal or high — before the model is called.
  4. The flagged values and report context are sent to the Gemini 4 Hydrogen API (model gemini-4-hydrogen).
  5. The model returns one plain-language explanation per parameter plus a short overall summary.
  6. Results render as parameter cards with low/normal/high badges, a summary panel and the educational-only banner; nothing uploaded is stored.

Tech stack:

  • HTML5 · CSS3 · JavaScript (frontend)
  • Gemini 4 Hydrogen API (model gemini-4-hydrogen)
  • PDF.js (PDF text extraction)
  • Tesseract.js (OCR for report photos)
  • Node.js · Express (backend API proxy)
  • REST · JSON
  • Responsive CSS layout
  • Git
Parameter Value
AI model Gemini 4 Hydrogen (gemini-4-hydrogen)
Model release 12 November 2026 (Google)
Context window 1 million tokens
API pricing $1.50 per million input tokens · $7.50 per million output tokens
Sample CBC panel 7 parameters
Sample lipid panel 4 parameters
Report input PDF or JPG/PNG image
Explanation response Approximately 2–5 seconds per report (design target)
Uploaded-report storage 0 bytes retained (processed for explanation, not stored)
Demo Single-file web app, runs in the browser

Project features

The explainer is built around four capabilities that work together: report upload and text extraction, reference-range flagging, plain-language explanation through Gemini 4 Hydrogen, and a built-in sample library. A user uploads a lab report as a PDF or photo, or opens one of the built-in samples — a 7-parameter CBC panel and a 4-parameter lipid profile with realistic values — and the app reads out each test name, value, unit and reference range. Each value is compared with its own range and labelled low, normal or high before any explanation text is generated, which keeps the model's sentences tied to the measured numbers. Gemini 4 Hydrogen then writes a short explanation per parameter and an overall summary, priced flat at $1.50 per million input tokens and $7.50 per million output tokens across its 1-million-token context window. An educational-only banner stays visible on every screen, and nothing the user uploads is stored.

  • [Report upload and extraction] Upload a lab report as a PDF or photo, or load a built-in sample; the app reads out each test name, value, unit and the reference range printed beside it.
  • [Reference-range flagging] Every value is labelled low, normal or high against its own printed range before any explanation is written, so the text follows the measurement.
  • [Plain-language parameter explanations] Gemini 4 Hydrogen writes one short explanation per parameter: what it measures, where the value falls, and what that position generally means.
  • [Overall summary] A short summary pulls the flagged values together into a calm overview, with the reminder to discuss the report with a doctor.
  • [Built-in sample reports] A 7-parameter CBC sample (haemoglobin 11.8 g/dL, below its 13.0–17.0 g/dL range) and a 4-parameter lipid sample run entirely in the browser for demonstration.
  • [Educational-only banner and privacy] A clear banner on every screen states the app is educational, not medical advice; uploaded reports are processed for explanation and not stored.
  • [Responsive web interface] The upload panel, report table and explanation cards work on desktop and mobile browsers with no installation.

What is included

  • Complete web app source code (frontend + backend API proxy)
  • Gemini 4 Hydrogen API integration with prompt templates
  • Built-in CBC and lipid sample reports with standard adult reference ranges
  • Working single-file demo with a client-side rules engine
  • Project report PDF, PPT presentation and viva Q&A document
  • Setup and hosting guidance

Limitations & prerequisites

  • This is an educational prototype, not a diagnostic tool: it does not diagnose, prescribe or assess risk, and no clinical accuracy is claimed.
  • Explanations need the Gemini API, so the app requires internet and a valid API key; API usage is billed by Google at $1.50 per million input tokens and $7.50 per million output tokens.
  • Extraction quality depends on the report: handwritten notes or poorly scanned pages can misread, and a misread value produces a wrong explanation.
  • Reference ranges vary by age, sex and laboratory, so the app must use the range printed on the report; a wrong range gives a wrong flag.
  • No measured explanation-accuracy figure is claimed — quality is judged by the student against the sample reports, not by a benchmark.
  • Model output can be wrong or incomplete, which is why the educational-only banner and the discuss-with-a-doctor wording are part of the design.

Frequently Asked Questions

Is this project suitable for a final-year project?

Yes — this project suits Computer Science, IT and Web Development students because it combines a real web application with a current API integration: file upload, text extraction, structured prompting of Gemini 4 Hydrogen, and result rendering, all demonstrable live in the browser. The viva discussion covers the flag-then-explain pipeline, prompt design, API pricing, and the educational-only limits of the system.

Does the app diagnose diseases or give medical advice?

No — the app only explains what each report parameter measures and whether its value sits inside the reference range printed on the report, in plain language; it never names a disease, prescribes treatment or assesses risk, and every screen carries an educational-only banner. The summary always directs the reader to discuss the report with a doctor.

How does the app use Gemini 4 Hydrogen?

The app sends the extracted, range-flagged values to the Gemini 4 Hydrogen API (model gemini-4-hydrogen) with a prompt asking for one plain-language explanation per parameter plus a short overall summary, using the model's 1-million-token context window to hold long multi-page reports in a single call. Gemini 4 Hydrogen was released on 12 November 2026, priced at $1.50 per million input tokens and $7.50 per million output tokens. In the demo, a local rules engine stands in for the API so the samples work offline.

What happens to the reports users upload?

Uploaded reports are processed only to produce the explanation and are not stored — the design target is zero retained bytes, and the demo runs entirely in the user's browser, because lab reports are sensitive health information and the privacy promise is part of the app itself. The production build states the same no-storage rule and sends extracted text to the Gemini API over an encrypted connection.

Can it read any lab report, or only the built-in samples?

It is designed for real reports: PDFs are read with text extraction and photos pass through OCR, then each value is flagged against the range printed on that report, so any lab's format works as long as the values and ranges are legible. The built-in CBC and lipid samples exist so the app can be demonstrated without a real report. Handwritten or badly scanned reports may misread, and the limitations section states that plainly.

Components & software requirements
  • HTML5 · CSS3 · JavaScript (frontend)
  • Gemini 4 Hydrogen API (model gemini-4-hydrogen)
  • PDF.js (PDF text extraction)
  • Tesseract.js (OCR for report photos)
  • Node.js · Express (backend API proxy)
  • REST · JSON
  • Responsive CSS layout
  • Git
Delivery information

Built-to-order project. Delivery timeline is shared after order confirmation based on current queue.

Support terms

Complete documentation, setup guide, and viva preparation included. Support for setup and explanation provided.

Download free synopsis (PDF)

Enter your name and WhatsApp number — the synopsis PDF downloads immediately. We may send occasional project updates on WhatsApp; no spam.

Get a quotation