Label Printing

1 view
Skip to first unread message

Agnalda da Graça

unread,
May 27, 2013, 9:26:50 AM5/27/13
to implem...@openmrs.org
Hi

Does anyone know how can I print ´card´ labels with patient´s demographic data?

Tobin Greensweig

unread,
May 27, 2013, 9:34:13 AM5/27/13
to implem...@openmrs.org
It's a hacky solution, but could design an HTML that pulls patient demographics with the <lookup> tag.  It will take some clever CSS to get it to print properly but it can be done...


On Mon, May 27, 2013 at 4:26 PM, Agnalda da Graça <agna...@gmail.com> wrote:
Hi

Does anyone know how can I print ´card´ labels with patient´s demographic data?

--
OpenMRS Implementers: http://go.openmrs.org/implementers
Post: implem...@openmrs.org
Unsubscribe: implementers...@openmrs.org
Manage your OpenMRS subscriptions at https://id.openmrs.org/
 
 



--
Tobin

Wesley Brown

unread,
May 27, 2013, 4:24:51 PM5/27/13
to implem...@openmrs.org
To make Tobin's suggestion a little easier you could use the Jasper report module and output to HTML.  Using jasper gives you a nice report designer and the layout control you'd likely want for something like that. We're doing that to print HTML to a thermal receipt printer and it works quite well.

-Wes

Agnalda da Graça

unread,
May 28, 2013, 9:21:09 AM5/28/13
to implem...@openmrs.org
Thank you guys. I´ll work on that. Do you use any module for print? I´m trying the Printing module.

Dave Thomas

unread,
May 28, 2013, 2:05:51 PM5/28/13
to implem...@openmrs.org
Hi.  The rwanda primary care registration module's barcode printing functionality was written for label printers that can accept EPL instructions.  It isn't a very customizable module outside of rwanda -- printing labels is a very small part of the workflow contained in the module.

d

Agnalda da Graça

unread,
May 31, 2013, 8:53:42 AM5/31/13
to implem...@openmrs.org
Tobin, I´m trying your idea as 1st trial.
I have my HTML form with the demographics and I´m using the Printing Module, but the printing is coming out wit all the page information.
Do you guys have any knowledge on how to print only the form?

Tobin Greensweig

unread,
May 31, 2013, 9:20:15 AM5/31/13
to implem...@openmrs.org
I use a jquery script that I found online somewhere to just print the div.htmlform. Here is a copy of it: http://pastebin.com/y5Se7UtJ

So you can see how we implement everything here's a sort of template that we use on all of our forms: http://pastebin.com/yPb256Ex

We've found that the forms print much more elegantly if you're in 'view mode' so usually we submit, then re-open and print.

Let me know if you have any questions!

Tobin

Agnalda da Graça

unread,
Jun 2, 2013, 4:08:55 PM6/2/13
to implem...@openmrs.org
Thank you so much Tobin, I will try your suggestion.
Agnalda da Graça Macicame

Agnalda da Graça

unread,
Jun 3, 2013, 8:52:01 AM6/3/13
to implem...@openmrs.org
One question...
I have to include jQuery library into OpenMRS first right?

Tobin Greensweig

unread,
Jun 3, 2013, 8:53:22 AM6/3/13
to implem...@openmrs.org
All I had to do was put that script into the proper directory of the OpenMRS server then it all just magically worked...

Agnalda da Graça

unread,
Jun 3, 2013, 10:21:18 AM6/3/13
to implem...@openmrs.org
Is it in the root directory of OpenMRS folder or a specif directory?

Pascal Brandt

unread,
Jun 3, 2013, 11:13:39 AM6/3/13
to implem...@openmrs.org
Hi Agnalda,

Here is the wiki page that explains where to put module resource: https://wiki.openmrs.org/display/docs/Module+Resources

Regards,
Pascal

Agnalda da Graça

unread,
Jun 3, 2013, 1:04:23 PM6/3/13
to implem...@openmrs.org
Thank you for your help but I already had explored that option and it didn´t work. But I found another way to do this.

Thanks Tobin it´s done

Tobin Greensweig

unread,
Jun 3, 2013, 3:49:51 PM6/3/13
to implem...@openmrs.org
Cool! Sorry I'm working in the hospital now or I would have checked my server :)

Let me know if you have any more trouble!

Tobin



Sent from my iPhone
Reply all
Reply to author
Forward
0 new messages