Fix retrieval and testing of medication status