This project involves analysing and visualising healthcare data from a dummy dataset which includes information such as age, gender, medical condition, blood type, and prescribed medications for patients. The goal is to gain insights from the data through statistical analysis, visualisations, and patient-specific medication advice.
- Load the healthcare dataset and display the first few rows.
- Check for duplicate entries.
- Display basic statistical summaries for numerical fields.
- Group and count data by gender, medical conditions, blood type, and admission types.
- Age Distribution: Both histogram and kernel density estimation (KDE) plots are used to show the age distribution of patients.
- Medical Condition Distribution: The distribution of various medical conditions is analysed.
- Gender Distribution: A pie chart shows the gender distribution within the dataset.
- Test Results: A pie chart showing the distribution of test results.
- Blood Type Distribution: Blood types are grouped by gender.
- Admission Types: A pie chart showing the different types of hospital admissions.
- A detailed dictionary is provided that contains information about medications like Aspirin, Ibuprofen, Lipitor, and Paracetamol, and their effects on various conditions (e.g., Arthritis, Cancer, Diabetes).
- Users can get specific medication advice based on a patient's medical condition.
-
Users can input a patient’s name and retrieve relevant details such as their age, gender, medical condition, and prescribed medication.
-
Based on the retrieved information, medication advice specific to the patient's condition is displayed.
- Ensures the entered patient name is valid by checking against the list of available patients.
- If the input is incorrect, it provides suggestions based on partial matches.
- Ensures the selected medication is valid by comparing it with the available medications list.
- If incorrect, the function displays an error and shows the list of valid medications.
- Verifies if the selected condition is valid by checking against a predefined list of conditions.
- If invalid, it prompts the user with a list of valid conditions.
- Checks if critical information like medication or condition is missing from the selected patient's data.
- If any key data is missing, an error message prompts the user to correct the information.
- Data Cleaning: Handling missing data more robustly.
- Interactive Interface: Create a simple user interface (UI) for easier interaction.
- Prediction: Add predictive modeling for patient outcomes based on existing data.