Inspiration

When patients go to a medical appointment, appointments are short and it is hard to recall exact symptom timelines, severity changes, sleep quality, or triggers over the past few weeks. Important context often gets forgotten. I built MediLog AI for the Healthcare track to make daily symptom tracking quick and structured, and to turn raw health logs into clear, appointment-ready summaries that help patients communicate effectively with clinicians.

What it does

  • Structured Symptom Logging: Users log daily symptoms with severity ratings ((1\text{–}10)), affected body areas, sleep hours and quality, stress, mood, energy, medications, and possible triggers.
  • Real-Time AI Pattern Analysis: Powered by Groq (openai/gpt-oss-120b), MediLog AI reviews each new entry alongside recent history to highlight observational correlations (such as recurring headaches after low-sleep nights) without diagnosing conditions.
  • Urgency Triage Flags: Categorizes entries into four clear guidance levels (routine, monitor, urgent, or emergency) with a plain-English explanation of why an entry was flagged.
  • One-Click Doctor Briefs: Generates a structured summary covering symptom frequency, severity ranges, lifestyle correlations, and tailored questions for a patient to bring to their doctor.

How I built it

  • Frontend & Full-Stack Framework: Next.js 16 (App Router), React 19, TypeScript, and Tailwind CSS.
  • Database: Neon Serverless PostgreSQL paired with Drizzle ORM for type-safe database schemas and queries.
  • AI Inference: Groq API running openai/gpt-oss-120b with strict JSON schema responses and built-in clinical safety rules.
  • Hosting & Deployment: Deployed on Vercel with production environment variables.

Challenges I ran into

Setting up serverless PostgreSQL in production and routing an OpenAI-compatible JSON endpoint to Groq required configuring Drizzle Kit schema pushes to Neon, debugging Vercel build and framework detection settings, and resolving API endpoint and model ID routing until end-to-end inference worked smoothly in production.

Accomplishments that I'm proud of

  • Building and deploying a full-stack, database-backed AI healthcare application live on Vercel.
  • Designing strict safety guardrails in the AI prompts so the app summarizes factual patterns from user logs and suggests helpful questions for a doctor without ever attempting to diagnose or prescribe.

What I learned

  • How full-stack Next.js applications connect to serverless PostgreSQL databases (Neon) using Drizzle ORM.
  • How to structure LLM system prompts for reliable JSON outputs and safe healthcare communication.
  • How to manage production deployments, environment variables, and Git workflows from the Linux terminal.

What's next

  • Adding one-click PDF export and shareable read-only links for Doctor Briefs.
  • Adding multi-language brief generation and optional health data imports.

AI Tools Disclosure & Attribution

In accordance with the STEM2Connect AI Hackathon guidelines, AI tools were used during development and inside the application:

  • AI Coding & Scaffolding Assistants: Used to generate the initial Next.js UI components, Drizzle database schema, and API routes, as well as to debug Neon serverless database setup, Groq API endpoint configuration, and Vercel deployment.
  • In-App AI: Powered by Groq (openai/gpt-oss-120b) to analyze user-logged symptom entries and generate structured Doctor Briefs.

Built With

  • groqapi
  • neon
  • next.js
  • react
  • trypescript
  • vercel
Share this project:

Updates

Submission history