clsWorkerInjuredBodyPartCollection¶
clsWorkerInjuredBodyPartCollection retrieves all injured body parts for a claim and enforces, at the collection level, that exactly one body part is marked primary.
Purpose¶
- Retrieves all injured body-part rows for a claim (SQL-036).
- Enforces primary-body-part rules across the collection (BR-006, BR-007).
Context¶
- Namespace:
SAIF.Business.Claim - Assembly/package:
SAIF.Business.Claim.dll
Public members¶
| Member | Signature | Purpose |
|---|---|---|
PrimaryValid |
Public Function PrimaryValid() As Boolean |
Enforces BR-006; only evaluated when Validate is True. |
OnlyOnePrimary |
Public Function OnlyOnePrimary() As Boolean |
Enforces BR-007; always evaluated regardless of Validate. |
Validate |
Public Property Validate As Boolean |
Gates whether PrimaryValid is evaluated; OnlyOnePrimary is deliberately not gated by this flag. |
Behavioral notes¶
OnlyOnePrimaryis deliberately evaluated regardless of theValidateflag, unlikePrimaryValid.
Constraints and usage notes¶
- Set
Validateaccording to whether the caller requires a primary body part to be present; the only-one-primary constraint applies unconditionally.
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.
Related documentation¶
- Library index
- API reference index
- Overview
- Architecture
- Dependencies
- Operations and processes
- Business rules
- Database tables
- SQL catalog
Sources¶
- SAIF.Business.Claim/clsWorkerInjuredBodyPartCollection.vb