Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: EASECED3

EASECED3.m

Go to the documentation of this file.
  1. EASECED3 ;ALB/LBD - INCOME SCREENING DATA (CON'T) ;21 AUG 2001
  1. ;;1.0;ENROLLMENT APPLICATION SYSTEM;**5**;Mar 15, 2001
  1. ;NOTE: This routine has been modified from DGRPEIS3 for LTC Co-pay
  1. ;
  1. HELP ; Display information when veteran's DOB is past the income year
  1. ;
  1. W !!,"Please return to screen 8 and check the veteran's effective date."
  1. W !,"The effective date was created based on the veteran's date of birth."
  1. W !,"You might also want to check the date of birth for this veteran."
  1. W ! S DIR(0)="E" D ^DIR K DIR W !
  1. Q
  1. ;
  1. WRT ; Write age statement
  1. Q:'$G(DGMTI)
  1. W !!,"This dependent is 18 years or older. To list this person as a dependent"
  1. W !,"they have to be:"
  1. W !," 1. An UNMARRIED child who is under the age of 18."
  1. W !," 2. Between the ages of 18 and 23 and attending school."
  1. W !," 3. An unmarried child over the age of 17 who became permanently"
  1. W !," incapable of self support before the age of 18."
  1. Q
  1. ;
  1. EDIT ;CALLED FROM ROUTINE DGRPEIS
  1. S DGEDDEP=1
  1. S DGFL=$G(DGFL)
  1. S DATE=$S($G(DATE):DATE,1:DT)
  1. S X=$P(DGPREF,"^",2)
  1. S DGTYPE=$G(DGTYPE),DGTYPE=$S(DGTYPE']"":"S",DGTYPE="C":"C",DGTYPE="D":"D",1:"S")
  1. S DIE="^"_$P(X,";",2),DA=+X,DR=".01;.02;.03;.09;S UPARROW=1" K DG,DQ D ^DIE I $D(DTOUT)!$D(DUOUT)!'$D(UPARROW) S DGFL=$S($D(DTOUT):-2,1:-1) G EDITQ
  1. S DOB=$P($G(@(DIE_DA_",0)")),"^",3)
  1. I DGTYPE'="S" K UPARROW S DIE="^DGPR(408.12,",DA=+DGPREF,DR=".02;S UPARROW=1" K DG,DQ D ^DIE I $D(DTOUT)!$D(DUOUT)!'$D(UPARROW) S DGFL=$S($D(DTOUT):-2,1:-1)
  1. S RELATION=$P($G(^DGPR(408.12,+DGPREF,0)),"^",2)
  1. S DGX=$O(^DGPR(408.12,+DGPREF,"E","AID","")),DGMIEN=$O(^(+DGX,0))
  1. EDACTDT I $G(^DGPR(408.12,+DGPREF,"E",+DGMIEN,0)) D G:$G(DGFL)<0 EDITQ
  1. .S (DGACT,Y)=+^DGPR(408.12,+DGPREF,"E",+DGMIEN,0) X ^DD("DD")
  1. .S DIR("B")=Y
  1. .D READ^EASECED2
  1. .I -DGACT'=DGX W !,"Use 'Expand Dependent' option to change effective date." H 2 S DGFL=-1 Q
  1. .Q:$G(DGFL)<0
  1. .S DIE="^DGPR(408.12,"_+DGPREF_",""E"",",DA(1)=+DGPREF,DA=DGMIEN,DR=".01///"_DGACT
  1. .D ^DIE
  1. I DGTYPE="S" S X=+DGPREF D SETUP^EASECED1
  1. K DGACT,DGMIEN,RELATION,DA,DIE,DR,UPARROW,DTOUT,DUOUT,DIRUT
  1. EDITQ K DA,DIE,DIRUT,DR,DTOUT,DUOUT
  1. Q
  1. ;
  1. HELP1(DGISDT) ; Displays the help for the active/inactive prompt
  1. ;
  1. D CLEAR^VALM1
  1. W !,"Enter the date this person first became a dependent of the veteran."
  1. W !,"In the case of a spouse, this would be the date of marriage. For"
  1. W !,"a parent or other dependent, this would be the date the dependent"
  1. W !,"moved in. For a child, this would be the date of birth or date of"
  1. W !,"adoption."
  1. W !," "
  1. W !,"Date must be before DEC 31, "_DGISDT_" as dependents are collected for the"
  1. W !,"prior calendar year only."
  1. S VALMBCK="R"
  1. Q