medication functionality update