Reference
Quick-reference tables for obeliOmed conventions, constants, and shared types.
Plugin status codes
| Code | Meaning |
|---|---|
pending | Created, awaiting action |
confirmed | Confirmed by clinic |
in_progress | Currently in progress |
completed | Successfully completed |
cancelled | Cancelled (by patient or clinic) |
no_show | Patient did not show up |
Multi-tenant quick reference
// Get current company and clinic center from FacturaScripts context
$idEmpresa = $this->empresa->idempresa;
$codalmacen = $this->user->codalmacen;
// Always filter by both in queries
$where = [
new DataBaseWhere('idempresa', $idEmpresa),
new DataBaseWhere('codalmacen', $codalmacen),
];
Shared date/time formats
| Use case | Format | Example |
|---|---|---|
| Database date | YYYY-MM-DD | 2026-06-20 |
| Database datetime | YYYY-MM-DD HH:MM:SS | 2026-06-20 09:30:00 |
| CalVer version | AAMMDD.NN | 260620.01 |
| RRULE schedule | RFC 5545 | RRULE:FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR |
FacturaScripts controller namespaces
| Base class | Full namespace |
|---|---|
ListController | FacturaScripts\Core\Lib\ExtendedController\ListController |
EditController | FacturaScripts\Core\Lib\ExtendedController\EditController |
PanelController | FacturaScripts\Core\Lib\ExtendedController\PanelController |
:::caution Common mistake
Do NOT use FacturaScripts\Core\Template\* — those are Twig template helpers, not base controllers.
:::
Audit event types
| Event | Type string |
|---|---|
| Record created | <entity>.created |
| Record updated | <entity>.updated |
| Record deleted / pseudonymised | <entity>.deleted |
| Consent signed | consent.signed |
| Consent revoked | consent.revoked |
| Document signed | document.signed |
| Authentication success | auth.login |
| Authentication failure | auth.login_failed |
| Settings changed | settings.updated |
PHP class reference
Auto-generated from PHPDoc by phpDocumentor. Available in each plugin page under
Plugins > (Plugin Name) > API Reference.