Terminology Repository
Component Detail
Data Layer
low complexity
backend
0
Dependencies
1
Dependents
0
Entities
0
Integrations
Description
Data access layer managing the terminology_overrides table in PostgreSQL. Provides scoped queries per organization and supports bulk fetch for full term map resolution. Enforces the org-scoped tenancy boundary so overrides from one organization are never visible to another.
terminology-repository
Responsibilities
- Query all overrides for a given organization ID
- Insert or update a single terminology override record
- Delete a specific override by org and term key
- Support bulk upsert for import scenarios
- Enforce organization-level data isolation
Interfaces
findByOrg(orgId: string): TerminologyOverride[]
findOne(orgId: string, termKey: string): TerminologyOverride | null
upsert(record: TerminologyOverride): TerminologyOverride
delete(orgId: string, termKey: string): void
bulkUpsert(orgId: string, overrides: TerminologyOverride[]): void