Skip to content
Lucas Zivan

Pharma quality SaaS, team NYOS

NYOS APR

Annual Product Review platform for pharmaceutical quality teams: drift and anomaly detection, a Gemini assistant and AI-drafted reports exported to PDF.

API endpoints
70+
synthetic batches analysed
43k
report levels to the APR
3

Context

Each year, pharmaceutical manufacturers compile a product’s batch, QC, complaint and CAPA data into an Annual Product Review. NYOS APR analyses that data, flags process drifts and drafts the report.

Key decisions

  1. 01

    Build the report in three levels

    Every uploaded CSV gets its own AI report, monthly reports aggregate those, and the annual review is synthesised from the monthly ones. Each level can be checked on its own before it feeds the next.

  2. 02

    Synthetic data with hidden incidents

    Real manufacturing data is confidential, so the team built a generator for 9 data categories from 2020 to 2025, with planted events (equipment degradation, a supplier issue, a seasonal effect) to test whether the analysis finds them.

  3. 03

    One container to deploy

    A multi-stage Docker build compiles the React front-end and serves it from the FastAPI app, so the demo deploys as a single service.

Architecture

React front-endVite, RechartsFastAPI5 routersData generator9 categoriesGeminichat, reportsSQLite16 tablesPDF export
Architecture
Quality dashboard over six years: score, yield, QC pass rate, open CAPAs
Quality dashboard over six years: score, yield, QC pass rate, open CAPAs
Yield and complaint trends, drift detection and recent anomalies
Yield and complaint trends, drift detection and recent anomalies
APR report generation to PDF
APR report generation to PDF
Advanced analytics across production, suppliers and equipment
Advanced analytics across production, suppliers and equipment
Synthetic data generator: 9 pharmaceutical CSV categories with hidden scenarios
Synthetic data generator: 9 pharmaceutical CSV categories with hidden scenarios

Results

  • 70+ REST endpoints across 5 routers, 16-table data model.
  • Quality dashboard over 6 years of synthetic data (43,299 batches): quality score, yield, QC pass rate, open CAPAs, and drift detection comparing the last 90 days with the previous 90.
  • Public demo video.
Next case studyEcoMuni