SQL-083: Retrieve policy period¶
Retrieve policy period in the context of clsPolicyPeriod.
Classification¶
| Field | Value |
|---|---|
| SQL ID | SQL-083 |
| Operation type | Read |
| Execution method | CommandType.StoredProcedure |
| Database | Oracle |
| Schema | [unqualified]** |
| Command type | Text |
| Business object | clsPolicyPeriod |
| Criteria property | RetrieveSQL |
| Lifecycle method | BeforeRetrieve / AfterRetrieve |
Parameters¶
This statement has no bind parameters.
Tables¶
This statement executes as a stored procedure call and does not expose table references in repository source.**
Sample SQL¶
> **Composed at runtime.** This property builds its statement conditionally. The block
> below shows every literal fragment in source order, so mutually exclusive branches
> appear consecutively - no single execution emits all of them. See the *Dynamic SQL*
> note in *Scope and evidence notes* for the branch conditions.
-- Stored-procedure invocation; no standalone SQL text in source.
WHERE
POLICY_PERIOD.POLICY_NUM = :PolicyNumber
AND POLICY_PERIOD.POLICY_PERIOD_EFF_DATE <= :AsOfDate
AND POLICY_PERIOD.POLICY_PERIOD_EXP_DATE > :AsOfDate
AND NVL(POLICY_PERIOD.CANCEL_DATE,POLICY_PERIOD_EXP_DATE) <> POLICY_PERIOD.POLICY_PERIOD_EFF_DATE
AND POLICY_PERIOD.POLICY_PERIOD_EFF_DATE = :PolicyPeriodEffDate
Operations and processes¶
- Build a unified policy period timeline
- Configure dynamic period retrieval SQL
- Determine standard premium for a period
- Determine whether a period is issued
- Determine whether coverage is bound
Business rules¶
- BR-010: A policy's period history is the union of
- BR-013: Standard premium is sourced from WCIS for WCIS
- BR-014: A modern policy period is considered issued when
- BR-016: Coverage-bound status is sourced from WCIS for modern
- BR-031: A policy period is flat-cancelled when its effective
- BR-032: Preliminary audit is required when the WCIS edit
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¶
Business\SAIF.Business.Policy.Core\clsPolicyPeriod.vb