Issue:
How can I hardcode the cpi, cpl, etc on a hplaser printer?
I have tried using the %Z.printer command with no success.
I want to send the escape sequences directly to the printer at
BEFORE.PRINT.  

Answer:
        In order to talk with your hplaser printer you need to use the
language that it understands. Printer Control Language(PCL) allows you
to precisely control the actions of your printer. The CPI and CPL are
lineprinter conventions that are used by Meditech. When conversing with
a laser printer you want to utilize FONT settings. By manipulating the
font and font size you can produce reports unrestricted by the Meditech
Standard.
The Macro and data element below demonstrate how to utilize this
capability.

MACRO start
        ""^/FORM,
        ;# of copies (3)
        (27)_"&l3X"^!,
        ;pull from tray two (4)
        D(27)_"&l4H"^!,
        ;set font to ten point Courier (Meditech Standard)
        D(27)_D(40)_"s1p09v0s0b4099T"^/SYSFONT,
        ;set primary font eight point five semi-bold Courier
        D(27)_D(40)_"s1p8.5v0s1b4099T"^/FONT,
        ;set primary font seven point Courier typeface
        D(27)_D(40)_"s1p7.0v0s1b4099T"^/FONT2,
        ;Title font
        D(27)_D(40)_"s1p12v0s0b25093T"_D(27)^/FONT3,
        D(27)_D(40)_"s1p6.0v0s1b4099T"^/FONT4

What we have done here is to define a few variables the fonts we want to
see in the output document. We are also sending a few extra instructions
( tray and copies) to the printer to make life easier for the user. 

DATA ELEMENT xx.other.doctor
        FREE=DAT
        LEN=30
        JFY=L
        VAL=/FONT_
        VAL=D(27)_"*p280Y"_D(27)_"*p200X"_
        [EMAIL PROTECTED]

In the VAL statement we pull in the font from the macro, append it to a
specific pixel position append the Meditech data piece and "SEND TO
device (^!)". 
Note:
        * The pixel position thing is optional. I use it to overlay my
information onto an overlay starting at a precise point.
        * 1/3 of an inch is 100 pixels.
        * The pixel point is the bottom left pixel in the character.

Gordon Dowling
[EMAIL PROTECTED]
Applications Analyst
Huron Perth Healthcare Alliance
Stratford, ON  N5A 2Y6
(519) 272-8210 ext 2268


-----Original Message-----
From: Roger Beverly [mailto:[EMAIL PROTECTED] 
Sent: January 19, 2007 8:25 AM
To: 'Alan Miller'; [email protected]
Subject: RE: [MEDITECH-L] PHARMACY RULE QUESTION

I already have a NPR report that does that.  Here is the catch - I want
a
report to print at the time of order entry called by a pharmacy rule.
In
essence, we are replacing the meditech labels with a report sent to a
laser
printer.  We  use a double check process for all new orders entered -
comparing the labels to the original order.  We are going to an
electronic
fax process for order entry rather than having the old carbon copies.
Therefore, we no longer have a hard copy of the order to compare labels
to.
We have chosen to recreate the labels on a laser printer report and
compare
that report to the Patient's profile in Meditech.

There are several challenges - the data is stored in a temporary data
structure until the file process completes.  Since rules are evaluated
before the orders are filed a standard RW report written in Pha.rx.file
will
not work.

The other challenge is to only call the report to be printed once the
last
order has been evaluated, otherwise a report will print for every order
and
waste lots of paper ($$).  The same reason applies for not using a
custom
label fragment - one is printed for every order.

I have parts of it working, but I do have a new question...

How can I hardcode the cpi, cpl, etc on a hplaser printer?  I have tried
using the %Z.printer command with no success.  I want to send the escape
sequences directly to the printer at BEFORE.PRINT.  Any ideas?

Roger 

-----Original Message-----
From: Alan Miller [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 19, 2007 8:06 AM
To: Roger Beverly; [email protected]
Subject: Re: [MEDITECH-L] PHARMACY RULE QUESTION

Wouldn't a regular npr report sorted by enter.date.and.time do the same
time?  Can you elaborate on what you're looking to accomplish?

Alan Miller, RPh

>>> Roger Beverly <[EMAIL PROTECTED]> 01/15/2007 12:58 >>>
 

I am trying to write a pharmacy rule that will store the data for the
new
orders and then print it to a report rather than to the labels.  Does
anyone
have experience with such a thing?
 
Roger Beverly    
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
To subscribe or unsubscribe to the meditech-l, visit MTUsers.COM.

To check the status of the meditech-l, visit MTUsers.NET.

For help, email [EMAIL PROTECTED]
______________________________________
meditech-l mailing list
[email protected]
http://mtusers.com/mailman/listinfo/meditech-l


=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
To subscribe or unsubscribe to the meditech-l, visit MTUsers.COM.

To check the status of the meditech-l, visit MTUsers.NET.

For help, email [EMAIL PROTECTED]
______________________________________
meditech-l mailing list
[email protected]
http://mtusers.com/mailman/listinfo/meditech-l

Reply via email to