DG53454P ;ALB/CKN - Post Install for DG*5.3*454; 16 AUG 2002
;;5.3;Registration;**454,1015**; Aug 13,1993;Build 21
;
POST ; Entry point for post init
;
D GMT,EGT
Q
GMT ;
; Update MEANS TEST STATUS file (#408.32)
D MES^XPDUTL("*** Updating MEANS TEST STATUS file(#408.32)***")
N DIC,DA,DIE,X,Y,FILE,DATA,ADD,DGENDA
S FILE="^DG(408.32,"
; Add entry #16
D MES^XPDUTL(" - Adding entry #16")
S DIC=FILE,DIC(0)="N",X=16 D ^DIC
I Y'<0 D
. S DIK=FILE,DA=16 D ^DIK K DA,DIK
S DATA(.001)=16
S DATA(.01)="GMT COPAY REQUIRED"
S DATA(.019)=1,DATA(.02)="G",DATA(.03)="D"
S ADD=$$ADD^DGENDBS(408.32,,.DATA,16)
I 'ADD D MES^XPDUTL(" Error: Entry #16 not added") Q
K WP
S WP(1)="This status is assigned by the system or the user."
S WP(2)="If a veteran's income is below the annual threshold for this category,"
S WP(3)="the means test is assigned this status and subsequent category of care."
S WP(4)="This is determined when the user completes the means test for a veteran."
S WP(5)="This status can also be assigned by the user when adjudicating a means test."
D WP^DIE(408.32,"16,",50,,"WP","ERR")
K DATA
S DATA(.01)=3020101,DATA(.02)=1,DGENDA(1)=16
S ADD=$$ADD^DGENDBS(408.3275,.DGENDA,.DATA)
Q
;
EGT ;Update Enrollment Group Thresholds file (# 27.16)
D MES^XPDUTL("Updating Enrollment Group Threshold file (#27.16)")
N EGTIEN,DGENFDA,ERR,DIE
; if EGT entry already exists, delete it before setting new one
S EGTIEN=$$FINDCUR^DGENEGT()
I EGTIEN I $$DELETE^DGENEGT(EGTIEN)
S DGENFDA(27.16,"+1,",.01)=$$DT^XLFDT()
S DGENFDA(27.16,"+1,",.02)=8
S DGENFDA(27.16,"+1,",.03)=3
S DGENFDA(27.16,"+1,",.04)=1
S DGENFDA(27.16,"+1,",.06)=$$DT^XLFDT
S DGENFDA(27.16,"+1,",25)="EGT set to 8c by patch DG*5.3*454"
D UPDATE^DIE("","DGENFDA","","ERR")
I $D(ERR) D MES^XPDUTL(" Could not set EGT entry in file #27.16")
Q
DG53454P ;ALB/CKN - Post Install for DG*5.3*454; 16 AUG 2002
+1 ;;5.3;Registration;**454,1015**; Aug 13,1993;Build 21
+2 ;
POST ; Entry point for post init
+1 ;
+2 DO GMT
DO EGT
+3 QUIT
GMT ;
+1 ; Update MEANS TEST STATUS file (#408.32)
+2 DO MES^XPDUTL("*** Updating MEANS TEST STATUS file(#408.32)***")
+3 NEW DIC,DA,DIE,X,Y,FILE,DATA,ADD,DGENDA
+4 SET FILE="^DG(408.32,"
+5 ; Add entry #16
+6 DO MES^XPDUTL(" - Adding entry #16")
+7 SET DIC=FILE
SET DIC(0)="N"
SET X=16
DO ^DIC
+8 IF Y'<0
Begin DoDot:1
+9 SET DIK=FILE
SET DA=16
DO ^DIK
KILL DA,DIK
End DoDot:1
+10 SET DATA(.001)=16
+11 SET DATA(.01)="GMT COPAY REQUIRED"
+12 SET DATA(.019)=1
SET DATA(.02)="G"
SET DATA(.03)="D"
+13 SET ADD=$$ADD^DGENDBS(408.32,,.DATA,16)
+14 IF 'ADD
DO MES^XPDUTL(" Error: Entry #16 not added")
QUIT
+15 KILL WP
+16 SET WP(1)="This status is assigned by the system or the user."
+17 SET WP(2)="If a veteran's income is below the annual threshold for this category,"
+18 SET WP(3)="the means test is assigned this status and subsequent category of care."
+19 SET WP(4)="This is determined when the user completes the means test for a veteran."
+20 SET WP(5)="This status can also be assigned by the user when adjudicating a means test."
+21 DO WP^DIE(408.32,"16,",50,,"WP","ERR")
+22 KILL DATA
+23 SET DATA(.01)=3020101
SET DATA(.02)=1
SET DGENDA(1)=16
+24 SET ADD=$$ADD^DGENDBS(408.3275,.DGENDA,.DATA)
+25 QUIT
+26 ;
EGT ;Update Enrollment Group Thresholds file (# 27.16)
+1 DO MES^XPDUTL("Updating Enrollment Group Threshold file (#27.16)")
+2 NEW EGTIEN,DGENFDA,ERR,DIE
+3 ; if EGT entry already exists, delete it before setting new one
+4 SET EGTIEN=$$FINDCUR^DGENEGT()
+5 IF EGTIEN
IF $$DELETE^DGENEGT(EGTIEN)
+6 SET DGENFDA(27.16,"+1,",.01)=$$DT^XLFDT()
+7 SET DGENFDA(27.16,"+1,",.02)=8
+8 SET DGENFDA(27.16,"+1,",.03)=3
+9 SET DGENFDA(27.16,"+1,",.04)=1
+10 SET DGENFDA(27.16,"+1,",.06)=$$DT^XLFDT
+11 SET DGENFDA(27.16,"+1,",25)="EGT set to 8c by patch DG*5.3*454"
+12 DO UPDATE^DIE("","DGENFDA","","ERR")
+13 IF $DATA(ERR)
DO MES^XPDUTL(" Could not set EGT entry in file #27.16")
+14 QUIT