update codes for both medevents and drugs