Add the medication adding function