OPDPS (Outpatient Department Planning System) is a Python-based application for resource allocation and scheduling in hospital outpatient departments. This MVP demonstrates the core functionality of resource allocation, scheduling, workload distribution, and reinforcement learning-based optimization using a Streamlit app.
- Resource allocation
- Daily schedule generation
- Workload distribution
- Reinforcement learning model for optimization
- Interactive Streamlit interface for viewing results
- Clone the repository
- Create a virtual environment:
python3 -m venv venv - Activate the virtual environment:
- On Windows:
venv\Scripts\activate - On macOS and Linux:
source venv/bin/activate
- On Windows:
- Install dependencies:
pip install -r requirements.txt
- Make sure you're in the project root directory (opdps_planning_mvp)
- Run the Streamlit app:
streamlit run main.py - Your default web browser should open automatically. If it doesn't, open a web browser and navigate to the URL displayed in the terminal (usually http://localhost:8501)
main.py: Contains the entire Streamlit app, including core models and simulation logicrequirements.txt: List of Python dependenciesREADME.md: Project documentation
- ResourceAllocator: Assigns staff and equipment to patients
- Scheduler: Generates daily schedules based on allocations
- WorkloadDistributor: Distributes tasks among available staff
- RLModel: Simple reinforcement learning model for optimization (placeholder for future development)
- Implement more sophisticated resource allocation and scheduling algorithms
- Enhance the reinforcement learning model with more complex state and action spaces
- Integrate with real hospital data systems
- Add more interactive features to the Streamlit app, such as custom input for staff, patients, and equipment
- Implement data persistence and historical analysis
- Add visualization of resource utilization and efficiency metrics
[Add your chosen license here]
[Add contributor information here]