Skip to main content

Architecture Overview

obeliOmed is built as a plugin suite layered on top of FacturaScripts, an open-source PHP ERP. All 17 plugins share a common multi-tenant foundation and communicate through well-defined contracts rather than direct imports.

Ecosystem diagram

Key architectural decisions

TopicDecisionADR
Naming conventionHybrid: obelio_<plugin>_<entity> tables, PascalCase PHP, EnglishADR-018
Plugin renameOftalmolAgenda->ObelioScheduling, Oftalmol->ObelioOphthalmology, OftalmolBase->ObelioCoreADR-025
Constraint namingpk_/fk_/uq_/idx_ suffixes on all DB constraintsADR-027
VersioningCalVer AAMMDD.NNADR-028
Branch strategyNNN-description off developADR-029
Merge authorityOnly Javi merges to develop/mainADR-032
Multi-tenantidEmpresa + codalmacen as clinic centerADR-033
Admin configAll settings in obelio_<plugin>_settings, no hardcodingADR-034

Deep dives