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

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

WorldVistAEHR overlayed on FOIAVistA

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