medOS Backend Services
medOS is built as a NestJS + Moleculer microservice mesh communicating over
NATS. Every service below was previously published under the internal
ever-* namespace; in this catalog they are presented under their canonical
medOS product names.
Service map
| medOS Name | Internal Scope | Default Port | Purpose |
|---|---|---|---|
| medOS Gateway | ever-api-gateway | 3001 | API router, request aggregation |
| medOS Auth (AAA) | ever-api-aaa | — | JWT auth, login, RBAC |
| medOS Administration | ever-api-administration | 4002 | System admin, master data (211 modules) |
| medOS Clinical | ever-api-clinical | — | Encounters, notes, clinical records |
| medOS Diagnostics | ever-api-diagnostics | — | Lab/imaging orders & results (16 modules) |
| medOS Medication | ever-api-medications | — | Prescriptions, drug management (113 modules) |
| medOS Financial | ever-api-financial | — | Billing, invoicing, RCM (34 modules) |
| medOS Foundation | ever-api-foundation | — | Base models, master data (64 modules) |
| medOS File Storage | ever-filestore | 8083 | File upload, IPFS / S3 |
| medOS Messaging | ever-messaging | 8084 / 3003 | Socket.IO, email, SMS |
| medOS Sequence | ever-api-global-sequence | — | HN / VN / AN number generation |
| medOS E-Form | ever-api-eform | — | E-Form API layer (11 modules) |
| medOS Printing | (Spring Boot) | 8088 | PDF report generation |
| medOS Public API | ever-public-api | 8082 | Unauthenticated endpoints, FHIR |
| medOS Interoperability | — | — | HL7v2, FHIR, IHE, X12, C-CDA |
| medOS Patient Relationship | — | — | Patient relationship management |
| medOS Migration | — | — | Legacy data migration toolkit |
| medOS Task | — | — | Background task / job scheduler |
Architecture
Frontend → REST API (ALB / nginx) → medOS Gateway → NATS
↓
┌──────┴───────┐
↓ ↓
NestJS services Edge functions
↓ ↓
MongoDB Supabase
↓
Realtime → Frontend
All NestJS services communicate via the NATS message broker using the Moleculer service mesh.
Module counts
| Service | Modules |
|---|---|
| medOS Administration | 211 |
| medOS Medication | 113 |
| medOS Foundation | 64 |
| medOS Financial | 34 |
| medOS Auth (AAA) | 28 |
| medOS Diagnostics | 16 |
| medOS E-Form | 11 |
| medOS Migration | 11 |
| medOS Interoperability | 8 |
| medOS Public API | 6 |
| medOS Messaging | 6 |
| medOS Patient Relationship | 3 |
| medOS Clinical, Sequence, Gateway, Filestore | core only |
Total: ~515 backend modules across the platform.