AWS Lambda, Cognito, PostgreSQL, DynamoDB
Hospital Management System
A full hospital management system built for a Japanese healthcare client at PixelPK — covering patient care, doctor consultations, pharmacy operations, and hospital administration.
Key Decisions & Challenges
PostgreSQL for Relational Data, DynamoDB for Unstructured Content
Situation
The system needed to store two distinctly different types of data — structured relational records (users, appointments, prescriptions) and long-form unstructured content like notifications that had no relational ties.
Decision
PostgreSQL handles all relational data where joins and referential integrity matter. DynamoDB stores content that is too lengthy or unstructured for a relational model — such as notifications — where a flexible schema and fast key-based access are more appropriate.
Serverless Architecture with AWS Lambda and API Gateway
Situation
The client wanted to use AWS services and the system was in early build phase with low traffic.
Decision
Lambda and API Gateway over a traditional server. AWS charges only per invocation, so cost was near zero during development and low-traffic phases. The architecture also scales automatically without provisioning or managing servers.
AWS Cognito for Authentication
Situation
The system needed secure authentication with user management, without building it from scratch.
Decision
Used AWS Cognito — a managed service that handles authentication, authorization, and user management out of the box. It eliminated the need to build and maintain auth infrastructure while meeting security requirements at near-zero cost.
Features
Patient Management
Patients can register and log in, consult with available doctors, view health details (heart rate, blood pressure), access prescriptions and video call history, and set medicine reminders.
Doctor Interaction
Doctors can respond to patient consultations, prescribe medicines, and access detailed patient records and video call history.
Pharmacy Operations
Pharmacists can manage inventory, update stock based on prescriptions, and edit pharmacy details.
Admin Dashboard
Admins can add, edit, and delete doctors and pharmacists, and update hospital details.
In Action
Patient dashboard
Patient health history
Medicine reminders
My Role
I was part of a team of four engineers who built the full system.
Tech Stack
Outcome
Delivered to the Japanese healthcare client.