Skip to main content

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 NameInternal ScopeDefault PortPurpose
medOS Gatewayever-api-gateway3001API router, request aggregation
medOS Auth (AAA)ever-api-aaaJWT auth, login, RBAC
medOS Administrationever-api-administration4002System admin, master data (211 modules)
medOS Clinicalever-api-clinicalEncounters, notes, clinical records
medOS Diagnosticsever-api-diagnosticsLab/imaging orders & results (16 modules)
medOS Medicationever-api-medicationsPrescriptions, drug management (113 modules)
medOS Financialever-api-financialBilling, invoicing, RCM (34 modules)
medOS Foundationever-api-foundationBase models, master data (64 modules)
medOS File Storageever-filestore8083File upload, IPFS / S3
medOS Messagingever-messaging8084 / 3003Socket.IO, email, SMS
medOS Sequenceever-api-global-sequenceHN / VN / AN number generation
medOS E-Formever-api-eformE-Form API layer (11 modules)
medOS Printing(Spring Boot)8088PDF report generation
medOS Public APIever-public-api8082Unauthenticated endpoints, FHIR
medOS InteroperabilityHL7v2, FHIR, IHE, X12, C-CDA
medOS Patient RelationshipPatient relationship management
medOS MigrationLegacy data migration toolkit
medOS TaskBackground 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

ServiceModules
medOS Administration211
medOS Medication113
medOS Foundation64
medOS Financial34
medOS Auth (AAA)28
medOS Diagnostics16
medOS E-Form11
medOS Migration11
medOS Interoperability8
medOS Public API6
medOS Messaging6
medOS Patient Relationship3
medOS Clinical, Sequence, Gateway, Filestorecore only

Total: ~515 backend modules across the platform.