Anypia Programmer's Documentation
ContentsIndexHome
PreviousUpNext
WorkerDataGeneral::disCheck Method (boost::gregorian::date&, boost::gregorian::date&, int, boost::gregorian::date&, ben_type, DateMoyr&, DateMoyr&)

Checks date of disability onset, using passed values.

C++
static void disCheck(
    const boost::gregorian::date& onsetDatet, 
    const boost::gregorian::date& deathDatet, 
    int valdit, 
    const boost::gregorian::date& birthDatet, 
    ben_type ioasdi, 
    const DateMoyr& entDatet, 
    const DateMoyr& benDatet
);
Parameters 
Description 
const boost::gregorian::date& onsetDatet 
The date of onset. 
const boost::gregorian::date& deathDatet 
The date of death. 
int valdit 
Number of periods of disability. 
const boost::gregorian::date& birthDatet 
The date of birth. 
ben_type ioasdi 
Type of benefit. 
const DateMoyr& entDatet 
The date of entitlement. 
const DateMoyr& benDatet 
The date of benefit. 
Exceptions 
Description 
PiaException of type PIA_IDS_ONSET5 if disability is before birth; of type PIA_IDS_ONSET6 if disability is after entitlement in a life case or after benefit date in a survivor case; of type PIA_IDS_ONSET7 if death of worker is before onset in a survivor case. 
Copyright (c) 2010. All rights reserved.
What do you think about this topic? Send feedback!