[MT-L] Asking For Help "2d" BARCODE Using NPR Meditech Code.

158 views
Skip to first unread message

Baker, Gary

unread,
Mar 8, 2012, 3:55:03 PM3/8/12
to Medit...@mtusers.com, Meditech-...@mtusers.com

To Anyone Who Can Help,

 

I have a request from our Pharmacy User.  We are Using Meditech’s CS (Client Server) Pharmacy System Version 5.65

We currently print a Pharmacy IV Label using NPR that prints a RX# - BAR.CODE  field on the label

 

We us a “DATAMAX M CLASS” Thermal Printer to print IV Labels.  I have been asked to switch to a “2d” BARCODE format. 

 

I have asked Meditech for help with this.  They have stated that my printer in the UNIVERSE must be defined as “GENERIC” and the print driver for the printer must be setup to use a “GENERIC” print driver.  Which they now are.  Meditech has also given me a sample NPR program:  “PHA.RX.zcus.jph.bulk.label.2d” report # 00983 that I downloaded from the Meditech Report Archive that prints a “2d” format. 

 

The code in the “print” macro of the program uses “escape/mapping” codes that I do not understand.  Here is a sample:

*(Can anyone help me with this?  I am getting everything printing on the same line overlapping output/unreadable and no “2d” bartcode.  Please help if you can.)*

 

n   Gary Baker --  gary....@uthct.edu 

 

;- ESC SEQ Codes for Datamax Label Printer

;---------

N("")^!,

D(2)_"L"_D(13)^!,

"1911A0500800010"_@patient's.name_D(13)^!,

"1911A0500800280"_@patient's.location_" "_(@patient's.room.bed)_D(13)^!,

"1911A0500650010"_@patient's.acct.number_"  DOB:"_%Z.date.out.long(@patient's.computed.birthdate)_"   Disp:"_%Z.date.out(@.today)_D(13)^!,

"1911A0500500010"_...@MED.GEN.NAME_" "_@med's.strength_D(13)^!, 

IF{@med's.name "1911A0500350010"_"("_@med's.name_")"_D(13)^!}, 

"1911A0500200010"_...@TEXT.OUT_D(13)^!, 

"1911A0500050010"_"DISPENSE: "_...@number.to.dispense_" x "_@med's.bulk.size_" "_...@BULK.ID_D(13)^!,

;---------------------------------------------------------

; 2D Datamatrix Barcode

"1W1c33000000003052000000000"_@NUMBER_D(13)^!,

;----------------------------------------------------------

-/LBLS[999]^MAX,

IF{MAX=/["trq"];@FORM.FEED},

1

 

BULK.ID

