Multiple Prescriptions To be Printed
Submitted by johnray21216 on Sun, 18/07/2021 - 04:24
Hello,
I would like to ask on how to print multiple medication prescriptions in one single prescription file. I know that there is a Medical Record that lists all prescriptions/services per visit but I would just like to print all the medications that was given on a particular visit.
Thanks,
Re: Multiple Prescriptions To be Printed
You can print off a summary of just the medications in a visit in Patients - Medical Records - Summary:
Re: Multiple Prescriptions To be Printed
Hi,
Thanks for the response. I tried that and it works for the purpose but is there a way to integrate multiple prescription printing in just one page? For example, I have a patient with multiple prescriptions in the same visit. I get it that the Medical Summary can provide that printing I need but I was just curious if it is possible to print multiple prescriptions on the same day visit or based on a specific date range via the Prescription tab.
Thanks,
Re: Multiple Prescriptions To be Printed
No. It could be supported by writing a report however.
This would need to be launched from Reporting - Reports.
Re: Multiple Prescriptions To be Printed
Hello,
Thanks for the tip. I have a hard time figuring out how to implement that in a report though. I was also thinking if I could make this work on the Medical Records page wherein when a medication/prescription is selected to be printed, it will print an actual prescription.
Is it possible to use the Medical Records print functionality for this and print multiple prescriptions?
Thanks,
Re: Multiple Prescriptions To be Printed
Hi,
If you are looking for a way to generate a letter that includes a list of all the Medications dispensed in a particular visit you will need four things setup in OpenVPMS:
1. A Report (JRXML) that generates the medication list.
2. A Sub report (JRXML) for the list lines (individual medications). You can edit thsi to change the formatting and info displayed.
3. A report Macro to allow the report to be run from inside the document i.e
4. A document (letter) to merge that uses the field [macro:eval('@VisitMeds', $OpenVPMS.visit)].
Once this has been setup you need to have the specific visit selected in the summary and then add the specific Pateint Letter template.
I have attached the report and sub report referred to in 1. and 2.
The letter I will leave to you as an exercise.
Re: Multiple Prescriptions To be Printed
Hello tony,
A big thanks for this. However, I am unsure as to where to test the document and what is displayed when I select the template. I am seeing this on my end. I selected Patients > Medical Records > Documents > New > Letter.
Re: Multiple Prescriptions To be Printed
Hi
Did you setup the Report Macro as shown to use the RPTM VisitMeds report and then use the expression I supplied as a Field in your letter ?
It looks like you may have added it as Input Field not a User Field somehow ?
Should be setup as a user field and then inserted into your document where you want the visit medications to be merged.
Should display like this in your letter template:
Cheers
Tony
Re: Multiple Prescriptions To be Printed
Hi Tony,
I did create the variable as a UserField as shown below.
Also, the report and subreport were added as well accordingly.
As well as the macro.
Please let me know what I did wrong. I have also attached the template I used as a reference.
Re: Multiple Prescriptions To be Printed
Hi,
Your Patient Medication List Report (top screen shot) has the incorrect jrxml attached. Should be RPTM VisitMeds.jrxml i.e the master report.
Re: Multiple Prescriptions To be Printed
Hi tony,
Already changed it but still not working. Im still seeing the one below when selecting the template.
And when I try to print it, it shows no Items found even if i have medication added for the current date.
Re: Multiple Prescriptions To be Printed
Hi,
The prompt you are getting is an Input Field you have added most likely accidentally. In OpenOffice unfortunately if you dont have any test they difficult to find so you may need to search the file to remove.
The letter works for me in that it displays medications. Make sure you have the Visit selected in Medical Records before generating the letter as it doesn't use dates it looks for all medications linked to the current selected Visit.
Tony
Re: Multiple Prescriptions To be Printed
Hi,
I already got what I wanted. Thank you for the incredible help.
Re: Multiple Prescriptions To be Printed
Hi Tony,
I do have an additional question. How can I separate the name of the medication to a specific remark and label it with numbers? I've tried searching some ways but i dont know how to implement it in OpenOffice.
Edit: I tried doing a regex on the function but it does not work.
Thanks,
Re: Multiple Prescriptions To be Printed
Hi,
I would need a bit more detail in order to help. What fields in the medication details do you want to add or display differently ?
Tony
Re: Multiple Prescriptions To be Printed
Hi Tony,
I would want to separate the name of the medication and the description text (like Medicine - vet notes/label) on a separate line.
So something like:
Medication
Sig/Dosage Label/Label
Thanks,
Re: Multiple Prescriptions To be Printed
Hi,
That would require editing of the VisitMeds Ietms report to add new fields etc. Probably beyond the scope of community help to show you how to do this but using the existing jrxml file you should be able to work out the extra field names and text fields to add in the detail band of the sub report :-)
Tony
Re: Multiple Prescriptions To be Printed
Hi Tony,
Thank you for this. I think I know what you're trying to say. If my understanding is right then I would make a concatenation onto the @VisitMeds macro and separate the medicine and the label. Is that right?
Thanks,
Re: Multiple Prescriptions To be Printed
Hi,
Not really. You would need to edit the RPTM VisitItesmMeds.jrxml jasper report and make the necessary mdoifications to display the medication fields as you require. This involves adding teh field names and add text fields into the detail band in the format you require. This requires some knowledge on hwo to edit these using Jasper Studio (a GUI jasper reports editor.
Tony