Skip to content

Tenant Management

MedUX supports multi-tenancy — a single installation can serve multiple medical practices, each with isolated data and configuration.

What Is a Tenant?

A tenant represents a single practice or organizational unit. Each tenant has:

  • Its own set of patients and clinical data
  • Its own user roles and permissions
  • Its own scoped settings (practice-level configuration)
  • Its own administration area

Managing Tenants

Tenants are managed through the administration area at /administration/. Superusers can create, edit, and deactivate tenants.

Tenant Membership

Users can belong to one or more tenants with different roles. Membership is managed via the "User roles" section in the administration area.

Available roles depend on the installed plugins. The core system provides an admin role that grants full access to the tenant's administration area.

Tenant Isolation

Data isolation is enforced at the model level:

  • Models using TenantModelMixin are automatically scoped to the current tenant
  • Models using OptionalTenantModelMixin can optionally be tenant-scoped
  • The current tenant is determined by conjunto.middleware.ConjuntoMiddleware and available as request.tenant