How leosumanth3-source/hospital-report-extraction works
This repository provides a FastAPI service that accepts a patient description, asks Gemini to extract structured medical information, validates the response against Pydantic models, and returns valid or invalid results. The graph shows the API entry point, extraction/provider interaction, and output schema. The README is empty; the relationships shown are supported by the sampled source.
Main entry points: app.py FastAPI endpoints · extractor.py Report extraction · schema.py Report schemas
Components 5
HTTP API
- FastAPI endpoints
app.py
Extraction
- Report extraction
extractor.py - Gemini model
Data Contracts
- Report schemas
schema.py
Other components
- API caller
Connections 5
- API caller → FastAPI endpoints: submits description
app.py - FastAPI endpoints → Report extraction: requests extraction
app.py - Report extraction → Gemini model: generates response
extractor.py - Report extraction → Report schemas: validates response
extractor.py - FastAPI endpoints → API caller: returns result
app.py