EASEZP6F ;ALB/AMA,LBD - Print 1010EZ, Version 6 or greater ; 9/19/12 11:42am
;;1.0;ENROLLMENT APPLICATION SYSTEM;**51,60,57,107**;Mar 15, 2001;Build 32
;
; These routines print a version of the OMB approved VA10-10EZ form.
; No local modifications to these routines will be made. Any changes
; will be provided through the National Patch Module release process.
;
; This routine was copied from EASEZPF; if the version # of the 1010EZ
; application is 6.0 or greater, then this routine will be executed.
;
EN ; Entry point to print 1010EZ, Version 6 or greater
N EALNE,EAINFO,EAABRT,EAADL,ERR,EAMULT
;
D SETUP(.EALNE,.EAINFO,EASAPP,EASDFN)
;
D PAGE1^EASEZP6U
D PAGE1^EASEZPU3
D EN^EASEZP61(.EALNE,.EAINFO)
;
D PAGE2^EASEZPU2
D EN^EASEZP62(.EALNE,.EAINFO)
;
D EN^EASEZP63(.EALNE,.EAINFO)
D EN^EASEZP64(.EALNE,.EAINFO) ;EAS*1.0*60
;
;Print additional insurance pages if more than 1 insurance company
F EAADL=1:1 D Q:$G(EAABRT)
. I '$D(^TMP("EZTEMP",$J,"IA",EAADL)) S EAABRT=1 Q
. S EAMULT=1
. D PAGEI^EASEZPU3(EAADL)
I $G(EAMULT) D EN^EASEZP6I(.EALNE,.EAINFO)
;
;Print additional dependent pages if more than 1 dependent
S (EAABRT,EAMULT)=0 F EAADL=1:1 D Q:$G(EAABRT)
. I '$D(^TMP("EZTEMP",$J,"IIB",EAADL)) S EAABRT=1 Q
. S EAMULT=1
. D PAGEN^EASEZPU3(EAADL)
I EAMULT D EN^EASEZP6D(.EALNE,.EAINFO)
;
;Print additional dependent financial pages if more
;than 1 dependent, starting with the 2nd one
;(since Child 1 info already displayed on pages 2 & 3)
S (EAABRT,EAMULT)=0 F EAADL=2:1 D Q:$G(EAABRT)
. I '$D(^TMP("EZTEMP",$J,"IIF",EAADL)) S EAABRT=1 Q
. S EAMULT=1
. D PAGEDFF^EASEZPU2(EAADL)
S EAABRT=0 F EAADL=2:1 D Q:$G(EAABRT)
. I '$D(^TMP("EZTEMP",$J,"IIG",EAADL)) S EAABRT=1 Q
. S EAMULT=1
. D PAGEDFG^EASEZPU2(EAADL)
I EAMULT D EN^EASEZP6M(.EALNE,.EAINFO)
;
ENQUIT ; Clean up temp globals after printing is complete
K ^TMP("EASEZ",$J)
K ^TMP("EZDATA",$J)
K ^TMP("EZINDEX",$J)
K ^TMP("EZTEMP",$J)
K ^TMP("EZDISP",$J)
Q
;
SETUP(EALNE,EAINFO,EASAPP,EASDFN) ; Set-up print variables
; Input
; EALNE - Line format array
; EAINFO - Misc Data
; ("CLRK") - Clerk's initials
; ("ID") - Web ID from #712
; ("PGE") - Page number
; ("VET" ) - Veteran's name submitting the application
; ("SSN") - Veteran's SSN
; ("DISC") - Financial Disclosure status
; EASAPP - IEN of applicant on the 1010EZ HOLDING File, #712
; EASDFN - DFN of applicant in the PATIENT File, #2
;
N X
;
; Build Line array for printout
S EALNE("ULC")=$S('($D(IOST)#2):"-",IOST["C-":"-",1:"_")
S EALNE("D")="",EALNE("DD")="",EALNE("UL")=""
S $P(EALNE("D"),"-",133)="",$P(EALNE("DD"),"=",133)="",$P(EALNE("UL"),EALNE("ULC"),133)=""
;
; Set up information array & get clerk's initials
S ZUSR=$G(ZUSR)
I +ZUSR>0 D
. S EAINFO("CLRK")=$$GET1^DIQ(200,ZUSR,1)
. I EAINFO("CLRK")']"" D
. . S X=$$GET1^DIQ(200,ZUSR,.01)
. . S EAINFO("CLRK")=$E($P(X,",",2),1)_$E($P(X,","),1)
E D
. S EAINFO("CLRK")="unk"
;
; Set data elements
S EAINFO("PGE")=0
S EAINFO("ID")=$$GET1^DIQ(712,EASAPP_",",.1)
S EAINFO("PD")=$$FMTE^XLFDT($$NOW^XLFDT)
S EAINFO("DISC")=$$GET1^DIQ(712,EASAPP_",",3.8)
S EAINFO("EASAPP")=EASAPP
S EAINFO("VET")=$$GET1^DIQ(712,EASAPP_",",1)
S EAINFO("SSN")=$$GET1^DIQ(712,EASAPP_",",2)
;
; Retrieve application data from holding file, #712
D EN^EASEZC1(EASAPP)
D SORT^EASEZC3(EASAPP)
SETQ Q
;
HDRMAIN(EALNE) ; PRINT THE FIRST PAGE HEADER INFORMATION
W @IOF
W ?106,"OMB APPROVED NO. 2900-0091"
W !?103,"Estimated Burden Avg. 45 min."
; Remove expiration date (EAS*1*107)
; W !?107,"Expiration Date 6/30/2007",!,EALNE("DD")
W !,"D E P A R T M E N T O F V E T E R A N S A F F A I R S",?80,"APPLICATION FOR HEALTH BENEFITS",!,EALNE("DD")
Q
;
HDR(EALNE,EAINFO) ; PRINT THE PAGE HEADER INFO FOR PAGES GREATER THAN 1
W @IOF
W "APPLICATION FOR HEALTH BENEFITS, Continued",?55,"| VETERAN'S NAME (Last, First, Middle)",?106,"| SOCIAL SECURITY NUMBER"
W !?55,"| ",EAINFO("VET"),?106,"| ",EAINFO("SSN")
W ?131,$C(13) W:EALNE("ULC")="-" ! W EALNE("UL")
Q
;
FT(EALNE,EAINFO) ; PRINT THE PAGE FOOTER INFORMATION
W !,EALNE("DD")
; Change form date to 2011 (EAS*1*107)
W !,"VA FORM 10-10EZ FEB 2011",?40,"PRINTED: ",EAINFO("PD")
W ?80,"Clerk: ",EAINFO("CLRK"),"/",EAINFO("ID")
W ?120,"PAGE " S EAINFO("PGE")=EAINFO("PGE")+1 W EAINFO("PGE")
Q
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HEASEZP6F 4492 printed Dec 13, 2024@01:54:44 Page 2
EASEZP6F ;ALB/AMA,LBD - Print 1010EZ, Version 6 or greater ; 9/19/12 11:42am
+1 ;;1.0;ENROLLMENT APPLICATION SYSTEM;**51,60,57,107**;Mar 15, 2001;Build 32
+2 ;
+3 ; These routines print a version of the OMB approved VA10-10EZ form.
+4 ; No local modifications to these routines will be made. Any changes
+5 ; will be provided through the National Patch Module release process.
+6 ;
+7 ; This routine was copied from EASEZPF; if the version # of the 1010EZ
+8 ; application is 6.0 or greater, then this routine will be executed.
+9 ;
EN ; Entry point to print 1010EZ, Version 6 or greater
+1 NEW EALNE,EAINFO,EAABRT,EAADL,ERR,EAMULT
+2 ;
+3 DO SETUP(.EALNE,.EAINFO,EASAPP,EASDFN)
+4 ;
+5 DO PAGE1^EASEZP6U
+6 DO PAGE1^EASEZPU3
+7 DO EN^EASEZP61(.EALNE,.EAINFO)
+8 ;
+9 DO PAGE2^EASEZPU2
+10 DO EN^EASEZP62(.EALNE,.EAINFO)
+11 ;
+12 DO EN^EASEZP63(.EALNE,.EAINFO)
+13 ;EAS*1.0*60
DO EN^EASEZP64(.EALNE,.EAINFO)
+14 ;
+15 ;Print additional insurance pages if more than 1 insurance company
+16 FOR EAADL=1:1
Begin DoDot:1
+17 IF '$DATA(^TMP("EZTEMP",$JOB,"IA",EAADL))
SET EAABRT=1
QUIT
+18 SET EAMULT=1
+19 DO PAGEI^EASEZPU3(EAADL)
End DoDot:1
if $GET(EAABRT)
QUIT
+20 IF $GET(EAMULT)
DO EN^EASEZP6I(.EALNE,.EAINFO)
+21 ;
+22 ;Print additional dependent pages if more than 1 dependent
+23 SET (EAABRT,EAMULT)=0
FOR EAADL=1:1
Begin DoDot:1
+24 IF '$DATA(^TMP("EZTEMP",$JOB,"IIB",EAADL))
SET EAABRT=1
QUIT
+25 SET EAMULT=1
+26 DO PAGEN^EASEZPU3(EAADL)
End DoDot:1
if $GET(EAABRT)
QUIT
+27 IF EAMULT
DO EN^EASEZP6D(.EALNE,.EAINFO)
+28 ;
+29 ;Print additional dependent financial pages if more
+30 ;than 1 dependent, starting with the 2nd one
+31 ;(since Child 1 info already displayed on pages 2 & 3)
+32 SET (EAABRT,EAMULT)=0
FOR EAADL=2:1
Begin DoDot:1
+33 IF '$DATA(^TMP("EZTEMP",$JOB,"IIF",EAADL))
SET EAABRT=1
QUIT
+34 SET EAMULT=1
+35 DO PAGEDFF^EASEZPU2(EAADL)
End DoDot:1
if $GET(EAABRT)
QUIT
+36 SET EAABRT=0
FOR EAADL=2:1
Begin DoDot:1
+37 IF '$DATA(^TMP("EZTEMP",$JOB,"IIG",EAADL))
SET EAABRT=1
QUIT
+38 SET EAMULT=1
+39 DO PAGEDFG^EASEZPU2(EAADL)
End DoDot:1
if $GET(EAABRT)
QUIT
+40 IF EAMULT
DO EN^EASEZP6M(.EALNE,.EAINFO)
+41 ;
ENQUIT ; Clean up temp globals after printing is complete
+1 KILL ^TMP("EASEZ",$JOB)
+2 KILL ^TMP("EZDATA",$JOB)
+3 KILL ^TMP("EZINDEX",$JOB)
+4 KILL ^TMP("EZTEMP",$JOB)
+5 KILL ^TMP("EZDISP",$JOB)
+6 QUIT
+7 ;
SETUP(EALNE,EAINFO,EASAPP,EASDFN) ; Set-up print variables
+1 ; Input
+2 ; EALNE - Line format array
+3 ; EAINFO - Misc Data
+4 ; ("CLRK") - Clerk's initials
+5 ; ("ID") - Web ID from #712
+6 ; ("PGE") - Page number
+7 ; ("VET" ) - Veteran's name submitting the application
+8 ; ("SSN") - Veteran's SSN
+9 ; ("DISC") - Financial Disclosure status
+10 ; EASAPP - IEN of applicant on the 1010EZ HOLDING File, #712
+11 ; EASDFN - DFN of applicant in the PATIENT File, #2
+12 ;
+13 NEW X
+14 ;
+15 ; Build Line array for printout
+16 SET EALNE("ULC")=$SELECT('($DATA(IOST)#2):"-",IOST["C-":"-",1:"_")
+17 SET EALNE("D")=""
SET EALNE("DD")=""
SET EALNE("UL")=""
+18 SET $PIECE(EALNE("D"),"-",133)=""
SET $PIECE(EALNE("DD"),"=",133)=""
SET $PIECE(EALNE("UL"),EALNE("ULC"),133)=""
+19 ;
+20 ; Set up information array & get clerk's initials
+21 SET ZUSR=$GET(ZUSR)
+22 IF +ZUSR>0
Begin DoDot:1
+23 SET EAINFO("CLRK")=$$GET1^DIQ(200,ZUSR,1)
+24 IF EAINFO("CLRK")']""
Begin DoDot:2
+25 SET X=$$GET1^DIQ(200,ZUSR,.01)
+26 SET EAINFO("CLRK")=$EXTRACT($PIECE(X,",",2),1)_$EXTRACT($PIECE(X,","),1)
End DoDot:2
End DoDot:1
+27 IF '$TEST
Begin DoDot:1
+28 SET EAINFO("CLRK")="unk"
End DoDot:1
+29 ;
+30 ; Set data elements
+31 SET EAINFO("PGE")=0
+32 SET EAINFO("ID")=$$GET1^DIQ(712,EASAPP_",",.1)
+33 SET EAINFO("PD")=$$FMTE^XLFDT($$NOW^XLFDT)
+34 SET EAINFO("DISC")=$$GET1^DIQ(712,EASAPP_",",3.8)
+35 SET EAINFO("EASAPP")=EASAPP
+36 SET EAINFO("VET")=$$GET1^DIQ(712,EASAPP_",",1)
+37 SET EAINFO("SSN")=$$GET1^DIQ(712,EASAPP_",",2)
+38 ;
+39 ; Retrieve application data from holding file, #712
+40 DO EN^EASEZC1(EASAPP)
+41 DO SORT^EASEZC3(EASAPP)
SETQ QUIT
+1 ;
HDRMAIN(EALNE) ; PRINT THE FIRST PAGE HEADER INFORMATION
+1 WRITE @IOF
+2 WRITE ?106,"OMB APPROVED NO. 2900-0091"
+3 WRITE !?103,"Estimated Burden Avg. 45 min."
+4 ; Remove expiration date (EAS*1*107)
+5 ; W !?107,"Expiration Date 6/30/2007",!,EALNE("DD")
+6 WRITE !,"D E P A R T M E N T O F V E T E R A N S A F F A I R S",?80,"APPLICATION FOR HEALTH BENEFITS",!,EALNE("DD")
+7 QUIT
+8 ;
HDR(EALNE,EAINFO) ; PRINT THE PAGE HEADER INFO FOR PAGES GREATER THAN 1
+1 WRITE @IOF
+2 WRITE "APPLICATION FOR HEALTH BENEFITS, Continued",?55,"| VETERAN'S NAME (Last, First, Middle)",?106,"| SOCIAL SECURITY NUMBER"
+3 WRITE !?55,"| ",EAINFO("VET"),?106,"| ",EAINFO("SSN")
+4 WRITE ?131,$CHAR(13)
if EALNE("ULC")="-"
WRITE !
WRITE EALNE("UL")
+5 QUIT
+6 ;
FT(EALNE,EAINFO) ; PRINT THE PAGE FOOTER INFORMATION
+1 WRITE !,EALNE("DD")
+2 ; Change form date to 2011 (EAS*1*107)
+3 WRITE !,"VA FORM 10-10EZ FEB 2011",?40,"PRINTED: ",EAINFO("PD")
+4 WRITE ?80,"Clerk: ",EAINFO("CLRK"),"/",EAINFO("ID")
+5 WRITE ?120,"PAGE "
SET EAINFO("PGE")=EAINFO("PGE")+1
WRITE EAINFO("PGE")
+6 QUIT