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