﻿---
title: clsEAIPMessages
summary: API reference for clsEAIPMessages.
status: draft
owner: <owner>
last_reviewed: 2026-07-24
library: SAIF.Business.Imaging
reference_type: package
---

# clsEAIPMessages

`clsEAIPMessages` is a helper class (nested within `clsEAIP.vb`) that contains the `SQLGetEAIPSpecialist` SQL constant and the `GetEAIPSpecialist` method that executes it. It enforces [BR-IMG-01](../../business-rules.md#br-img-01-eaip-specialist-selection-by-activenew-period-status).

## Purpose
- Provides the EAIP specialist lookup query for a claim: returns the `eaip_user` from `EAIP_PERIOD` for status 'A' or 'N' rows, ordered by effective date.

## Context
- Namespace: `SAIF.Business.Imaging`
- Assembly/package: `SAIF.BOF.Business.Imaging`

## Public members

| Member | Signature | Purpose |
| --- | --- | --- |
| `ErrCodeBuildEAIPeriodDropDown` | `Public Const ErrCodeBuildEAIPeriodDropDown As String = "Error encountered when building the EAIP Period drop down list"` | Error message prefix for exceptions raised in `BuildEAIPPeriodDropDown`. |
| `ErrCodeGetEAIPSpecialist` | `Public Const ErrCodeGetEAIPSpecialist As String = "Error encountered when looking for the assigned EAIP Specialist"` | Error message prefix for exceptions raised in `GetEAIPSpecialist`. |
| `ErrCodeHasEAIPRecord` | `Public Const ErrCodeHasEAIPRecord As String = "Error encountered when checking for EAIP records"` | Error message prefix for exceptions raised when checking for EAIP records. |
| `SQLGetEAIPSpecialist` | `Public Const SQLGetEAIPSpecialist As String = "select eaip_user from eaip_period where claim_id = :inClaimID and (eaip_status_code = 'A' OR eaip_status_code = 'N') order by eaip_period_eff_date"` | SQL string for the EAIP specialist lookup query. |

## Behavioral notes
- `GetEAIPSpecialist` executes [SQL-015](../../sql/SQL-015-saif-business-imaging.md) with `:inClaimID`.
- Enforces [BR-IMG-01: EAIP specialist selection by active/new period status](../../business-rules.md#br-img-01-eaip-specialist-selection-by-activenew-period-status): only rows with `eaip_status_code = 'A'` or `'N'` are returned.
- If no qualifying rows are returned, the caller falls back to `clsMessages.EAIP_MAILID`*.

## Constraints and usage notes
- This class is defined in `clsEAIP.vb`; both `clsEAIP` and `clsEAIPMessages` reside in the same source file.

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

## Sources
- `Business\SAIF.Business.Imaging\clsEAIP.vb`
