Medication list

cverk wrote on Thursday, December 20, 2012:

When you add a prescription under the prescription section, there is a button to add the prescription to your patients medication list, which it does.  However, if at a later time you want to remove that medication from the patients medication list, it will not let you.  The only way to remove it is to go back to the original prescription and change the box to no, for adding it to the list.  This is a little troublesome for those people who have changing treatments over time, making you duplicate efforts in keeping medication lists up to date.

This is still an issue in the 5.0 era of the program.

I looked into the code.

In the set medication function, there is the function to add the drug to the medication. But the reverse does not happen.

Has this been addressed by anyone recently?
I have a doc that is having a problem with this in the reporting that makes him look like he is overprescribing.

I just wanted to ask before I go messing around with this code.

Seems like the elseif (!$med && isset($dataRow[‘id’])) condition is not being met to remove or set the prescription to inactive in the medication list.

Thanks in advance.

@brady.miller @MatthewVita @sjpadgett @robert.down @robertovasquez