source: WorldVistAEHR/trunk/r/INPATIENT_MEDICATIONS-PSJ-PSIV-PSG--PSGW/PSJXR515.m@ 724

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

initial load of WorldVistAEHR

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