MEDITECH CS 5.6 NPR - Download Delimiter Change
If you're working with a version of MEDITECH Client Server 5.6 and you create DOWNLOADS using macros; you'll want to change your DELIMITER code from just a delimiter and include some PCL print codes as shown below. Delimiters like the pipe |, comma, and others will likely not be affected; delimiters like the TAB which are invisible or known as unprintable appear to be stripped out, never making into the print stream and the file. The code you want to examine is the DELIM subroutine in the macro below.
PRINT.PATIENT.HEADER
"Patient Name"^@SEND.DATA,
"Facility"^@SEND.DATA,
"Journal"^@SEND.DATA,
"Batch#"^@SEND.DATA.NO.DELIM,
@NEW.LINE
SEND.DATA
/TXT,IF{/TXT_.=. " ";/TXT}^/TXT,@QUOTE_/TXT_@QUOTE_@DELIM^@PRINTER
SEND.DATA.NO.DELIM
/TXT,IF{/TXT_.=. " ";/TXT}^/TXT,@QUOTE_/TXT_@QUOTE^@PRINTER
NEW.LINE
@NEW.PAGE,
I("")N^!
PRINTER
/PRINTER,I(/PRINTER)^!
NEW.PAGE
IF{/R.LL-1^/R.LL<1 [/R.NEW.PAGE.PGM](0)}
DELIM
; Replace your delimiter, in this example, D(9) for tab,
; with the code below, which includes PCL to allow the TAB thru.
; D(9) sends the TAB character
D(27)_"Y"_D(9)_D(27)_"Z"
QUOTE
D(34)
Want an alert when the next post is published? Click the phone and Subscribe to the MEDITECH Reports Blog!