source: WorldVistAEHR/trunk/r/PHARMACY_DATA_MANAGEMENT-PSS/PSSJXR8.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: 2.9 KB
Line 
1PSSJXR8 ; COMPILED XREF FOR FILE #55.06 ; 01/17/08
2 ;
3 S X=$P(DIKZ(6.5),U,1)
4 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(78)=X,PSGAL("C")=6000,PSGALFF=65 D ^PSGAL5
5 S X=$P(DIKZ(0),U,21)
6 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(80)=X,PSGAL("C")=6000,PSGALFF=66 D ^PSGAL5
7 S DIKZ(.1)=$G(^PS(55,DA(1),5,DA,.1))
8 S X=$P(DIKZ(.1),U,1)
9 I X'="" K ^PS(55,DA(1),5,"C",$E(X,1,30),DA)
10 S X=$P(DIKZ(.1),U,1)
11 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(101)=X,PSGAL("C")=6000,PSGALFF=101,PSGALFN=55.06 D ^PSGAL5
12 S X=$P(DIKZ(.1),U,2)
13 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(102)=X,PSGAL("C")=6000,PSGALFF=102,PSGALFN=55.06 D ^PSGAL5
14 S X=$P(DIKZ(0),U,24)
15 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(103)=X,PSGAL("C")=6000,PSGALFF=103,PSGALFN=55.06 D ^PSGAL5
16 S X=$P(DIKZ(0),U,25)
17 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(104)=X,PSGAL("C")=6000,PSGALFF=104,PSGALFN=55.06 D ^PSGAL5
18 S X=$P(DIKZ(0),U,26)
19 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(105)=X,PSGAL("C")=6000,PSGALFF=105,PSGALFN=55.06 D ^PSGAL5
20 S X=$P(DIKZ(.1),U,3)
21 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(106)=X,PSGAL("C")=6000,PSGALFF=106,PSGALFN=55.06 D ^PSGAL5
22 S X=$P(DIKZ(0),U,27)
23 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(107)=X,PSGAL("C")=6000,PSGALFF=107,PSGALFN=55.06 D ^PSGAL5
24 S X=$P(DIKZ(0),U,1)
25 I X'="" I '$D(DIU(0)),'$D(PSGPO) S PSGAL(1)=X,PSGAL("C")=6000,PSGALFF=.01 D ^PSGAL5
26 S X=$P(DIKZ(0),U,1)
27 I X'="" K ^PS(55,DA(1),5,"B",$E(X,1,30),DA)
28 S X=$P(DIKZ(0),U,1)
29 I X'="" I '$D(DIU(0)) K ^PS(55,"AUE",DA(1),DA)
30 S X=$P(DIKZ(0),U,1)
31 I X'="" K ^PS(55,"APV",DA(1),DA)
32 S X=$P(DIKZ(0),U,1)
33 I X'="" K ^PS(55,"ANV",DA(1),DA)
34CR1 S DIXR=480
35 K X
36 S X(1)=$P(DIKZ(2),U,2)
37 S X(2)=$P(DIKZ(2),U,4)
38 S X=$G(X(1))
39 I $G(X(1))]"",$G(X(2))]"" D
40 . K X1,X2 M X1=X,X2=X
41 . S:$D(DIKIL) (X2,X2(1),X2(2))=""
42 . N DIKXARR M DIKXARR=X S DIKCOND=1
43 . S X=$$PATCH^XPDUTL("PXRM*1.5*12")
44 . S DIKCOND=$G(X) K X M X=DIKXARR
45 . Q:'DIKCOND
46 . D KPSPA^PSJXRFK(.X,.DA,"UD")
47CR2 S DIXR=492
48 K X
49 S DIKZ(.2)=$G(^PS(55,DA(1),5,DA,.2))
50 S X(1)=$P(DIKZ(.2),U,8)
51 S DIKZ(0)=$G(^PS(55,DA(1),5,DA,0))
52 S X(2)=$P(DIKZ(0),U,21)
53 S X=$G(X(1))
54 I $G(X(1))]"",$G(X(2))]"" D
55 . K X1,X2 M X1=X,X2=X
56 . S:$D(DIKIL) (X2,X2(1),X2(2))=""
57 . N DIKXARR M DIKXARR=X S DIKCOND=1
58 . S X=1
59 . S DIKCOND=$G(X) K X M X=DIKXARR
60 . Q:'DIKCOND
61 . K ^PS(55,"ACX",$E(X(1),1,30),$E(X(2),1,30),DA_"U")
62CR3 S DIXR=495
63 K X
64 S DIKZ(2)=$G(^PS(55,DA(1),5,DA,2))
65 S X(1)=$P(DIKZ(2),U,4)
66 S DIKZ(8)=$G(^PS(55,DA(1),5,DA,8))
67 S X(2)=$P(DIKZ(8),U,1)
68 S X=$G(X(1))
69 I $G(X(1))]"",$G(X(2))]"" D
70 . K X1,X2 M X1=X,X2=X
71 . S:$D(DIKIL) (X2,X2(1),X2(2))=""
72 . K ^PS(55,"AUDC",$E(X(1),1,20),$E(X(2),1,20),DA(1),DA)
73CR4 S DIXR=497
74 K X
75 S DIKZ(2)=$G(^PS(55,DA(1),5,DA,2))
76 S X(1)=$P(DIKZ(2),U,4)
77 S DIKZ(8)=$G(^PS(55,DA(1),5,DA,8))
78 S X(2)=$P(DIKZ(8),U,1)
79 S X=$G(X(1))
80 I $G(X(1))]"",$G(X(2))]"" D
81 . K X1,X2 M X1=X,X2=X
82 . S:$D(DIKIL) (X2,X2(1),X2(2))=""
83 . K ^PS(55,DA(1),5,"AUN",X(1),X(2),DA)
84CR5 K X
85 G:'$D(DIKLM) A^PSSJXR7 Q:$D(DIKILL)
86END G ^PSSJXR9
Note: See TracBrowser for help on using the repository browser.