How saepulloh07/sivalidrg-0.0.1 works
SIVALIDRG supports medical-record coding and review: users navigate the authenticated web app to manage patients and documents, review coding cases, and inspect validation and agent results. The backend exposes the product APIs, while the AI service provides inference and multi-agent validation backed by database models. The source index supports the AI service’s internal calls, but no README or excerpt confirms how the backend invokes it; that integration is therefore not drawn.
Main entry points: App.jsx App routing · inference.py Inference endpoints · server.js API server · orchestrator.py Validation orchestrator
Components 34
Web application
- App routing
Frontend/src/App.jsx - Main layout
Frontend/src/components/MainLayout.jsx - Case review
Frontend/src/pages/CaseDetail.jsx - Patient management
Frontend/src/pages/Patients.jsx - Document management
Frontend/src/pages/Documents.jsx - Coding cases
Frontend/src/pages/CodingCases.jsx - Validation review
Frontend/src/pages/Validation.jsx - Agent results
Frontend/src/pages/Agents.jsx - Dashboard
Frontend/src/pages/Dashboard.jsx - API client
Frontend/src/services/api.js - Document processing
Frontend/src/hooks/useDocumentProcessing.js
Backend API
- API server
Backend/src/server.js - Authentication
Backend/src/services/auth-service/controller/auth.controller.js - JWT authorization
Backend/src/middleware/auth.js - Patient routes
Backend/src/routes/patients.js - Document routes
Backend/src/routes/documents.js - Coding routes
Backend/src/routes/coding.js - Validation routes
Backend/src/routes/validation.js - Dashboard routes
Backend/src/routes/dashboard.js - Agent routes
Backend/src/routes/agents.js
AI inference
- AI service entry
ai-service/app/main.py - Inference endpoints
ai-service/app/routes/inference.py - Validation orchestrator
ai-service/app/agents/orchestrator.py - Mismatch checker
ai-service/app/agents/mismatch_checker.py - ICD validator
ai-service/app/agents/icd_validator.py - Checklist agent
ai-service/app/agents/auto_checklist.py - Ollama client
ai-service/app/utils/ollama_client.py
Clinical analysis
- Entity extraction
ai-service/app/nlp/entity_extractor.py - ICD matching
ai-service/app/nlp/icd_matcher.py - Evidence highlighting
ai-service/app/nlp/evidence_highlighter.py
Persistence
- Backend database
Backend/src/config/database.js - AI database session
ai-service/app/database.py - Clinical data models
ai-service/app/models.py
Other components
- Clinical user
Connections 33
- Clinical user → App routing: uses
Frontend/src/App.jsx - App routing → Main layout: routes through
Frontend/src/App.jsx - App routing → Case review: routes to
Frontend/src/App.jsx - App routing → Patient management: routes to
Frontend/src/App.jsx - App routing → Document management: routes to
Frontend/src/App.jsx - App routing → Coding cases: routes to
Frontend/src/App.jsx - App routing → Validation review: routes to
Frontend/src/App.jsx - App routing → Agent results: routes to
Frontend/src/App.jsx - App routing → Dashboard: routes to
Frontend/src/App.jsx - API server → Authentication: dispatches auth
Backend/src/server.js - API server → Patient routes: mounts routes
Backend/src/server.js - API server → Document routes: mounts routes
Backend/src/server.js - API server → Coding routes: mounts routes
Backend/src/server.js - API server → Validation routes: mounts routes
Backend/src/server.js - API server → Dashboard routes: mounts routes
Backend/src/server.js - API server → Agent routes: mounts routes
Backend/src/server.js - Authentication → JWT authorization: protected by
- JWT authorization → Backend database: queries users
Backend/src/middleware/auth.js - AI service entry → Inference endpoints: registers routes
ai-service/app/main.py - AI service entry → AI database session: initializes session
ai-service/app/main.py - AI service entry → Validation orchestrator: uses validation
ai-service/app/main.py - AI service entry → Ollama client: uses model client
ai-service/app/main.py - Inference endpoints → AI database session: queries session
ai-service/app/routes/inference.py - Inference endpoints → Clinical data models: reads and writes
ai-service/app/routes/inference.py - Inference endpoints → Entity extraction: extracts entities
ai-service/app/routes/inference.py - Inference endpoints → ICD matching: matches codes
ai-service/app/routes/inference.py - Inference endpoints → Evidence highlighting: highlights evidence
ai-service/app/routes/inference.py - Inference endpoints → Validation orchestrator: runs validation
ai-service/app/routes/inference.py - Inference endpoints → Ollama client: calls model
ai-service/app/routes/inference.py - Validation orchestrator → Mismatch checker: runs checker
ai-service/app/agents/orchestrator.py - Validation orchestrator → ICD validator: runs validator
ai-service/app/agents/orchestrator.py - Validation orchestrator → Checklist agent: builds checklist
ai-service/app/agents/orchestrator.py - AI database session → Clinical data models: initializes tables
ai-service/app/database.py