---
title: TaskExtensions
summary: API reference for TaskExtensions.
status: draft
owner: SAIF Doc Gen
last_reviewed: 2026-09-24
library: SAIF.SAIFCode.Core
reference_type: package
---

# TaskExtensions

`TaskExtensions` is a static extension-method class that maps task priority and source codes to display-friendly values, centralizing the priority (URG/INFO/MED/LOW/HIGH) and source (CLAIM/COLL/COVB/IMAGE/WCIS/RTW) code sets used across task lists.

## Purpose
- Maps task priority codes URG, INFO, MED, LOW and HIGH to display values, enforcing [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).
- Maps task source codes CLAIM, COLL, COVB, IMAGE, WCIS and RTW to display values, enforcing [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).

## Context
- Namespace: `SAIF.Core.Contracts.Tasks`
- Kind: Class
- Assembly/package: `SAIF.Core` (NuGet package `SAIF.SAIFCode.Core`)

## Public members
| Member | Signature | Purpose |
| --- | --- | --- |
| `GetPriorityCode` | `string GetPriorityCode(this TaskPriorities priority)` | Returns priority code, given `priority`*. |
| `GetSourceCode` | `string GetSourceCode(this TaskSources source)` | Returns source code, given `source`*. |

> **Note:** Statements marked with `*` were inferred from code structure, naming
> conventions, or contextual evidence where direct confirmation was not available
> in source artifacts. Statements marked with `**` could not be confirmed; treat
> as unknown until verified.

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