source: WorldVistAEHR/trunk/r/PHARMACY_DATA_MANAGEMENT-PSS/PSSJXR2.m@ 1111

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

initial load of WorldVistAEHR

File size: 3.4 KB
Line 
1PSSJXR2 ; COMPILED XREF FOR FILE #55.01 ; 01/17/08
2 ;
3 S DA(1)=DA S DA=0
4A1 ;
5 I $D(DIKILL) K DIKLM S:DIKM1=1 DIKLM=1 G @DIKM1
60 ;
7 K ^PS(55,DA(1),"IV","AIN")
8A S DA=$O(^PS(55,DA(1),"IV",DA)) I DA'>0 S DA=0 G END
91 ;
10 S DIKZ(0)=$G(^PS(55,DA(1),"IV",DA,0))
11 S X=$P(DIKZ(0),U,2)
12 I X'="" X ^DD(55.01,.02,1,1,2)
13 S X=$P(DIKZ(0),U,2)
14 I X'="" K ^PS(55,"AIVS",$E(X,1,30),DA(1),DA)
15 S DIKZ(0)=$G(^PS(55,DA(1),"IV",DA,0))
16 S X=$P(DIKZ(0),U,3)
17 I X'="" K ^PS(55,"AIV",+$E(X,1,30),DA(1),DA)
18 S X=$P(DIKZ(0),U,3)
19 I X'="" X ^DD(55.01,.03,1,2,2)
20 S X=$P(DIKZ(0),U,3)
21 I X'="" K ^PS(55,DA(1),"IV","AIS",$E(X,1,30),DA)
22 S X=$P(DIKZ(0),U,3)
23 I X'="" I $P($G(^PS(55,DA(1),"IV",DA,0)),U,4)]"" K ^PS(55,DA(1),"IV","AIT",$P(^(0),U,4),+X,DA)
24 S DIKZ(0)=$G(^PS(55,DA(1),"IV",DA,0))
25 S X=$P(DIKZ(0),U,4)
26 I X'="" X ^DD(55.01,.04,1,1,2)
27 S DIKZ(0)=$G(^PS(55,DA(1),"IV",DA,0))
28 S X=$P(DIKZ(0),U,6)
29 I X'="" X ^DD(55.01,.06,1,1,2)
30 S DIKZ(0)=$G(^PS(55,DA(1),"IV",DA,0))
31 S X=$P(DIKZ(0),U,8)
32 I X'="" X ^DD(55.01,.08,1,1,2)
33 S DIKZ(0)=$G(^PS(55,DA(1),"IV",DA,0))
34 S X=$P(DIKZ(0),U,9)
35 I X'="" X ^DD(55.01,.09,1,1,2)
36 S DIKZ(1)=$G(^PS(55,DA(1),"IV",DA,1))
37 S X=$P(DIKZ(1),U,1)
38 I X'="" X ^DD(55.01,.1,1,1,2)
39 S DIKZ(0)=$G(^PS(55,DA(1),"IV",DA,0))
40 S X=$P(DIKZ(0),U,11)
41 I X'="" X ^DD(55.01,.12,1,1,2)
42 S DIKZ(3)=$G(^PS(55,DA(1),"IV",DA,3))
43 S X=$P(DIKZ(3),U,1)
44 I X'="" X ^DD(55.01,31,1,1,2)
45 S DIKZ(0)=$G(^PS(55,DA(1),"IV",DA,0))
46 S X=$P(DIKZ(0),U,17)
47 I X'="" X ^DD(55.01,100,1,1,2)
48 S X=$P(DIKZ(0),U,17)
49 I X'="" K:X'="N" ^PS(55,"ANVO",DA(1),DA)
50 S X=$P(DIKZ(0),U,17)
51 I X'="" K:X'="D"&($D(^PS(55,DA(1),"IV",DA,"ADC"))) ^PS(55,"ADC",^PS(55,DA(1),"IV",DA,"ADC"),DA(1),DA)
52 S DIKZ(4)=$G(^PS(55,DA(1),"IV",DA,4))
53 S X=$P(DIKZ(4),U,9)
54 I X'="" X ^DD(55.01,142,1,1,2)
55 S X=$P(DIKZ(4),U,9)
56 I X'="" K ^PS(55,"APIV",DA(1),DA)
57 S DIKZ(4)=$G(^PS(55,DA(1),"IV",DA,4))
58 S X=$P(DIKZ(4),U,10)
59 I X'="" X ^DD(55.01,143,1,1,2)
60 S X=$P(DIKZ(4),U,10)
61 I X'="" K ^PS(55,"ANIV",DA(1),DA)
62 S DIKZ(0)=$G(^PS(55,DA(1),"IV",DA,0))
63 S X=$P(DIKZ(0),U,1)
64 I X'="" K ^PS(55,DA(1),"IV","B",$E(X,1,30),DA)
65CR1 S DIXR=481
66 K X
67 S X(1)=$P(DIKZ(0),U,2)
68 S X(2)=$P(DIKZ(0),U,3)
69 S X=$G(X(1))
70 I $G(X(1))]"",$G(X(2))]"" D
71 . K X1,X2 M X1=X,X2=X
72 . S:$D(DIKIL) (X2,X2(1),X2(2))=""
73 . N DIKXARR M DIKXARR=X S DIKCOND=1
74 . S X=$$PATCH^XPDUTL("PXRM*1.5*12")
75 . S DIKCOND=$G(X) K X M X=DIKXARR
76 . Q:'DIKCOND
77 . D KPSPA^PSJXRFK(.X,.DA,"IV")
78CR2 S DIXR=493
79 K X
80 S DIKZ(.2)=$G(^PS(55,DA(1),"IV",DA,.2))
81 S X(1)=$P(DIKZ(.2),U,8)
82 S DIKZ(0)=$G(^PS(55,DA(1),"IV",DA,0))
83 S X(2)=$P(DIKZ(0),U,21)
84 S X=$G(X(1))
85 I $G(X(1))]"",$G(X(2))]"" D
86 . K X1,X2 M X1=X,X2=X
87 . S:$D(DIKIL) (X2,X2(1),X2(2))=""
88 . N DIKXARR M DIKXARR=X S DIKCOND=1
89 . S X=1
90 . S DIKCOND=$G(X) K X M X=DIKXARR
91 . Q:'DIKCOND
92 . K ^PS(55,"ACX",$E(X(1),1,30),$E(X(2),1,30),DA_"V")
93CR3 S DIXR=494
94 K X
95 S DIKZ(0)=$G(^PS(55,DA(1),"IV",DA,0))
96 S X(1)=$P(DIKZ(0),U,3)
97 S DIKZ("DSS")=$G(^PS(55,DA(1),"IV",DA,"DSS"))
98 S X(2)=$P(DIKZ("DSS"),U,1)
99 S X=$G(X(1))
100 I $G(X(1))]"",$G(X(2))]"" D
101 . K X1,X2 M X1=X,X2=X
102 . S:$D(DIKIL) (X2,X2(1),X2(2))=""
103 . K ^PS(55,"AIVC",$E(X(1),1,20),$E(X(2),1,20),DA(1),DA)
104CR4 S DIXR=496
105 K X
106 S DIKZ(0)=$G(^PS(55,DA(1),"IV",DA,0))
107 S X(1)=$P(DIKZ(0),U,3)
108 S DIKZ("DSS")=$G(^PS(55,DA(1),"IV",DA,"DSS"))
109 S X(2)=$P(DIKZ("DSS"),U,1)
110 S X=$G(X(1))
111 I $G(X(1))]"",$G(X(2))]"" D
112 . K X1,X2 M X1=X,X2=X
113 . S:$D(DIKIL) (X2,X2(1),X2(2))=""
114 . K ^PS(55,DA(1),"IV","AIN",X(1),X(2),DA)
115CR5 K X
116 G:'$D(DIKLM) A Q:$D(DIKILL)
117END G ^PSSJXR3
Note: See TracBrowser for help on using the repository browser.