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

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

initial load of FOIAVistA 6/30/08 version

File size: 5.2 KB
Line 
1DGMTU23 ;ALB/CAW/LD,LBD - Display means test information 12/20/01
2 ;;5.3;Registration;**33,182,254,272,420,435,456,624**;Aug 13, 1993
3 ;
4 ;
5DISPLAY(DGMTI,DGMTYPT) ;Display means test data
6 ; Input: DGMTI - IEN of MT
7 ; DGMTYPT - Type of Test
8 ; Output: None
9 N DGFCOL,DGSCOL,DGMTDIS,DGMTDI2,DGMTWP,WP,X,X1,Y,Y1,Z,DGSOURCE
10 S (DGMTWP,WP)=0,DGFCOL=24,DGSCOL=65
11 S DGMTDIS=^DGMT(408.31,DGMTI,0) I $D(^("C")) F S DGMTWP=$O(^DGMT(408.31,DGMTI,"C",DGMTWP)) Q:'DGMTWP S DGMTDIS(DGMTWP)=^(DGMTWP,0)
12 S X="",X=$$SETSTR^VALM1("Patient:",X,15,8)
13 S X=$$SETSTR^VALM1($P(^DPT($P(DGMTDIS,U,2),0),U),X,DGFCOL,25)
14 S X=$$SETSTR^VALM1("Date of Test:",X,51,13)
15 S X=$$SETSTR^VALM1($$FTIME^DGMTUTL($P(DGMTDIS,U)),X,DGSCOL,15)
16 W !!,X
17 S X="",X=$$SETSTR^VALM1("Total Dependents:",X,6,17)
18 S X=$$SETSTR^VALM1($P(DGMTDIS,U,18),X,DGFCOL,25)
19 S X=$$SETSTR^VALM1("Type Of Test:",X,51,13)
20 S X=$$SETSTR^VALM1($P($G(^DG(408.33,+$P(DGMTDIS,U,19),0)),U),X,DGSCOL,15)
21 W !,X
22 S X="",X=$$SETSTR^VALM1("Status:",X,16,7)
23 S X=$$SETSTR^VALM1($P(^DG(408.32,$P(DGMTDIS,U,3),0),U),X,DGFCOL,25)
24 S X=$$SETSTR^VALM1("Date/Time Completed:",X,44,20)
25 S X=$$SETSTR^VALM1($S($P(DGMTDIS,U,7)'="":$$FTIME^DGMTUTL($P(DGMTDIS,U,7)),1:""),X,DGSCOL,15)
26 W !,X
27 S X="",X=$$SETSTR^VALM1("Primary Test For Year:",X,1,22)
28 S X1=$G(^DGMT(408.31,DGMTI,"PRIM")),X=$$SETSTR^VALM1($S(X1=1:"YES",X1=0:"NO",1:"UNKNOWN"),X,DGFCOL,25)
29 S X=$$SETSTR^VALM1("Source Of Test:",X,49,15)
30 S DGSOURCE=$$SR^DGMTAUD1(DGMTDIS)
31 I DGSOURCE="OTHER FACILITY" S DGSOURCE=$P($G(^DGMT(408.31,DGMTI,2)),"^",5)
32 S X=$$SETSTR^VALM1(DGSOURCE,X,DGSCOL,15)
33 W !,X
34 S X="",X=$$SETSTR^VALM1("Income:",X,16,7)
35 S X=$$SETSTR^VALM1($S($P(DGMTDIS,U,4)'="":"$"_$P(DGMTDIS,U,4),1:""),X,DGFCOL,25)
36 S X=$$SETSTR^VALM1("Completed By:",X,51,13)
37 S X=$$SETSTR^VALM1($P($G(^VA(200,+$P(DGMTDIS,U,6),0)),U),X,DGSCOL,15)
38 W !,X
39 S X=""
40 I DGMTYPT=1 D
41 .S X=$$SETSTR^VALM1("Net Worth:",X,13,10)
42 .S X=$$SETSTR^VALM1($S($P(DGMTDIS,U,5)'="":"$"_$P(DGMTDIS,U,5),1:""),X,DGFCOL,25)
43 .S X=$$SETSTR^VALM1("Date/Time Category Changed:",X,37,28)
44 .S X=$$SETSTR^VALM1($S($P(DGMTDIS,U,9)'="":$$FTIME^DGMTUTL($P(DGMTDIS,U,9)),1:""),X,DGSCOL,15)
45 .W !,X
46 S X=""
47 S X=$$SETSTR^VALM1("Deductible Expenses:",X,3,20)
48 S X=$$SETSTR^VALM1($S($P(DGMTDIS,U,15)'="":$$AMT^DGMTSCU1($P(DGMTDIS,U,15)),1:""),X,DGFCOL,25)
49 I DGMTYPT=1 D
50 .S X=$$SETSTR^VALM1("Category Changed By:",X,44,25)
51 .S X=$$SETSTR^VALM1($P($G(^VA(200,+$P(DGMTDIS,U,8),0)),U),X,DGSCOL,15)
52 W !,X
53 S X=""
54 I DGMTYPT=1 D
55 .S X=$$SETSTR^VALM1("Agreed to Pay Deduct.:",X,1,22)
56 .S X=$$SETSTR^VALM1($S($P(DGMTDIS,U,11)=1:"YES",$P(DGMTDIS,U,11)=0:"NO",1:""),X,DGFCOL,25)
57 .S X=$$SETSTR^VALM1("Adjudicated Date/Time:",X,42,28)
58 .S X=$$SETSTR^VALM1($S($P(DGMTDIS,U,10)'="":$$FTIME^DGMTUTL($P(DGMTDIS,U,10)),1:""),X,DGSCOL,15)
59 .W !,X
60 S X=""
61 S X=$$SETSTR^VALM1("Declines Income Info:",X,2,21)
62 S X=$$SETSTR^VALM1($S($P(DGMTDIS,U,14)=1:"YES",$P(DGMTDIS,U,14)=0:"NO",1:""),X,DGFCOL,25)
63 S Y=$S(DGMTYPT=1:"No Longer Required Date:",1:"No Longer Applicable Date:"),Z=$S(DGMTYPT=1:40,1:38)
64 S X=$$SETSTR^VALM1(Y,X,Z,28)
65 S X=$$SETSTR^VALM1($S($P(DGMTDIS,U,17)'="":$$FTIME^DGMTUTL($P(DGMTDIS,U,17)),1:""),X,DGSCOL,15)
66 W !,X
67 S (X,Y)=""
68 I DGMTYPT=1 D
69 .S X=$$SETSTR^VALM1("MT Threshold:",X,10,13)
70 .S X=$$SETSTR^VALM1($S($P(DGMTDIS,U,12)'="":"$"_$P(DGMTDIS,U,12),1:""),X,DGFCOL,25)
71 .I $P(DGMTDIS,U,20) D
72 ..S X=$$SETSTR^VALM1("Hardship Review Date:",X,43,21)
73 ..S X=$$SETSTR^VALM1($S($P(DGMTDIS,U,21)'="":$$FTIME^DGMTUTL($P(DGMTDIS,U,21)),1:""),X,DGSCOL,15)
74 .W !,X
75 ;
76 S X=""
77 S X=$$SETSTR^VALM1("GMT Threshold:",X,9,14)
78 S X=$$SETSTR^VALM1($S($P(DGMTDIS,U,27)'="":"$"_$P(DGMTDIS,U,27),1:""),X,DGFCOL,25)
79 W !,X
80 ;
81 S X=""
82 S X=$$SETSTR^VALM1("Date Vet Signed Test:",X,2,21)
83 S X=$$SETSTR^VALM1($S($P(DGMTDIS,U,24)'="":$$FTIME^DGMTUTL($P(DGMTDIS,U,24)),1:""),X,DGFCOL,25)
84 I $G(^DGMT(408.31,DGMTI,"PURGE"))'="" D
85 .S X=$$SETSTR^VALM1("Income Data Purged:",X,45,19)
86 .S X1=^DGMT(408.31,DGMTI,"PURGE")
87 .S X=$$SETSTR^VALM1($$FTIME^DGMTUTL(X1),X,DGSCOL,15)
88 W !,X
89 ;
90 S X=""
91 S X=$$SETSTR^VALM1("Means Test Signed?:",X,4,19)
92 S X=$$SETSTR^VALM1($S($P(DGMTDIS,U,29)=1:"YES",$P(DGMTDIS,U,29)=0:"NO",$P(DGMTDIS,U,29)=9:"DELETED",1:""),X,DGFCOL,25)
93 W !,X
94 ;
95 S (X,Y,Y1,Z)=""
96 I DGMTYPT=1 D
97 .I $P($G(^DG(408.34,+$P(DGMTDIS,U,23),0)),U)="IVM" D
98 ..;S X=$$SETSTR^VALM1("Date Vet Signed Test:",X,2,21)
99 ..;S X=$$SETSTR^VALM1($S($P(DGMTDIS,U,24)'="":$$FTIME^DGMTUTL($P(DGMTDIS,U,24)),1:""),X,DGFCOL,25)
100 ..S Y=$$SETSTR^VALM1("Refused to Sign:",Y,7,16)
101 ..S Y=$$SETSTR^VALM1($S($P(DGMTDIS,U,26)=1:"YES",$P(DGMTDIS,U,26)=0:"NO",1:""),Y,DGFCOL,25)
102 ..S Z=$$SETSTR^VALM1("Date IVM MT Completed:",Z,1,22)
103 ..S Z=$$SETSTR^VALM1($S($P(DGMTDIS,U,25)'="":$$FTIME^DGMTUTL($P(DGMTDIS,U,25)),1:""),Z,DGFCOL,25)
104 .I $P(DGMTDIS,U,21) D
105 ..S DGMTDI2=$G(^DGMT(408.31,DGMTI,2))
106 ..S X=$$SETSTR^VALM1("Hardship Approved By:",X,43,21)
107 ..I +$P(DGMTDI2,U,4)=$$INST^DGENU() D
108 ...S X=$$SETSTR^VALM1($P($G(^VA(200,+$P(DGMTDIS,U,22),0)),U),X,DGSCOL,15)
109 ..E S X=$$SETSTR^VALM1("OTHER VAMC",X,DGSCOL,15)
110 ..S Y=$$SETSTR^VALM1("Hardship Review Site:",Y,43,21)
111 ..S Y=$$SETSTR^VALM1($P($G(^DIC(4,+$P(DGMTDI2,"^",4),0)),"^"),Y,DGSCOL,15)
112 ..S Y1=$$SETSTR^VALM1("Hardship Reason:",Y1,7,16)
113 ..S Y1=$$SETSTR^VALM1($P(DGMTDI2,U,9),Y1,DGFCOL,80)
114 .W !,X,!,Y,!,Y1,!,Z
115 W !,"COMMENT(S):" F S WP=$O(DGMTDIS(WP)) Q:'WP D
116 .W !,DGMTDIS(WP)
117 Q
Note: See TracBrowser for help on using the repository browser.