├── .github
└── workflows
│ └── python-package-conda.yml
├── LICENSE
├── README.md
├── __pycache__
├── chat.cpython-310.pyc
├── chat.cpython-311.pyc
├── model.cpython-310.pyc
├── model.cpython-311.pyc
├── model_chat.cpython-310.pyc
├── model_chat.cpython-311.pyc
├── nltk_utils.cpython-310.pyc
└── nltk_utils.cpython-311.pyc
├── app.py
├── chat.py
├── data_rnn.pth
├── intents.json
├── medical_centers.json
├── model.py
├── model_chat.py
├── nltk_utils.py
├── requirements.txt
├── static
├── app.js
├── images
│ ├── bot.jpg
│ ├── botfav.jpg
│ ├── chatbox-icon.svg
│ ├── chatgreen.png
│ ├── image1.png
│ ├── message.jpg
│ └── problemStatements (1).xlsx
└── style.css
├── templates
├── about_us.html
├── admin.html
├── base.html
└── login.html
└── train.py
/.github/workflows/python-package-conda.yml:
--------------------------------------------------------------------------------
1 | name: Python Package using Conda
2 |
3 | on: [push]
4 |
5 | jobs:
6 | build-linux:
7 | runs-on: ubuntu-latest
8 | strategy:
9 | max-parallel: 5
10 |
11 | steps:
12 | - uses: actions/checkout@v3
13 | - name: Set up Python 3.10
14 | uses: actions/setup-python@v3
15 | with:
16 | python-version: '3.10'
17 | - name: Add conda to system path
18 | run: |
19 | # $CONDA is an environment variable pointing to the root of the miniconda directory
20 | echo $CONDA/bin >> $GITHUB_PATH
21 | - name: Install dependencies
22 | run: |
23 | conda env update --file environment.yml --name base
24 | - name: Lint with flake8
25 | run: |
26 | conda install flake8
27 | # stop the build if there are Python syntax errors or undefined names
28 | flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
29 | # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
30 | flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
31 | - name: Test with pytest
32 | run: |
33 | conda install pytest
34 | pytest
35 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2023 Monish Kumar
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
2 | # Symptom Checker Chatbot ai
3 |
4 | 
5 |
6 | A simple chatbot that can help users check their symptoms and provide relevant information. This chatbot uses natural language processing (NLP) techniques and a recurrent neural network (RNN) model to understand user queries and respond accordingly.
7 |
8 | ## Table of Contents
9 |
10 | - [Introduction](#introduction)
11 | - [Getting Started](#getting-started)
12 | - [Usage](#usage)
13 | - [Training](#training)
14 | - [Dependencies](#dependencies)
15 | - [Contributing](#contributing)
16 | - [License](#license)
17 | - [Contact](#Contact)
18 |
19 | ## Introduction
20 |
21 | This repository contains code for a symptom checker chatbot. The chatbot can engage in conversations with users, gather information about their symptoms, and provide information about potential conditions or nearby medical centers. It uses a pre-trained RNN model for natural language understanding.
22 |
23 | ## Getting Started
24 |
25 | To get started with the Symptom Checker Chatbot, follow these steps:
26 |
27 | 1. Clone the repository to your local machine:
28 |
29 | ```
30 | git clone https://github.com/your-username/symptom-checker-chatbot.git
31 | ```
32 |
33 | 2. Install the required dependencies:
34 |
35 | ```
36 | pip install -r requirements.txt
37 | ```
38 |
39 | 3. Download the necessary data files and place them in the appropriate directories:
40 | - `intents.json`: Contains predefined intents for the chatbot.
41 | - `data_rnn.pth`: Pre-trained RNN model for natural language understanding.
42 | - `medical_centers.json`: Data file containing information about medical centers.
43 |
44 | ## Usage
45 |
46 | To use the Symptom Checker Chatbot, run the `app.py` file:
47 |
48 | ```
49 | python app.py
50 | ```
51 |
52 | This will start a Flask web application that you can interact with. Visit the URL `http://localhost:5000` in your web browser to access the chat interface.
53 |
54 | ## Training
55 |
56 | If you want to retrain the RNN model or modify the chatbot's behavior, follow these steps:
57 |
58 | 1. Modify the intents and patterns in `intents.json` to customize the chatbot's responses.
59 |
60 | 2. Run the training script to retrain the RNN model:
61 |
62 | ```
63 | python train.py
64 | ```
65 |
66 | 3. Save the trained model with a new filename and update the `FILE` variable in `chat.py` with the new filename.
67 |
68 | ## Dependencies
69 |
70 | The Symptom Checker Chatbot relies on the following dependencies:
71 |
72 | - Python 3.x
73 | - PyTorch
74 | - Flask
75 | - NLTK
76 | - geocoder
77 |
78 | You can install these dependencies using the provided `requirements.txt` file.
79 |
80 | ## Contributing
81 |
82 | If you'd like to contribute to this project, feel free to fork the repository and submit pull requests. Contributions are welcome, whether it's bug fixes, feature enhancements, or documentation improvements.
83 |
84 | ## License
85 |
86 | This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
87 |
88 | ## Contact
89 |
90 | For questions or collaboration opportunities, feel free to contact us at monishkumarpecai@gmail.com.
91 |
92 | ---
93 |
94 | ---
95 |
--------------------------------------------------------------------------------
/__pycache__/chat.cpython-310.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imonishkumar/Symptom-Checker-Chatbot/bb0cf1e2e8eee4157f68485b46074e78ccc25c21/__pycache__/chat.cpython-310.pyc
--------------------------------------------------------------------------------
/__pycache__/chat.cpython-311.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imonishkumar/Symptom-Checker-Chatbot/bb0cf1e2e8eee4157f68485b46074e78ccc25c21/__pycache__/chat.cpython-311.pyc
--------------------------------------------------------------------------------
/__pycache__/model.cpython-310.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imonishkumar/Symptom-Checker-Chatbot/bb0cf1e2e8eee4157f68485b46074e78ccc25c21/__pycache__/model.cpython-310.pyc
--------------------------------------------------------------------------------
/__pycache__/model.cpython-311.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imonishkumar/Symptom-Checker-Chatbot/bb0cf1e2e8eee4157f68485b46074e78ccc25c21/__pycache__/model.cpython-311.pyc
--------------------------------------------------------------------------------
/__pycache__/model_chat.cpython-310.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imonishkumar/Symptom-Checker-Chatbot/bb0cf1e2e8eee4157f68485b46074e78ccc25c21/__pycache__/model_chat.cpython-310.pyc
--------------------------------------------------------------------------------
/__pycache__/model_chat.cpython-311.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imonishkumar/Symptom-Checker-Chatbot/bb0cf1e2e8eee4157f68485b46074e78ccc25c21/__pycache__/model_chat.cpython-311.pyc
--------------------------------------------------------------------------------
/__pycache__/nltk_utils.cpython-310.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imonishkumar/Symptom-Checker-Chatbot/bb0cf1e2e8eee4157f68485b46074e78ccc25c21/__pycache__/nltk_utils.cpython-310.pyc
--------------------------------------------------------------------------------
/__pycache__/nltk_utils.cpython-311.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imonishkumar/Symptom-Checker-Chatbot/bb0cf1e2e8eee4157f68485b46074e78ccc25c21/__pycache__/nltk_utils.cpython-311.pyc
--------------------------------------------------------------------------------
/app.py:
--------------------------------------------------------------------------------
1 | from flask import Flask, render_template, request, jsonify
2 | from flask_cors import CORS
3 | from chat import get_response
4 |
5 | app = Flask(__name__)
6 | CORS(app)
7 |
8 | @app.get("/")
9 |
10 | def index_get():
11 | return render_template("base.html")
12 |
13 | @app.route('/login')
14 | def login():
15 | return render_template("login.html")
16 |
17 | @app.route('/admin')
18 | def admin():
19 | return render_template("admin.html")
20 |
21 | @app.route('/about')
22 | def about_us():
23 | return render_template("about_us.html")
24 |
25 |
26 | @app.post("/predict")
27 |
28 | def predict():
29 | text = request.get_json().get("message")
30 | #TODO : check if text is valid
31 | response = get_response(text)
32 | message = {"answer" : response}
33 | return jsonify(message)
34 |
35 | if __name__ == "__main__":
36 | app.run(debug=True)
37 |
38 |
--------------------------------------------------------------------------------
/chat.py:
--------------------------------------------------------------------------------
1 | import random
2 | import json
3 | import torch
4 |
5 | import math
6 | import geocoder
7 |
8 | from model_chat import RNNModel # Import the RNN model
9 | from nltk_utils import bag_of_words, tokenize
10 |
11 | device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
12 |
13 | with open('intents.json', 'r') as json_data:
14 | intents = json.load(json_data)
15 |
16 | FILE = "data_rnn.pth"
17 | data = torch.load(FILE)
18 |
19 | input_size = data["input_size"]
20 | hidden_size = data["hidden_size"]
21 | output_size = data["output_size"]
22 | num_layers = data["num_layers"] # Add the number of layers used in your RNN model
23 | all_words = data['all_words']
24 | tags = data['tags']
25 | model_state = data["model_state"]
26 |
27 | model = RNNModel(input_size, hidden_size, output_size, num_layers).to(device)
28 | model.load_state_dict(model_state)
29 | model.eval()
30 |
31 | bot_name = "Sam"
32 |
33 | def get_response(msg):
34 | sentence = tokenize(msg)
35 | if ("name" in sentence) or ("this is" in msg.lower()) :
36 | for wor in sentence:
37 | if (wor.lower() != "my") and (wor.lower() != "is") and (wor.lower() != "name") and (wor.lower() != "i") and (wor.lower() != "am") and (wor.lower() != "this"):
38 | user_name = wor.capitalize()
39 | res = "Hi " + user_name + " please say your age."
40 | return ["name", res]
41 | if ("age" in sentence) or ("I" in sentence and "am" in sentence) or ("I'm" in sentence):
42 | for wor in sentence:
43 | if wor.isnumeric():
44 | user_age = wor
45 | res = "What is your gender?"
46 | return ["age", res]
47 | if ("male" in sentence) or ("female" in sentence) or ("Male" in sentence) or ("Female" in sentence):
48 | for wor in sentence:
49 | if (wor.lower() == "male") or (wor.lower() == "female"):
50 | user_gender = wor.lower()
51 | res = "Tell the symptoms you have to know about potential conditions."
52 | return ["gender", res]
53 | if ("yes" in sentence) or (("medical" in sentence) and "center" in sentence) or ("hospital" in sentence) or ("hospitals" in sentence) :
54 | li = centres()
55 | return li
56 |
57 | X = bag_of_words(sentence, all_words)
58 | X = torch.tensor(X).unsqueeze(0).to(device)
59 |
60 | output = model(X)
61 | _, predicted = torch.max(output, dim=1)
62 |
63 | #topk_values, topk_indices = torch.topk(output, k=3, dim=1)
64 |
65 | tag = tags[predicted.item()]
66 | #tag = [tags[i] for i in topk_indices[0]]
67 |
68 | probs = torch.softmax(output, dim=1)
69 | prob = probs[0][predicted.item()]
70 |
71 | """
72 | if prob.item() > 0.5:
73 | l = []
74 | for intent in intents['intents']:
75 | for a in tag:
76 | if intent["tag"] == a:
77 | l.append([intent['tag'], intent['responses']])
78 | return l
79 | """
80 |
81 | if prob.item() > 0.75:
82 | for intent in intents['intents']:
83 | if intent["tag"] == tag:
84 | if tag in ["greeting", "goodbye","work","who","Thanks","joke", "name", "age", "gender"]:
85 | return [intent['tag'], intent['responses']]
86 | return [intent['tag'], intent['responses'], intent['Precaution']]
87 |
88 | return ["not_understand","I do not understand. Can you please rephrase the sentence?"]
89 |
90 | def centres():
91 | # Function to calculate the Haversine distance between two points
92 | def haversine(lat1, lon1, lat2, lon2):
93 | # Radius of the Earth in kilometers
94 | R = 6371.0
95 |
96 | # Convert latitude and longitude from degrees to radians
97 | lat1 = math.radians(lat1)
98 | lon1 = math.radians(lon1)
99 | lat2 = math.radians(lat2)
100 | lon2 = math.radians(lon2)
101 |
102 | # Haversine formula
103 | dlon = lon2 - lon1
104 | dlat = lat2 - lat1
105 |
106 | a = math.sin(dlat / 2)**2 + math.cos(lat1) * math.cos(lat2) * math.sin(dlon / 2)**2
107 | c = 2 * math.atan2(math.sqrt(a), math.sqrt(1 - a))
108 |
109 | # Calculate the distance
110 | distance = R * c
111 | return distance
112 |
113 | # Get your current location based on your IP address
114 | location = geocoder.ip('me')
115 |
116 | # Given location (latitude and longitude)
117 | given_location = location.latlng # Replace with your desired location
118 |
119 | # Load the JSON data
120 | with open("medical_centers.json", "r") as json_file:
121 | medical_centers = json.load(json_file)
122 |
123 | # Calculate distances to all medical centers
124 | distances_to_centers = []
125 |
126 | for center in medical_centers["intents"]:
127 | center_location = center["location"]
128 | distance = haversine(given_location[0], given_location[1], center_location[0], center_location[1])
129 | distances_to_centers.append((center["tag"], distance))
130 |
131 | # Sort the list of distances in ascending order
132 | distances_to_centers.sort(key=lambda x: x[1])
133 |
134 | l = ["center"]
135 |
136 |
137 | for i, (center_name, distance) in enumerate(distances_to_centers[:5], start=1):
138 | for center in medical_centers["intents"]:
139 | if center["tag"] == center_name:
140 | l.append([center_name, (str(round(distance, 2))+'km'), center["Address"]])
141 | return l
142 |
143 |
144 | if __name__ == "__main__":
145 | print("Let's chat! (type 'quit' to exit)")
146 | while True:
147 | sentence = input("You: ")
148 | if sentence == "quit":
149 | break
150 |
151 | resp = get_response(sentence)
152 | print("Bot:", resp)
153 |
--------------------------------------------------------------------------------
/data_rnn.pth:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/imonishkumar/Symptom-Checker-Chatbot/bb0cf1e2e8eee4157f68485b46074e78ccc25c21/data_rnn.pth
--------------------------------------------------------------------------------
/intents.json:
--------------------------------------------------------------------------------
1 | {
2 | "intents": [
3 | {
4 | "tag": "greeting",
5 | "patterns": [
6 | "Hi",
7 | "Hey",
8 | "How are you",
9 | "Is anyone there?",
10 | "Hello",
11 | "Good"
12 | ],
13 | "responses": "Hi there, what can I do for you?"
14 |
15 | },
16 | {
17 | "tag": "goodbye",
18 | "patterns": [
19 | "Bye",
20 | "See you later",
21 | "Goodbye"
22 | ],
23 | "responses": "See you later, thanks for visiting
Have a nice day"
24 |
25 | },
26 |
27 | {
28 | "tag": "work",
29 | "patterns": [
30 | "how do you work",
31 | "what algorithm","algorithm use", "how your algorithm works"
32 | ],
33 | "responses": "Sorry I can't say that !!! If you realy want to know you can contact us"
34 |
35 | },
36 |
37 | {
38 | "tag":"who",
39 | "patterns": [
40 | "who are you","who you", "tell about you", "describe","you", "what you", "can do", "what you do"
41 | ],
42 | "responses": "I am Symptom checker, you can enter your the symptoms you have and you can det a list of potential conditions that you may have !!"
43 |
44 | },
45 |
46 | {
47 | "tag": "Thanks",
48 | "patterns": [
49 | "Thanks",
50 | "Thank you",
51 | "That's helpful",
52 | "Thank's a lot!"
53 | ],
54 | "responses": "Happy to help! Any time you need ! "
55 | },
56 | {
57 | "tag": "joke",
58 | "patterns": [
59 | "Tell me a joke",
60 | "Give me a joke",
61 | "Share a joke"
62 | ],
63 | "responses": "Why did the doctor carry a red pen? In case they needed to draw blood!"
64 | },
65 | {
66 | "tag": "Common Cold",
67 | "patterns": [
68 | "cold, cough, tiredness, body pain",
69 | "cold, cough, tiredness"
70 | ],
71 | "responses": "You have may Common Cold. This is a viral infection affecting the upper respiratory system.
Recommended actions:
1. Get plenty of rest and stay hydrated.
2. Take over-the-counter cold medications.
3. Use a humidifier for congestion.
4. If symptoms worsen, consult a doctor.",
72 | "Precaution": "To avoid common cold:
1. Wash your hands frequently.
2. Avoid close contact with infected individuals.
3. Cover your mouth and nose when sneezing or coughing.
4. Boost your immune system through a healthy diet and regular exercise."
73 | },
74 | {
75 | "tag": "Fever",
76 | "patterns":["Fever"],
77 | "responses": "Rest and drink plenty of fluids. Medication isn't needed. Call the doctor if the fever is accompanied by a severe headache, stiff neck, shortness of breath, or other unusual signs or symptoms. If you're uncomfortable, take paracetamol.",
78 | "Precaution": "To avoid fever:
1. Stay hydrated.
2. Rest and get plenty of sleep.
3. Use fever-reducing medications as directed.
4. Seek medical attention if fever persists or worsens."
79 | },
80 | {
81 | "tag": "Allergies",
82 | "patterns": [
83 | "sneezing, itchy eyes, runny nose, skin rash",
84 | "sneezing, itchy eyes, runny nose",
85 | "sneezing, skin rash, runny nose",
86 | "runny nose, skin rash"
87 | ],
88 | "responses": "You might be experiencing allergies. Allergies are immune system reactions to allergens in the environment.
Recommended actions:
1. Identify and avoid allergens if possible.
2. Over-the-counter antihistamines may help relieve symptoms.
3. Consult an allergist for a comprehensive evaluation and treatment plan.",
89 | "Precaution":"To avoid allergies:
1. Identify and avoid allergens.
2. Keep indoor environments clean and dust-free.
3. Take allergy medications as prescribed.
4. Consider allergy shots for long-term relief."
90 | },
91 | {
92 | "tag": "Asthma",
93 | "patterns": [
94 | "shortness of breath, wheezing, cough, chest tightness",
95 | "shortness of breath, wheezing, cough",
96 | "wheezing, cough",
97 | "wheezing, cough, chest tightness",
98 | "shortness of breath, chest tightness"
99 |
100 | ],
101 | "responses": "You may have asthma. Asthma is a chronic respiratory condition that can cause breathing difficulties.
Recommended actions:
1. Use prescribed inhalers or medications as directed.
2. Avoid triggers that worsen symptoms (e.g., smoke, allergens).
3. Consult a healthcare professional for asthma management and education.",
102 | "Precaution":"To avoid asthma:
1. Identify and avoid asthma triggers.
2. Use prescribed inhalers and medications regularly.
3. Create an asthma action plan with your healthcare provider.
4. Maintain a clean and allergen-free home environment."
103 | },
104 | {
105 | "tag": "Bronchial Asthma",
106 | "patterns": [
107 | "cough, fatigue, high fever, family history, mucoid sputum, breathlessness",
108 | "cough, high fever, family history, mucoid sputum",
109 | "cough, high fever,breathlessness",
110 | "cough, breathlessness",
111 | "cough, fatigue, family history"
112 | ],
113 | "responses": "You have Bronchial Asthma. Bronchial asthma is a chronic respiratory condition with symptoms like fatigue, cough, high fever, breathlessness, a family history of asthma, and mucoid sputum production.
Managing bronchial asthma involves avoiding triggers, taking prescribed medications, and having an asthma action plan.",
114 | "Precaution":"To avoid bronchial asthma:
1. Follow your asthma action plan.
2. Avoid smoke and pollutants.
3. Use a humidifier to keep air moist.
4. Exercise regularly as recommended by your doctor."
115 | },
116 | {
117 | "tag": "Rheumatoid Arthritis",
118 | "patterns": [
119 | "joint pain, joint stiffness, swelling, fatigue",
120 | "joint pain, joint stiffness, swelling",
121 | "joint pain, joint stiffness, fatigue",
122 | "joint stiffness, swelling, fatigue",
123 | "joint stiffness, swelling",
124 | "joint pain, swelling, fatigue"
125 | ],
126 | "responses": "You may have Rheumatoid Arthritis. It's an autoimmune disease that affects the joints.
Recommended actions:
1. Consult a rheumatologist for diagnosis and treatment.
2. Medications and physical therapy may help manage symptoms.
3. Maintain a healthy lifestyle with regular exercise.",
127 | "Precaution":"To avoid rheumatoid arthritis:
1. Maintain a healthy weight.
2. Exercise to strengthen joints and muscles.
3. Take prescribed medications as directed.
4. Consider physical therapy and joint protection techniques."
128 | },
129 | {
130 | "tag": "Arthritis",
131 | "patterns": [
132 | "painful walking, movement stiffness, muscle weakness, stiff neck, swelling joints",
133 | "painful walking, movement stiffness, muscle weakness",
134 | "painful walking, stiff neck, swelling joints",
135 | "painful walking, movement stiffness, swelling joints",
136 | "muscle weakness, stiff neck, swelling joints"
137 | ],
138 | "responses": "You have Arthritis. This is a condition that affects the joints.
Recommended actions:
1. Seek medical advice for proper diagnosis and treatment.
2. Follow prescribed medications and therapies.
3. Manage pain with recommended treatments.
4. Consider lifestyle changes to alleviate symptoms.",
139 | "Precaution":"To avoid arthritis:
1. Maintain a healthy weight.
2. Exercise regularly for joint health.
3. Use joint protection techniques.
4. Consider physical therapy and assistive devices if needed."
140 | },
141 | {
142 | "tag": "HIV/AIDS",
143 | "patterns": [
144 | "fatigue, weight loss, night sweats, recurrent infections",
145 | "night sweats, recurrent infections",
146 | "weight loss, night sweats, recurrent infections"
147 | ],
148 | "responses": "You might be at risk for HIV/AIDS. It's a viral infection that affects the immune system.
Recommended actions:
1. Get tested for HIV and consult an infectious disease specialist.
2. Early diagnosis and antiretroviral therapy can help manage the condition.
3. Practice safe sex and take preventive measures.",
149 | "Precaution":"To avoid HIV/AIDS:
1. Practice safe sex.
2. Use clean needles and syringes if injecting drugs.
3. Get tested for HIV regularly.
4. Consider pre-exposure prophylaxis (PrEP) for high-risk individuals."
150 | },
151 | {
152 | "tag": "Ovarian Cancer",
153 | "patterns": [
154 | "abdominal pain, bloating, urinary frequency, fatigue",
155 | "abdominal pain, urinary frequency, fatigue",
156 | "abdominal pain, fatigue"
157 | ],
158 | "responses": "You may have Ovarian Cancer. It's a type of cancer that affects the ovaries.
Recommended actions:
1. Consult an oncologist for diagnosis and treatment options.
2. Surgery, chemotherapy, and radiation therapy are common treatments.
3. Early detection is crucial for better outcomes.",
159 | "Precaution":"To avoid ovarian cancer:
1. Regular gynecological check-ups and screenings.
2. Maintain a healthy diet and weight.
3. Consider birth control pills or surgery for high-risk individuals.
4. Be aware of family history."
160 | },
161 | {
162 | "tag": "Ovarian Cyst",
163 | "patterns": [
164 | "pelvic pain, bloating, irregular menstruation",
165 | "pelvic pain, irregular menstruation"
166 | ],
167 | "responses": "You might have an Ovarian Cyst. It's a fluid-filled sac that can form on or within the ovaries.
Recommended actions:
1. Consult a healthcare professional for diagnosis and treatment options.
2. Treatment may involve observation, medication, or surgery depending on the size and symptoms of the cyst.",
168 | "Precaution":"To avoid ovarian cyst:
1. Maintain a healthy diet and weight.
2. Use birth control methods to prevent cyst formation.
3. Manage stress and hormonal imbalances.
4. Monitor and follow up on cysts with your doctor."
169 | },
170 | {
171 | "tag": "Pneumothorax",
172 | "patterns": [
173 | "sudden chest pain, shortness of breath, chest tightness",
174 | "sudden chest pain, shortness of breath"
175 | ],
176 | "responses": "You might be experiencing Pneumothorax. It's a condition where air leaks into the space between the lung and the chest wall.
Recommended actions:
1. Seek immediate medical attention, as it can be a medical emergency.
2. Treatment may involve chest tube insertion to remove air and reinflate the lung.",
177 | "Precaution":"To avoid pneumothorax:
1. Avoid smoking and exposure to secondhand smoke.
2. Get prompt treatment for respiratory infections.
3. Wear seatbelts to prevent chest trauma.
4. Manage any underlying lung conditions."
178 | },
179 | {
180 | "tag": "Gout",
181 | "patterns": [
182 | "sudden and severe joint pain, swelling, redness",
183 | "severe joint pain, swelling"
184 | ],
185 | "responses": "You may have Gout. It's a type of arthritis caused by the buildup of uric acid crystals in the joints.
Recommended actions:
1. Consult a rheumatologist for diagnosis and treatment.
2. Medications and dietary changes can help manage symptoms and prevent flare-ups.",
186 | "Precaution":"To avoid gout:
1. Maintain a healthy diet and weight.
2. Limit alcohol and high-purine foods.
3. Stay hydrated.
4. Take prescribed medications as directed."
187 | },
188 | {
189 | "tag": "Chronic Fatigue Syndrome",
190 | "patterns": [
191 | "persistent fatigue, muscle pain, cognitive difficulties",
192 | "persistent fatigue, muscle pain"
193 | ],
194 | "responses": "You may be experiencing Chronic Fatigue Syndrome (CFS). It's a complex disorder characterized by long-term, unexplained fatigue.
Recommended actions:
1. Consult a healthcare professional for diagnosis and management.
2. Treatment may involve lifestyle changes, pacing, and symptom management.",
195 | "Precaution":"To avoid chronic fatigue syndrome:
1. Manage stress and get adequate rest.
2. Gradually increase physical activity.
3. Cognitive-behavioral therapy for symptom management.
4. Maintain a balanced diet and stay hydrated."
196 | },
197 | {
198 | "tag": "Hypertension",
199 | "patterns": [
200 | "high blood pressure, headache, dizziness, chest pain",
201 | "high blood pressure, headache, dizziness"
202 | ],
203 | "responses": "You may have Hypertension (High Blood Pressure). It's a common condition where the force of blood against the artery walls is too high.
Recommended actions:
1. Consult a healthcare professional for diagnosis and management.
2. Lifestyle changes, such as a healthy diet and regular exercise, can help control blood pressure.",
204 | "Precaution":"To avoid hypertension:
1. Reduce salt intake.
2. Maintain a healthy diet and exercise regularly.
3. Limit alcohol consumption.
4. Take prescribed blood pressure medications as directed."
205 | },
206 | {
207 | "tag": "Type 2 Diabetes",
208 | "patterns": [
209 | "excessive thirst, frequent urination, fatigue, blurred vision",
210 | "excessive thirst, frequent urination, blurred vision"
211 | ],
212 | "responses": "You might have Type 2 Diabetes. It's a chronic condition that affects how your body processes glucose (sugar).
Recommended actions:
1. Consult a healthcare professional for diagnosis and treatment.
2. Managing blood sugar through diet, exercise, and medications is essential.",
213 | "Precaution":"To avoid type 2 diabetes:
1. Maintain a healthy diet and weight.
2. Exercise regularly.
3. Monitor blood sugar levels.
4. Take prescribed medications as directed."
214 | },
215 | {
216 | "tag": "Diabetes",
217 | "patterns": [
218 | "irregular sugar level, fatigue, increased appetite, restlessness, weight loss, polyuria, blurred and distorted vision, lethargy, obesity, excessive hunger",
219 | "irregular sugar level, increased appetite, restlessness, weight loss, excessive hunger",
220 | "irregular sugar level, increased appetite, restlessness, weight loss",
221 | "irregular sugar level, restlessness, weight loss, blurred and distorted vision, obesity, excessive hunger"
222 | ],
223 | "responses": "You have Diabetes. Diabetes is a metabolic disorder characterized by symptoms like fatigue, weight loss, restlessness, lethargy, irregular sugar levels, blurred and distorted vision, obesity, excessive hunger, increased appetite, and polyuria (excessive urination).
Managing diabetes involves maintaining a healthy lifestyle, monitoring blood sugar levels, and adhering to a prescribed treatment plan.",
224 | "Precaution":"To avoid diabetes:
1. Maintain a healthy diet and weight.
2. Exercise regularly.
3. Monitor blood sugar levels.
4. Take prescribed medications as directed."
225 | },
226 | {
227 | "tag": "Osteoarthritis",
228 | "patterns": [
229 | "painful walking, hip joint pain, joint pain, neck pain, knee pain, swelling joints",
230 | "painful walking, hip joint pain, swelling joints",
231 | "joint pain, stiffness, reduced range of motion",
232 | "joint pain, stiffness"
233 | ],
234 | "responses": "You may have Osteoarthritis. It's a degenerative joint disease that can cause pain and stiffness in the joints.
Recommended actions:
1. Consult a healthcare professional for diagnosis and treatment options.
2. Physical therapy, pain management, and lifestyle changes can help manage symptoms.",
235 | "Precaution":"To avoid osteoarthritis:
1. Maintain a healthy weight.
2. Exercise to strengthen joints and muscles.
3. Use joint protection techniques.
4. Consider physical therapy if needed."
236 | },
237 | {
238 | "tag": "Migraine",
239 | "patterns": [
240 | "severe headache, nausea, sensitivity to light and sound",
241 | "severe headache, nausea",
242 | "severe headache, sensitivity to light and sound"
243 | ],
244 | "responses": "You might be experiencing a Migraine. It's a neurological condition characterized by intense, throbbing headaches.
Recommended actions:
1. Consult a healthcare professional for diagnosis and treatment.
2. Medications and lifestyle adjustments can help prevent and manage migraine attacks.",
245 | "Precaution":"To avoid migraine:
1. Identify and avoid migraine triggers.
2. Keep a headache diary.
3. Take prescribed migraine medications as directed.
4. Manage stress and get enough sleep."
246 | },
247 | {
248 | "tag": "GERD (Gastroesophageal Reflux Disease)",
249 | "patterns": [
250 | "cough, stomach pain, acidity, chest pain, vomiting, ulcers on tongue, heartburn",
251 | "cough, stomach pain, acidity, chest pain, vomiting",
252 | "cough, chest pain, vomiting, ulcers on tongue, heartburn"
253 | ],
254 | "responses": "You have GERD (Gastroesophageal Reflux Disease). This is a digestive disorder.
Recommended actions:
1. Consult a doctor for diagnosis and treatment options.
2. Lifestyle changes like diet and weight management may help.
3. Medications can provide relief from symptoms.
4. Elevate the head of your bed to reduce nighttime reflux.",
255 | "Precaution":"To avoid GERD (gastroesophageal reflux disease):
1. Maintain a healthy weight.
2. Avoid trigger foods and drinks.
3. Elevate the head of your bed.
4. Take prescribed medications as directed."
256 | },
257 | {
258 | "tag": "Urinary Tract Infection (UTI)",
259 | "patterns": [
260 | "painful urination, frequent urination, cloudy urine, abdominal pain",
261 | "painful urination, frequent urination, abdominal pain",
262 | "painful urination, frequent urination"
263 | ],
264 | "responses": "You may have a Urinary Tract Infection (UTI). It's a bacterial infection that affects the urinary system.
Recommended actions:
1. Consult a healthcare professional for diagnosis and treatment.
2. Antibiotics are commonly prescribed to treat UTIs.
3. Drink plenty of water and practice good hygiene to prevent future infections.",
265 | "Precaution": "To avoid urinary tract infection (UTI):
1. Stay hydrated.
2. Urinate regularly and empty your bladder.
3. Wipe from front to back after using the toilet.
4. Urinate before and after sexual activity."
266 | },
267 | {
268 | "tag": "Depression",
269 | "patterns": [
270 | "persistent sadness, loss of interest, fatigue, changes in sleep patterns",
271 | "sadness, loss of interest, changes in sleep patterns",
272 | "sadness, loss of interest, no sleep"
273 | ],
274 | "responses": "You might be experiencing Depression. It's a mood disorder characterized by persistent feelings of sadness and a loss of interest in activities.
Recommended actions:
1. Consult a mental health professional for diagnosis and treatment options.
2. Psychotherapy and medications can help manage depressive symptoms.",
275 | "Precaution":"To avoid depression:
1. Seek help from a mental health professional.
2. Build a support system.
3. Engage in regular physical activity.
4. Practice stress reduction techniques."
276 | },
277 | {
278 | "tag": "Anxiety",
279 | "patterns": [
280 | "excessive worry, restlessness, palpitations, muscle tension",
281 | "restlessness, muscle tension",
282 | "restlessness, palpitations, muscle tension"
283 | ],
284 | "responses": "You may have Anxiety. It's a common mental health condition characterized by excessive worry and heightened stress.
Recommended actions:
1. Consult a mental health professional for evaluation and treatment.
2. Therapy, lifestyle changes, and medications can help manage anxiety symptoms.",
285 | "Precaution":"To avoid anxiety:
1. Practice relaxation techniques.
2. Identify and challenge anxious thoughts.
3. Seek support from a therapist.
4. Consider medication if recommended by a healthcare provider."
286 | },
287 | {
288 | "tag": "COPD",
289 | "patterns": [
290 | "shortness of breath, chronic cough, wheezing, chest tightness",
291 | "shortness of breath, wheezing, chest tightness"
292 | ],
293 | "responses": "You may have Chronic Obstructive Pulmonary Disease (COPD). It's a progressive lung disease that can cause breathing difficulties.
Recommended actions:
1. Consult a healthcare professional for diagnosis and management.
2. Medications, pulmonary rehabilitation, and lifestyle changes can help manage COPD symptoms.",
294 | "Precaution":"To avoid COPD (Chronic Obstructive Pulmonary Disease):
1. Quit smoking or avoid exposure to smoke.
2. Use prescribed inhalers and medications.
3. Avoid lung irritants and pollutants.
4. Engage in pulmonary rehabilitation if recommended."
295 | },
296 | {
297 | "tag": "Allergy",
298 | "patterns": [
299 | "continuous sneezing, watering from eyes, chills, shivering",
300 | "continuous sneezing, watering from eyes"
301 | ],
302 | "responses": "You may have Allergy. Allergy is a hypersensitivity disorder of the immune system. Common symptoms include continuous sneezing, shivering, chills, and watering from the eyes.
To manage Allergy, consider the following:
1. Identify and avoid allergens that trigger your symptoms.
2. Use antihistamines or decongestants as recommended by a doctor.
3. Keep your living space clean and dust-free.
4. Consult with an allergist for further evaluation and treatment options.",
303 | "Precaution": "To avoid allergy:
1. Identify and avoid allergens.
2. Keep indoor environments clean and dust-free.
3. Take allergy medications as prescribed.
4. Consider allergy shots for long-term relief."
304 | },
305 | {
306 | "tag": "Chronic Cholestasis",
307 | "patterns": [
308 | "loss of appetite, itching, abdominal pain, yellowish skin, vomiting, nausea, yellowing of eyes",
309 | "itching, abdominal pain, yellowish skin, vomiting, yellowing of eyes",
310 | "loss of appetite, itching, vomiting, nausea, yellowing of eyes"
311 | ],
312 | "responses": "You have Chronic Cholestasis. This is a condition affecting the liver and bile ducts.
Recommended actions:
1. Consult a doctor for diagnosis and treatment.
2. Medications may be prescribed to manage symptoms.
3. Follow dietary recommendations.
4. Monitor liver function regularly.",
313 | "Precaution":"To avoid chronic cholestasis:
1. Manage underlying liver conditions.
2. Follow a liver-healthy diet.
3. Avoid excessive alcohol consumption.
4. Take prescribed medications as directed."
314 | },
315 | {
316 | "tag": "Drug Reaction",
317 | "patterns": [
318 | "stomach pain, skin rash, itching, burning micturition, spotting urination",
319 | "itching, burning micturition, spotting urination"
320 | ],
321 | "responses": "You have Drug Reaction Drug reactions can manifest with symptoms like itching, skin rash, stomach pain, burning micturition, and spotting urination.
If you suspect a drug reaction, consult your healthcare provider immediately for evaluation and appropriate steps.",
322 | "Precaution":"To avoid drug reaction:
1. Take medications as prescribed by a healthcare provider.
2. Report any adverse reactions to your doctor.
3. Inform healthcare providers of any allergies.
4. Avoid sharing medications with others."
323 | },
324 | {
325 | "tag": "Peptic ulcer disease",
326 | "patterns": [
327 | "loss of appetite, passage of gases, abdominal pain, vomiting, indigestion, internal itching",
328 | "passage of gases, abdominal pain, vomiting, indigestion, internal itching"
329 | ],
330 | "responses": "You have Peptic ulcer disease. Symptoms of peptic ulcer disease may include vomiting, loss of appetite, abdominal pain, passage of gases, internal itching, and indigestion.
For the management of peptic ulcer disease, consult a gastroenterologist for diagnosis and treatment options.",
331 | "Precaution":"To avoid peptic ulcer disease:
1. Manage stress.
2. Avoid nonsteroidal anti-inflammatory drugs (NSAIDs).
3. Follow a healthy diet and avoid spicy foods.
4. Treat underlying H. pylori infection if present."
332 | },
333 | {
334 | "tag": "AIDS",
335 | "patterns": [
336 | "patches in throat, extra marital contacts, high fever, muscle wasting",
337 | "patches in throat, high fever, muscle wasting"
338 | ],
339 | "responses": "You have AIDS (Acquired Immunodeficiency Syndrome). AIDS may present with symptoms such as muscle wasting, patches in the throat, high fever, and a history of extra-marital contacts.
AIDS is a serious condition, and it is crucial to seek medical attention immediately for diagnosis, treatment, and counseling.",
340 | "Precaution":"To avoid AIDS:
1. Practice safe sex.
2. Use clean needles and syringes if injecting drugs.
3. Get tested for HIV regularly.
4. Consider pre-exposure prophylaxis (PrEP) for high-risk individuals."
341 | },
342 | {
343 | "tag": "Gastroenteritis",
344 | "patterns": [
345 | "diarrhoea, dehydration, sunken eyes, vomiting",
346 | "diarrhoea, sunken eyes, vomiting"
347 | ],
348 | "responses": "You have Gastroenteritis. Gastroenteritis is an inflammation of the stomach and intestines, often causing symptoms such as vomiting, sunken eyes, dehydration, and diarrhea.
Treatment for gastroenteritis includes staying hydrated and, in severe cases, seeking medical attention for rehydration therapy.",
349 | "Precaution":"To avoid gastroenteritis:
1. Practice good hygiene and handwashing.
2. Avoid contaminated food and water.
3. Stay hydrated when ill.
4. Follow public health guidelines for outbreaks."
350 | },
351 | {
352 | "tag": "Cervical Spondylosis",
353 | "patterns": [
354 | "dizziness, back pain, weakness in limbs, loss of balance, neck pain",
355 | "back pain, loss of balance, neck pain"
356 | ],
357 | "responses": "You have Cervical Spondylosis. This is a condition affecting the neck and spine, leading to symptoms like neck pain and weakness in limbs.
Recommended actions:
1. Physiotherapy for neck and spine.
2. Use neck support devices if advised.
3. Maintain good posture.
4. Exercise and stretches for neck and back.",
358 | "Precaution":"To avoid cervical spondylosis:
1. Maintain good posture.
2. Exercise to strengthen neck muscles.
3. Use ergonomic equipment.
4. Consider physical therapy for symptom relief."
359 | },
360 | {
361 | "tag": "Paralysis (brain hemorrhage)",
362 | "patterns": [
363 | "headache, altered sensorium, weakness of one body side, vomiting",
364 | "headache, altered sensorium, vomiting"
365 | ],
366 | "responses": "You have Paralysis due to Brain Hemorrhage. Brain hemorrhage may manifest with symptoms like vomiting, headache, weakness on one side of the body, and altered sensorium.
Immediate medical attention and interventions are crucial for managing brain hemorrhage-related paralysis.",
367 | "Precaution":"To avoid paralysis (brain hemorrhage):
1. Manage hypertension and other risk factors.
2. Seek prompt medical attention for stroke symptoms.
3. Follow a healthy lifestyle to reduce stroke risk.
4. Control diabetes and cholesterol levels."
368 | },
369 | {
370 | "tag": "Jaundice",
371 | "patterns": [
372 | "high fever, fatigue, weight loss, itching, abdominal pain, vomiting, yellowish skin, dark urine",
373 | "high fever, weight loss, itching, abdominal pain, vomiting, yellowish skin, dark urine",
374 | "pale stools, yellow color inside mouth, dark or brown color urine"
375 | ],
376 | "responses": "You have Jaundice. Jaundice is a disease characterized by yellowing of the skin and eyes. It can be caused by various factors such as liver problems or infections. Here are four points to cure Jaundice:
1. Get plenty of rest.
2. Stay hydrated.
3. Avoid alcohol and fatty foods.
4. Consult a healthcare professional for further evaluation and treatment.",
377 | "Precaution":"To avoid jaundice:
1. Prevent hepatitis through vaccination and safe sex practices.
2. Practice good hygiene and food safety.
3. Avoid excessive alcohol consumption.
4. Seek prompt medical attention for liver-related symptoms."
378 | },
379 | {
380 | "tag": "Malaria",
381 | "patterns": [
382 | "sweating, high fever, muscle pain, headache, diarrhoea, vomiting, chills, nausea",
383 | "sweating, high fever, muscle pain, headache, vomiting, chills, nausea",
384 | "sweating, muscle pain, headache, vomiting, chills, nausea"
385 | ],
386 | "responses": "You have Malaria. Malaria is a mosquito-borne disease that can cause high fever and other symptoms. Here are four points to cure Malaria:
1. Take antimalarial medications as prescribed by a doctor.
2. Get plenty of rest.
3. Stay hydrated.
4. Use mosquito nets and repellents to prevent further mosquito bites.",
387 | "Precaution":"To avoid malaria:
1. Use insect repellent and bed nets.
2. Take prescribed antimalarial medications.
3. Eliminate standing water to reduce mosquito breeding.
4. Be aware of malaria risk in endemic areas."
388 | },
389 | {
390 | "tag": "Chicken pox",
391 | "patterns": [
392 | "red spots over body, high fever, fatigue, malaise, loss of appetite, headache, skin rash, itching, mild fever, swelled lymph nodes, lethargy",
393 | "red spots over body, high fever, fatigue, malaise, lethargy",
394 | "red spots over body, high fever",
395 | "malaise, headache, skin rash, itching, mild fever, lethargy",
396 | "red spots over body, high fever, malaise, headache, skin rash, mild fever, swelled lymph nodes"
397 | ],
398 | "responses": "You have Chicken pox. Chicken pox is a highly contagious viral infection that causes an itchy rash and flu-like symptoms. Here are four points to cure Chicken pox:
1. Get plenty of rest.
2. Keep the affected areas clean and avoid scratching.
3. Take over-the-counter pain relievers to reduce fever and discomfort.
4. Isolate yourself to prevent spreading the virus to others.",
399 | "Precaution":"To avoid chickenpox:
1. Get vaccinated.
2. Avoid close contact with infected individuals.
3. Practice good hygiene.
4. Use over-the-counter treatments for symptom relief."
400 | },
401 | {
402 | "tag": "Dengue",
403 | "patterns": [
404 | "high fever, fatigue, muscle pain, malaise, loss of appetite, headache, skin rash, vomiting, back pain, chills, nausea, joint pain, pain behind the eyes",
405 | "high fever, muscle pain, headache, skin rash, vomiting",
406 | "skin rash, vomiting, back pain, chills, nausea, joint pain, pain behind the eyes"
407 | ],
408 | "responses": "You have Dengue. Dengue is a mosquito-borne viral infection that can cause severe flu-like symptoms. Here are four points to cure Dengue:
1. Stay hydrated by drinking plenty of fluids.
2. Get plenty of rest.
3. Monitor your platelet count and seek medical attention if it drops significantly.
4. Use mosquito nets and repellents to prevent further mosquito bites.",
409 | "Precaution":"To avoid dengue:
1. Prevent mosquito bites with repellent and protective clothing.
2. Eliminate mosquito breeding sites.
3. Get prompt medical attention for severe symptoms.
4. Follow public health guidelines during outbreaks."
410 | },
411 | {
412 | "tag": "Typhoid",
413 | "patterns": [
414 | "high fever, fatigue, diarrhoea, abdominal pain, vomiting, toxic look (typhos), chills, nausea, belly pain, constipation",
415 | "high fever, fatigue, abdominal pain, vomiting, belly pain",
416 | "high fever, fatigue, diarrhoea, abdominal pain, toxic look, constipation"
417 | ],
418 | "responses": "You have Typhoid. Typhoid is a bacterial infection that can cause high fever and gastrointestinal symptoms. Here are four points to cure Typhoid:
1. Take antibiotics as prescribed by a doctor.
2. Stay hydrated and eat a bland diet.
3. Practice good hygiene and wash your hands frequently.
4. Rest and avoid strenuous activities.",
419 | "Precaution":"To avoid typhoid:
1. Practice good hygiene and handwashing.
2. Consume safe and well-cooked food and water.
3. Consider typhoid vaccination for travel to endemic regions.
4. Seek medical treatment if you suspect infection."
420 | },
421 | {
422 | "tag": "Hepatitis A",
423 | "patterns": [
424 | "muscle pain, loss of appetite, mild fever, diarrhoea, abdominal pain, vomiting, yellowish skin, nausea, joint pain, yellowing of eyes, dark urine",
425 | "muscle pain, mild fever, abdominal pain, vomiting, nausea, joint pain, dark urine",
426 | "muscle pain, loss of appetite, mild fever, diarrhoea, abdominal pain, vomiting, yellowish skin, nausea",
427 | "muscle pain, loss of appetite, mild fever, vomiting"
428 | ],
429 | "responses": "You have Hepatitis A. Hepatitis A is a viral infection that affects the liver and can cause jaundice. Here are four points to cure Hepatitis A:
1. Get plenty of rest.
2. Stay hydrated and eat a balanced diet.
3. Avoid alcohol and liver-damaging substances.
4. Consult a healthcare professional for further evaluation and treatment.",
430 | "Precaution":"To avoid hepatitis A:
1. Get vaccinated.
2. Practice good hygiene and food safety.
3. Avoid contaminated water and food.
4. Consider immune globulin for immediate protection in high-risk situations."
431 | },
432 | {
433 | "tag": "Hepatitis B",
434 | "patterns": [
435 | "fatigue, malaise,loss of appetite, receiving unsterile injections, itching, receiving blood transfusion, abdominal pain, yellowish skin, yellow urine, yellowing of eyes, lethargy, dark urine",
436 | "receiving unsterile injections, itching, receiving blood transfusion, yellow urine, yellowing of eyes, dark urine",
437 | "fatigue, malaise, loss of appetite, itching, dark urine",
438 | "receiving unsterile injections, itching, abdominal pain, yellowish skin, yellow urine, yellowing of eyes"
439 | ],
440 | "responses": "You have Hepatitis B. Hepatitis B is a viral infection that affects the liver and can lead to chronic liver disease. Here are four points to cure Hepatitis B:
1. Consult a healthcare professional for antiviral treatment.
2. Get vaccinated to prevent future infections.
3. Practice safe sex and avoid sharing needles or personal items that may spread the virus.
4. Limit alcohol consumption and maintain a healthy lifestyle.",
441 | "Precaution":"To avoid hepatitis B:
1. Get vaccinated.
2. Practice safe sex and avoid sharing needles.
3. Seek medical treatment for infected individuals.
4. Ensure healthcare workers follow standard precautions."
442 | },
443 | {
444 | "tag": "Hepatitis C",
445 | "patterns": [
446 | "fatigue, jaundice, abdominal pain, dark urine",
447 | "fatigue, jaundice, abdominal pain",
448 | "fatigue, abdominal pain, dark urine"
449 | ],
450 | "responses": "You may have Hepatitis C. It's a viral infection that affects the liver.
Recommended actions:
1. Consult a healthcare professional for diagnosis and treatment.
2. Antiviral medications can be prescribed to manage Hepatitis C.
3. Avoid alcohol and follow a liver-healthy diet.",
451 | "Precaution":"To avoid hepatitis C:
1. Avoid sharing needles and practice safe sex.
2. Seek medical treatment for infected individuals.
3. Ensure healthcare workers follow standard precautions.
4. Consider antiviral medications for high-risk individuals."
452 | },
453 | {
454 | "tag": "Hepatitis D",
455 | "patterns": [
456 | "fatigue, loss of appetite, abdominal pain, vomiting, yellowish skin, nausea, joint pain, yellowing of eyes, dark urine",
457 | "fatigue, loss of appetite, abdominal pain, yellowish skin, nausea, joint pain, yellowing of eyes, dark urine",
458 | "fatigue, abdominal pain, yellowish skin, joint pain, yellowing of eyes, dark urine",
459 | "fatigue, loss of appetite, abdominal pain, vomiting, joint pain"
460 | ],
461 | "responses": "You have Hepatitis D. Hepatitis D is a viral infection that affects the liver and can worsen the symptoms of Hepatitis B. Here are four points to cure Hepatitis D:
1. Consult a healthcare professional for antiviral treatment.
2. Get vaccinated for Hepatitis B to prevent further infection.
3. Avoid alcohol and liver-damaging substances.
4. Follow medical advice and regular check-ups.",
462 | "Precaution":"To avoid hepatitis D:
1. Get vaccinated against hepatitis B.
2. Practice safe sex and avoid sharing needles.
3. Seek medical treatment for infected individuals.
4. Ensure healthcare workers follow standard precautions."
463 | },
464 | {
465 | "tag": "Hepatitis E",
466 | "patterns": [
467 | "high fever, fatigue, loss of appetite, stomach bleeding, abdominal pain, vomiting, yellowish skin, coma, nausea, joint pain, yellowing of eyes, dark urine",
468 | "high fever, fatigue, stomach bleeding, abdominal pain, vomiting",
469 | "high fever, coma, nausea, joint pain, yellowing of eyes, dark urine"
470 | ],
471 | "responses": "You have Hepatitis E. Hepatitis E is a viral infection that affects the liver and can cause severe symptoms. Here are four points to cure Hepatitis E:
1. Seek immediate medical attention if symptoms are severe.
2. Get plenty of rest and stay hydrated.
3. Follow medical advice and treatment recommendations.
4. Practice good hygiene to prevent further spread of the virus.",
472 | "Precaution":"To avoid hepatitis E:
1. Practice good hygiene and safe food handling.
2. Avoid drinking untreated water in endemic areas.
3. Get prompt medical attention if you suspect infection.
4. Consider the hepatitis E vaccine if traveling to high-risk regions."
473 | },
474 | {
475 | "tag": "Alcoholic hepatitis",
476 | "patterns": [
477 | "abdominal pain, yellowish skin, swelling of stomach, vomiting, history of alcohol consumption, distention of abdomen, fluid overload",
478 | "yellowish skin, swelling of stomach, distention of abdomen, fluid overload",
479 | "abdominal pain, swelling of stomach, vomiting, history of alcohol consumption"
480 | ],
481 | "responses": "You have Alcoholic hepatitis. This is a disease caused by excessive alcohol consumption.
Recommended actions:
1. Stop consuming alcohol.
2. Seek medical attention immediately.
3. Rest and hydrate.
4. Follow your doctor's advice.",
482 | "Precaution":"To avoid alcoholic hepatitis:
1. Limit alcohol consumption or abstain.
2. Seek help for alcohol dependence.
3. Eat a balanced diet.
4. Monitor liver health and seek medical attention for symptoms."
483 | },
484 | {
485 | "tag": "Tuberculosis",
486 | "patterns": [
487 | "sweating, cough, fatigue, high fever, malaise, weight loss, loss of appetite, chest pain, mild fever, phlegm, vomiting, chills, swelled lymph nodes, breathlessness, yellowing of eyes, blood in sputum",
488 | "sweating, weight loss, loss of appetite, swelled lymph nodes, breathlessness, yellowing of eyes, blood in sputum",
489 | "sweating, cough, fatigue, high fever, malaise, weight loss, Shortness of Breath"
490 | ],
491 | "responses": "You have Tuberculosis. This is a bacterial infection that affects the lungs.
Recommended actions:
1. Seek immediate medical attention.
2. Follow your doctor's treatment plan.
3. Rest and maintain good hygiene.
4. Isolate yourself to prevent the spread of the disease.",
492 | "Precaution":"To avoid tuberculosis:
1. Get vaccinated if available.
2. Take prescribed medications for latent TB infection.
3. Practice good respiratory hygiene.
4. Follow treatment and isolation protocols if diagnosed with active TB."
493 | },
494 | {
495 | "tag": "Common Cold",
496 | "patterns": [
497 | "loss of smell, cough, fatigue, high fever, malaise, runny nose, continuous sneezing, headache, congestion, redness of eyes, chest pain, phlegm, muscle pain, sinus pressure, chills, swelled lymph nodes, throat irritation",
498 | "loss of smell, cough, runny nose, chills, swelled lymph nodes, throat irritation",
499 | "cough, fatigue, high fever, runny nose,e continuous snezing, headache, congestion, redness of eyes",
500 | "cold, cough, high fever, body pain"
501 | ],
502 | "responses": "You have Common Cold. This is a viral infection affecting the upper respiratory system.
Recommended actions:
1. Get plenty of rest and stay hydrated.
2. Take over-the-counter cold medications.
3. Use a humidifier for congestion.
4. If symptoms worsen, consult a doctor.",
503 | "Precaution":"To avoid common cold:
1. Wash your hands frequently.
2. Avoid close contact with infected individuals.
3. Cover your mouth and nose when sneezing or coughing.
4. Boost your immune system through a healthy diet and regular exercise."
504 | },
505 | {
506 | "tag": "Pneumonia",
507 | "patterns": [
508 | "sweating, cough, fatigue, high fever, malaise, fast heart rate, rusty sputum, chest pain, chills, breathlessness",
509 | "sweating, cough, fatigue, rusty sputum, chest pain, chills",
510 | "sweating, cough, fatigue, fast heart rate, rusty sputum, chest pain, chills, breathlessness"
511 | ],
512 | "responses": "You have Pneumonia. This is a bacterial or viral infection of the lungs.
Recommended actions:
1. Seek immediate medical attention.
2. Follow your doctor's prescribed antibiotics or treatments.
3. Get plenty of rest and stay hydrated.
4. Avoid smoking and maintain good hygiene.",
513 | "Precaution":"To avoid pneumonia:
1. Get vaccinated against pneumonia and influenza.
2. Practice good hand hygiene.
3. Avoid smoking and limit exposure to smoke.
4. Seek prompt medical attention for respiratory symptoms."
514 | },
515 | {
516 | "tag": "Dimorphic hemmorhoids(piles)",
517 | "patterns": [
518 | "pain in anal region, irritation in anus, bloody stool, pain during bowel movements, constipation",
519 | "pain in anal region, irritation in anus, bloody stool, pain during bowel movements",
520 | "pain in anal region, pain during bowel movements"
521 | ],
522 | "responses": "You have Dimorphic hemmorhoids(piles). This is a condition affecting the rectal area.
Recommended actions:
1. Maintain a high-fiber diet to avoid constipation.
2. Keep the anal area clean and dry.
3. Use over-the-counter creams for relief.
4. Consult a doctor for severe cases or bleeding.",
523 | "Precaution":"To avoid dimorphic hemorrhoids (piles):
1. Maintain regular bowel habits and avoid straining.
2. Use fiber supplements and sitz baths for relief.
3. Stay hydrated and eat a high-fiber diet.
4. Consider topical treatments for symptom relief."
524 | },
525 | {
526 | "tag": "Hypothyroidism",
527 | "patterns": [
528 | "fatigue, abnormal menstruation, cold hands and feets, mood swings, weight gain, dizziness, enlarged thyroid, swollen extremeties, brittle nails, depression, puffy face and eyes, irritability, lethargy",
529 | "fatigue, cold hands and feets, mood swings, weight gain, sbrittle nails, depression, puffy face and eyes, irritability, lethargy",
530 | "chills, brittle nails, depression, puffy face and eyes, irritability, lethargy",
531 | "fatigue, abnormal menstruation, dizziness, enlarged thyroid"
532 | ],
533 | "responses": "You have Hypothyroidism. This is a condition where the thyroid gland does not produce enough thyroid hormones.
Recommended actions:
1. Take thyroid medication as prescribed by your doctor.
2. Maintain a balanced diet.
3. Exercise regularly to boost metabolism.
4. Manage stress and get regular check-ups.",
534 | "Precaution":"To avoid hypothyroidism:
1. Take prescribed thyroid medications as directed.
2. Follow up with regular thyroid function tests.
3. Maintain a healthy diet and exercise routine.
4. Be aware of potential thyroid disruptors."
535 | },
536 | {
537 | "tag": "Hyperthyroidism",
538 | "patterns": [
539 | "sweating, fatigue, fast heart rate, abnormal menstruation, restlessness, weight loss, mood swings, diarrhoea, muscle weakness, irritability, excessive hunger",
540 | "sweating, fast heart rate, weight loss, mood swings, muscle weakness, irritability",
541 | "sweating, fatigue, abnormal menstruation, restlessness, diarrhoea, muscle weakness, excessive hunger",
542 | "sweating, fatigue, restlessness, diarrhoea, muscle weakness"
543 | ],
544 | "responses": "You have Hyperthyroidism. This is a condition where the thyroid gland produces too much thyroid hormone.
Recommended actions:
1. Consult an endocrinologist for treatment options.
2. Medication, radioactive iodine, or surgery may be recommended.
3. Monitor your thyroid levels regularly.
4. Maintain a healthy lifestyle.",
545 | "Precaution":"To avoid hyperthyroidism:
1. Take prescribed medications as directed.
2. Follow up with regular thyroid function tests.
3. Manage stress and avoid excessive iodine intake.
4. Consider radioactive iodine therapy if recommended by your doctor."
546 | },
547 | {
548 | "tag": "Hypoglycemia",
549 | "patterns": [
550 | "sweating, fatigue, headache, drying and tingling lips, slurred speech, vomiting, anxiety, nausea, blurred and distorted vision, irritability, palpitations, excessive hunger",
551 | "sweating, fatigue, headache, blurred and distorted vision, irritability, palpitations, excessive hunger",
552 | "sweating, fatigue, headache, irritability, excessive hunger",
553 | "sweating, fatigue, headache, drying and tingling lips, slurred speech, vomiting, anxiety, nausea"
554 | ],
555 | "responses": "You have Hypoglycemia. This is a condition characterized by low blood sugar levels.
Recommended actions:
1. Consume fast-acting carbohydrates like glucose tablets or juice.
2. Follow a balanced diet with regular meals and snacks.
3. Carry a medical ID indicating hypoglycemia.
4. Consult a healthcare provider for diabetes management if necessary.",
556 | "Precaution":"To avoid hypoglycemia:
1. Monitor blood sugar levels regularly.
2. Eat regular meals and snacks.
3. Carry glucose or sugar sources for emergencies.
4. Adjust diabetes medications as advised by a healthcare provider."
557 | },
558 | {
559 | "tag": "Acne",
560 | "patterns": [
561 | "blackheads, skin rash, scurring, pus filled pimples",
562 | "skin rash, scurring, pus filled pimples",
563 | "blackheads, skin rash, pimples"
564 | ],
565 | "responses": "You have Acne. This is a common skin condition characterized by pimples and skin inflammation.
Recommended actions:
1. Maintain good skincare hygiene.
2. Use acne treatments recommended by a dermatologist.
3. Avoid picking or squeezing pimples.
4. Consider dietary and lifestyle changes.",
566 | "Precaution":"To avoid acne:
1. Maintain a daily skincare routine.
2. Avoid excessive washing and harsh products.
3. Manage stress.
4. Consider topical or oral acne treatments as recommended by a dermatologist."
567 | },
568 | {
569 | "tag": "Psoriasis",
570 | "patterns": [
571 | "inflammatory nails, small dents in nails, skin rash, silver like dusting, skin peeling, joint pain,Plaque psoriasis, Skin pain, Nail psoriasis,Itchy skin",
572 | "skin peeling, joint pain,Plaque psoriasis, Skin pain, Nail psoriasis ,Itchy skin",
573 | "skin rash, silver like dusting, Skin pain, Nail psoriasis, Itchy skin"
574 | ],
575 | "responses": "You have Psoriasis. This is a chronic skin condition with various symptoms.
Recommended actions:
1. Consult a dermatologist for proper diagnosis.
2. Treatments may include topical medications and phototherapy.
3. Moisturize regularly and avoid triggers.
4. Manage stress to reduce flare-ups.",
576 | "Precaution":"To avoid psoriasis:
1. Follow a skincare routine and keep skin moisturized.
2. Manage stress to prevent flare-ups.
3. Consider phototherapy or topical treatments.
4. Adhere to prescribed medications and therapies."
577 | },
578 | {
579 | "tag": "Impetigo",
580 | "patterns": [
581 | "blister, high fever, red sore around nose, yellow crust ooze, skin rash",
582 | "high fever, red sore around nose, skin rash"
583 | ],
584 | "responses": "You have Impetigo. This is a highly contagious skin infection.
Recommended actions:
1. Consult a doctor for diagnosis and antibiotic treatment.
2. Maintain good hygiene to prevent spreading.
3. Avoid close contact with others during infection.
4. Follow prescribed medications and creams.",
585 | "Precaution":"To avoid impetigo:
1. Practice good hand hygiene.
2. Avoid close skin-to-skin contact.
3. Use a clean towel and clothing.
4. Take prescribed antibiotics as directed."
586 | },
587 | {
588 | "tag": "Fungal Infection",
589 | "patterns": [
590 | "dischromic patches, nodal skin eruptions, skin rash, itching",
591 | "dischromic patches, skin rash, itching",
592 | "nodal skin eruptions, skin rash, itching"
593 | ],
594 | "responses": "You have a Fungal Infection. This can affect the skin and cause various symptoms.
Recommended actions:
1. Consult a dermatologist for diagnosis and antifungal treatment.
2. Keep the affected area clean and dry.
3. Avoid tight clothing that can trap moisture.
4. Practice good personal hygiene.",
595 | "Precaution":"To avoid fungal infection:
1. Keep skin clean and dry.
2. Avoid sharing personal items.
3. Use antifungal creams or medications as directed.
4. Wear clean and breathable clothing."
596 | },
597 | {
598 | "tag": "Heart Attack",
599 | "patterns": [
600 | "sweating, chest pain, Shortness of breath, Lightheadedness , vomiting",
601 | "Heartburn ,chest pain, Cold sweat",
602 | "sweating, chest pain, breathlessness, indigestion"
603 | ],
604 | "responses": "You may be experiencing a heart attack. A heart attack is a serious medical emergency.
Recommended actions:
1. Call 911 or your local emergency number immediately.
2. Chew and swallow an aspirin if you're not allergic.
3. Try to stay calm and sit or lie down while waiting for help.",
605 | "Precaution":"To avoid heart attack:
1. Maintain a heart-healthy diet.
2. Exercise regularly.
3. Manage stress and get adequate sleep.
4. Quit smoking and limit alcohol consumption."
606 | },
607 | {
608 | "tag": "Varicose Veins",
609 | "patterns": [
610 | "fatigue, bruising, swollen legs, swollen blood vessels, prominent veins on calf, cramps, obesity",
611 | "swollen legs, swollen blood vessels, prominent veins on calf, cramps, obesity",
612 | "fatigue, bruising, swollen legs, cramps, obesity"
613 | ],
614 | "responses": "You might have Varicose Veins. Varicose veins are swollen and twisted veins that can be painful.
Recommended actions:
1. Elevate your legs when resting.
2. Wear compression stockings.
3. Exercise regularly.
4. Consult a doctor for severe symptoms.",
615 | "Precaution":"To avoid varicose veins:
1. Elevate your legs regularly.
2. Wear compression stockings.
3. Exercise and maintain a healthy weight.
4. Avoid prolonged periods of sitting or standing."
616 | },
617 | {
618 | "tag": "Vertigo",
619 | "patterns": [
620 | "spinning movements, headache, vomiting, nausea, unsteadiness, loss of balance",
621 | "nausea, unsteadiness, loss of balance",
622 | "sunsteadiness, spinning movements, loss of balance"
623 | ],
624 | "responses": "You may have (Vertigo) Paroxysmal Positional Vertigo. It is a type of vertigo characterized by sudden spinning sensations.
Recommended actions:
1. Consult an ENT specialist or neurologist for evaluation and diagnosis.
2. Undergo specific positional maneuvers as advised by the healthcare provider.
3. Avoid sudden head movements that trigger symptoms.
4. Follow prescribed treatment and exercises.",
625 | "Precaution":"To avoid vertigo:
1. Avoid sudden head movements.
2. Stay hydrated and maintain a balanced diet.
3. Manage stress.
4. Consider vestibular rehabilitation therapy if recommended by a healthcare provider."
626 | },
627 | {
628 | "tag": "Dizziness",
629 | "patterns": [
630 | "spinning movements, dizziness, ear pain, vomiting, visual disturbances, nausea, unsteadiness, loss of balance",
631 | "dizziness, vomiting, visual disturbances",
632 | "spinning movements, ear pain, visual disturbances, loss of balance"
633 | ],
634 | "responses": "You have Dizziness. This is a symptom that can have various underlying causes.
Recommended actions:
1. Rest in a safe place to prevent falls.
2. Stay hydrated.
3. Avoid sudden changes in position.
4. Consult a doctor to determine the cause of dizziness.",
635 | "Precaution":"To avoid dizziness:
1. Stay hydrated and eat regular meals.
2. Avoid excessive alcohol and caffeine.
3. Use assistive devices if needed.
4. Manage underlying medical conditions with the help of a healthcare provider."
636 | },
637 | {
638 | "tag": "Anemia",
639 | "patterns": [
640 | "shortness of breath, fast heartbeat, fatigue, cold hands and feets, dizziness, headache, pale skin, irregular menstrual period, poor concentration, brittle nails, weakness"
641 | ],
642 | "responses": "You have Anemia. This is a condition characterized by a shortage of red blood cells or insufficient hemoglobin to carry oxygen to the body's tissues.
Recommended actions:
1. Determine and treat the underlying cause of anemia.
2. Increase iron intake through diet or supplements.
3. Follow a balanced diet rich in vitamins and minerals.
4. Consult a hematologist for evaluation and management.",
643 | "Precaution":"To avoid anemia:
1. Eat a diet rich in iron, folate, and vitamin B12.
2. Consider iron or vitamin supplements as advised.
3. Treat underlying causes of anemia.
4. Follow up with regular blood tests."
644 | },
645 | {
646 | "tag": "Eczema",
647 | "patterns": [
648 | "itchy and inflamed skin, redness, rash",
649 | "itchy skin, redness, rash"
650 | ],
651 | "responses": "You might have Eczema (Atopic Dermatitis). It's a skin condition characterized by itchy and inflamed patches of skin.
Recommended actions:
1. Consult a dermatologist for diagnosis and treatment.
2. Moisturize regularly and avoid triggers that worsen eczema.
3. Topical corticosteroids and other medications can help manage symptoms.",
652 | "Precaution":"To avoid eczema:
1. Keep skin moisturized and avoid irritants.
2. Use hypoallergenic products.
3. Manage stress to prevent flare-ups.
4. Consider topical treatments as prescribed by a dermatologist."
653 | },
654 | {
655 | "tag": "Lupus",
656 | "patterns": [
657 | "joint pain, skin rash, fatigue, fever",
658 | "joint pain, skin rash, stiffness , swelling",
659 | "skin rash, stiffness , swelling"
660 | ],
661 | "responses": "You may have Lupus (Systemic Lupus Erythematosus). It's an autoimmune disease that can affect various parts of the body.
Recommended actions:
1. Consult a healthcare professional for diagnosis and management.
2. Treatment may involve medications to control inflammation and symptoms.",
662 | "Precaution":"To avoid lupus:
1. Manage stress and get adequate rest.
2. Use sunscreen and avoid UV exposure.
3. Take prescribed medications and follow treatment plans.
4. Maintain regular check-ups with a rheumatologist."
663 | },
664 | {
665 | "tag": "Celiac Disease",
666 | "patterns": [
667 | "digestive discomfort, diarrhea, weight loss, skin rash (dermatitis herpetiformis)",
668 | "digestive discomfort, diarrhea, weight loss, skin rash"
669 | ],
670 | "responses": "You might have Celiac Disease. It's an autoimmune disorder triggered by the consumption of gluten.
Recommended actions:
1. Consult a healthcare professional for diagnosis and dietary guidance.
2. A gluten-free diet is the primary treatment for Celiac Disease.",
671 | "Precaution":"To avoid celiac disease:
1. Maintain a gluten-free diet if diagnosed.
2. Read food labels and be vigilant about cross-contamination.
3. Get regular check-ups with a gastroenterologist.
4. Seek support from a registered dietitian."
672 | },
673 | {
674 | "tag": "Fibromyalgia",
675 | "patterns": [
676 | "widespread pain, fatigue, sleep disturbances, cognitive difficulties",
677 | "widespread pain, fatigue, sleep"
678 | ],
679 | "responses": "You may have Fibromyalgia. It's a chronic pain condition that can affect muscles and soft tissues.
Recommended actions:
1. Consult a healthcare professional for diagnosis and treatment.
2. Treatment often involves medications, physical therapy, and lifestyle adjustments.",
680 | "Precaution":"To avoid fibromyalgia:
1. Manage stress and get adequate sleep.
2. Exercise regularly and maintain a balanced diet.
3. Consider physical therapy and pain management techniques.
4. Seek support from a healthcare provider."
681 | },
682 | {
683 | "tag": "Atrial Fibrillation",
684 | "patterns": [
685 | "irregular heartbeat, dizziness, fatigue",
686 | "irregular heartbeat, palpitations, dizziness, fatigue"
687 | ],
688 | "responses": "You may have Atrial Fibrillation (AFib). It's an irregular heart rhythm that can lead to various cardiovascular issues.
Recommended actions:
1. Consult a cardiologist for diagnosis and treatment.
2. Medications and procedures may be prescribed to manage AFib and reduce stroke risk.",
689 | "Precaution":"To avoid atrial fibrillation:
1. Maintain a heart-healthy lifestyle.
2. Manage blood pressure and cholesterol.
3. Follow prescribed medications as directed.
4. Avoid excessive alcohol and caffeine consumption."
690 | },
691 | {
692 | "tag": "Pancreatitis",
693 | "patterns": [
694 | "severe abdominal pain, nausea, vomiting, fever,Rapid heart rate",
695 | "severe abdominal pain, vomiting, fever",
696 | "abdominal pain, nausea, vomiting, fever"
697 | ],
698 | "responses": "You may have Pancreatitis. It's an inflammation of the pancreas that can cause digestive problems.
Recommended actions:
1. Consult a healthcare professional for diagnosis and treatment.
2. Treatment may involve hospitalization, fasting, and pain management.",
699 | "Precaution":"To avoid pancreatitis:
1. Limit alcohol consumption or abstain.
2. Eat a low-fat diet.
3. Manage underlying causes such as gallstones or high triglycerides.
4. Take prescribed medications and follow treatment plans."
700 | },
701 | {
702 | "tag": "Chronic Kidney Disease",
703 | "patterns": [
704 | "fatigue, swelling in legs and ankles, changes in urine output",
705 | "fatigue, changes in urine output"
706 | ],
707 | "responses": "You might have Chronic Kidney Disease (CKD). It's a progressive condition that affects kidney function.
Recommended actions:
1. Consult a healthcare professional for diagnosis and management.
2. Medications and lifestyle changes can help slow the progression of CKD.",
708 | "Precaution":"To avoid chronic kidney disease:
1. Manage underlying health conditions.
2. Maintain a balanced diet and healthy weight.
3. Stay hydrated.
4. Get regular check-ups with a nephrologist."
709 | },
710 | {
711 | "tag": "IBS",
712 | "patterns": [
713 | "abdominal pain, bloating, diarrhea, constipation",
714 | "abdominal pain, bloating, constipation"
715 | ],
716 | "responses": "You might have Irritable Bowel Syndrome (IBS). It's a common gastrointestinal disorder characterized by digestive discomfort.
Recommended actions:
1. Consult a gastroenterologist for diagnosis and management.
2. Dietary changes and medications can help manage IBS symptoms.",
717 | "Precaution":"To avoid IBS (Irritable Bowel Syndrome):
1. Identify and avoid trigger foods.
2. Maintain a high-fiber diet.
3. Manage stress and consider relaxation techniques.
4. Follow a regular eating schedule."
718 | },
719 | {
720 | "tag": "Multiple Sclerosis",
721 | "patterns": [
722 | "fatigue, muscle weakness, numbness, difficulty walking,vision problems, problems with thinking, learning and planning",
723 | "muscle weakness, numbness, difficulty walking,vision problems"
724 | ],
725 | "responses": "You may have Multiple Sclerosis (MS). It's a neurological disease that affects the central nervous system.
Recommended actions:
1. Consult a neurologist for diagnosis and treatment.
2. Medications and physical therapy can help manage MS symptoms and slow progression.",
726 | "Precaution":"To avoid multiple sclerosis:
1. Maintain a balanced diet and exercise regularly.
2. Manage stress.
3. Follow prescribed medications and treatments.
4. Get regular check-ups with a neurologist."
727 | }
728 | ]
729 | }
730 |
731 |
--------------------------------------------------------------------------------
/medical_centers.json:
--------------------------------------------------------------------------------
1 | {
2 | "intents": [
3 | {
4 | "tag": "A C Hospital, Chennai",
5 | "location": [
6 | 13.0972,
7 | 80.2328
8 | ],
9 | "Address": "No-8, 3Rd Main Road, United India Nagar, Ayanavaram, Chennai-600023, Tamil Nadu, India"
10 | },
11 | {
12 | "tag": "A.N.N Hospital, Chennai",
13 | "location": [
14 | 13.0356,
15 | 80.1659
16 | ],
17 | "Address": "81-85, Annai Therasa Street, Valasaravakkam, Chennai, Tamil Nadu, India, 600087"
18 | },
19 | {
20 | "tag": "A.V. Hospitals, Chennai",
21 | "location": [
22 | 13.1092,
23 | 80.2884
24 | ],
25 | "Address": "# 172, Solaiappan Street, Tondirepet (North Chennai) Near Maharani Theatre, Chennai, Tamil Nadu, India, 600021"
26 | },
27 | {
28 | "tag": "Aakash Hospital, Chennai",
29 | "location": [
30 | 13.1605,
31 | 80.3065
32 | ],
33 | "Address": "# 393/1, T.H. Road, Tiruvottiyur, Tiruvallur, Chennai, Tamil Nadu, India, 600019"
34 | },
35 | {
36 | "tag": "Abhijay Hospital (P) Ltd., Chennai",
37 | "location": [
38 | 13.1285,
39 | 80.2326
40 | ],
41 | "Address": "No.22/2, E.S.I Hospital Road, Peravallur, Chennai, Tamil Nadu, India, 600011"
42 | },
43 | {
44 | "tag": "Aditya Hospital, Chennai",
45 | "location": [
46 | 13.0792,
47 | 80.2376
48 | ],
49 | "Address": "No.7, Barnbay Road, Kilpauk, Chennai-600010, Tamil Nadu, India, 600010"
50 | },
51 | {
52 | "tag": "Adyar P.M. Hospital, Chennai",
53 | "location": [
54 | 13.0062,
55 | 80.2569
56 | ],
57 | "Address": "# 58, L.B. Road, Adyar, Chennai-600020, Tamil Nadu, India, 600020"
58 | },
59 | {
60 | "tag": "Agash Nursing Home, Chennai",
61 | "location": [
62 | 12.9547,
63 | 80.1433
64 | ],
65 | "Address": "#234, G.S.T. Road, Chromepet, Chennai, Tamil Nadu, India, 600044"
66 | },
67 | {
68 | "tag": "Ak Hospital, Chennai",
69 | "location": [
70 | 13.0732,
71 | 80.2183
72 | ],
73 | "Address": "360 Poonamallee High Road, Junction Of Ph Rd & Chennai, Tamil Nadu, India, 600029"
74 | },
75 | {
76 | "tag": "Amma Hospital, Chennai",
77 | "location": [
78 | 13.0679,
79 | 80.2425
80 | ],
81 | "Address": "# 1, Sowrastra Nagar7Th Street, Chennai, Tamil Nadu, India, 600094"
82 | },
83 | {
84 | "tag": "Amrit Medicare Pvt Ltd, Chennai",
85 | "location": [
86 | 13.0901,
87 | 80.2814
88 | ],
89 | "Address": "No.310, Mint Street, Near Sowcarpet, Chennai-600079, Tamil Nadu, India, 600079"
90 | },
91 | {
92 | "tag": "Anand Hospital, Chennai",
93 | "location": [
94 | 13.2024,
95 | 80.2786
96 | ],
97 | "Address": "201, Kamaraj Salai, Manali, Chennai, Tamil Nadu, India, 600068"
98 | },
99 | {
100 | "tag": "Andhra Mahila Sabha, Chennai",
101 | "location": [
102 | 13.0253,
103 | 80.2639
104 | ],
105 | "Address": "No.11 & 12, Dr.Durgabaideshmukh Road, R.A.Puram, Chennai, Tamil Nadu, India, 600028"
106 | },
107 | {
108 | "tag": "Annamalai Hospital, Chennai",
109 | "location": [
110 | 13.0395,
111 | 80.2195
112 | ],
113 | "Address": "# 27, Govindan Road, West Mambalam, Near Srinivasa Theatre, Chennai, Tamil Nadu, India, 600033"
114 | },
115 | {
116 | "tag": "Apollo First Med Hospitals, Chennai",
117 | "location": [
118 | 13.0795,
119 | 80.2408
120 | ],
121 | "Address": "No 154, Poonamallee High Road, Near Neyveli House, Kilpauk, Chennai - 6000, Tamil Nadu, India, 600010"
122 | },
123 | {
124 | "tag": "Apollo Hospital (T.H.Road-Chennai), Chennai",
125 | "location": [
126 | 13.1112,
127 | 80.2828
128 | ],
129 | "Address": "#645, T.H.Road, Tondiarpet, Chennai, Tamil Nadu, India, 600081"
130 | },
131 | {
132 | "tag": "Apollo Hospitals (Greams Road-Chennai), Chennai",
133 | "location": [
134 | 13.0608,
135 | 80.2615
136 | ],
137 | "Address": "#21, Greams Lane, Greams Road, Chennai-600006, Tamil Nadu, India, 600006"
138 | },
139 | {
140 | "tag": "Apollo Speciality Hospital (Chennai), Chennai",
141 | "location": [
142 | 13.0287,
143 | 80.2405
144 | ],
145 | "Address": "No 320 5Th Floor, Padma Complex, Anna Salai, Near Lr Swami Building, Nandanam, Chennai, Tamil Nadu, India, 600035"
146 | },
147 | {
148 | "tag": "Appasamy Medicare Centre Pvt Ltd, Chennai",
149 | "location": [
150 | 13.0803,
151 | 80.2132
152 | ],
153 | "Address": "23-25, Friends Avenue, Arumbakkam, Chennaiarumbakkam, Tamil Nadu, India, 600106"
154 | },
155 | {
156 | "tag": "Arokya Hospital, Chennai",
157 | "location": [
158 | 13.1052,
159 | 80.1601
160 | ],
161 | "Address": "#32, Pillayar Koil Street, Chennai, Tamil Nadu, India, 600078"
162 | },
163 | {
164 | "tag": "Aswene Soundra Hospital & Research Centre, Chennai",
165 | "location": [
166 | 13.0343,
167 | 80.2552
168 | ],
169 | "Address": "# 24, Kasturi Rangan Road, Teynampet, Chennai, Tamil Nadu, India, 600018"
170 | },
171 | {
172 | "tag": "Athipathi Hospital And Research Center, Chennai",
173 | "location": [
174 | 12.9781,
175 | 80.2076
176 | ],
177 | "Address": "Plot No 1, 100 Ft Rd, Tanni Nagar, Velachary, Chennai, Tamil Nadu, India, 600042"
178 | },
179 | {
180 | "tag": "Avm Medical Ent Research Foundation, Chennai",
181 | "location": [
182 | 13.0344,
183 | 80.2663
184 | ],
185 | "Address": "3, P.S.S. Road, Mylapore, Chennai, Tamil Nadu, India, 600004"
186 | },
187 | {
188 | "tag": "Aysha Hospital, Chennai",
189 | "location": [
190 | 13.0813,
191 | 80.2458
192 | ],
193 | "Address": "91A Millers Road, Kilpauk, Chennai, Tamil Nadu, India, 600010"
194 | },
195 | {
196 | "tag": "B M Hospitals, Chennai",
197 | "location": [
198 | 13.0893,
199 | 80.1969
200 | ],
201 | "Address": "36, 5Th Main Road, Thillai Ganga Nagar, Chennai, Tamil Nadu, India, 600061"
202 | },
203 | {
204 | "tag": "B.B Hospital, Chennai",
205 | "location": [
206 | 13.1349,
207 | 80.2174
208 | ],
209 | "Address": "No.52, Dayalu Nagar, Kolathur, Near Villirakham Railway Station, Chennai, Tamil Nadu, India, 600099"
210 | },
211 | {
212 | "tag": "B.M. Orthopaedic Hospital, Chennai",
213 | "location": [
214 | 13.1129,
215 | 80.1593
216 | ],
217 | "Address": "No.3/157, Mth Road, Ambattur, Chennai - 53, Tamil Nadu, India, 600053"
218 | },
219 | {
220 | "tag": "B.S. Hospital, Chennai",
221 | "location": [
222 | 12.9518,
223 | 80.1271
224 | ],
225 | "Address": "# 16, 3Rd Main Road, Chitlapakkam, Chennai, Tamil Nadu, India, 600064"
226 | },
227 | {
228 | "tag": "B.S.S. Hospital, Chennai",
229 | "location": [
230 | 13.0254,
231 | 80.2637
232 | ],
233 | "Address": "New No 200, Old # 179/1, R.K. Mutt Road, Mandaveli, Chennai, Tamil Nadu, India, 600028"
234 | },
235 | {
236 | "tag": "Babus Maternity Hospital, Chennai",
237 | "location": [
238 | 12.9737,
239 | 80.1616
240 | ],
241 | "Address": "# 7, Doraisamy Reddy Street, Tabaram, Chennai, Tamil Nadu, India, 600045"
242 | },
243 | {
244 | "tag": "Bagdi Nursing Home, Chennai",
245 | "location": [
246 | 13.0844,
247 | 80.2164
248 | ],
249 | "Address": "3Rd Floor, #10, Solaiappan Streett.Nagar, Chennai, Tamil Nadu, India, 600017"
250 | },
251 | {
252 | "tag": "Balagangadhara Varma Nursing Home & Research Center, Chennai",
253 | "location": [
254 | 13.2173,
255 | 80.3184
256 | ],
257 | "Address": "No 17, First Main Road, Narayanapuram, Tamil Nadu, India, 601302"
258 | },
259 | {
260 | "tag": "Bappu Clinic & Nursing Home, Chennai",
261 | "location": [
262 | 12.9239,
263 | 80.1199
264 | ],
265 | "Address": "#46, Kalaingar Main Road, Srinivasa Nagar, Perungalatur, Chennai, Tamil Nadu, India, 600063"
266 | },
267 | {
268 | "tag": "Bharath Hospital, Chennai",
269 | "location": [
270 | 12.9754,
271 | 80.1875
272 | ],
273 | "Address": "# 72, I St Main Road, Nanganallur, Chennai, Tamil Nadu, India, 600061"
274 | },
275 | {
276 | "tag": "Billroth Hospital Limited, Chennai",
277 | "location": [
278 | 13.0722,
279 | 80.2236
280 | ],
281 | "Address": "#43, Lakshmi Takis Rd, Shenoy Nagar, Chennai, Tamil Nadu, India, 600030"
282 | },
283 | {
284 | "tag": "Billroth Hospitals - Ra Puram, Chennai",
285 | "location": [
286 | 13.0249,
287 | 80.2584
288 | ],
289 | "Address": "#52, 2Nd Main Road, Raja Annamalai Puram, Raja Annamalai Puram, Chennai, Tamil Nadu, India, 600028"
290 | },
291 | {
292 | "tag": "Brs Hospital Pvt.Ltd, Chennai",
293 | "location": [
294 | 13.0756,
295 | 80.2309
296 | ],
297 | "Address": "No.28. Cathedral Garden Road, Cathedral Gardens Road, Chennai, Tamil Nadu, India, 600034"
298 | },
299 | {
300 | "tag": "C.S.I. Kalyani General Hospital, Chennai",
301 | "location": [
302 | 13.0366,
303 | 80.2683
304 | ],
305 | "Address": "15, Dr. Radhakrishnan Salai, Mylapore, Chennai-600004, Next To City Centre, Tamil Nadu, India, 600004"
306 | },
307 | {
308 | "tag": "C.S.I. Rainy Multi-Speciality Hospital, Chennai",
309 | "location": [
310 | 13.0931,
311 | 80.2851
312 | ],
313 | "Address": "#45, G.A. Road, Chennai, Tamil Nadu, India, 600021"
314 | },
315 | {
316 | "tag": "C.S.M Nursing Home, Chennai",
317 | "location": [
318 | 13.0405,
319 | 80.2302
320 | ],
321 | "Address": "# 18, Rukmani Street, West Mambalam, Chennai, Tamil Nadu, India, 600033"
322 | },
323 | {
324 | "tag": "Cauvery Trust Hospital, Chennai",
325 | "location": [
326 | 13.1276,
327 | 80.2049
328 | ],
329 | "Address": "No.36, Ponnankinaru Street, Villivakkam, Chennai, Tamil Nadu, India, 600049"
330 | },
331 | {
332 | "tag": "Chennai Krishna Hospital, Chennai",
333 | "location": [
334 | 12.9585,
335 | 80.1429
336 | ],
337 | "Address": "No. 297, GST Road, Near MIT Flyover, Chromepet, Chennai, Tamilnadu, India, 600044"
338 | },
339 | {
340 | "tag": "Chennai Meenakshi Multispeciality Hospital Ltd., Chennai",
341 | "location": [
342 | 13.0354,
343 | 80.2355
344 | ],
345 | "Address": "# 148, Luz Church Road, Malapore, Chennai, Tamil Nadu, India, 600004"
346 | },
347 | {
348 | "tag": "Chettinad Super Speciality Hospital (Cssh)-(A Unit Of Rajah Muthiah Charitable And Educational Trust), Chennai",
349 | "location": [
350 | 12.8091,
351 | 80.2167
352 | ],
353 | "Address": "I.T. Highway, Kelambakkam, Tamil Nadu, India, 603103"
354 | },
355 | {
356 | "tag": "Chitras Ent Laser Surgery Super Speciality Hospital, Chennai",
357 | "location": [
358 | 13.0672,
359 | 80.2465
360 | ],
361 | "Address": "30C, Cathedral Garden Lane, Nungambakkam, Chennai, Tamil Nadu, India, 600034"
362 | },
363 | {
364 | "tag": "Christudas Orthopaedic Speciality Hospital, Chennai",
365 | "location": [
366 | 13.1057,
367 | 80.1921
368 | ],
369 | "Address": "#9, Duraiswamy Ngr. I.A.F. Road, Chennai, Tamil Nadu, India, 600059"
370 | },
371 | {
372 | "tag": "Darshan Surgical Centre Llp, Chennai",
373 | "location": [
374 | 13.1384,
375 | 80.1907
376 | ],
377 | "Address": "Block T-80, New No-24 5Th Main Road, Chennai, Tamil Nadu, India, 600040"
378 | },
379 | {
380 | "tag": "Deepam Hospital, Chennai",
381 | "location": [
382 | 12.9323,
383 | 80.1123
384 | ],
385 | "Address": "#327, Muthurangam Road, Tambaram (West), Kanchipuram, West Tambaram, Chennai, Tamil Nadu, India, 600045"
386 | },
387 | {
388 | "tag": "Deepam Hospital Ltd, Chennai",
389 | "location": [
390 | 12.9874,
391 | 80.2605
392 | ],
393 | "Address": "30, Ayyasamy Street, Chennai, Tamil Nadu, India, 600044"
394 | },
395 | {
396 | "tag": "Deepam Hospital Ltd, Chennai",
397 | "location": [
398 | 12.9897,
399 | 80.2533
400 | ],
401 | "Address": "107-A, GST Road, Chennai, Tamil Nadu, India, 600044"
402 | },
403 | {
404 | "tag": "Doctor Rex'S Hospital, Chennai",
405 | "location": [
406 | 13.0706,
407 | 80.2407
408 | ],
409 | "Address": "# 37, Millers Road, Kilpauk, Chennai, Tamil Nadu, India, 600010"
410 | },
411 | {
412 | "tag": "Dr Kamakshi National Hospital, Chennai",
413 | "location": [
414 | 13.1004,
415 | 80.2878
416 | ],
417 | "Address": "No 12 Jaffer Serang Street, Second Line Beach, Chennai, Tamil Nadu, India, 600001"
418 | },
419 | {
420 | "tag": "Dr. Arvind Vision Care, Chennai",
421 | "location": [
422 | 13.0919,
423 | 80.1647
424 | ],
425 | "Address": "#61, Reddy Palayam Road, Mogappair West, Chennai, Tamil Nadu, India, 600037"
426 | },
427 | {
428 | "tag": "Dr. Grace George Hospital, Chennai",
429 | "location": [
430 | 13.1323,
431 | 80.0468
432 | ],
433 | "Address": "# 34, Udayavar Koil Street, Thirumizhisai, Poonamallee, Tamil Nadu, India, 600029"
434 | },
435 | {
436 | "tag": "Dr. Jacquline Divyananda (Divya Hospital), Chennai",
437 | "location": [
438 | 12.9782,
439 | 80.2037
440 | ],
441 | "Address": "# 20, Medavakkam Main Road, Madipakkam, Chennai, Tamil Nadu, India, 600091"
442 | },
443 | {
444 | "tag": "Dr. Mehta'S Multispeciality Hospital Pvt Ltd., Chennai",
445 | "location": [
446 | 13.0661,
447 | 80.2395
448 | ],
449 | "Address": "2 (E), Mc. Nicholas Road, Chennai, Opposite To Chetpet Police Station, Tamil Nadu, India, 600031"
450 | },
451 | {
452 | "tag": "Dr. Rela Institute & Medical Centre, Chennai",
453 | "location": [
454 | 13.1107,
455 | 80.1453
456 | ],
457 | "Address": "No. 7, CLC Works Road, Chromepet, Chennai, Tamil Nadu, India, 600044"
458 | },
459 | {
460 | "tag": "Dr. U Mohan Rau Memorial Hospital, Chennai",
461 | "location": [
462 | 13.0282,
463 | 80.2644
464 | ],
465 | "Address": "#962, Poonamallee High Road, Near Motcham Theatre, Chennai, Tamil Nadu, India, 600084"
466 | },
467 | {
468 | "tag": "Esic Hospital, Chennai",
469 | "location": [
470 | 13.1066,
471 | 80.1839
472 | ],
473 | "Address": "# 32, Marshalls Road, Egmore, Chennai, Tamil Nadu, India, 600008"
474 | },
475 | {
476 | "tag": "Eswari Nursing Home, Chennai",
477 | "location": [
478 | 13.0795,
479 | 80.2045
480 | ],
481 | "Address": "# 1, 2Nd Main Road, Kasthurba Nagar, Adyar, Chennai, Tamil Nadu, India, 600020"
482 | },
483 | {
484 | "tag": "Ethiraj Clinic & Nursing Home, Chennai",
485 | "location": [
486 | 13.0726,
487 | 80.2534
488 | ],
489 | "Address": "40/1, E V K Sampath Road, Vepery, Chennai, Tamil Nadu, India, 600007"
490 | },
491 | {
492 | "tag": "Frontier Lifeline Hospital, Chennai",
493 | "location": [
494 | 13.0704,
495 | 80.1853
496 | ],
497 | "Address": "# 29, R-30C, Ambattur Industrial Estate Road, Chennai, Tamil Nadu, India, 600101"
498 | },
499 | {
500 | "tag": "G.g. Hospital, Chennai",
501 | "location": [
502 | 13.0921,
503 | 80.2869
504 | ],
505 | "Address": "# 6, E Block, 4Th Avenue, Anna Nagar East, Chennai, Tamil Nadu, India, 600102"
506 | },
507 | {
508 | "tag": "G.g. Hospital (2), Chennai",
509 | "location": [
510 | 13.0971,
511 | 80.2053
512 | ],
513 | "Address": "# 149, Grand Line, T.H. Road, Chennai, Tamil Nadu, India, 600118"
514 | },
515 | {
516 | "tag": "G.j. Hospital & Trauma Centre Pvt Ltd., Chennai",
517 | "location": [
518 | 12.9939,
519 | 80.2419
520 | ],
521 | "Address": "24-A, Halls Road, Egmore, Chennai, Tamil Nadu, India, 600008"
522 | },
523 | {
524 | "tag": "G.S. Hospital, Chennai",
525 | "location": [
526 | 13.1008,
527 | 80.2575
528 | ],
529 | "Address": "# 85, Greams Road, Chennai, Tamil Nadu, India, 600006"
530 | },
531 | {
532 | "tag": "Gajanan Hospitals Pvt Ltd, Chennai",
533 | "location": [
534 | 13.0871,
535 | 80.2162
536 | ],
537 | "Address": "#100, Poonamallee High Road, Chennai, Tamil Nadu, India, 600084"
538 | },
539 | {
540 | "tag": "Ganga Nursing Home, Chennai",
541 | "location": [
542 | 13.0527,
543 | 80.2506
544 | ],
545 | "Address": "#12, Khadar Nawaz Khan Road, Nungambakkam, Chennai, Tamil Nadu, India, 600034"
546 | },
547 | {
548 | "tag": "Girishwari Hospital Pvt Ltd, Chennai",
549 | "location": [
550 | 12.9822,
551 | 80.2528
552 | ],
553 | "Address": "#27, Gowtham Street, West Tambaram, Chennai, Tamil Nadu, India, 600045"
554 | },
555 | {
556 | "tag": "Gkm Hospitals, Chennai",
557 | "location": [
558 | 13.0644,
559 | 80.1962
560 | ],
561 | "Address": "# 120, 1St Main Road, Chennai, Tamil Nadu, India, 600099"
562 | },
563 | {
564 | "tag": "Global Health City, Chennai",
565 | "location": [
566 | 12.8234,
567 | 80.2427
568 | ],
569 | "Address": "# 439, Cheran Nagar, Perumbakkam, Chennai, Tamil Nadu, India, 600100"
570 | },
571 | {
572 | "tag": "Government Hospital, Chennai",
573 | "location": [
574 | 13.1159,
575 | 80.2868
576 | ],
577 | "Address": "No. 69, 1St Avenue, Shanti Colony, Anna Nagar, Chennai, Tamil Nadu, India, 600040"
578 | },
579 | {
580 | "tag": "Grace Kennett Foundation Hospital, Chennai",
581 | "location": [
582 | 13.1169,
583 | 80.1276
584 | ],
585 | "Address": "F1 & F2, Near Annai Arul Hospital, Kelambakkam, Chennai, Tamil Nadu, India, 603103"
586 | },
587 | {
588 | "tag": "Govt. Peripheral Hospital, Chennai",
589 | "location": [
590 | 13.0763,
591 | 80.2659
592 | ],
593 | "Address": "M.K.N. Road, Guindy, Chennai, Tamil Nadu, India, 600032"
594 | },
595 | {
596 | "tag": "Gt Hospital (Sethu Foundation), Chennai",
597 | "location": [
598 | 13.0629,
599 | 80.2437
600 | ],
601 | "Address": "# 14, Rajasekaran Street, Mylapore, Chennai, Tamil Nadu, India, 600004"
602 | },
603 | {
604 | "tag": "Gurudeva Hospitals Pvt Ltd, Chennai",
605 | "location": [
606 | 13.1493,
607 | 80.2718
608 | ],
609 | "Address": "# 33, 9Th Street, Lakshmipuram, Chennai, Tamil Nadu, India, 600099"
610 | },
611 | {
612 | "tag": "H M Hospitals, Chennai",
613 | "location": [
614 | 13.0736,
615 | 80.2412
616 | ],
617 | "Address": "# 48/1, Mannar Reddy Street, Chennai, Tamil Nadu, India, 600010"
618 | },
619 | {
620 | "tag": "H.K. Hospital Pvt Ltd, Chennai",
621 | "location": [
622 | 13.0541,
623 | 80.2733
624 | ],
625 | "Address": "#49, Kutchery Road, Mylapore, Chennai, Tamil Nadu, India, 600004"
626 | },
627 | {
628 | "tag": "Hande Hospital, Chennai",
629 | "location": [
630 | 13.0364,
631 | 80.2431
632 | ],
633 | "Address": "# 45, Lakshmi Talkies Road, Shenoy Nagar, Chennai, Tamil Nadu, India, 600030"
634 | },
635 | {
636 | "tag": "Happy Times Nursing Home, Chennai",
637 | "location": [
638 | 13.1026,
639 | 80.2517
640 | ],
641 | "Address": "# 92, Block B, Mmda Colony, Arumbakkam, Chennai, Tamil Nadu, India, 600106"
642 | },
643 | {
644 | "tag": "Harvey Heart Hospitals Limited, Chennai",
645 | "location": [
646 | 13.0723,
647 | 80.2152
648 | ],
649 | "Address": "# 24, Vth Main Road, Gandhi Nagar, Adyar, Chennai, Tamil Nadu, India, 600020"
650 | },
651 | {
652 | "tag": "Hemoprime Hospitals, Chennai",
653 | "location": [
654 | 13.0799,
655 | 80.2487
656 | ],
657 | "Address": "# 28, Perambur High Road, Chennai, Tamil Nadu, India, 600012"
658 | },
659 | {
660 | "tag": "Hindu Mission Hospital, Chennai",
661 | "location": [
662 | 12.9632,
663 | 80.2098
664 | ],
665 | "Address": "# 103, GST Road, Tambaram, Chennai, Tamil Nadu, India, 600045"
666 | },
667 | {
668 | "tag": "Hindu Mission Hospital, Chennai",
669 | "location": [
670 | 12.9254,
671 | 80.1384
672 | ],
673 | "Address": "# 103, GST Road, Tambaram, Chennai, Tamil Nadu, India, 600045"
674 | },
675 | {
676 | "tag": "Hindu Mission Hospital, Chennai",
677 | "location": [
678 | 12.9278,
679 | 80.1238
680 | ],
681 | "Address": "# 103, GST Road, Tambaram, Chennai, Tamil Nadu, India, 600045"
682 | },
683 | {
684 | "tag": "Panimalar Medical College Hospital & Research Institute",
685 | "location": [
686 | 13.0473,
687 | 80.0841
688 | ],
689 | "Address": "Varadharajapuram, Chennai Outer Ring Rd, Poonamallee, Chennai, Pidarithangal, Tamil Nadu 600123"
690 | },
691 | {
692 | "tag": "Cure Well Hospital, Nazarathpettai, Tamil Nadu",
693 | "location": [
694 | 13.0448,
695 | 80.0786
696 | ],
697 | "Address": "23VH+W6C, Bajanaikovil St, Nazarathpettai, Tamil Nadu 600069"
698 | },
699 | {
700 | "tag": "S.S. Hospital, Nazarathpettai, Tamil Nadu",
701 | "location": [
702 | 13.0476,
703 | 80.0807
704 | ],
705 | "Address": "23XJ+28V, Nazarathpettai, Tamil Nadu 600123"
706 | },
707 | {
708 | "tag": "Aachi Hospital",
709 | "location": [
710 | 13.0992,
711 | 80.1847
712 | ],
713 | "Address": "No:77, Thirumazhisai near: cake pie, 45, Chennai Tiruvallur High Rd, Chennai, Tamil Nadu 600124"
714 | }
715 | ]
716 | }
--------------------------------------------------------------------------------
/model.py:
--------------------------------------------------------------------------------
1 | import torch
2 | import torch.nn as nn
3 |
4 | class RNNModel(nn.Module):
5 | def __init__(self, input_size, hidden_size, output_size, num_layers):
6 | super(RNNModel, self).__init__()
7 | self.hidden_size = hidden_size
8 | self.num_layers = num_layers
9 | self.lstm = nn.LSTM(input_size, hidden_size, num_layers, batch_first=True)
10 | self.fc = nn.Linear(hidden_size, output_size)
11 |
12 | def forward(self, x):
13 | out, (hn, cn) = self.lstm(x)
14 | out = self.fc(out[:, -1, :]) # Use the final time step's output
15 | return out
16 |
--------------------------------------------------------------------------------
/model_chat.py:
--------------------------------------------------------------------------------
1 | import torch
2 | import torch.nn as nn
3 |
4 | class RNNModel(nn.Module):
5 | def __init__(self, input_size, hidden_size, output_size, num_layers):
6 | super(RNNModel, self).__init__()
7 | self.hidden_size = hidden_size
8 | self.num_layers = num_layers
9 | self.lstm = nn.LSTM(input_size, hidden_size, num_layers, batch_first=True)
10 | self.fc = nn.Linear(hidden_size, output_size)
11 |
12 | def forward(self, x):
13 | out, (hn, cn) = self.lstm(x)
14 | out = self.fc(out) # Use the final time step's output
15 | return out
16 |
--------------------------------------------------------------------------------
/nltk_utils.py:
--------------------------------------------------------------------------------
1 | import numpy as np
2 | import nltk
3 | # nltk.download('punkt')
4 | from nltk.stem.porter import PorterStemmer
5 | stemmer = PorterStemmer()
6 |
7 |
8 | def tokenize(sentence):
9 | return nltk.word_tokenize(sentence)
10 |
11 |
12 | def stem(word):
13 | return stemmer.stem(word.lower())
14 |
15 |
16 | def bag_of_words(tokenized_sentence, words):
17 | # stem each word
18 | sentence_words = [stem(word) for word in tokenized_sentence]
19 | # initialize bag with 0 for each word
20 | bag = np.zeros(len(words), dtype=np.float32)
21 | for idx, w in enumerate(words):
22 | if w in sentence_words:
23 | bag[idx] = 1
24 |
25 | return bag
26 |
--------------------------------------------------------------------------------
/requirements.txt:
--------------------------------------------------------------------------------
1 | geocoder
2 | flask
3 | numpy
4 | pandas
5 | flask_cors
6 | torch
7 | nltk
--------------------------------------------------------------------------------
/static/app.js:
--------------------------------------------------------------------------------
1 | class Chatbox {
2 | constructor() {
3 | this.args = {
4 | openButton: document.querySelector('.chatbox__button'),
5 | chatBox: document.querySelector('.chatbox__support'),
6 | sendButton: document.querySelector('.send__button')
7 | }
8 |
9 | this.state = false;
10 | this.messages = [];
11 | }
12 |
13 | display() {
14 | const {openButton, chatBox, sendButton, medicalcentres} = this.args;
15 |
16 | openButton.addEventListener('click', () => this.toggleState(chatBox))
17 |
18 | sendButton.addEventListener('click', () => this.onSendButton(chatBox))
19 |
20 | const node = chatBox.querySelector('input');
21 | node.addEventListener("keyup", ({key}) => {
22 | if (key === "Enter") {
23 | this.onSendButton(chatBox)
24 | }
25 | })
26 | }
27 |
28 | toggleState(chatbox) {
29 | this.state = !this.state;
30 |
31 | // show or hides the box
32 | if(this.state) {
33 | chatbox.classList.add('chatbox--active')
34 | } else {
35 | chatbox.classList.remove('chatbox--active')
36 | }
37 | }
38 |
39 | onSendButton(chatbox) {
40 | var textField = chatbox.querySelector('input');
41 | let text1 = textField.value
42 | if (text1 === "") {
43 | return;
44 | }
45 |
46 | let msg1 = { name: "User", message: text1 }
47 | this.messages.push(msg1);
48 |
49 | fetch('http://127.0.0.1:5000/predict', {
50 | method: 'POST',
51 | body: JSON.stringify({ message: text1}),
52 | mode: 'cors',
53 | headers: {
54 | 'Content-Type': 'application/json'
55 | },
56 | })
57 | .then(r => r.json())
58 | .then(r => {
59 | //let msg2 = { name: "Sam", message1: r.answer[0][0], message11: r.answer[0][1], prob1: r.answer[0][2], message2: r.answer[1][0], message21: r.answer[1][1], prob2: r.answer[1][2], message3: r.answer[2][0], message31: r.answer[2][1], prob3: r.answer[2][2]};
60 | let msg2 = {name: "Sam", message1: r.answer[0], message2: r.answer[1], message3: r.answer[2], message4: r.answer[3]}
61 | this.messages.push(msg2);
62 | this.updateChatText(chatbox)
63 | textField.value = ''
64 |
65 | }).catch((error) => {
66 | console.error('Error:', error);
67 | this.updateChatText(chatbox)
68 | textField.value = ''
69 | });
70 | }
71 |
72 | updateChatText(chatbox) {
73 | var html = '';
74 | const specificTags = ["greeting", "goodbye","work","who","Thanks","joke", "name", "age", "gender", "not_understand"]
75 | this.messages.slice().reverse().forEach(function(item, index) {
76 |
77 | if (item.name === "Sam")
78 | {
79 | /*html += '
You can enter your symptoms by clicking the Chatbox and you can get the Accurate Potential Conditions for it 👇
112 |Hi, Enter symptoms and get a list of potential conditions
133 |