Update medicines using checkbox