source: WorldVistAEHR/trunk/r/PHARMACY_DATA_MANAGEMENT-PSS/PSSJXR28.m@ 1639

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

initial load of WorldVistAEHR

File size: 2.3 KB
Line 
1PSSJXR28 ; COMPILED XREF FOR FILE #55.07 ; 01/17/08
2 ;
3 S DA(1)=0 S DA=0
4A1 ;
5 I $D(DISET) K DIKLM S:DIKM1=2 DIKLM=1 S:DIKM1'=2&'$G(DIKPUSH(2)) DIKPUSH(2)=1,DA(2)=DA(1),DA(1)=DA,DA=0 G @DIKM1
6A S DA(1)=$O(^PS(55,DA(2),5,DA(1))) I DA(1)'>0 S DA(1)=0 G END
71 ;
8B S DA=$O(^PS(55,DA(2),5,DA(1),1,DA)) I DA'>0 S DA=0 Q:DIKM1=1 G A
92 ;
10 S DIKZ(0)=$G(^PS(55,DA(2),5,DA(1),1,DA,0))
11 S X=$P(DIKZ(0),U,1)
12 I X'="" I '$D(DIU(0)) D:$D(PSGAL(701))#2 KILL^PSGAL5:PSGAL(701)=X K PSGAL
13 S X=$P(DIKZ(0),U,1)
14 I X'="" S ^PS(55,DA(2),5,DA(1),1,"B",$E(X,1,30),DA)=""
15 S X=$P(DIKZ(0),U,2)
16 I X'="" I '$D(DIU(0)) D:$D(PSGAL(702))#2 KILL^PSGAL5:PSGAL(702)=X K PSGAL
17 S X=$P(DIKZ(0),U,5)
18 I X'="" I '$D(DIU(0)) D:$D(PSGAL(705))#2 KILL^PSGAL5:PSGAL(705)=X K PSGAL
19 S X=$P(DIKZ(0),U,6)
20 I X'="" I '$D(DIU(0)) D:$D(PSGAL(706))#2 KILL^PSGAL5:PSGAL(706)=X K PSGAL
21 S X=$P(DIKZ(0),U,7)
22 I X'="" I '$D(DIU(0)) D:$D(PSGAL(707))#2 KILL^PSGAL5:PSGAL(707)=X K PSGAL
23 S X=$P(DIKZ(0),U,8)
24 I X'="" D
25 .N DIK,DIV,DIU,DIN
26 .I X S DIU=$P($G(^PS(55,DA(2),5,DA(1),1,DA,0)),"^",7),$P(^(0),"^",7)=DIU+X I $O(^DD(55.07,.07,1,0)) K DIV S (DIV(0),D0)=DA(2),(DIV(1),D1)=DA(1),(DIV(2),D2)=DA,DIV=DIU+X,DIH=55.07,DIG=.07 D ^DICR
27 S X=$P(DIKZ(0),U,8)
28 I X'="" I '$D(DIU(0)),X D EN^PSGAMSA(DA(2),DA(1),DA,4)
29 S DIKZ(0)=$G(^PS(55,DA(2),5,DA(1),1,DA,0))
30 S X=$P(DIKZ(0),U,9)
31 I X'="" I '$D(DIU(0)) D:$D(PSGAL(709))#2 KILL^PSGAL5:PSGAL(709)=X K PSGAL
32 S X=$P(DIKZ(0),U,9)
33 I X'="" I '$D(DIU(0)),X D EN^PSGAMSA(DA(2),DA(1),DA,2)
34 S X=$P(DIKZ(0),U,9)
35 I X'="" D
36 .N DIK,DIV,DIU,DIN
37 .I X S DIU=$P($G(^PS(55,DA(2),5,DA(1),1,DA,0)),"^",12) S $P(^(0),"^",12)=DIU+X I $O(^DD(55.07,.12,1,0)) K DIV S (DIV,D0)=DA(2),(DIV(1),D1)=DA(1),(DIV(2),D2)=DA,DIV=DIU+X,DIH=55.07,DIG=.12 D ^DICR
38 S DIKZ(0)=$G(^PS(55,DA(2),5,DA(1),1,DA,0))
39 S X=$P(DIKZ(0),U,10)
40 I X'="" I '$D(DIU(0)) D:$D(PSGAL(710)) KILL^PSGAL5:PSGAL(710)=X K PSGAL
41 S X=$P(DIKZ(0),U,11)
42 I X'="" D
43 .N DIK,DIV,DIU,DIN
44 .I X S DIU=$P($G(^PS(55,DA(2),5,DA(1),1,DA,0)),"^",10),$P(^(0),"^",10)=DIU+X I $O(^DD(55.07,.1,1,0)) K DIV S (DIV(0),D0)=DA(2),(DIV(1),D1)=DA(1),(DIV(2),D2)=DA,DIV=DIU+X,DIH=55.07,DIG=.1 D ^DICR
45 S X=$P(DIKZ(0),U,11)
46 I X'="" I '$D(DIU(0)),X D EN^PSGAMSA(DA(2),DA(1),DA,3)
47 S DIKZ(0)=$G(^PS(55,DA(2),5,DA(1),1,DA,0))
48 S X=$P(DIKZ(0),U,12)
49 I X'="" I '$D(DIU(0)) D:$D(PSGAL(712))#2 KILL^PSGAL5:PSGAL(712)=X K PSGAL
50 G:'$D(DIKLM) B Q:$D(DISET)
51END G ^PSSJXR29
Note: See TracBrowser for help on using the repository browser.