Service Layer medium complexity backend
0
Dependencies
0
Dependents
2
Entities
0
Integrations

Description

Backend service that maintains per-mentor, per-regional-center assignment tallies and evaluates them against the configured honorarium thresholds. Emits tier changes when a mentor crosses the 3rd or 15th assignment boundary within the current period.

Feature: Assignment Threshold Tracking

assignment-counter-service

Sources & reasoning

Source §3.1 documents Blindeforbundet's per-RK assignment counting with honorarium tiers at 3 and 15. It belongs in the Encrypted Data Assignments area as a sibling to dispatch. No phase is stated explicitly, so per resolution rule 3 use the second non-mobilization phase 'Core Product', which also matches its dependency on encrypted dispatch (Fase 2).

Responsibilities

  • Increment assignment counters when assignments are completed
  • Scope counts per mentor, regional center (RK), and reporting period
  • Evaluate counts against the 3rd and 15th honorarium thresholds
  • Expose current count and tier status for the status widget
  • Emit threshold-crossing events for compensation processing

Interfaces

incrementCount(mentorId, regionCenterId, assignmentId): ThresholdCount
getCount(mentorId, regionCenterId, period): ThresholdCount
getTier(mentorId, regionCenterId, period): CompensationTier
resetPeriod(regionCenterId, period): void

Related Data Entities (2)

Data entities managed by this component