How nayarr/chiron works
WiGo is a patient-record and medical-imaging platform. Its main workflow runs from patient and image intake to a patient case view, then into either DICOM radiology review or digitized-biopsy analysis and extraction. A separate pathology workflow guides extraction reporting through four ordered OLGA-defined forms; InstanSeg provides optional decision support. The graph combines sampled source relationships with README-documented capabilities; some imaging details are documented but their implementation paths were not sampled.
Main entry points: main.py FastAPI endpoints · api.ts REST client · Viewer.tsx Biopsy viewer · App.tsx App routing
Components 27
Clinical interface
- App routing
frontend/src/App.tsx - Patient dashboard
frontend/src/pages/Dashboard.tsx - Patient and upload UI
frontend/src/components/PatientCard.tsx - Image upload UI
frontend/src/components/UploadMedicalImage.tsx - REST client
frontend/src/services/api.ts - Biopsy viewer
frontend/src/pages/Viewer.tsx - Radiology viewer
frontend/src/pages/RadiologyViewer.tsx
API and domain
- FastAPI endpoints
backend/main.py - Patient and case models
backend/models.py - PostgreSQL
backend/database.py
Imaging services
- Slide object storage
backend/storage.py - DZI tile generation and serving
backend/main.py - Slide tile recovery
backend/seed_images.py - Orthanc PACS
- Segmentation client
backend/instanseg_client.py - InstanSeg service
instanseg/api.py
Pathology workflow
- Workflow interface
frontend/src/features/workflow/components/OlgaFormPanel.tsx - Workflow state hooks
frontend/src/features/workflow/useWorkflow.ts - Workflow REST client
frontend/src/features/workflow/workflowApi.ts - OLGA form loader
frontend/src/features/workflow/useOlgaForm.ts - Schema adapter
frontend/src/features/workflow/olga/olgaAdapter.ts - Schema form renderer
frontend/src/features/workflow/components/JsonSchemaForm.tsx - OLGA forms
- Workflow routes
backend/workflow/router.py - Workflow state engine
backend/workflow/service.py - Workflow persistence
backend/models.py
Other components
- Clinician
Connections 40
- Clinician → App routing: uses
README.md - App routing → Patient dashboard: routes to
frontend/src/App.tsx - App routing → Biopsy viewer: routes to
frontend/src/App.tsx - App routing → Radiology viewer: routes to
frontend/src/App.tsx - Patient dashboard → Patient and upload UI: renders
frontend/src/pages/Dashboard.tsx - Patient dashboard → Image upload UI: renders
frontend/src/pages/Dashboard.tsx - Patient dashboard → REST client: loads cases
frontend/src/pages/Dashboard.tsx - Patient and upload UI → REST client: calls
frontend/src/components/PatientCard.tsx - Image upload UI → REST client: uploads to
frontend/src/components/UploadMedicalImage.tsx - REST client → FastAPI endpoints: calls REST
frontend/src/services/api.ts - REST client → Orthanc PACS: requests DICOM via API
README.md - FastAPI endpoints → Patient and case models: queries
backend/main.py - FastAPI endpoints → PostgreSQL: uses sessions
backend/main.py - Patient and case models → PostgreSQL: maps to
backend/models.py - FastAPI endpoints → Slide object storage: resolves slide source
backend/storage.py - FastAPI endpoints → DZI tile generation and serving: generates and serves tiles
README.md - DZI tile generation and serving → Slide object storage: reads slide source
README.md - Slide tile recovery → Slide object storage: recovers slide source
backend/seed_images.py - Slide tile recovery → DZI tile generation and serving: regenerates tiles
README.md - FastAPI endpoints → Orthanc PACS: imports and reads studies
backend/main.py - Radiology viewer → REST client: uses REST
- Biopsy viewer → REST client: uses REST
- Biopsy viewer → Workflow interface: renders
frontend/src/pages/Viewer.tsx - Biopsy viewer → Workflow state hooks: manages progress
frontend/src/pages/Viewer.tsx - Workflow interface → OLGA form loader: loads form
frontend/src/features/workflow/components/OlgaFormPanel.tsx - Workflow interface → Schema form renderer: renders schema
frontend/src/features/workflow/components/OlgaFormPanel.tsx - Workflow state hooks → Workflow REST client: calls
frontend/src/features/workflow/useWorkflow.ts - Workflow state hooks → FastAPI endpoints: saves progress via API
- OLGA form loader → OLGA forms: fetches definitions
README.md - OLGA form loader → Schema adapter: uses client adapter
- OLGA form loader → Schema adapter: converts fallback schema
- Schema form renderer → Schema adapter: renders adapted schema
frontend/src/features/workflow/components/JsonSchemaForm.tsx - Workflow REST client → Workflow routes: calls workflow routes
- FastAPI endpoints → Workflow routes: mounts routes
backend/main.py - Workflow routes → Workflow state engine: delegates
backend/workflow/router.py - Workflow state engine → Patient and case models: updates extraction
backend/workflow/service.py - Workflow state engine → Workflow persistence: reads and writes state
backend/workflow/service.py - FastAPI endpoints → Segmentation client: requests segmentation
backend/main.py - Segmentation client → InstanSeg service: sends analysis request
- InstanSeg service → Biopsy viewer: returns overlays and metrics
README.md