IF{@med's.bulk.id^Z Z:14T}

 

TEXT.OUT

IF{@Text.out(@label.comment[1])^Y Y:35T}

Joe Cocuzzo

unread,
Mar 8, 2012, 4:05:12 PM3/8/12
to Baker, Gary, Medit...@mtusers.com, Meditech-...@mtusers.com

If you are seeing the print commands on your label either the printer is not actually set up as GENERIC or the print driver is not actually GENERIC TEXT on the print server.

 

The code in this macro is Datamax DPL code

 

If you are printing to preview you will see a bunch of overlapping lines.  If you are printing to a laser or other printer you will also get overlapping lines including the print strings and the data.

 

 

 


Joe Cocuzzo
Vice President
NPR Services

Iatric Systems, Inc.
Phone/Fax:
(978) 805-4115
Email: Joe.C...@iatric.com
Web: www.iatric.com


Iatric Systems is a leading provider of integrated software applications, interfaces and reporting solutions for hospitals and healthcare systems.

__________

Baker, Gary

unread,
Mar 8, 2012, 5:10:51 PM3/8/12
to Joe Cocuzzo, Medit...@mtusers.com, Meditech-...@mtusers.com

Can you explain to me what Datamax DPL code means?  Does that mean it will not work on the Datamax M Class printer I am working with?

 

My knowledge of Datamax Thermal Printers is limited.  Any help would be appreciated………Gary Baker

Joe Cocuzzo

unread,
Mar 8, 2012, 5:39:47 PM3/8/12
to Baker, Gary, Medit...@mtusers.com, Meditech-...@mtusers.com

DPL = Datamax Printer Language.

 

It should work with your printer.    If you see the codes themselves printing, that is a sign that either the printer is not set up as Generic in UNV or that there is a datamax print driver messing with you on the print server.  Or possible the UNV setup is not quite correct even though they did put GENERIC in the type field.

 

 


Joe Cocuzzo
Vice President
NPR Services

Iatric Systems, Inc.
Phone/Fax:
(978) 805-4115
Email: Joe.C...@iatric.com
Web: www.iatric.com

__________

Dave Tunc

unread,
Mar 9, 2012, 7:50:19 AM3/9/12
to medit...@mtusers.com
I'm not sure why N("")^! is in there, but the next line just sets the printer to label mode.
 
For DPL.....
 
The numbers in quotes sets up the rotation, orientation, and font, get concatenated to a datafield, and then get concatenated with _D(13) and sent out to the printer.  Same for the barcode.  All that code is in the DPL programming manual.
 
Since you downloaded that, you're probably going to have to customize it, and I've found making a new layout in label software easier than manipulating the string before the data field.
 
As Joe said, you are probably getting some driver code inserted/stripped before it hits the printer.  Make sure you dont have the THERMAL YES in your footer too (if that applies to C/S!)
 
Dave

__________________________________________________________________

Valley Health System is the recipient of:

• Best Places to Work in New Jersey Designation from NJBIZ.
• J.D. Power and Associates Distinguished Hospital Program Awards for Outstanding Inpatient and Emergency Department Care.
• Magnet Designation for Nursing Excellence from the American Nurses Credentialing Center since 2003.
• 10 Joint Commission Gold Seals for Cardiac, Cancer, Joint Replacement, and Stroke Care.
• Named by HealthGrades as one of America's 100 Best Hospitals for Cardiac Care, Cardiac Surgery, Coronary Intervention, Orthopedic Surgery, Joint Replacement, and Gastrointestinal Care.

• Designation as one of only 65 hospitals in the nation to be a Leapfrog Group Top Hospital.

For more information please visit www.valleyhealth.com/awards

Howard Chase

unread,
Mar 13, 2012, 2:23:51 PM3/13/12
to medit...@mtusers.com
Hi Gary,

I have a CS IV Label in the Meditech Archives for CS..Report ID: 01247
Product Line: Client Server
Application: PHA

You will want to get very close to a programming manual for the Datamax.

In the Macro of my report I have explained the 2d programming format for
this line for this particular Barcode and font.

1W1c22000013000802000000000"_@number_D(13)^!

;"1 W1c 22 000 0130 0120 2000 0000 00"_@number_D(13)^!,
Rotation Font WH BCHt Row Col FntH FntW Data string
ie
di
tg
ht
h
; Above W requires 2 add char to spec Barcode/Font ID

I have uploaded a new version which has a better looping format for the
meds, additives and carriers.Report ID 01355

You will probably want to make changes... once you get the hang of it.


Howard


Howard D.Chase, RN
Senior Clinical Systems Analyst
Androscoggin Valley Hospital
59 Page Hill Road
Berlin, NH 03570
603-326-5669

On 3/8/2012 3:55 PM, Baker, Gary wrote:
> To Anyone Who Can Help,
>
> I have a request from our Pharmacy User. We are Using Meditech’s CS
> (Client Server) Pharmacy System Version 5.65
>
> We currently print a Pharmacy IV Label using NPR that prints a RX# -
> BAR.CODE field on the label
>
> We us a “DATAMAX M CLASS” Thermal Printer to print IV Labels. I have
> been asked to switch to a “2d” BARCODE format.
>
> I have asked Meditech for help with this. They have stated that my
> printer in the UNIVERSE must be defined as “GENERIC” and the print
> driver for the printer must be setup to use a “GENERIC” print driver.
> Which they now are. Meditech has also given me a sample NPR program:
> “PHA.RX.zcus.jph.bulk.label.2d” report # 00983 that I downloaded from
> the Meditech Report Archive that prints a “2d” format.
>
> The code in the “print” macro of the program uses “escape/mapping” codes
> that I do not understand. Here is a sample:
>

> **(Can anyone help me with this? I am getting everything printing on the


> same line overlapping output/unreadable and no “2d” bartcode. Please

> help if you can.)**
>
> nGary Baker -- gary....@uthct.edu <mailto:gary....@uthct.edu>

> ===###===###===###===###===###===###===
>
> Please do NOT send messages that ask "Please post to the list" or "I'd like to see your answers" or "Send that info to me, too" These are useless messages that just waste the email server's resources. Instead, email the original requester and ask that they send you or post the results of their question.
>
> To UNSUBSCRIBE or to SUBSCRIBE, go to http://MTUsers.net for information.
>
> You can locate the:
> 1) meditech-l archives
> 2) NPR/Magic/CS tips
> 3) job opportunities in the Meditech community
> http://mtusers.net
>
> Do NOT send email to meditech...@MTUsers.com. This is a system email box that is NOT monitored by a human. If you need help or advice on how to use the meditech-l, email lo...@MTUsers.com or ju...@MTUsers.net. Both of these people help manage the meditech-l, so they are your best resource.
>
> ===***===***===***===***===***===***===

===###===###===###===###===###===###===

Please do NOT send messages that ask "Please post to the list" or "I'd like to see your answers" or "Send that info to me, too" These are useless messages that just waste the email server's resources. Instead, email the original requester and ask that they send you or post the results of their question.

To UNSUBSCRIBE or to SUBSCRIBE, go to http://MTUsers.net for information.

You can locate the:
1) meditech-l archives
2) NPR/Magic/CS tips
3) job opportunities in the Meditech community
http://mtusers.net

Do NOT send email to meditech...@MTUsers.com. This is a system email box that is NOT monitored by a human. If you need help or advice on how to use the meditech-l, email lo...@MTUsers.com or ju...@MTUsers.net. Both of these people help manage the meditech-l, so they are your best resource.

===***===***===***===***===***===***===

Reply all
Reply to author
Forward
0 new messages