How dipjyotisarma-dev/remedisync works
RemediSync is a pharmacy demand-forecasting and replenishment platform. Its documented workflow turns historical sales into engineered features, forecasts demand, applies inventory policy to stock and supplier lead times, and exposes recommendations through a REST API for pharmacy operations. The graph also preserves synthetic market generation, forecast evaluation and diagnostics, expiry intelligence, and policy backtesting. Several links are supported only by the README’s architecture description; unsampled route and feature internals are not inferred beyond the documented flow.
Main entry points: forecaster.py Demand Forecaster · routes REST Routes · order_generator.py Order Generator · inventory_simulator.py Market Simulator
Components 22
Market Data Generation
- Market Simulator
src/data_generator/inventory_simulator.py - Batch and Expiry Data
src/data_generator/batch_manager.py - Generation Orchestrator
src/data_generator/run_pipeline.py
Demand Analytics
- Feature Engineering
src/features/feature_pipeline.py - Demand Profiling
src/features/demand_profiler.py - Data Audit
src/features/data_audit.py - Demand Forecaster
src/models/forecaster.py - Forecast Evaluation
src/models/evaluator.py - Baseline Models
src/models/baseline.py - Forecast Diagnostics
src/models/diagnostics.py
Inventory Decisions
- Inventory Policy
src/decision/inventory_policy.py - Expiry Intelligence
src/decision/expiry_intelligence.py - Order Generator
src/decision/order_generator.py - Policy Backtesting
src/decision/policy_simulator.py
Persistence
- Pharmacy Repository
src/database/repository.py - Pharmacy Data Models
src/database/models.py - Database Session
src/database/session.py
API Service
- FastAPI Application
src/api/main.py - REST Routes
src/api/routes - API Dependencies
src/api/deps.py
Other components
- Pharmacy Operator
- Operations Dashboard
Connections 24
- Generation Orchestrator → Market Simulator: runs simulation
src/data_generator/run_pipeline.py - Generation Orchestrator → Batch and Expiry Data: creates batches
- Market Simulator → Batch and Expiry Data: uses batch logic
src/data_generator/inventory_simulator.py - Market Simulator → Feature Engineering: provides sales telemetry
README.md - Feature Engineering → Demand Forecaster: supplies features
README.md - Demand Profiling → Demand Forecaster: characterizes demand
- Data Audit → Feature Engineering: audits data
- Demand Forecaster → Forecast Evaluation: evaluates forecasts
src/models/forecaster.py - Baseline Models → Forecast Evaluation: uses metrics
src/models/baseline.py - Forecast Diagnostics → Forecast Evaluation: uses metrics
src/models/diagnostics.py - Demand Forecaster → Order Generator: provides forecasts
src/decision/order_generator.py - Inventory Policy → Order Generator: calculates replenishment
src/decision/order_generator.py - Expiry Intelligence → Order Generator: informs ordering
src/decision/order_generator.py - Demand Forecaster → Policy Backtesting: provides forecasts
src/decision/policy_simulator.py - Inventory Policy → Policy Backtesting: simulates policy
src/decision/policy_simulator.py - FastAPI Application → REST Routes: registers routes
src/api/main.py - REST Routes → API Dependencies: uses dependencies
src/api/routes/inventory.py - API Dependencies → Pharmacy Repository: creates repository
src/api/deps.py - REST Routes → Pharmacy Repository: queries data
src/api/routes/inventory.py - Pharmacy Repository → Pharmacy Data Models: queries entities
src/database/repository.py - Pharmacy Data Models → Database Session: uses ORM base
src/database/models.py - Pharmacy Operator → FastAPI Application: uses REST API
README.md - FastAPI Application → Operations Dashboard: serves operations
README.md - Order Generator → REST Routes: exposes recommendations