source: FOIAVistA/trunk/r/INPATIENT_MEDICATIONS-PSJ-PSIV-PSG--PSGW/PSJXR514.m@ 1713

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

initial load of FOIAVistA 6/30/08 version

File size: 4.7 KB
Line 
1PSJXR514 ; COMPILED XREF FOR FILE #55.06 ; 10/28/97
2 ;
3 S DA=0
4A1 ;
5 I $D(DISET) K DIKLM S:$D(DA(1)) DIKLM=1 G:$D(DA(1)) 1 S DA(1)=DA,DA=0 G @DIKM1
60 ;
7A S DA=$O(^PS(55,DA(1),5,DA)) I DA'>0 S DA=0 G END
81 ;
9 S DIKZ(0)=$G(^PS(55,DA(1),5,DA,0))
10 S X=$P(DIKZ(0),U,1)
11 I X'="" I '$D(DIU(0)) D:$D(PSGAL(1))#2 KILL^PSGAL5:PSGAL(1)=X K PSGAL
12 S X=$P(DIKZ(0),U,1)
13 I X'="" S ^PS(55,DA(1),5,"B",$E(X,1,30),DA)=""
14 S X=$P(DIKZ(0),U,1)
15 I X'="" I '$D(DIU(0)) S ^PS(55,"AUE",DA(1),DA)=""
16 S X=$P(DIKZ(0),U,18)
17 I X'="" I '$D(DIU(0)) D:$D(PSGAL(55)) KILL^PSGAL5:PSGAL(55)=X K PSGAL
18 S X=$P(DIKZ(0),U,15)
19 I X'="" I '$D(DIU(0)) D:$D(PSGAL(2))#2 KILL^PSGAL5:PSGAL(2)=X K PSGAL
20 S X=$P(DIKZ(0),U,2)
21 I X'="" I '$D(DIU(0)) D:$D(PSGAL(3))#2 KILL^PSGAL5:PSGAL(3)=X K PSGAL
22 S X=$P(DIKZ(0),U,2)
23 I X'="" I $S('$D(^PS(55,DA(1),5.1)):1,1:$P(^(5.1),"^",2)'=X) S $P(^(5.1),"^",2)=X
24 S X=$P(DIKZ(0),U,3)
25 I X'="" I '$D(DIU(0)) D:$D(PSGAL(4))#2 KILL^PSGAL5:PSGAL(4)=X K PSGAL
26 S X=$P(DIKZ(0),U,4)
27 I X'="" I '$D(DIU(0)) D:$D(PSGAL(5))#2 KILL^PSGAL5:PSGAL(5)=X K PSGAL
28 S X=$P(DIKZ(0),U,5)
29 I X'="" I '$D(DIU(0)) D:$D(PSGAL(6))#2 KILL^PSGAL5:PSGAL(6)=X K PSGAL
30 S X=$P(DIKZ(0),U,5)
31 I X'="" D
32 .N DIK,DIV,DIU,DIN
33 .I 'X S DIU=$S($D(^PS(55,DA(1),5,DA,0)):$P(^(0),"^",6),1:"") I DIU S $P(^(0),"^",6)="" I $O(^DD(55.06,6,1,0)) K DIV S (DIV(0),D0)=DA(1),(DIV(1),D1)=DA,DIV="",DIH=55.06,DIG=6 D ^DICR
34 S X=$P(DIKZ(0),U,6)
35 I X'="" I '$D(DIU(0)) D:$D(PSGAL(7))#2 KILL^PSGAL5:PSGAL(7)=X K PSGAL
36 S X=$P(DIKZ(0),U,7)
37 I X'="" I '$D(DIU(0)) D:$D(PSGAL(8))#2 KILL^PSGAL5:PSGAL(8)=X K PSGAL
38 S X=$P(DIKZ(0),U,7)
39 I X'="" I $D(^PS(55,DA(1),5,DA,2)),$P(^(2),"^",4) S ^PS(55,DA(1),5,"AU",X,+$P(^(2),"^",4),DA)=""
40 S DIKZ(6)=$G(^PS(55,DA(1),5,DA,6))
41 S X=$P(DIKZ(6),U,1)
42 I X'="" I '$D(DIU(0)) D:$D(PSGAL(9))#2 KILL^PSGAL5:PSGAL(9)=X K PSGAL
43 S DIKZ(2)=$G(^PS(55,DA(1),5,DA,2))
44 S X=$P(DIKZ(2),U,2)
45 I X'="" I '$D(DIU(0)) D:$D(PSGAL(41))#2 KILL^PSGAL5:PSGAL(41)=X K PSGAL
46 S X=$P(DIKZ(0),U,10)
47 I X'="" I '$D(DIU(0)) D:$D(PSGAL(11))#2 KILL^PSGAL5:PSGAL(11)=X K PSGAL
48 S X=$P(DIKZ(0),U,11)
49 I X'="" I '$D(DIU(0)) D:$D(PSGAL(12))#2 KILL^PSGAL5:PSGAL(12)=X K PSGAL
50 S X=$P(DIKZ(0),U,12)
51 I X'="" I '$D(DIU(0)) D:$D(PSGAL(13))#2 KILL^PSGAL5:PSGAL(13)=X K PSGAL
52 S DIKZ(5)=$G(^PS(55,DA(1),5,DA,5))
53 S X=$P(DIKZ(5),U,6)
54 I X'="" I '$D(DIU(0)) D:$D(PSGAL(14))#2 KILL^PSGAL5:PSGAL(14)=X K PSGAL
55 S X=$P(DIKZ(5),U,6)
56 I X'="" ; I X S PSGAMSF=0 D ^PSGAMSA
57 S X=$P(DIKZ(5),U,6)
58 I X'="" D
59 .N DIK,DIV,DIU,DIN
60 .I X S DIU=$S($D(^PS(55,DA(1),5,DA,5)):$P(^(5),"^",9),1:0) S $P(^(5),"^",9)=DIU+X I $O(^DD(55.06,63,1,0)) K DIV S (DIV(0),D0)=DA(1),(DIV(1),D1)=DA,DIV=DIU+X,DIH=55.06,DIG=63 D ^DICR
61 S DIKZ(4)=$G(^PS(55,DA(1),5,DA,4))
62 S X=$P(DIKZ(4),U,1)
63 I X'="" I '$D(DIU(0)) D:$D(PSGAL(15))#2 KILL^PSGAL5:PSGAL(15)=X K PSGAL
64 S X=$P(DIKZ(4),U,2)
65 I X'="" I '$D(DIU(0)) D:$D(PSGAL(16))#2 KILL^PSGAL5:PSGAL(16)=X K PSGAL
66 S X=$P(DIKZ(4),U,3)
67 I X'="" I '$D(DIU(0)) D:$D(PSGAL(17))#2 KILL^PSGAL5:PSGAL(17)=X K PSGAL
68 S X=$P(DIKZ(4),U,4)
69 I X'="" I '$D(DIU(0)) D:$D(PSGAL(18))#2 KILL^PSGAL5:PSGAL(18)=X K PSGAL
70 S X=$P(DIKZ(4),U,5)
71 I X'="" I '$D(DIU(0)) D:$D(PSGAL(19))#2 KILL^PSGAL5:PSGAL(19)=X K PSGAL
72 S X=$P(DIKZ(4),U,6)
73 I X'="" I '$D(DIU(0)) D:$D(PSGAL(20))#2 KILL^PSGAL5:PSGAL(20)=X K PSGAL
74 S X=$P(DIKZ(4),U,7)
75 I X'="" I '$D(DIU(0)) D:$D(PSGAL(21))#2 KILL^PSGAL5:PSGAL(21)=X K PSGAL
76 S X=$P(DIKZ(4),U,8)
77 I X'="" I '$D(DIU(0)) D:$D(PSGAL(22))#2 KILL^PSGAL5:PSGAL(22)=X K PSGAL
78 S X=$P(DIKZ(0),U,17)
79 I X'="" I '$D(DIU(0)) D:$D(PSGAL(23))#2 KILL^PSGAL5:PSGAL(23)=X K PSGAL
80 S X=$P(DIKZ(2),U,3)
81 I X'="" I '$D(DIU(0)) D:$D(PSGAL(24))#2 KILL^PSGAL5:PSGAL(24)=X K PSGAL
82 S X=$P(DIKZ(2),U,1)
83 I X'="" I '$D(DIU(0)) D:$D(PSGAL(43))#2 KILL^PSGAL5:PSGAL(43)=X K PSGAL
84 S X=$P(DIKZ(2),U,1)
85 I X'="" D
86 .N DIK,DIV,DIU,DIN
87 .I '$D(DIU(0)),$D(PSGS0Y) S DIU=$S($D(^PS(55,DA(1),5,DA,2)):$P(^(2),"^",5),1:"") I DIU'=PSGS0Y S $P(^(2),"^",5)=PSGS0Y I $O(^DD(55.06,41,1,0)) K DIV S (DIV(0),D0)=DA(1),(DIV(1),D1)=DA,DIV=PSGS0Y,DIH=55.06,DIG=41 D ^DICR
88 S X=$P(DIKZ(2),U,1)
89 I X'="" D
90 .N DIK,DIV,DIU,DIN
91 .I $D(PSGS0XT) S DIU=$S($D(^PS(55,DA(1),5,DA,2)):$P(^(2),"^",6),1:"") I DIU'=PSGS0XT S $P(^(2),"^",6)=PSGS0XT I $O(^DD(55.06,42,1,0)) K DIV S (DIV(0),D0)=DA(1),(DIV(1),D1)=DA,DIV=PSGS0XT,DIH=55.06,DIG=42 D ^DICR
92 S X=$P(DIKZ(0),U,14)
93 I X'="" I '$D(DIU(0)) D:$D(PSGAL(26))#2 KILL^PSGAL5:PSGAL(26)=X K PSGAL
94 S X=$P(DIKZ(0),U,16)
95 I X'="" I '$D(DIU(0)) D:$D(PSGAL(27))#2 KILL^PSGAL5:PSGAL(27)=X K PSGAL
96 S X=$P(DIKZ(0),U,9)
97 I X'="" I '$D(DIU(0)) D:$D(PSGAL(28))#2 KILL^PSGAL5:PSGAL(28)=X K PSGAL
98 S X=$P(DIKZ(0),U,9)
99 I X'="" I $P($G(^PS(55,DA(1),5,DA,0)),"^",21) S ORIFN=$P(^(0),"^",21),XX=X,X="ORX" X ^%ZOSF("TEST") I S X=XX D ENSC^PSGORU K ORIFN,XX
100 S X=$P(DIKZ(5),U,2)
101 I X'="" I '$D(DIU(0)) D:$D(PSGAL(51))#2 KILL^PSGAL5:PSGAL(51)=X K PSGAL
102 S X=$P(DIKZ(2),U,4)
103 G ^PSJXR515
104END G END^PSJXR515
Note: See TracBrowser for help on using the repository browser.