Data Layer medium complexity backend
0
Dependencies
1
Dependents
3
Entities
0
Integrations

Description

Data access layer managing organization-specific threshold configurations including tier boundaries, honorarium rates, and reporting periods. Handles versioning of threshold rules so that historical queries return the configuration active at the time of each assignment.

Feature: Assignment Threshold Tracking

threshold-config-store

Responsibilities

  • CRUD operations for threshold configurations per organization
  • Maintain version history of threshold rule changes
  • Provide active thresholds for a given organization and period
  • Store and retrieve honorarium rate mappings per tier

Interfaces

getActiveConfig(organizationId)
getConfigAtDate(organizationId, date)
createConfig(organizationId, thresholds)
updateConfig(configId, thresholds)
listConfigVersions(organizationId)
getTierRates(organizationId)

Relationships

Dependents (1)

Components that depend on this component