source: WorldVistAEHR/trunk/r/PHARMACY_DATA_MANAGEMENT-PSS/PSSJXR7.m@ 623

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

initial load of WorldVistAEHR

File size: 7.6 KB
Line 
1PSSJXR7 ; COMPILED XREF FOR FILE #55.06 ; 01/17/08
2 ;
3 S DA=0
4A1 ;
5 I $D(DIKILL) K DIKLM S:DIKM1=1 DIKLM=1 G @DIKM1
60 ;
7 K ^PS(55,DA(1),5,"AUN")
8A S DA=$O(^PS(55,DA(1),5,DA)) I DA'>0 S DA=0 G END
91 ;
10 S DIKZ(0)=$G(^PS(55,DA(1),5,DA,0))
11 S X=$P(DIKZ(0),U,18)
12 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(55)=X,PSGAL("C")=6000,PSGALFF=.25 D ^PSGAL5
13 S X=$P(DIKZ(0),U,15)
14 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(2)=X,PSGAL("C")=6000,PSGALFF=.5 D ^PSGAL5
15 S X=$P(DIKZ(0),U,2)
16 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(3)=X,PSGAL("C")=6000,PSGALFF=1 D ^PSGAL5
17 S X=$P(DIKZ(0),U,3)
18 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(4)=X,PSGAL("C")=6000,PSGALFF=3 D ^PSGAL5
19 S X=$P(DIKZ(0),U,4)
20 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(5)=X,PSGAL("C")=6000,PSGALFF=4 D ^PSGAL5
21 S X=$P(DIKZ(0),U,5)
22 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(6)=X,PSGAL("C")=6000,PSGALFF=5 D ^PSGAL5
23 S X=$P(DIKZ(0),U,5)
24 I X'="" D
25 .N DIK,DIV,DIU,DIN
26 .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
27 S DIKZ(0)=$G(^PS(55,DA(1),5,DA,0))
28 S X=$P(DIKZ(0),U,6)
29 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(7)=X,PSGAL("C")=6000,PSGALFF=6 D ^PSGAL5
30 S X=$P(DIKZ(0),U,7)
31 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(8)=X,PSGAL("C")=6000,PSGALFF=7 D ^PSGAL5
32 S X=$P(DIKZ(0),U,7)
33 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)
34 S DIKZ(6)=$G(^PS(55,DA(1),5,DA,6))
35 S X=$P(DIKZ(6),U,1)
36 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(9)=X,PSGAL("C")=6000,PSGALFF=8 D ^PSGAL5
37 S DIKZ(2)=$G(^PS(55,DA(1),5,DA,2))
38 S X=$P(DIKZ(2),U,2)
39 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(41)=X,PSGAL("C")=6000,PSGALFF=10 D ^PSGAL5
40 S X=$P(DIKZ(2),U,2)
41 I X'="" K ^PS(55,"AUDS",$E(X,1,30),DA(1),DA)
42 S X=$P(DIKZ(0),U,10)
43 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(11)=X,PSGAL("C")=6000,PSGALFF=11 D ^PSGAL5
44 S X=$P(DIKZ(0),U,11)
45 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(12)=X,PSGAL("C")=6000,PSGALFF=12 D ^PSGAL5
46 S X=$P(DIKZ(0),U,12)
47 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(13)=X,PSGAL("C")=6000,PSGALFF=13 D ^PSGAL5
48 S DIKZ(5)=$G(^PS(55,DA(1),5,DA,5))
49 S X=$P(DIKZ(5),U,6)
50 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(14)=X,PSGAL("C")=6000,PSGALFF=14 D ^PSGAL5
51 S DIKZ(4)=$G(^PS(55,DA(1),5,DA,4))
52 S X=$P(DIKZ(4),U,1)
53 I X'="" I '$D(DIU(0)),X,'$D(PSGPO) S PSGAL(15)=X,PSGAL("C")=6000,PSGALFF=16 D ^PSGAL5
54 S X=$P(DIKZ(4),U,1)
55 I X'="" S PSGNVF=1
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,3)
61 I X'="" S PSGNVF=1
62 S X=$P(DIKZ(4),U,4)
63 I X'="" I X,'$D(DIU(0)),'$D(PSGPO) S PSGAL(18)=X,PSGAL("C")=6000,PSGALFF=19 D ^PSGAL5
64 S X=$P(DIKZ(4),U,5)
65 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(19)=X,PSGAL("C")=6000,PSGALFF=20 D ^PSGAL5
66 S X=$P(DIKZ(4),U,6)
67 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(20)=X,PSGAL("C")=6000,PSGALFF=21 D ^PSGAL5
68 S X=$P(DIKZ(4),U,7)
69 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(21)=X,PSGAL("C")=6000,PSGALFF=22 D ^PSGAL5
70 S X=$P(DIKZ(4),U,8)
71 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(22)=X,PSGAL("C")=6000,PSGALFF=23 D ^PSGAL5
72 S X=$P(DIKZ(0),U,17)
73 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(23)=X,PSGAL("C")=6000,PSGALFF=24 D ^PSGAL5
74 S X=$P(DIKZ(2),U,3)
75 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(24)=X,PSGAL("C")=6000,PSGALFF=25 D ^PSGAL5
76 S X=$P(DIKZ(2),U,1)
77 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(43)=X,PSGAL("C")=6000,PSGALFF=26 D ^PSGAL5
78 S X=$P(DIKZ(2),U,1)
79 I X'="" D
80 .N DIK,DIV,DIU,DIN
81 .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
82 S X=$P(DIKZ(2),U,1)
83 I X'="" D
84 .N DIK,DIV,DIU,DIN
85 .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
86 S DIKZ(0)=$G(^PS(55,DA(1),5,DA,0))
87 S X=$P(DIKZ(0),U,14)
88 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(26)=X,PSGAL("C")=6000,PSGALFF=27 D ^PSGAL5
89 S X=$P(DIKZ(0),U,16)
90 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(27)=X,PSGAL("C")=6000,PSGALFF=27.1 D ^PSGAL5
91 S X=$P(DIKZ(0),U,9)
92 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(28)=X,PSGAL("C")=6000,PSGALFF=28 D ^PSGAL5
93 S DIKZ(5)=$G(^PS(55,DA(1),5,DA,5))
94 S X=$P(DIKZ(5),U,2)
95 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(51)=X,PSGAL("C")=6000,PSGALFF=32 D ^PSGAL5
96 S DIKZ(2)=$G(^PS(55,DA(1),5,DA,2))
97 S X=$P(DIKZ(2),U,4)
98 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)
99 S X=$P(DIKZ(2),U,4)
100 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(53)=X,PSGAL("C")=6000,PSGALFF=34 D ^PSGAL5
101 S X=$P(DIKZ(2),U,4)
102 I X'="" K ^PS(55,"AUD",$E(X,1,30),DA(1),DA)
103 S X=$P(DIKZ(5),U,4)
104 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(61)=X,PSGAL("C")=6000,PSGALFF=35 D ^PSGAL5
105 S X=$P(DIKZ(5),U,3)
106 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(54)=X,PSGAL("C")=6000,PSGALFF=36 D ^PSGAL5
107 S X=$P(DIKZ(2),U,5)
108 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(56)=X,PSGAL("C")=6000,PSGALFF=41 D ^PSGAL5
109 S X=$P(DIKZ(2),U,6)
110 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(57)=X,PSGAL("C")=6000,PSGALFF=42 D ^PSGAL5
111 S DIKZ(4)=$G(^PS(55,DA(1),5,DA,4))
112 S X=$P(DIKZ(4),U,15)
113 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(58)=X,PSGAL("C")=6000,PSGALFF=43 D ^PSGAL5
114 S X=$P(DIKZ(4),U,16)
115 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(59)=X,PSGAL("C")=6000,PSGALFF=44 D ^PSGAL5
116 S X=$P(DIKZ(4),U,17)
117 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(60)=X,PSGAL("C")=6000,PSGALFF=45 D ^PSGAL5
118 S X=$P(DIKZ(4),U,12)
119 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(63)=X,PSGAL("C")=6000,PSGALFF=46 D ^PSGAL5
120 S X=$P(DIKZ(4),U,13)
121 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(64)=X,PSGAL("C")=6000,PSGALFF=47 D ^PSGAL5
122 S X=$P(DIKZ(4),U,14)
123 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(65)=X,PSGAL("C")=6000,PSGALFF=48 D ^PSGAL5
124 S X=$P(DIKZ(4),U,11)
125 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(62)=X,PSGAL("C")=6000,PSGALFF=49 D ^PSGAL5
126 S X=$P(DIKZ(4),U,9)
127 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(66)=X,PSGAL("C")=6000,PSGALFF=50 D ^PSGAL5
128 S X=$P(DIKZ(4),U,9)
129 I X'="" K ^PS(55,"APV",DA(1),DA)
130 S X=$P(DIKZ(4),U,10)
131 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(67)=X,PSGAL("C")=6000,PSGALFF=51 D ^PSGAL5
132 S X=$P(DIKZ(4),U,10)
133 I X'="" S:'X ^PS(55,"ANV",DA(1),DA)=""
134 S DIKZ(7)=$G(^PS(55,DA(1),5,DA,7))
135 S X=$P(DIKZ(7),U,1)
136 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(68)=X,PSGAL("C")=6000,PSGALFF=52 D ^PSGAL5
137 S X=$P(DIKZ(7),U,2)
138 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(69)=X,PSGAL("C")=6000,PSGALFF=53 D ^PSGAL5
139 S X=$P(DIKZ(5),U,7)
140 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(70)=X,PSGAL("C")=6000,PSGALFF=54 D ^PSGAL5
141 S X=$P(DIKZ(4),U,18)
142 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(71)=X,PSGAL("C")=6000,PSGALFF=56 D ^PSGAL5
143 S X=$P(DIKZ(4),U,19)
144 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(72)=X,PSGAL("C")=6000,PSGALFF=57 D ^PSGAL5
145 S X=$P(DIKZ(4),U,20)
146 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(73)=X,PSGAL("C")=6000,PSGALFF=58 D ^PSGAL5
147 S X=$P(DIKZ(4),U,21)
148 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(74)=X,PSGAL("C")=6000,PSGALFF=59 D ^PSGAL5
149 S X=$P(DIKZ(4),U,22)
150 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(75)=X,PSGAL("C")=6000,PSGALFF=60 D ^PSGAL5
151 S X=$P(DIKZ(4),U,23)
152 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(76)=X,PSGAL("C")=6000,PSGALFF=61 D ^PSGAL5
153 S X=$P(DIKZ(4),U,24)
154 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(77)=X,PSGAL("C")=6000,PSGALFF=62 D ^PSGAL5
155 S X=$P(DIKZ(0),U,20)
156 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(79)=X,PSGAL("C")=6000,PSGALFF=64 D ^PSGAL5
157 S X=$P(DIKZ(0),U,20)
158 I X'="" K ^PS(55,"AUDDD",$E(X,1,30),DA(1),DA)
159 S DIKZ(6.5)=$G(^PS(55,DA(1),5,DA,6.5))
160 G ^PSSJXR8
161END G END^PSSJXR8
Note: See TracBrowser for help on using the repository browser.