Integrated medicines with algorithm

Algorithm now uses medicines from database