; Caculate the new value of $Y for formatting purposes.
BOTH
; Ask the user which to sort by i.e, CPT Code -or- Procedure
INA(Y)
; Determines if the procedure is inactive
; Input : IEN of file 71
; Output: 1 if active, 0 if inactive
HDR
; Header
START
; Start processing data & printing to the device here
KILLDIR
; Kill off variables from DIR call
DEV
; Device selection
ITYPE()
; Select the Imaging Type(s)
EN1
; Entry point for RA BARPROCPRINT (Barcoded Procedure List)
; variable list:
; 'RADIC' : namespaced DIC input variables passed to EN1^RASELCT
; 'RAPRNT': data elements to print i.e, CPT Code, Procedure or both
; 'RASORT': data elements to sort by i.e, CPT Code or Procedure
; '^TMP($J,"RA I-TYPE")': Imaging Type(s) selected by the user
; '^TMP($J,"RA PROC")' : Procedure(s) selected by the user
KILL
; Kill all other variables [ includes ^TMP($J) ]
DSCR(Y)
; Device screen logic, select only barcode capable devices.
LINE
; Print ten lines of text
HI()
; user input of height (in lines) of the barcode
; returns the height (in lines) of the barcode, OR -1 if user chooses
; to exit without inputting a number.
Prompt: !,"If you don't know how to answer this prompt, first determine which printer",!,"you are going to use. Then exit this option and re-select it from your menu."
Line Location: HELP+1
Function Call: WRITE
Prompt: !,"When you are asked if you want to print a sample barcode, enter 'Yes'."
Line Location: HELP+2
Function Call: WRITE
Prompt: !,"Enter your printer selection at the 'DEVICE' prompt, then retrieve your",!,"sample printout. If no barcode has printed, contact your IRM and ask them"
Line Location: HELP+3
Function Call: WRITE
Prompt: !,"to set up the printer for barcode printing. If a barcode has printed, use",!,"the line counts printed above and below the barcode to determine how many"
Line Location: HELP+4
Function Call: WRITE
Prompt: !,"vertical lines the barcode occupies (include the procedure name line printed",!,"below the barcode)."