Prescription BUG

blankev wrote on Monday, June 16, 2014:

Please check the following if it was registered for correction

Printing prescriptions:

Clicking the “Check All” link causes extra prescriptions to be printed in the following situation.

I have reproduced it on the 4.1.2 demo

http://demo.open-emr.org:2107/openemr/interface/login/login_frame.php?site=default

I set up three Rx items (Drug01, Drug02, Drug03) and deselected last two then pressed “Check All”, and then “Print”, 4 Rx items are generated on page. Logging out clears the fault. If I click “Check All” with all items selected already…6 Rx’s are generated!

If the clear Button is hit twice, followed by Check all there are only three Rx lines included and not six.

Anyone with a solution?

TNX (epsdky found it during a Rx print customization, will look into it)

fsgl wrote on Tuesday, June 17, 2014:

Seems to working as advertised.

The number of scripts generated is contingent on what happens with each view of the dialog box.

By default all 3 rx’s are ready for printing, if 2 are removed by clicking “Clear All” and 1 is added back; then it’s the original 3 plus the one chosen the second time which gives 4.

If an user wants only 1 rx, remove 2 (by unchecking them and not touching the other buttons); the end result is 1 rx.

If there is the default of 3 and “Check All” is clicked; that means you want the 3 default twice or 6 rx’s.

It’s not a bug; merely a question of how to interpret the buttons and what should or should not be done while still in the same dialog.

blankev wrote on Tuesday, June 17, 2014:

Now do the following:

Open Prescritions. click four times on drug 02 than select all.

Look at the HTML print. 02 01 02 03 is the end result and 03 is on a separate part of the form. This can not be intereted as this is the goal of making a cross work. Deselect all is the first step after a mistake and than click All od make a choice, not AND make a choice.

Check all can be renamed in Repeat prescription for all… but that is not the intention.

Clear hit twice and select. (Could be one or all)

It is even worse. If you hit Selaect all three times, you have to hit Clear all three times to get the correct result. Or what also seems to help is get out of prescription and start a nes session of prescription.

Check all and Clear all are in a state of repeat the action as long as you are in the frame of prescriptions. Logout and Login do clear the Clicks.

fsgl wrote on Tuesday, June 17, 2014:

The most salient point is to avoid the use of the buttons if possible. The way this module is set up, it’s better to exit out of the dialog and then revise the choice of rx’s without using the buttons.

In my clinical practice I would never have to choose a script 4 times for the same patient because I would have written enough refills on 1 script.

There are times when the user must adjust to the “idiosyncrasies” of the module, unless the user chooses to alter the codes. For most users the former is easier than the latter.