PPD award calculation¶
Calculates permanent partial disability (PPD) degree-award amounts for both scheduled and unscheduled body-part injuries, producing an auditable step-by-step calculation trail for the unscheduled case.
| Field | Value |
|---|---|
| Operation ID | ppd-award-calc |
| Trigger | Caller invokes clsPPDScheduledDegreeAwards.GetAwardAmount(effectiveDate) or clsPPDUnscheduledDegreeAwards.GetAwardAmount(degrees, effectiveDate) |
| Inputs | Degrees (unscheduled only), effective date |
| Outputs | Calculated award amount; CalcProof audit trail (unscheduled only) |
| Primary components | clsPPDScheduledDegreeAwards.GetAwardAmount, clsPPDUnscheduledDegreeAwards.GetAwardAmount |
| Entry point | SAIF.Business.Claim/clsPPDUnscheduledDegreeAwards.vb |
Steps¶
clsPPDScheduledDegreeAwards.GetAwardAmount(effectiveDate):- Retrieve the scheduled degree-award table (SQL-027, CL_PPD_SCHED_DEGREE_AWARD).
- Return the latest effective-dated flat award amount.
clsPPDUnscheduledDegreeAwards.GetAwardAmount(degrees, effectiveDate):- Retrieve the unscheduled degree-award bands (SQL-028, CL_PPD_UNSCHED_DEGREE_AWARD).
- Select the latest effective-dated degree-award table.
- Walk the banded degree ranges, accumulating the award amount for each band.
- Append a
ProofItemper step toCalcProof(CalcStep, DegreesRemaining, RangeHigh, RangeAmount, DegreesInRange, AmountForDegrees, TotalSoFar) to produce an auditable calculation trail. - Return the accumulated total award amount.
Process flow¶
The following diagram visualizes this operation's control flow.
flowchart TD
Start([GetAwardAmount called]) --> Retrieve[Retrieve degree-award table]
Retrieve --> Latest["Select latest<br>effective-dated table"]
Latest --> Scheduled{Scheduled or unscheduled?}
Scheduled -->|Scheduled| Flat([Return flat award amount])
Scheduled -->|Unscheduled| Walk[Walk banded degree ranges]
Walk --> Accumulate[Accumulate amount per band<br>append ProofItem to CalcProof]
Accumulate --> Total(["Return total award amount +<br>CalcProof"])
Failure and edge-case behavior¶
- No business rules are enforced on the calculation inputs in this library; the calculation reads reference tables and performs arithmetic.
- The auditable
CalcProoftrail is produced only by the unscheduled degree-award calculation, not the scheduled flat-amount calculation.
Related documentation¶
Sources¶
- SAIF.Business.Claim/clsPPDScheduledDegreeAwards.vb
- SAIF.Business.Claim/clsPPDUnscheduledDegreeAwards.vb