source: FOIAVistA/trunk/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGRPCE.m@ 1154

Last change on this file since 1154 was 628, checked in by George Lilly, 15 years ago

initial load of FOIAVistA 6/30/08 version

File size: 5.5 KB
Line 
1DGRPCE ;ALB/MRL,KV,PJR,BRM,ERC - CONSISTENCY CHECKER, EDIT INCONSISTENCIES ; 12/14/04 9:42am
2 ;;5.3;Registration;**121,122,175,297,342,451,626,689,653**;Aug 13, 1993;Build 2
3 ;
4 ;KV;11/15/00;DG*5.3*297;Disable addition of CD Elig Code in Reg. Screens
5 ; ;Adding CD Elig Codes in Load/Edit Screen used to
6 ; ;cause undefined line tag error.
7 ;
8 S DGVTYN=$P($G(^DPT(DFN,"VET")),"^",1),DGDR="DR",(DR,DGD,DGDRC,DGCCF)="",DGASK=",",DGER=","_DGER D ^DGRPCE1
9 S DGEK=0 F I=9,10,11,12,13,14,18,19,20,22,24,36,51 Q:DGEK I DGER[(","_I_",") S DGEK=1 Q
10 I 'DGKEY(1) D:DGEK ELDR S I=15 D SASK S I=23 D SASK
11 F I=29,30,31,32,33,43,44,45,48,56 D SASK,MON:DGCCF S DGCCF=0
12 G NKEY:DGKEY(3) F I=25,26,27,28,34,35 D SASK
13 I DGASK'[26 F I=41,42 I DGASK'[41 D SASK
14 I DGASK'[27 S I=60 I DGASK'[25 D SASK
15 I DGASK'[34 F I=37,38 I DGASK'[37 D SASK
16 I DGASK'[35 F I=39,40 I DGASK'[39 D SASK
17NKEY D ^DGRPCE1
18 I $S(DGER[49:1,(DGER[50):1,(DGER[52):1,1:0) D
19 .I $G(DGPRFLG) D PREG^IBCNBME(DFN) Q
20 .D REG^IBCNBME(DFN)
21 .Q
22 D Q S DIE="^DPT(",(DA,Y)=DFN D ^DIE:$D(DR)
23 I DGER[54 D GETREL^DGMTU11(DFN,"SD",$$LYR^DGMTSCU1(DT)) D
24 . I $D(DGREL("S")),($$SSN^DGMTU1(+DGREL("S"))']"") D ASKSSN(DGREL("S"))
25 . F DGDEP=0:0 S DGDEP=$O(DGREL("D",DGDEP)) Q:'DGDEP I $$SSN^DGMTU1(+DGREL("D",DGDEP))']"" D ASKSSN(DGREL("D",DGDEP))
26 ;
27 I DGER[59 D CATDIB
28 I DGER["82" D EN2^DGRP6CL
29 ;
30 K DGREL,DGDEP
31KVAR K DR,DGEDCN,DGCT,DGER,DGINC55,DGRPADI,DGRPOUT,DGVTYN
32Q K %,C,DA,DGASK,DGCCF,DGCT1,DGCT2,DGCT3,DGD,DGD1,DGD2,DGDR,DGDRC,DGECODE,DGEDIT,DGEK,DGKEY,DGP,DGRPADI,DGRPE,DIC,DIE,DIK,I,I1,J,X,X1,X2
33 K DGCOMLOC,DGCOMBR,FRDT,DGFRDT
34 D KVAR^VADPT
35 Q
36SASK I DGER[(","_I_","),DGASK'[(","_I_",") S DGD=$P($T(@I),";;",2,999),DGASK=DGASK_I_",",DGCCF=1 D SAVE
37 Q
38SAVE I $L(@DGDR)+$L(DGD)<241 S @DGDR=@DGDR_DGD,DGD="" Q
39 S DGDRC=DGDRC+1,DGDR="DR(1,2,"_DGDRC_")",@DGDR=DGD,DGD="" Q
40ELDR S DGASK=DGASK_"9,10,11,12,13,14,18,19,20,24,29,30,31,34,36,37,38,"
41 I 'DGKEY(1) S DGD="391;1901;S DGVTYN=$S($D(^DPT(DFN,""VET"")):$P(^(""VET""),""^"",1),1:"""");S:X'=""Y"" Y=""@1"";.301;S:X'=""Y"" Y=""@1"";.302;@1;" D SAVE
42 I 'DGKEY(2) F I=29,30,31 S DGD=$P($T(@I),";;",2,999) D SAVE
43 D:DGD]"" SAVE I 'DGKEY(3) S DGD=$P($T(34),";;",2,999) D SAVE S DGD=$P($T(51),";;",2,999) D SAVE
44 I 'DGKEY(1) D ELIG^DGRPCE1
45 Q
46MON I $S(I<40:1,I=56:1,1:0) D SAVE Q
47 I $S(I<46:1,1:0),DGASK'[(","_(I-14)_",") D SAVE Q
48 I DGASK'[(","_(I-15)_",") D SAVE
49 Q
50 ;
5115 ;;.152;S:X']"" Y="@15";S DIE("NO^")="";.307;I X']"" W !!,*7,"But I need a reason why this applicant is ineligible!" S Y=.152;@15;K DIE("NO^");
5223 ;;.3611;S:X'="V" Y="@23";.3612;S DIE("NO^")="";I X']"" W !!,*7,"But I need to know the date eligibility was verifed!";@23;K DIE("NO^");
5325 ;;.323;.32102;S:X'="Y" Y="@25";.32107;.3211;.32109;.3213;@25;
5426 ;;
5527 ;;
5628 ;;
5729 ;;.36205;S:X'="Y" Y="@29";I DGVTYN'="Y" W !,"Patient not a veteran-can't claim A&A" S Y=.36205;.36295;@29;
5830 ;;.36215;S:X'="Y" Y="@30";I DGVTYN'="Y" W !,"Patient not a veteran-can't claim HOUSEBOUND" S Y=.36215;.36295;@30;
5931 ;;.36235;S:X'="Y" Y="@31";I DGVTYN'="Y" W !,"Patient not a veteran-can't claim VA PENSION" S Y=.36235;.36295;@31;
6032 ;;.36255;S:X'="Y" Y="@32";I DGVTYN'="Y" W !,"Patient not a veteran-can't claim MIL. RET." S Y=.36255;.3625;@32;
6133 ;;
6234 ;;.525;S:X'="Y" Y="@34";I DGVTYN'="Y" W !,"Patient not a veteran-can't claim POW STATUS" S Y=.525;.526:.528;@34;
6335 ;;
6437 ;;.525;S:X'="Y" Y="@37";.526:.528;@37;
6538 ;;.525;S:X'="Y" Y="@38";.526:.528;@38;
6639 ;;.5291;S:X'="Y" Y="@39";.5292:.5294;@39;
6740 ;;.5291;S:X'="Y" Y="@40";.5292:.5294;@40;
6841 ;;.32101;S:X'="Y" Y="@41";.32104;.32105;@41;
6942 ;;.32101;S:X'="Y" Y="@42";.32104;.32105;@42;
7043 ;;
7144 ;;
7245 ;;
7346 ;;
7447 ;;
7548 ;;.36265;S:X'="Y" Y="@48";.3626;@48;
7651 ;;I DGVTYN'="Y" S Y="@51";.324:.328;@51;
7756 ;;.3025;S:X'="Y" Y="@56";.36295;@56;
7860 ;;.32102;S:X'="Y" Y="@60";.32107;.3211;.32109;.3213;@60;
79 ;
80 ; NOTE: #46 & 47 REMOVED WITH PIMS5.3
81 ;
82ASKSSN(DEP) ;edit ssns if missing
83 ;
84 ; input: DEP as string for dependent (from GETREL)
85 ;
86 W !,$$NAME^DGMTU1(+DEP)
87 S DA=+$P(DEP,"^",2),DIE="^DGPR(408.13,",DR=.09 D ^DIE
88PS ;
89 S DA=+$P(DEP,"^",2),DIE="^DGPR(408.13,",DR=.09 D ^DIE
90 I $$GET1^DIQ(408.13,DA_",",.09)["P" D
91 . S DR=.1,DA=$P(DA,";") D ^DIE
92 . I X']"" W !,"If SSN is a Pseudo SSN, the Pseudo SSN Reason field is required." G PS
93 K DA,DR,DIE
94 Q
95 ;
96CATDIB ;
97 ;Could be inconsistent because there is the catastrophic disability
98 ;code without supporting information, or visa versa
99 ;
100 N DGCDIS,CODE,INFO
101 S (INFO,CODE)=0
102 I $$GET^DGENCDA(DFN,.DGCDIS),DGCDIS("DATE") S INFO=1
103 S CODE=$$HASCAT^DGENCDA(DFN)
104 I CODE D Q
105 .W !!,">>> Catastrophically Disabled eligibilty requires additional information <<<"
106 .D EDITCD^DGENCD(DFN)
107 I INFO D
108 . ;KV;11/15/00;DG*5.3*297;Start of modifications
109 . W !!,"The patient record indicates that a determination was made "
110 . W "that the patient",!,"is catastrophically disabled."
111 . W !!,"To add Catastrophic Disability Eligibility Code(s), please use "
112 . W "the menu option",!,"DGEN PATIENT ENROLLMENT.",!!
113 .I $$ASKDEL() D
114 .. I $$DELETE^DGENCDA1(DFN) D
115 ...W !,">>> Determination Deleted <<<"
116 ..;
117 ..;could fail if lock could not be obtained
118 ..E W !,"Catastrophic disability determination can not be deleted at this time.",!,"Please try again later."
119 ;KV;11/15/00;DG*5.3*297;End of modifications
120 Q
121 ;
122ASKDEL() ;
123 ;ask whether to delete catastrphic disability determination
124 N DIR
125 S DIR(0)="Y"
126 ;KV;11/15/00;DG*5.3*297;Cosmetic change for DIR("A")
127 S DIR("A")="Do you want to delete the determination showing that patient is catastrophically disabled"
128 S DIR("B")="YES"
129 D ^DIR
130 Q:$D(DIRUT) 0
131 Q $S(Y=1:1,1:0)
Note: See TracBrowser for help on using the repository browser.