updated script to save person_name_code
updated the way dispensed drugs is saved