Found out that when I inactivate or delete a medication from medication list in the summary page, the medication name does not get deleted from the list under "current medications" in the most recent encounter page. The only way to get rid of the medication without leaving it in the current note is to remove it by double clicking the current medication box and do it that way.