18 lines
953 B
Mathematica
18 lines
953 B
Mathematica
|
PSDLBLR1 ;BIR/JPW-CS pin fed Label Reprint for CS Disp Drug ; 29 Aug 94
|
||
|
;;3.0; CONTROLLED SUBSTANCES ;;13 Feb 97
|
||
|
S Y=$P($G(^PSD(58.8,+PSDS,2)),"^",10),C=$P(^DD(58.8,24,0),"^",2) D Y^DIQ S PSDEV=Y
|
||
|
K %ZIS,IOP,IO("Q"),POP S %ZIS="QM",%ZIS("B")=PSDEV D ^%ZIS I POP W !,"NO DEVICE SELECTED OR REPORT PRINTED!" G END
|
||
|
I $D(IO("Q")) K IO("Q"),ZTSAVE,ZTDTH,ZTSK S ZTRTN="START^PSDLBLR2",ZTDESC="Print Dispensing Labels for CS PHARM" D SAVE,^%ZTLOAD,HOME^%ZIS K ZTSK G END
|
||
|
U IO D ^PSDLBLR2
|
||
|
END ;kill variables and exit
|
||
|
K %,%DT,%H,%I,%ZIS,C,DA,DIC,DIE,DIR,DIROUT,DIRUT,DR,DRUG,DTOUT,DUOUT,JJ,JLP1,LIQ,NAOU,NAOUN,NODE,OK
|
||
|
K POP,PSD,PSD1,PSDA,PSDBAR0,PSDBAR1,PSDCNT,PSDEV,PSDJ,PSDN,PSDPN,PSDOUT,PSDR,PSDRG,PSDPRT,PSDRN,PSDS,PSDSN,PSDT,PSDX1,PSDX2
|
||
|
K QTY,STAT,TEMP,TEST,TEXT,X,Y,ZTDESC,ZTIO,ZTRTN,ZTSAVE,ZTSK
|
||
|
K ^TMP("PSDLBLR",$J)
|
||
|
D ^%ZISC S:$D(ZTQUEUED) ZTREQ="@"
|
||
|
Q
|
||
|
SAVE ;save queued variables
|
||
|
S (ZTSAVE("PSDS"),ZTSAVE("PSDSN"))=""
|
||
|
S ZTSAVE("PSD1(")=""
|
||
|
Q
|