Expanded unduplication to remove all -- at least hypothetically -- medicines which could have been discontinued. Also started attempting to find the code in upduplicateOtherMeds() which si responsible for still leaving some duplicates.
Trying to work on the unduplication logic again; there were too many duplicates.
Failing at unduplication logic correction. Trying to remove lagging duplicates, starting from scratch. Need time with a white board -____- too much time on wards.
Fixed the unduplication. One minor error; the last entry in the list is duplicated.
Fixed the duplicate final entry.