---
title: TaskExtensions
summary: Maps task priority and source codes to display-friendly values used across task lists.
status: draft
owner: SAIF Doc Gen
last_reviewed: 2026-09-24
library: SAIF.SAIFCode.Core
reference_type: package
operation_id: OP-CORE-05
trigger: Task list mapping
---

# TaskExtensions

`TaskExtensions` is a static extension-method class that centralizes the task priority and source code sets so every task list screen maps the same codes to the same display values.

| Field | Value |
| --- | --- |
| **Operation ID** | OP-CORE-05 |
| **Trigger** | Task list mapping/display |
| **Inputs** | Task priority code, task source code |
| **Outputs** | Display value for the code |
| **Primary components** | `TaskExtensions` |
| **Entry point** | `Core/SAIF.Core/Contracts/Tasks/Extensions/TaskExtensions.cs` |

## Steps

1. An extension method maps a task priority code — URG, INFO, MED, LOW, or HIGH — to its display value ([CORE-BR-040](../business-rules.md#core-br-040-task-priority-codes-are-urg-info-med-low-high-source-codes-are-claim-coll-covb-image-wcis-rtw)).
2. A second extension method maps a task source code — CLAIM, COLL, COVB, IMAGE, WCIS, or RTW — to its display value ([CORE-BR-040](../business-rules.md#core-br-040-task-priority-codes-are-urg-info-med-low-high-source-codes-are-claim-coll-covb-image-wcis-rtw)).
3. The mapped display value is returned to the caller for rendering in a task list.

## Process flow

The following diagram visualizes this operation's control flow.

```mermaid
flowchart TD
	Start([Task priority or source code]) --> Map["Map code to<br>display value"]
	Map --> EndOk([Display value returned])
```

## Failure and edge-case behavior
- An unrecognized code's mapping behavior is not verified in this contract*.

## Related documentation
- [Operations and processes](../operations-processes.md)
- [Business rules](../business-rules.md)

> **Note:** Statements marked with `*` were inferred from code structure, naming
> conventions, or contextual evidence where direct confirmation was not available
> in source artifacts.

## Sources
- Core/SAIF.Core/Contracts/Tasks/Extensions/TaskExtensions.cs
