Anypia Programmer's Documentation
ContentsIndexHome
PreviousUpNext
PiaCal::insCal Method (WorkerDataGeneral&, PiaData&, WorkerDataGeneral::ben_type, QtrYear&, int)

Calculates the insured status code for one date.

C++
static InsCode::InsCodeType insCal(
    const WorkerDataGeneral& workerData, 
    PiaData& piaData, 
    WorkerDataGeneral::ben_type ioasdi, 
    const QtrYear& qtrYear, 
    int isWasPrimary
);
Parameters 
Description 
const WorkerDataGeneral& workerData 
Worker's basic data. 
PiaData& piaData 
Benefit calculation data. 
WorkerDataGeneral::ben_type ioasdi 
Type of benefit. 
const QtrYear& qtrYear 
The date for which insured status code is required.  
int isWasPrimary 
Worker's primary beneficiary status. 

The insured status code for one date.

Requires adjusted date of birth, quarters of coverage filled in from 1937 to date, total quarters of coverage for 1937 to 1950, dates of disability onset and cessation. 

The isWasPrimary argument has the following possible values:

never a primary beneficiary. 
is a primary beneficiary. 
is a deceased primary beneficiary. 
Copyright (c) 2010. All rights reserved.
What do you think about this topic? Send feedback!