Medication template bugfixes

Change-Id: I4d2cdf05dd201686f702a5e2da68b9c2c3905e7d
Signed-off-by: Jeremy Ho <jujaga@gmail.com>