prepares medications for firebase schema