| 1 | PSDLBLR1 ;BIR/JPW-CS pin fed Label Reprint for CS Disp Drug ; 29 Aug 94
|
---|
| 2 | ;;3.0; CONTROLLED SUBSTANCES ;;13 Feb 97
|
---|
| 3 | S Y=$P($G(^PSD(58.8,+PSDS,2)),"^",10),C=$P(^DD(58.8,24,0),"^",2) D Y^DIQ S PSDEV=Y
|
---|
| 4 | 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
|
---|
| 5 | 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
|
---|
| 6 | U IO D ^PSDLBLR2
|
---|
| 7 | END ;kill variables and exit
|
---|
| 8 | K %,%DT,%H,%I,%ZIS,C,DA,DIC,DIE,DIR,DIROUT,DIRUT,DR,DRUG,DTOUT,DUOUT,JJ,JLP1,LIQ,NAOU,NAOUN,NODE,OK
|
---|
| 9 | K POP,PSD,PSD1,PSDA,PSDBAR0,PSDBAR1,PSDCNT,PSDEV,PSDJ,PSDN,PSDPN,PSDOUT,PSDR,PSDRG,PSDPRT,PSDRN,PSDS,PSDSN,PSDT,PSDX1,PSDX2
|
---|
| 10 | K QTY,STAT,TEMP,TEST,TEXT,X,Y,ZTDESC,ZTIO,ZTRTN,ZTSAVE,ZTSK
|
---|
| 11 | K ^TMP("PSDLBLR",$J)
|
---|
| 12 | D ^%ZISC S:$D(ZTQUEUED) ZTREQ="@"
|
---|
| 13 | Q
|
---|
| 14 | SAVE ;save queued variables
|
---|
| 15 | S (ZTSAVE("PSDS"),ZTSAVE("PSDSN"))=""
|
---|
| 16 | S ZTSAVE("PSD1(")=""
|
---|
| 17 | Q
|
---|