Collapse All

Anypia Programmer's Documentation |  |

PiaCal::insCal Method (WorkerDataGeneral&, PiaData&, WorkerDataGeneral::ben_type, QtrYear&, int)
PiaCal Class PiaCal Members insCal Method Send Feedback

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

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.

Returns

The insured status code for one date.

Remarks

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:

0 | never a primary beneficiary.
1 | is a primary beneficiary.
2 | is a deceased primary beneficiary.

Group

insCal Method

Links
PiaCal Class, PiaCal Members, insCal Method

Copyright (c) 2010. All rights reserved.
Contents | Index | Home
What do you think about this topic? Send feedback!