terminal
Initializing System0%
NEURAL NETWORKSFULL-STACK ARCHITECTURESYSTEM DESIGNQUANTUM COMPUTINGAI SYSTEMS
arrow_backBack to all projects
AI System

MediLens — Medical Data Decoded

A next-gen health AI application that transforms complex lab reports into clear, actionable insights. Precision health intelligence for patients and providers.

Next.jsGemini AIFirebaseReactTypeScript

The Challenge

Patients receive complex lab reports filled with medical jargon, reference ranges, and technical values that are difficult to interpret. Most people cannot understand their own health data without a doctor's appointment, leading to delayed health decisions.

The Solution

Built MediLens — a platform where users upload lab reports (PDF/image) and receive AI-generated, plain-English analysis. The system extracts test panels, compares values against reference ranges, and provides personalized health insights. A Family Hub allows tracking health data for multiple family members over time.

Key Architecture

Upload Report (PDF/Image) → OCR + Gemini AI Extraction → Parameter Analysis & Clinical Correlation → Dashboard Visualization → AI Consultant (Conversational Health Q&A)

Code Highlight


// Gemini-powered lab report analysis
async function analyzeReport(reportFile: File) {
  const model = genAI.getGenerativeModel({ model: "gemini-1.5-flash" });

  const prompt = `Analyze this medical lab report. Extract:
    1. All test panels and individual parameters
    2. Compare each value against its reference range
    3. Flag abnormal values with clinical significance
    4. Provide a plain-English health summary`;

  const result = await model.generateContent([
    prompt,
    { inlineData: { data: fileBase64, mimeType: file.type } }
  ]);

  return parseAnalysisResponse(result.response.text());
}
        

Key Outcomes

  • check_circleAnalyzes complex lab reports into clear, actionable health insights
  • check_circleFamily hub managing health records for multiple family members
  • check_circleBuilt-in AI consultant for personalized medical Q&A