Skip to content

mdlReserveServices

mdlReserveServices is a Module that caches reserve-services code-table lookups in module-level Static variables for the lifetime of the hosting process, reloading only when an explicit Refresh argument is supplied (see Code-table caching).

Purpose

  • Provides cached accessor functions over clsVocationalServiceTypes and the medical/vocational reserve service-type code tables, avoiding repeated database round-trips within a process.

Context

  • Namespace: SAIF.Business.Claim.ReserveServices
  • Assembly/package: SAIF.Business.Claim.dll

Public members

Member Signature Purpose
GetVocationalServiceTypes Public Function GetVocationalServiceTypes(Optional refresh As Boolean = False) As DataTable Returns the cached vocational service-type table, reloading via SQL-035 only when refresh is True or the cache is empty.*

Behavioral notes

  • The Static cache has no expiry and no synchronization, making it process-lifetime and not thread-safe.*

Constraints and usage notes

  • Pass refresh:=True only when the underlying code table is known to have changed; otherwise the cached value is returned.

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/mdlReserveServices.vb