Hospital Data Monitoring & Archival System
This project simulates hospital devices that record patient vitals and resource usage. It includes automated scripts for archiving logs with timestamps, analyzing device performance, and generating reports, demonstrating practical proficiency in shell scripting, log automation, and data analytics.
Overview The system works like three hospital devices: .Heart Rate Monitor 🌡️.emperature Sensor .Water Meter
Each device continuously records readings into log files. Shell scripts are then used to analyze, archive, and report on these logs automatically.
How It Works
- Start the Simulators
Each Python script represents a hospital device. Run them in separate terminals to start data generation:
We run this command to view live record of the devices tail -f hospital_data/active_logs/heart_rate.log
And each line includes a timestamp, device ID, and reading
Data Generation: The simulators (heart, temperature, and water) run in the background and create continuous data.
Storage: Each reading is saved automatically in the the log files for the temperature, heart rate and water usage respectively inside the active_logs folder. Archiving: Old logs are moved to the archive folder with time labels. Analysis: The system scans the logs, counts the entries, and writes a summary report in the archive_history.txt and analysis_report.txt inside the reports folder . Everything works together to show how hospitals can manage their data automatically, from real-time collection to easy analysis and reporting.
This project was achieved through the collective effort of all team members. We worked together, brainstorming, coding, testing, and solving challenges side by side. Each person contributed a unique part to make the system function smoothly, showing how teamwork and shared commitment can bring an idea to life.