Description: Returns the extended policy detail block: group and plan descriptions, gap indicator, combination flags, governing class, and continuous-coverage date. Values that must not be shown for a reduced-form period are masked here rather than in .NET.
Description: Returns the legal name to display for a wrap-up policy by walking the wrap-up relationship and then the rate-account chain, keeping the last name it can resolve.
Description: Returns the parent policy number for an affiliated policy. The lookup performed depends on the affiliation classification returned by getpolicyaffiliatetype.
Description: Returns the periods during which the policy had no coverage in force, derived from adjacent period boundaries and unioned with explicitly recorded gaps.
Description: Returns the address and contact for a policy that best matches the requested address and contact types, with an optional fallback from the claim address to the mailing address.
Description: Returns all policy periods, or only the most recent N, with risk, plan, and premium values masked while a reduced-form period's information page remains unprinted.
Description: Returns the member and parent policies of one affiliation family, selected from the caller's affiliate type prefix, with an optional totals row.
Description: Returns SAIF staff assigned to a policy together with office, customer-service-team, agency, and producer rows presented in the same shape.
Sales-plan name is masked for reduced-form (RF) policy periods
ppa.psc = 'RF'
Returns an empty string for sales_plan_name; non-RF periods resolve retro plans to a retro-payment-type description and all others to plan_code.code_descr
A policy is flagged as a combination-wrap sub-account only when a sibling policy in the same experience-rating combination carries policy_relationship_code = 'WRAP'
Correlated subquery on er_combination_policy and POLICY
Affiliation family precedence after the manual check is wrap-up/leasing, then sub-account/state-agency, then experience combination, then premium-discount combination
Sequential SELECT ... INTO blocks, each caught by WHEN NO_DATA_FOUND to fall through
Returns the first matching classification; the default is NONAFFILIATED
The parent policy number is derived from the affiliate type rather than stored directly
Result of getpolicyaffiliatetype
Selects policy_relationship.parent_policy_num, POLICY.policy_relationship_policy_num, POLICY.rate_account, or the minimum-premium member's combo_policy_period.policy_num according to the classification
The affiliated-policy list and its optional totals row are keyed to a relationship-code family selected from the caller's affiliate-type prefix
UPPER(in_affiliate_type) matching AFFIL%, LEAS%, WRAP%, SUBAC%, STATE%, COMB%, or PREM%
Maps the prefix to an internal relationship code that drives which query branch executes; the totals row is included only when UPPER(in_include_affil_totals) = 'TRUE'
Note: The full WCIS_DBA.pk72846_view_policy package body (159,943 characters of PL/SQL across 34 procedures/functions) is too large to reproduce in this document. Only the declarations of the methods this library actually calls are shown below. The complete package body is available from the Oracle data dictionary (DBA_SOURCE/ALL_SOURCE) for WCIS_DBA.pk72846_view_policy.
PL/SQL declarations of the called methods
-- Retrieved from the Oracle data dictionary for WCIS_DBA.pk72846_view_policyPROCEDUREgetviewdetail(apolicynumINNUMBER,recordsetINOUTviewpolicydetail_cursor)FUNCTIONgetwrapuplegalname(in_policy_numINNUMBER)RETURNVARCHAR2FUNCTIONgetparentpolicy(in_policy_numINNUMBER,in_is_policyholder_userINVARCHAR2)RETURNNUMBERFUNCTIONgetpolicyaffiliatetype(in_policy_numINNUMBER,in_is_policyholder_userINVARCHAR2)RETURNVARCHAR2PROCEDUREgetgaps(apolicynumINNUMBER,recordsetINOUTgap_cursor)PROCEDUREgetagency(apolicynumINNUMBER,recordsetINOUTagency_cursor)PROCEDUREgetpolicyaddress(inpolicynumINNUMBER,inaddresstypeINVARCHAR2,incontacttypeINVARCHAR2,ingetmailaddrwhennotfoundINVARCHAR2,recordsetINOUTref_cursor)PROCEDUREgetpolicyaddressbylocseqnum(inlocationseqnumINNUMBER,recordsetINOUTref_cursor)PROCEDUREgetpolicyperiods(apolicynumINNUMBER,atopnpolperINNUMBER,recordsetINOUTref_cursor)PROCEDUREgetpolicyaffiliatelist(in_policy_numINNUMBER,in_affiliate_typeINVARCHAR2,in_include_affil_totalsINVARCHAR2,recordsetOUTref_cursor)RETURNNUMBERPROCEDUREteam_assign_query(apolicynumINNUMBER,recordsetINOUTteam_assign_cursor)
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.