Fixed medication updating

No longer deletes and creates a new medication on each edit.