How jaikrishna007/ova works
OVA is a clinical charting and decision-assistance platform for reproductive medicine. Clinicians use the web app to find a patient, inspect longitudinal cycles and source evidence, review summaries and safety findings, and manage records and transfers. Uploaded records are extracted, validated, and materialized into structured clinical data; deterministic engines surface conflicts, missing workups, stage, and follow-ups, while grounded summaries and chart Q&A are guarded by validation and policy filters. The graph reflects documented routes, imports, and README relationships; some unsampled router-to-service links are intentionally omitted.
Main entry points: main.py FastAPI API · service.py Clinical Materializer · api.ts API Client · summary_service.py Summary Service
Components 30
Clinical Web App
- Clinical App
frontend/src/App.tsx - Patient Search
frontend/src/pages/PatientSearchPage.tsx - Patient Chart
frontend/src/pages/PatientDetailPage.tsx - Evidence Viewer
frontend/src/components/SourceViewer.tsx - Transfers
frontend/src/components/ConsentsAndTransfersTab.tsx - API Client
frontend/src/services/api.ts
API and Access
- FastAPI API
backend/app/main.py - Auth and Scope
backend/app/core/scope.py - Record Routes
backend/app/routers/records.py - Summary Routes
backend/app/routers/summaries.py - Import Routes
backend/app/routers/import_transfer.py - Transfer Routes
backend/app/routers/transfers.py
Record Processing
- Source Records
backend/app/models/source_record.py - Extraction and Validation
backend/app/services/extraction/pipeline.py - Clinical Materializer
backend/app/services/materializer/service.py - Cycle Grouper
backend/app/services/cycle_grouper/service.py - Clinical Data
backend/app/models/clinical.py - Longitudinal Cycles
backend/app/models/cycle.py
Clinical Intelligence
- Safety Engines
backend/app/services/engines/conflicts.py - Summary Service
backend/app/services/summary_service.py - Clinical Brief
backend/app/services/brief_service.py - AI Context Pack
backend/app/services/ai/context_pack.py - Grounded Composer
backend/app/services/ai/composer.py
Governance and Storage
- Summary Cache
backend/app/models/summary.py - Claims and Provenance
backend/app/models/provenance.py - Transfer Service
backend/app/services/transfer_service.py - Audit Service
backend/app/services/audit_service.py - Relational Database
backend/app/db/base.py
Other components
- Clinician
- LLM Provider
Connections 34
- Clinician → Clinical App: uses
README.md - Clinical App → Patient Search: routes to
frontend/src/App.tsx - Clinical App → Patient Chart: routes to
frontend/src/App.tsx - Clinician → Transfers: manages
README.md - Patient Search → API Client: requests data
frontend/src/services/api.ts - Patient Chart → API Client: requests chart
frontend/src/services/api.ts - Evidence Viewer → API Client: loads evidence
- Transfers → API Client: requests transfers
frontend/src/components/ConsentsAndTransfersTab.tsx - API Client → FastAPI API: REST requests
README.md - FastAPI API → Record Routes: registers
backend/app/main.py - FastAPI API → Summary Routes: registers
backend/app/main.py - FastAPI API → Import Routes: registers
backend/app/main.py - FastAPI API → Transfer Routes: registers
backend/app/main.py - Auth and Scope → Relational Database: checks access
backend/app/core/scope.py - Import Routes → Extraction and Validation: invokes
- Extraction and Validation → Source Records: processes
backend/app/services/extraction/pipeline.py - Extraction and Validation → Clinical Materializer: invokes
backend/app/services/extraction/pipeline.py - Clinical Materializer → Cycle Grouper: groups cycles
backend/app/services/materializer/service.py - Clinical Materializer → Clinical Data: writes
backend/app/services/materializer/service.py - Clinical Materializer → Longitudinal Cycles: assigns records
backend/app/services/materializer/service.py - Clinical Materializer → Claims and Provenance: records claims
backend/app/services/materializer/service.py - FastAPI API → Safety Engines: serves findings
README.md - FastAPI API → Summary Service: serves summaries
- Summary Service → AI Context Pack: builds context
backend/app/services/summary_service.py - Summary Service → Grounded Composer: composes claims
backend/app/services/summary_service.py - Summary Service → Summary Cache: caches results
backend/app/services/summary_service.py - AI Context Pack → Safety Engines: reads findings
backend/app/services/ai/context_pack.py - Grounded Composer → LLM Provider: generates text
README.md - Clinical Brief → Safety Engines: assembles findings
backend/app/services/brief_service.py - Safety Engines → Relational Database: persists findings
README.md - Transfer Routes → Transfer Service: handles requests
- Transfer Service → Relational Database: reads and writes
backend/app/services/transfer_service.py - FastAPI API → Audit Service: audits activity
- Source Records → Relational Database: stored in
backend/app/models/source_record.py