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

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

WorldVistAEHR overlayed on FOIAVistA

File size: 4.1 KB
Line 
1DGMTXX21 ; COMPILED XREF FOR FILE #408.22 ; 11/06/06
2 ;
3 S DIKZK=2
4 S DIKZ(0)=$G(^DGMT(408.22,DA,0))
5 S X=$P(DIKZ(0),U,2)
6 I X'="" K ^DGMT(408.22,"AIND",$E(X,1,30),DA)
7 S X=$P(DIKZ(0),U,2)
8 I X'="" K ^DGMT(408.22,"AMT",+$P($G(^DGMT(408.22,DA,"MT")),U),+$P(^DGMT(408.22,DA,0),U),X,DA)
9 S X=$P(DIKZ(0),U,5)
10 I X'="" D
11 .N DIK,DIV,DIU,DIN
12 .K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X X ^DD(408.22,.05,1,1,79.2) S X=X="" I X S X=DIV S Y(1)=$S($D(^DGMT(408.22,D0,0)):^(0),1:"") S X=$P(Y(1),U,6),X=X S DIU=X K Y S X="" X ^DD(408.22,.05,1,1,2.4)
13 S X=$P(DIKZ(0),U,5)
14 I X'="" I $D(^DGMT(408.22,DA,0)),$P(^(0),U,5)="" D FUN^DGMTDD2:'$P(^(0),U,8),SP^DGMTDD2
15 S X=$P(DIKZ(0),U,5)
16 I X'="" D E40822^DGRTRIG(DA)
17 S DIKZ(0)=$G(^DGMT(408.22,DA,0))
18 S X=$P(DIKZ(0),U,6)
19 I X'="" D
20 .N DIK,DIV,DIU,DIN
21 .K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X X ^DD(408.22,.06,1,1,79.2) S X=X="" I X S X=DIV S Y(1)=$S($D(^DGMT(408.22,D0,0)):^(0),1:"") S X=$P(Y(1),U,7),X=X S DIU=X K Y S X="" X ^DD(408.22,.06,1,1,2.4)
22 S X=$P(DIKZ(0),U,6)
23 I X'="" D
24 .N DIK,DIV,DIU,DIN
25 .K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X X ^DD(408.22,.06,1,2,79.2) S X=X="" I X S X=DIV S Y(1)=$S($D(^DGMT(408.22,D0,0)):^(0),1:"") S X=$P(Y(1),U,10),X=X S DIU=X K Y S X="" X ^DD(408.22,.06,1,2,2.4)
26 S X=$P(DIKZ(0),U,6)
27 I X'="" D E40822^DGRTRIG(DA)
28 S DIKZ(0)=$G(^DGMT(408.22,DA,0))
29 S X=$P(DIKZ(0),U,7)
30 I X'="" I $D(^DGMT(408.22,DA,0)),'$P(^(0),U,6),$P(^(0),U,7)="" D SP^DGMTDD2
31 S X=$P(DIKZ(0),U,7)
32 I X'="" D E40822^DGRTRIG(DA)
33 S X=$P(DIKZ(0),U,8)
34 I X'="" I $D(^DGMT(408.22,DA,0)),$P(^(0),U,8)="",'$P(^(0),U,5) D FUN^DGMTDD2
35 S X=$P(DIKZ(0),U,8)
36 I X'="" D E40822^DGRTRIG(DA)
37 S X=$P(DIKZ(0),U,9)
38 I X'="" D E40822^DGRTRIG(DA)
39 S X=$P(DIKZ(0),U,10)
40 I X'="" D E40822^DGRTRIG(DA)
41 S X=$P(DIKZ(0),U,11)
42 I X'="" D
43 .N DIK,DIV,DIU,DIN
44 .K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X X ^DD(408.22,.11,1,1,79.2) S X=X="" I X S X=DIV S Y(1)=$S($D(^DGMT(408.22,D0,0)):^(0),1:"") S X=$P(Y(1),U,12),X=X S DIU=X K Y S X="" X ^DD(408.22,.11,1,1,2.4)
45 S X=$P(DIKZ(0),U,11)
46 I X'="" I $D(^DGMT(408.22,DA,0)),$P(^(0),U,11)="" D INC^DGMTDD2
47 S X=$P(DIKZ(0),U,11)
48 I X'="" D E40822^DGRTRIG(DA)
49 S DIKZ(0)=$G(^DGMT(408.22,DA,0))
50 S X=$P(DIKZ(0),U,12)
51 I X'="" I $D(^DGMT(408.22,DA,0)),$P(^(0),U,12)="",$P(^(0),U,11) D INC^DGMTDD2
52 S X=$P(DIKZ(0),U,12)
53 I X'="" D E40822^DGRTRIG(DA)
54 S X=$P(DIKZ(0),U,13)
55 I X'="" D E40822^DGRTRIG(DA)
56 S X=$P(DIKZ(0),U,14)
57 I X'="" D
58 .N DIK,DIV,DIU,DIN
59 .X ^DD(408.22,.14,1,1,2.3) I X S X=DIV S Y(1)=$S($D(^DGMT(408.22,D0,0)):^(0),1:"") S X=$P(Y(1),U,15),X=X S DIU=X K Y S X="" S DIH=$G(^DGMT(408.22,DIV(0),0)),DIV=X S $P(^(0),U,15)=DIV,DIH=408.22,DIG=.15 D ^DICR
60 S X=$P(DIKZ(0),U,14)
61 I X'="" D
62 .N DIK,DIV,DIU,DIN
63 .X ^DD(408.22,.14,1,2,2.3) I X S X=DIV S Y(1)=$S($D(^DGMT(408.22,D0,0)):^(0),1:"") S X=$P(Y(1),U,16),X=X S DIU=X K Y S X="" S DIH=$G(^DGMT(408.22,DIV(0),0)),DIV=X S $P(^(0),U,16)=DIV,DIH=408.22,DIG=.16 D ^DICR
64 S X=$P(DIKZ(0),U,14)
65 I X'="" D
66 .N DIK,DIV,DIU,DIN
67 .X ^DD(408.22,.14,1,3,2.3) I X S X=DIV S Y(1)=$S($D(^DGMT(408.22,D0,0)):^(0),1:"") S X=$P(Y(1),U,17),X=X S DIU=X K Y S X="" S DIH=$G(^DGMT(408.22,DIV(0),0)),DIV=X S $P(^(0),U,17)=DIV,DIH=408.22,DIG=.17 D ^DICR
68 S DIKZ(0)=$G(^DGMT(408.22,DA,0))
69 S X=$P(DIKZ(0),U,16)
70 I X'="" D
71 .N DIK,DIV,DIU,DIN
72 .X ^DD(408.22,.16,1,1,2.3) I X S X=DIV S Y(1)=$S($D(^DGMT(408.22,D0,0)):^(0),1:"") S X=$P(Y(1),U,15),X=X S DIU=X K Y S X="" S DIH=$G(^DGMT(408.22,DIV(0),0)),DIV=X S $P(^(0),U,15)=DIV,DIH=408.22,DIG=.15 D ^DICR
73 S DIKZ(0)=$G(^DGMT(408.22,DA,0))
74 S X=$P(DIKZ(0),U,17)
75 I X'="" D
76 .N DIK,DIV,DIU,DIN
77 .X ^DD(408.22,.17,1,1,2.3) I X S X=DIV S Y(1)=$S($D(^DGMT(408.22,D0,0)):^(0),1:"") S X=$P(Y(1),U,16),X=X S DIU=X K Y S X="" S DIH=$G(^DGMT(408.22,DIV(0),0)),DIV=X S $P(^(0),U,16)=DIV,DIH=408.22,DIG=.16 D ^DICR
78 S DIKZ(0)=$G(^DGMT(408.22,DA,0))
79 S X=$P(DIKZ(0),U,18)
80 I X'="" D E40822^DGRTRIG(DA)
81 S DIKZ("MT")=$G(^DGMT(408.22,DA,"MT"))
82 S X=$P(DIKZ("MT"),U,1)
83 I X'="" K ^DGMT(408.22,"AMT",X,+$P(^DGMT(408.22,DA,0),U),+$P($G(^DGMT(408.22,DA,0)),U,2),DA)
84 S X=$P(DIKZ(0),U,1)
85 I X'="" K ^DGMT(408.22,"B",$E(X,1,30),DA)
86 S X=$P(DIKZ(0),U,1)
87 I X'="" K ^DGMT(408.22,"AMT",+$P($G(^DGMT(408.22,DA,"MT")),U),X,+$P(^DGMT(408.22,DA,0),U,2),DA)
88END Q
Note: See TracBrowser for help on using the repository browser.