nhathuy.dev
Backend Service
Featured

Electronic Medical Record

Multi-tenant EMR backend with CQRS, RBAC, MinIO storage, and clinical workflows.

Timeline
2024 - 2025
Domain
Healthcare domain
Team
5 people
Electronic Medical Record project screenshot

Overview

Designed and developed a multi-tenant SaaS platform for clinic and hospital management. The system covers patient registration, queue management, consultation workflows, medical records, billing, reporting, and secure medical document storage.

Challenges

  • Modeling multi-tenant clinic and hospital workflows without leaking data between tenants.
  • Keeping domain logic maintainable while patient, billing, and record modules grew.
  • Handling medical assets and documents separately from transactional data.

Solutions

  • Applied tenant-aware authorization and RBAC across APIs and domain services.
  • Separated command and query flows with CQRS to reduce coupling in complex workflows.
  • Integrated MinIO for document storage and kept metadata in PostgreSQL.

Process

1

Domain Modeling

Mapped clinic workflows, tenants, roles, and record lifecycles.

2 weeks
2

Backend Development

Implemented APIs, CQRS handlers, RBAC, and storage integration.

Ongoing
3

Hardening

Reviewed edge cases around permissions, tenancy, and document handling.

Continuous