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

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

initial load of FOIAVistA 6/30/08 version

File size: 2.9 KB
Line 
1DGMTXX32 ; COMPILED XREF FOR FILE #408.31 ; 11/22/06
2 ;
3 S DIKZK=1
4 S DIKZ(0)=$G(^DGMT(408.31,DA,0))
5 S X=$P(DIKZ(0),U,1)
6 I X'="" S ^DGMT(408.31,"B",$E(X,1,30),DA)=""
7 S X=$P(DIKZ(0),U,1)
8 I X'="" S:$P(^DGMT(408.31,DA,0),U,2)&($P(^(0),U,3))&($P(^(0),U,19)) ^DGMT(408.31,"AS",+$P(^(0),U,19),+$P(^(0),U,3),-X,+$P(^(0),U,2),DA)=""
9 S X=$P(DIKZ(0),U,1)
10 I X'="" S:$P(^DGMT(408.31,DA,0),U,2)&($P(^(0),U,19)) ^DGMT(408.31,"AID",+$P(^(0),U,19),+$P(^(0),U,2),-X,DA)=""
11 S X=$P(DIKZ(0),U,1)
12 I X'="" S:$P(^DGMT(408.31,DA,0),U,2)&($P(^(0),U,19)) ^DGMT(408.31,"AD",+$P(^(0),U,19),+$P(^(0),U,2),X,DA)=""
13 S X=$P(DIKZ(0),U,1)
14 I X'="" S:$P(^DGMT(408.31,DA,0),U,2) ^DGMT(408.31,"ADFN"_$P(^(0),U,2),X,DA)=""
15 S X=$P(DIKZ(0),U,19)
16 I X'="" S:$P(^DGMT(408.31,DA,0),U,2)&($P(^(0),U,3)) ^DGMT(408.31,"AS",X,+$P(^(0),U,3),-$P(^(0),U),+$P(^(0),U,2),DA)=""
17 S X=$P(DIKZ(0),U,19)
18 I X'="" S:$P(^DGMT(408.31,DA,0),U,2) ^DGMT(408.31,"AID",X,+$P(^(0),U,2),-$P(^(0),U),DA)=""
19 S X=$P(DIKZ(0),U,19)
20 I X'="" S:$P(^DGMT(408.31,DA,0),U,2) ^DGMT(408.31,"AD",X,+$P(^(0),U,2),$P(^(0),U),DA)=""
21 S X=$P(DIKZ(0),U,19)
22 I X'="" D
23 .N DIK,DIV,DIU,DIN
24 .K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X S X=Y(0),X=X S X=X=2 I X S X=DIV S Y(1)=$S($D(^DGMT(408.31,D0,0)):^(0),1:"") S X=$P(Y(1),U,3),X=X S DIU=X K Y S X=DIV S X="9" X ^DD(408.31,.019,1,4,1.4)
25 S DIKZ(0)=$G(^DGMT(408.31,DA,0))
26 S X=$P(DIKZ(0),U,2)
27 I X'="" S:$P(^DGMT(408.31,DA,0),U,3)&($P(^(0),U,19)) ^DGMT(408.31,"AS",$P(^(0),U,19),$P(^(0),U,3),-$P(^(0),U),X,DA)=""
28 S X=$P(DIKZ(0),U,2)
29 I X'="" S:$P(^DGMT(408.31,DA,0),U,19) ^DGMT(408.31,"AID",$P(^(0),U,19),X,-$P(^DGMT(408.31,DA,0),U),DA)=""
30 S X=$P(DIKZ(0),U,2)
31 I X'="" S ^DGMT(408.31,"C",$E(X,1,30),DA)=""
32 S X=$P(DIKZ(0),U,2)
33 I X'="" S:$P(^DGMT(408.31,DA,0),U,19) ^DGMT(408.31,"AD",$P(^DGMT(408.31,DA,0),U,19),X,$P(^(0),U),DA)=""
34 S X=$P(DIKZ(0),U,2)
35 I X'="" D
36 .N DIK,DIV,DIU,DIN
37 .K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X X ^DD(408.31,.02,1,5,69.2) S Y=X,X=Y(2),X=X&Y I X S X=DIV S Y(1)=$S($D(^DGMT(408.31,D0,0)):^(0),1:"") S X=$P(Y(1),U,3),X=X S DIU=X K Y S X=DIV S X="1" X ^DD(408.31,.02,1,5,1.4)
38 S X=$P(DIKZ(0),U,2)
39 I X'="" S ^DGMT(408.31,"ADFN"_X,+^DGMT(408.31,DA,0),DA)=""
40 S DIKZ(0)=$G(^DGMT(408.31,DA,0))
41 S X=$P(DIKZ(0),U,3)
42 I X'="" S:$P(^DGMT(408.31,DA,0),U,2)&($P(^(0),U,19)) ^DGMT(408.31,"AS",$P(^(0),U,19),X,-$P(^(0),U),+$P(^(0),U,2),DA)=""
43 S X=$P(DIKZ(0),U,3)
44 I X'="" D CUR^DGMTDD
45 S X=$P(DIKZ(0),U,7)
46 I X'="" S ^DGMT(408.31,"AG",$E(X,1,30),DA)=""
47 S X=$P(DIKZ(0),U,11)
48 I X'="" D:$G(DGMTYPT)<3 AUTOUPD^DGENA2(+$P(^DGMT(408.31,DA,0),U,2),2)
49 S X=$P(DIKZ(0),U,16)
50 I X'="" S ^DGMT(408.31,"AP",X,$P(^DGMT(408.31,DA,0),U),DA)=""
51 S X=$P(DIKZ(0),U,20)
52 I X'="" S ^DGMT(408.31,"AE",$E(X,1,30),DA)=""
53 S X=$P(DIKZ(0),U,20)
54 I X'="" S:'X $P(^DGMT(408.31,DA,0),U,21,22)="^"
55 S DIKZ(2)=$G(^DGMT(408.31,DA,2))
56 S X=$P(DIKZ(2),U,2)
57 I X'="" D E40831^DGRTRIG(DA)
58 S X=$P(DIKZ(2),U,8)
59 I X'="" S ^DGMT(408.31,"AT",$E(X,1,30),DA)=""
60END Q
Note: See TracBrowser for help on using the repository browser.