How venkat-narasimha/haritha-hospitals works
This repository is primarily an operational companion to a deployed Frappe/ERPNext/HRMS hospital system, not the custom app itself. Its documented user-to-result workflow is to validate client CSVs, migrate master data, and load employee, shift, check-in, and attendance records into a Frappe site. README also documents portable customization fixtures and an idempotent migration; the custom app source is hosted separately and is not present in the supplied tree. Relationships below are limited to README statements and sampled script behavior.
Main entry points: investigate_failures.py Failure investigation · ingest_masters.py Master ingestion · ingest_phase3_bc.py Shift-type ingestion · ingest_employee_v3.py Employee ingestion
Components 15
Data validation
- CSV verification
scripts/verify_csvs.py - Failure investigation
scripts/investigate_failures.py
Data migration
- Master migration
scripts/migrate_master_data.py - Master ingestion
scripts/ingest_masters.py - Shift-type ingestion
scripts/ingest_phase3_bc.py - Employee ingestion
scripts/ingest_employee_v3.py - Shift assignments
scripts/ingest_shift_assignment.py
HR operations
- Employee check-ins
scripts/ingest_employee_checkin.py - Attendance ingestion
scripts/ingest_attendance.py - Attendance SQL loader
scripts/ingest_attendance_v3.py - Attendance metadata
scripts/populate_attendance_meta.py - Hospital custom app
Other components
- Client CSVs
- Frappe site
- ERPNext + HRMS
Connections 21
- Client CSVs → CSV verification: checks CSVs
scripts/verify_csvs.py - Client CSVs → Failure investigation: examines CSVs
scripts/investigate_failures.py - Failure investigation → CSV verification: uses reader
scripts/investigate_failures.py - Client CSVs → Master ingestion: loads masters
scripts/ingest_masters.py - Client CSVs → Shift-type ingestion: loads shifts
scripts/ingest_phase3_bc.py - Client CSVs → Employee ingestion: loads employees
scripts/ingest_employee_v3.py - Client CSVs → Shift assignments: loads assignments
scripts/ingest_shift_assignment.py - Client CSVs → Employee check-ins: loads check-ins
scripts/ingest_employee_checkin.py - Client CSVs → Attendance ingestion: loads attendance
scripts/ingest_attendance.py - Client CSVs → Attendance SQL loader: loads attendance
scripts/ingest_attendance_v3.py - Master migration → Frappe site: run on site
README.md - Master ingestion → Frappe site: creates records
scripts/ingest_masters.py - Shift-type ingestion → Frappe site: creates records
scripts/ingest_phase3_bc.py - Employee ingestion → Frappe site: creates records
scripts/ingest_employee_v3.py - Shift assignments → Frappe site: inserts records
scripts/ingest_shift_assignment.py - Employee check-ins → Frappe site: enqueues batches
scripts/ingest_employee_checkin.py - Attendance ingestion → Frappe site: writes SQL
scripts/ingest_attendance.py - Attendance SQL loader → Frappe site: writes SQL
scripts/ingest_attendance_v3.py - Attendance metadata → Frappe site
- Hospital custom app → Frappe site: extends deployment
README.md - ERPNext + HRMS → Frappe site: runs on
README.md