source: WorldVistAEHR/trunk/r/INPATIENT_MEDICATIONS-PSJ-PSIV-PSG--PSGW/PSJXR54.m@ 1177

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

initial load of WorldVistAEHR

File size: 4.7 KB
Line 
1PSJXR54 ; COMPILED XREF FOR FILE #55.06 ; 10/28/97
2 ;
3 S DA=0
4A1 ;
5 I $D(DIKILL) 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(PSGPO) S PSGAL(1)=X,PSGAL("C")=6000,PSGALFF=.01 D ^PSGAL5
12 S X=$P(DIKZ(0),U,1)
13 I X'="" K ^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)) K ^PS(55,"AUE",DA(1),DA)
16 S X=$P(DIKZ(0),U,18)
17 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(55)=X,PSGAL("C")=6000,PSGALFF=.25 D ^PSGAL5
18 S X=$P(DIKZ(0),U,15)
19 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(2)=X,PSGAL("C")=6000,PSGALFF=.5 D ^PSGAL5
20 S X=$P(DIKZ(0),U,2)
21 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(3)=X,PSGAL("C")=6000,PSGALFF=1 D ^PSGAL5
22 S X=$P(DIKZ(0),U,3)
23 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(4)=X,PSGAL("C")=6000,PSGALFF=3 D ^PSGAL5
24 S X=$P(DIKZ(0),U,4)
25 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(5)=X,PSGAL("C")=6000,PSGALFF=4 D ^PSGAL5
26 S X=$P(DIKZ(0),U,5)
27 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(6)=X,PSGAL("C")=6000,PSGALFF=5 D ^PSGAL5
28 S X=$P(DIKZ(0),U,5)
29 I X'="" D
30 .N DIK,DIV,DIU,DIN
31 .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
32 S X=$P(DIKZ(0),U,6)
33 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(7)=X,PSGAL("C")=6000,PSGALFF=6 D ^PSGAL5
34 S X=$P(DIKZ(0),U,7)
35 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(8)=X,PSGAL("C")=6000,PSGALFF=7 D ^PSGAL5
36 S X=$P(DIKZ(0),U,7)
37 I X'="" I $D(^PS(55,DA(1),5,DA,2)),$P(^(2),"^",4) K ^PS(55,DA(1),5,"AU",X,+$P(^(2),"^",4),DA)
38 S DIKZ(6)=$G(^PS(55,DA(1),5,DA,6))
39 S X=$P(DIKZ(6),U,1)
40 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(9)=X,PSGAL("C")=6000,PSGALFF=8 D ^PSGAL5
41 S DIKZ(2)=$G(^PS(55,DA(1),5,DA,2))
42 S X=$P(DIKZ(2),U,2)
43 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(41)=X,PSGAL("C")=6000,PSGALFF=10 D ^PSGAL5
44 S X=$P(DIKZ(0),U,10)
45 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(11)=X,PSGAL("C")=6000,PSGALFF=11 D ^PSGAL5
46 S X=$P(DIKZ(0),U,11)
47 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(12)=X,PSGAL("C")=6000,PSGALFF=12 D ^PSGAL5
48 S X=$P(DIKZ(0),U,12)
49 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(13)=X,PSGAL("C")=6000,PSGALFF=13 D ^PSGAL5
50 S DIKZ(5)=$G(^PS(55,DA(1),5,DA,5))
51 S X=$P(DIKZ(5),U,6)
52 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(14)=X,PSGAL("C")=6000,PSGALFF=14 D ^PSGAL5
53 S DIKZ(4)=$G(^PS(55,DA(1),5,DA,4))
54 S X=$P(DIKZ(4),U,1)
55 I X'="" I '$D(DIU(0)),X,'$D(PSGPO) S PSGAL(15)=X,PSGAL("C")=6000,PSGALFF=16 D ^PSGAL5
56 S X=$P(DIKZ(4),U,2)
57 I X'="" I '$D(DIU(0)),X,'$D(PSGPO) S PSGAL(16)=X,PSGAL("C")=6000,PSGALFF=17 D ^PSGAL5
58 S X=$P(DIKZ(4),U,3)
59 I X'="" I X,'$D(DIU(0)),'$D(PSGPO) S PSGAL(17)=X,PSGAL("C")=6000,PSGALFF=18 D ^PSGAL5
60 S X=$P(DIKZ(4),U,4)
61 I X'="" I X,'$D(DIU(0)),'$D(PSGPO) S PSGAL(18)=X,PSGAL("C")=6000,PSGALFF=19 D ^PSGAL5
62 S X=$P(DIKZ(4),U,5)
63 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(19)=X,PSGAL("C")=6000,PSGALFF=20 D ^PSGAL5
64 S X=$P(DIKZ(4),U,6)
65 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(20)=X,PSGAL("C")=6000,PSGALFF=21 D ^PSGAL5
66 S X=$P(DIKZ(4),U,7)
67 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(21)=X,PSGAL("C")=6000,PSGALFF=22 D ^PSGAL5
68 S X=$P(DIKZ(4),U,8)
69 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(22)=X,PSGAL("C")=6000,PSGALFF=23 D ^PSGAL5
70 S X=$P(DIKZ(0),U,17)
71 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(23)=X,PSGAL("C")=6000,PSGALFF=24 D ^PSGAL5
72 S X=$P(DIKZ(2),U,3)
73 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(24)=X,PSGAL("C")=6000,PSGALFF=25 D ^PSGAL5
74 S X=$P(DIKZ(2),U,1)
75 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(43)=X,PSGAL("C")=6000,PSGALFF=26 D ^PSGAL5
76 S X=$P(DIKZ(2),U,1)
77 I X'="" D
78 .N DIK,DIV,DIU,DIN
79 .I '$D(DIU(0)),$D(PSGS0Y) S DIU=$S($D(^PS(55,DA(1),5,DA,2)):$P(^(2),"^",5),1:"") I DIU]"" S $P(^(2),"^",5)="" I $O(^DD(55.06,41,1,0)) K DIV S (DIV(0),D0)=DA(1),(DIV(1),D1)=DA,DIV="",DIH=55.06,DIG=41 D ^DICR
80 S X=$P(DIKZ(2),U,1)
81 I X'="" D
82 .N DIK,DIV,DIU,DIN
83 .I $D(PSGS0XT) S DIU=$S($D(^PS(55,DA(1),5,DA,2)):$P(^(2),"^",6),1:"") I DIU]"" S $P(^(2),"^",6)="" I $O(^DD(55.06,42,1,0)) K DIV S (DIV(0),D0)=DA(1),(DIV(1),D1)=DA,DIV="",DIH=55.06,DIG=42 D ^DICR
84 S X=$P(DIKZ(0),U,14)
85 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(26)=X,PSGAL("C")=6000,PSGALFF=27 D ^PSGAL5
86 S X=$P(DIKZ(0),U,16)
87 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(27)=X,PSGAL("C")=6000,PSGALFF=27.1 D ^PSGAL5
88 S X=$P(DIKZ(0),U,9)
89 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(28)=X,PSGAL("C")=6000,PSGALFF=28 D ^PSGAL5
90 S X=$P(DIKZ(5),U,2)
91 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(51)=X,PSGAL("C")=6000,PSGALFF=32 D ^PSGAL5
92 S X=$P(DIKZ(2),U,4)
93 I X'="" K ^PS(55,DA(1),5,"AUS",+X,DA) I $P($G(^PS(55,DA(1),5,DA,0)),"^",7)]"" K ^PS(55,DA(1),5,"AU",$P(^(0),"^",7),+X,DA)
94 S X=$P(DIKZ(2),U,4)
95 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(53)=X,PSGAL("C")=6000,PSGALFF=34 D ^PSGAL5
96 S X=$P(DIKZ(2),U,4)
97 G ^PSJXR55
98END G END^PSJXR55
Note: See TracBrowser for help on using the repository browser.