Implemented add medicines functionality