source: FOIAVistA/trunk/r/PHARMACY_DATA_MANAGEMENT-PSS/PSSJXR18.m@ 1783

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

initial load of FOIAVistA 6/30/08 version

File size: 3.4 KB
Line 
1PSSJXR18 ; COMPILED XREF FOR FILE #55.01 ; 12/12/07
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=415
66 K X
67 S DIKZ(.2)=$G(^PS(55,DA(1),"IV",DA,.2))
68 S X(1)=$P(DIKZ(.2),U,8)
69 S DIKZ(0)=$G(^PS(55,DA(1),"IV",DA,0))
70 S X(2)=$P(DIKZ(0),U,21)
71 S X=$G(X(1))
72 I $G(X(1))]"",$G(X(2))]"" D
73 . K X1,X2 M X1=X,X2=X
74 . N DIKXARR M DIKXARR=X S DIKCOND=1
75 . S X=1
76 . S DIKCOND=$G(X) K X M X=DIKXARR
77 . Q:'DIKCOND
78 . S ^PS(55,"ACX",$E(X(1),1,30),$E(X(2),1,30),DA_"V")=""
79CR2 S DIXR=466
80 K X
81 S DIKZ(0)=$G(^PS(55,DA(1),"IV",DA,0))
82 S X(1)=$P(DIKZ(0),U,2)
83 S X(2)=$P(DIKZ(0),U,3)
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=$$PATCH^XPDUTL("PXRM*1.5*12")
89 . S DIKCOND=$G(X) K X M X=DIKXARR
90 . Q:'DIKCOND
91 . D SPSPA^PSJXRFS(.X,.DA,"IV")
92CR3 S DIXR=498
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=500
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.