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

Checks date of prior entitlement to disability, using passed values.

C++
static void priorentCheck(
    const DateMoyr& priorentDatet, 
    const boost::gregorian::date& onsetDatet, 
    const DateMoyr& entDatet, 
    ben_type ioasdit
);
Parameters 
Description 
const DateMoyr& priorentDatet 
The date of prior entitlement. 
const boost::gregorian::date& onsetDatet 
The date of current disability onset. 
const DateMoyr& entDatet 
The date of current entitlement. 
ben_type ioasdit 
The type of benefit. 
Exceptions 
Description 
PiaException of type PIA_IDS_PRRENT1 if month of prior entitlement is out of range; of type PIA_IDS_PRRENT2 if year of prior entitlement is before 1940; of type PIA_IDS_PRRENT3 if year of prior entitlement is after maximum allowed; of type PIA_IDS_PRRENT4 if prior entitlement is not before current entitlement in an old-age case (prior entitlement should equal current entitlement in a disability case, and there is no date of entitlement for the worker in a survivor case); of type PIA_IDS_PRRENT5 if prior entitlement to disability is before disability onset. 
Copyright (c) 2010. All rights reserved.
What do you think about this topic? Send feedback!