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

PSOBARV.m

Go to the documentation of this file.
  1. PSOBARV ;BHAM ISC/DMA - CHECK QUALITY OF BARCODES ; 1/15/88 8:20 AM
  1. ;;7.0;OUTPATIENT PHARMACY;;DEC 1997
  1. S DIR("A")="Do you need instructions? ",DIR("B")="N",DIR(0)="SA^1:YES;0:NO",DIR("?")="Enter 'Yes' if instructions are needed, otherwise press RETURN."
  1. D ^DIR G:$D(DTOUT)!($D(DUOUT))!($D(DIRUT))!($D(DIROUT)) OUT I Y D INST
  1. RUN K DIR R !!,"Read Barcode : ",X:DTIME,! S:'$T X="^" G OUT:"^"[X G HELP:X["?" G RUN
  1. OUT K DIR,DTOUT,DUOUT,DIRUT,DIROUT,X,J,Y Q
  1. HELP S DIR("A",1)="Scan the barcode now",DIR("A")="Do you need further instructions? ",DIR("B")="N",DIR(0)="SA^1:YES;0:NO",DIR("?")="Enter 'Yes' if instructions are needed, otherwise press RETURN."
  1. D ^DIR G:$D(DTOUT)!($D(DUOUT))!($D(DIRUT))!($D(DIROUT)) OUT I Y D INST
  1. G RUN
  1. INST F J=1:1 S D=$T(NEWS+J) Q:D="" W !,?5,$P(D,";;",2,2000) I J#22=0 R !,"return to continue ",X:DTIME S:'$T X="^" Q:X="^"
  1. K D Q
  1. ;
  1. NEWS ;
  1. ;;
  1. ;;This option allows you to check the quality of your printed
  1. ;;barcodes. It can also be used for practice in using the
  1. ;;barcode reader.
  1. ;;
  1. ;;ABSOLUTELY NO ACTION IS TAKEN ON THE PRESCRIPTION BY
  1. ;; USING THIS OPTION
  1. ;;
  1. ;;Common causes for failure to read are:
  1. ;;1. Barcode too faint (change printer ribbon)
  1. ;;2. Improper scanning (move the wand at a steady rate)
  1. ;;3. Defective barcode reader (replace the reader)
  1. ;;