Resolve a Coverage B category description¶
Resolves the human-readable category description for a Coverage B task, caching the code-table lookup at the collection level to avoid a per-row read.
| Field | Value |
|---|---|
| Operation ID | OP-14 |
| Trigger | CategoryDescr / GetCategoryDescr access |
| Inputs | Category code |
| Outputs | Description string |
| Primary components | clsCoverageBTask.CategoryDescr, clsCoverageBTaskCollection.GetCategoryDescr |
| Entry point | SAIF.Business.Tasks.Claim/clsCoverageBTask.vb, SAIF.Business.Tasks.Claim/clsCoverageBTaskCollection.vb |
Steps¶
- If the task is a child of a collection, delegate to
Parent.GetCategoryDescr(CategoryCode), which lazily loads and caches oneclsTaskCategoryCodeCollectionfor sourceCOVB— one code-table read per collection rather than per row. - If the task is standalone, load the category collection directly and return the matching description.
Process flow¶
flowchart TD
Start([CategoryDescr accessed]) --> Check{Task is child of collection?}
Check -->|Yes| Cached[Parent.GetCategoryDescr<br>lazy-cached lookup]
Check -->|No| Direct["Load category collection<br>directly"]
Cached --> EndOk([Description returned])
Direct --> EndOk
Failure and edge-case behavior¶
- Standalone tasks pay the cost of a fresh code-table load per call; collection-owned tasks share one cached load.*
Related documentation¶
Sources¶
- SAIF.Business.Tasks.Claim/clsCoverageBTask.vb
- SAIF.Business.Tasks.Claim/clsCoverageBTaskCollection.vb