Skip to content

PolicyStatusEnums

PolicyStatusEnums is where the meaning of a policy status code lives. It publishes the raw codes as constants — "0" for active, "5" for cancelled, the P-prefixed application codes, the PMS codes — and the conversions in both directions between those codes and the enumerations. Consumers compare enumerated statuses rather than string literals, and the mapping is defined once here.

Purpose

  • Publishes the stored policy status and status-group codes as named constants.
  • Converts between stored codes and their enumerated forms in both directions.
  • Keeps status interpretation out of consuming code, which is what makes the status shown on a policy header consistent (BR-014).

Context

  • Namespace: SAIF.Business.View.Policy
  • Assembly/package: SAIF.BOF.Business.View.Policy
  • Declared in: Business/SAIF.Business.View.Policy/Enums.vb

Public members

Member Signature Purpose
ACTIVE Public Const ACTIVE As String = "0" The stored code for a policy whose coverage is in force.
FINALIZED Public Const FINALIZED As String = "F" The stored code for a finalised policy term.
APPLICATION Public Const APPLICATION As String = "P0" The stored code for a received application.
QUOTED Public Const QUOTED As String = "P2" The stored code for a quoted policy.
PENDING_CANCELLATION Public Const PENDING_CANCELLATION As String = "3" The stored code for a policy whose cancellation has been initiated.
PENDING_APPLICATION Public Const PENDING_APPLICATION As String = "P1" The stored code for an application awaiting a decision.
REJECTED_APPLICATION Public Const REJECTED_APPLICATION As String = "P9" The stored code for a declined application.
CANCELLED Public Const CANCELLED As String = "5" The stored code for a cancelled policy.
PMS_PROSPECT Public Const PMS_PROSPECT As String = "PP" The stored code for a prospect held in the prospect management system.
PMS_ACTIVE Public Const PMS_ACTIVE As String = "PA" The stored code for an active prospect management system record.
PMS_CLOSED Public Const PMS_CLOSED As String = "PC" The stored code for a closed prospect management system record.
APPLICATION_GROUP Public Const APPLICATION_GROUP As String = "APP" The stored group code covering the application statuses.
ACTIVE_GROUP Public Const ACTIVE_GROUP As String = "ACTIVE" The stored group code covering the in-force statuses.
PENDING_CANCEL_GROUP Public Const PENDING_CANCEL_GROUP As String = "PENDCA" The stored group code covering the pending-cancellation statuses.
CANCEL_GROUP Public Const CANCEL_GROUP As String = "CANCEL" The stored group code covering the cancelled statuses.
ConvertPolicyStatus Public Function ConvertPolicyStatus(ByVal inStatus As Statuses) As String Converts a policy status to the code stored in the database.
ConvertPolicyStatus Public Function ConvertPolicyStatus(ByVal inStatus As String) As Statuses Converts a policy status to the code stored in the database.
ConvertPolicyStatusGroup Public Function ConvertPolicyStatusGroup(ByVal inStatusGroup As StatusGroups) As String Converts a status group to the code stored in the database.
ConvertPolicyStatusGroup Public Function ConvertPolicyStatusGroup(ByVal inStatusGroupCode As String) As StatusGroups Converts a status group to the code stored in the database.

Note: Statements marked with † are derived from dependency library documentation via the Legends CLI. Statements marked with * were inferred from code structure or contextual evidence. Statements marked with ** could not be confirmed; treat as unknown until verified.

Sources

  • Business/SAIF.Business.View.Policy/Enums.vb