All Projects

OrbitHealth EMR

Microservices-based EMR system replacing a monolith, enabling domain isolation, event-driven workflows, and scalable clinical operations.

Overview

OrbitHealth EMR is a complete architectural rewrite of a hospital's Electronic Medical Record system. The existing monolith was decomposed into six domain-driven microservices, enabling independent deployment, team autonomy, and significantly faster feature delivery across clinical departments.

Modules

  • Auth Service: JWT-based authentication with role management across doctor, nurse, pharmacist, lab technician, radiologist, and admin roles.
  • Patient Service: Patient registration, medical history, appointment scheduling, consultation records, and referral management.
  • Laboratory Service: Test order management, result entry with reference ranges, abnormal result flagging, and physician notification.
  • Imaging Service: Radiology request routing, DICOM image storage references, and structured radiologist report delivery.
  • Pharmacy Service: Prescription processing, drug inventory tracking with reorder alerts, and dispensing workflow.
  • Finance Service: Patient billing, insurance claim submission, payment collection, and department-level revenue reporting.

Architecture

All services communicate through a Hasura GraphQL gateway using event-driven patterns for cross-service workflows. Each service owns its own PostgreSQL schema for true data isolation. Fully containerized with Docker, deployed behind Nginx with zero-downtime rolling deployments per service.