Healthcare and the treatment of illnesses are one of the most fundamental aspects of modern human life, and drugs are the easiest way to approach to healthcare. Consuming drugs lead to diverse effects however. For instance, drugs reduce our pain, cure diseases, and maintain our healthy life. Unfortunately, due to the high price of drugs, not everyone can enjoy the same benefits. We propose using the generic medicine names, which are used to identify drugs that contain similar chemical ingredients and therefore perform similar purposes, to alleviate such concerns. That is, people will have the opportunity to select drugs that are suitable to their preferences. It is important to note that drugs with the same generic name do serve similar purposes, but may result in different side-effects at the same time. Drugs affect the human body in many different ways that are not all necessarily good. The side effects of drugs posed a major problem, and its negative effects sometimes take form in serious ways. This paper will present a way to address the issue of side effects by recommending alternative drugs that have the same effect, but with less detrimental effects. In the healthcare group, which is the platform of social networks, users share their comments and experiences about drugs, from which we can extract numerical ratings of various drugs. By integrating the generic names of drugs and data from social networks, we can get more data to draw meaningful conclusions. The process involves identifying a group of drugs under the same generic name, and comparing the user review-based ratings to determine which drug has less side effects. This paper will present a way to collect, process, and make use of data from social networks, as well as provide one solution to the issue of drug side effects.