source: WorldVistAEHR/trunk/r/PHARMACY_DATA_MANAGEMENT-PSS/PSSJXR18.m@ 1259

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

initial load of WorldVistAEHR

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