add med_id to export