Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: APSPRT3

APSPRT3.m

Go to the documentation of this file.
APSPRT3 ; IHS/DSD/ENM - PRINT UNIT DOSE LABELS ;  [ 05/14/1998   4:04 PM ]
 ;;6.0;IHS PHARMACY MODIFICATIONS;**1**;09/03/97
START ;
 S IOP=APSPRT("IO") D ^%ZIS U IO
 D PRINT ;--> Prints labels
 D EOJ ; End of job
 Q
 ;
PRINT S APSP("COPIES")=APSP("COPIES")-1 F I=1:1:APSP(24) W !
 W !,?APSP(27),APSP("DRUG") I APSP(29)="Y" W ?APSP(31),APSP("DRUG") ;IHS/DSD/ENM/POC 05/13/98 y replaced w Y
 W !,?APSP(27),APSP("CNTL#"),"  ",APSPRT("EXPDATE")
 I APSP(29)="Y" W ?APSP(31),APSP("CNTL#"),"  ",APSPRT("EXPDATE")
 W ! ;IHS/DSD/ENM/POC y replaced w Y
 I +APSP("QTY")>1 W ?APSP(27),APSP("QTY") W:APSP(29)="Y" ?APSP(31),APSP("QTY") ;IHS/DSD/ENM/POC 05/13/98 y replaced w Y
 F I=1:1:APSP(25) W !
 I APSP("COPIES")>0 G PRINT
 F I=1:1:(APSP(24)+APSP(25)*APSP(26)) W !
 Q
EOJ ;
 D ^%ZISC
 K APSP("DRUG"),APSPRT("EXPDATE"),APSP("COPIES"),APSP("CNTL#")
 K I,IOP
 Q