Service Layer medium complexity Shared Component backend
1
Dependencies
1
Dependents
4
Entities
0
Integrations

Description

Backend service that manages the terminology override map for each organization. Handles CRUD operations on the JSONB terminology column in organization_settings, serves the active terminology map as part of session bootstrap, and provides default label resolution when no override exists.

Feature: Custom Terminology

terminology-service

Responsibilities

  • Read and write terminology overrides to the organization_settings JSONB column
  • Serve the active terminology map during session bootstrap payload
  • Merge organization overrides with platform defaults, falling back gracefully
  • Validate terminology keys against the central label constants file
  • Support bulk reset of all overrides to platform defaults

Interfaces

getTerminologyMap(organizationId)
updateTerminologyMap(organizationId, overrides)
resetToDefaults(organizationId)
resetCategory(organizationId, category)
getDefaultLabels()
resolveLabel(organizationId, key)
getBootstrapPayload(organizationId)
validateTerminologyKeys(overrides)
getCategories()
getLabelsByCategory(category)

Relationships

Dependencies (1)

Components this component depends on

Dependents (1)

Components that depend on this component