source: WorldVistAEHR/trunk/r/OUTPATIENT_PHARMACY-PSO-APSP-HUIP/PSOXZA12.m@ 1042

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

revised back to 6/30/08 version

File size: 685 bytes
Line 
1PSOXZA12 ; COMPILED XREF FOR FILE #52.2 ; 01/17/08
2 ;
3 S DA=0
4A1 ;
5 I $D(DISET) K DIKLM S:DIKM1=1 DIKLM=1 G @DIKM1
60 ;
7A S DA=$O(^PSRX(DA(1),"P",DA)) I DA'>0 S DA=0 G END
81 ;
9 S DIKZ(0)=$G(^PSRX(DA(1),"P",DA,0))
10 S X=$P(DIKZ(0),U,1)
11 I X'="" S ^PSRX("ADP",$E(X,1,7),DA(1),DA)=""
12 S X=$P(DIKZ(0),U,9)
13 I X'="" D SAS2^PSOSUTL
14 S X=$P(DIKZ(0),U,16)
15 I X'="" S ^PSRX("AN",$E(X,1,30),DA(1),DA)=""
16 S X=$P(DIKZ(0),U,19)
17 I X'="" S ^PSRX("AM",$E(X,1,30),DA(1),DA)=""
18CR1 S DIXR=478
19 K X
20 S X(1)=$P(DIKZ(0),U,10)
21 S X(2)=$P(DIKZ(0),U,19)
22 S X=$G(X(1))
23 I $G(X(1))]"",$G(X(2))]"" D
24 . K X1,X2 M X1=X,X2=X
25 . D SKIDX^PSOPXRMU(.X,.DA,"P","S")
26CR2 K X
27 G:'$D(DIKLM) A Q:$D(DISET)
28END G ^PSOXZA13
Note: See TracBrowser for help on using the repository browser.