generate medicine codes, user hashes, admin page, viewData into views