---
title: Resolve a code description
summary: Operation details for Resolve a code description.
status: draft
owner: Technical Writer
last_reviewed: 2026-07-31
library: SAIF.Business.Policy.Affiliate
reference_type: package
operation_id: OP-012
trigger: A caller reads an affiliate title, insured-code, or exemption-reason description property.
---

# Resolve a code description

This operation documents how `clsInterestedParty`, `clsInterestedPartyCollection`, or `clsCorporateOfficerExemption` code-description members` fulfills the policy-affiliate behavior described for `SAIF.Business.Policy.Affiliate`.

| Field | Value |
| --- | --- |
| **Operation ID** | OP-012 |
| **Trigger** | A caller reads an affiliate title, insured-code, or exemption-reason description property. |
| **Inputs** | Portal context plus stored code value on the current object |
| **Outputs** | Description string from the framework code collection |
| **Primary components** | `clsInterestedParty`, `clsInterestedPartyCollection`, or `clsCorporateOfficerExemption` code-description members |
| **Entry point** | `Business\SAIF.Business.Policy.Affiliate\clsInterestedParty.vb` |

## Steps

1. When the cached code collection is empty, request it from the framework for the relevant code table: [AFFILIATE_TITLE_CODE](../database-tables.md#affiliate_title_code), [INSURED_CODE](../database-tables.md#insured_code), or [EXEMPT_REASON_CODE](../database-tables.md#exempt_reason_code) ([BR-AFF-016](../business-rules.md#br-aff-016-code-descriptions-come-from-framework-code-collections)).
2. Cache the returned code collection on the current object or collection for reuse by later lookups.
3. Index the collection by the stored code and return the description text for that code.

## Process flow
The following diagram shows the cache-then-lookup pattern used to resolve a code description.

```mermaid
flowchart TD
  Start(["Caller reads a description property"]) --> CacheCheck{"Cached code collection<br>already loaded?"}
  CacheCheck -->|No| Request["Request framework code table:<br>AFFILIATE_TITLE_CODE, INSURED_CODE, or EXEMPT_REASON_CODE"]
  Request --> Cache["Cache returned code collection<br>for reuse by later lookups"]
  CacheCheck -->|Yes| Cache
  Cache --> Index["Index collection by stored code"]
  Index --> Result(["Return description text for that code"])
```

## Failure and edge-case behavior

- The SQL text for these code-table reads lives in the framework package rather than in this library.

## Related documentation
- [Operations and processes](../operations-processes.md)
- [Business rules](../business-rules.md)
- [SQL catalog](../sql/index.md)
- [Database tables](../database-tables.md)

## Sources
- `Business\SAIF.Business.Policy.Affiliate\clsInterestedParty.vb`
