BabyMedics hospital operations
I implemented FastAPI endpoints for hospital registration, appointments, admissions and billing, with PostgreSQL transactions and role-based access.
My Role
Backend engineering with supporting frontend delivery
My contribution
I implemented hospital workflow APIs, PostgreSQL transaction boundaries and role-based access, with contributions to the React/TypeScript interface.
Problem
Hospital staff needed connected workflows for registration, appointments, admissions and billing.
The problem
Related intake and billing records need clear transaction boundaries, while users need access appropriate to their role.
Implementation and engineering decisions
Use explicit transaction boundaries
The Challenge
A partial intake or billing failure can leave related records out of step.
My implementation
I grouped related PostgreSQL writes within transaction boundaries for the hospital workflows.
Related writes within a transaction can commit or roll back together.
Apply role-based access
The Challenge
Different hospital tasks require different permissions.
My implementation
I implemented backend role checks and contributed to the supporting React/TypeScript interface.
Workflow access is tied to user roles in the backend.
Technology
Backend
- Python
- FastAPI
- PostgreSQL
Frontend
- React
- TypeScript
Evidence and availability
Historical implementation summary. Confidential source code, private screenshots and patient or operational data are not shared. The implementation is not publicly inspectable.