Skip to content

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

  • OnlyOnePrimary is deliberately evaluated regardless of the Validate flag, unlike PrimaryValid.

Constraints and usage notes

  • Set Validate according 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.

Sources

  • SAIF.Business.Claim/clsWorkerInjuredBodyPartCollection.vb