Humanity today is suffering through one of the most dangerous pandemics in history, COVID-19 (Coronavirus disease). The COVID-19 pandemic has affected us very severely though today’s medical section is advanced and well equipped with the latest technology. The virus is spreading rapidly, resulting in an escalation in the number of patients admitted. A contextual patient classification system has been implemented for better analysis of the data from the discharge summary available from the research hospital. We have also analyzed the data on COVID-19 and non-COVID-19 patients. During the analysis, studies on the medicines, tests, medical services, and the overall effect of age and gender were done for COVID-19 and non-COVID-19 patients. The death versus survival ratio for the COVID-19 positive patients has also been studied. The accuracy of the contextual patient classification system achieved was 97.4 %. The combination of data analysis and contextual patient classification will be helpful to all the sectors to be prepared for any such pandemic in the future.