DG53260P ;BP-CIOFO/MM -2000 MEANS TEST THRESHOLDS ;11/4/99
;;5.3;Registration;**260**;Aug 13, 1993
;
; This routine will upload the 2000 means test thresholds onto your system.
;
EN ; enter values distributed by Roscoe Butler. VHA Directive soon to be released.
N DA,DIE,DIC,DINUM,DR,I,X,Y
D BMES^XPDUTL(">>>Means Test Thesholds for 2000 being installed...")
I $D(^DG(43,1,"MT",3000000)) D Q
. D BMES^XPDUTL(" ...Thresholds already exist for 2000...nothing done.")
;
K DO
S DIC="^DG(43,1,""MT"","
S DIC(0)="L"
S DA(1)=1
S (DINUM,X)=3000000
D FILE^DICN
S DA=+Y
;
I +Y'=3000000 D Q
. D BMES^XPDUTL(" ...Problem encountered adding 2000 thresholds. Please try")
. D MES^XPDUTL(" again or contact the CIO Field Office for assistance.")
;
D MES^XPDUTL("")
S DIE=DIC,DR=""
F I=1:1 S X=$P($T(DATA+I),";;",2) Q:X="QUIT" D ; build dr string
. S DR=DR_+X_"////"_$P(X,"^",2)_";"
. D MES^XPDUTL(" "_$P(X,"^",3)_" set to $"_$FN($P(X,"^",2),","))
D ^DIE
Q
;
;
DATA ; lines to stuff in values (field////value)
;;2^22887^CAT A VET INCOME
;;3^4581^CAT A FIRST DEPENDENT INCOME
;;4^1532^CAT A INCOME PER DEPENDENT
;;8^50000^THRESHOLD PROPERTY
;;17^7200^CHILD INCOME EXCLUSION
;;QUIT
Q
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HDG53260P 1274 printed Dec 13, 2024@02:36:53 Page 2
DG53260P ;BP-CIOFO/MM -2000 MEANS TEST THRESHOLDS ;11/4/99
+1 ;;5.3;Registration;**260**;Aug 13, 1993
+2 ;
+3 ; This routine will upload the 2000 means test thresholds onto your system.
+4 ;
EN ; enter values distributed by Roscoe Butler. VHA Directive soon to be released.
+1 NEW DA,DIE,DIC,DINUM,DR,I,X,Y
+2 DO BMES^XPDUTL(">>>Means Test Thesholds for 2000 being installed...")
+3 IF $DATA(^DG(43,1,"MT",3000000))
Begin DoDot:1
+4 DO BMES^XPDUTL(" ...Thresholds already exist for 2000...nothing done.")
End DoDot:1
QUIT
+5 ;
+6 KILL DO
+7 SET DIC="^DG(43,1,""MT"","
+8 SET DIC(0)="L"
+9 SET DA(1)=1
+10 SET (DINUM,X)=3000000
+11 DO FILE^DICN
+12 SET DA=+Y
+13 ;
+14 IF +Y'=3000000
Begin DoDot:1
+15 DO BMES^XPDUTL(" ...Problem encountered adding 2000 thresholds. Please try")
+16 DO MES^XPDUTL(" again or contact the CIO Field Office for assistance.")
End DoDot:1
QUIT
+17 ;
+18 DO MES^XPDUTL("")
+19 SET DIE=DIC
SET DR=""
+20 ; build dr string
FOR I=1:1
SET X=$PIECE($TEXT(DATA+I),";;",2)
if X="QUIT"
QUIT
Begin DoDot:1
+21 SET DR=DR_+X_"////"_$PIECE(X,"^",2)_";"
+22 DO MES^XPDUTL(" "_$PIECE(X,"^",3)_" set to $"_$FNUMBER($PIECE(X,"^",2),","))
End DoDot:1
+23 DO ^DIE
+24 QUIT
+25 ;
+26 ;
DATA ; lines to stuff in values (field////value)
+1 ;;2^22887^CAT A VET INCOME
+2 ;;3^4581^CAT A FIRST DEPENDENT INCOME
+3 ;;4^1532^CAT A INCOME PER DEPENDENT
+4 ;;8^50000^THRESHOLD PROPERTY
+5 ;;17^7200^CHILD INCOME EXCLUSION
+6 ;;QUIT
+7 QUIT