Skip to content
Permalink
Browse files
Chatbot commit
  • Loading branch information
kesinenis committed Aug 6, 2023
0 parents commit 0997720585448c7306eb2c355714100276d4a28e
Show file tree
Hide file tree
Showing 212 changed files with 48,302 additions and 0 deletions.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,135 @@
"""
Django settings for ChatService project.
Generated by 'django-admin startproject' using Django 2.2.4.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""

import os

# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))


# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/2.2/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'w$$+1q$#xfbqw=1m(_+0o#c5663yl71xnshu!^looilw+y$z7d'

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

ALLOWED_HOSTS = []


# Application definition

INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'webapp'
]

MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]

ROOT_URLCONF = 'ChatService.urls'

TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [os.path.join(BASE_DIR,'templates')],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
},
},
]

WSGI_APPLICATION = 'ChatService.wsgi.application'


# Database
# https://docs.djangoproject.com/en/2.2/ref/settings/#databases


DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'medicalchatbot',
'USER': 'root',
'PASSWORD': 'root',
'HOST': '127.0.0.1',
'PORT': '3306',
}
}



# Password validation
# https://docs.djangoproject.com/en/2.2/ref/settings/#auth-password-validators

AUTH_PASSWORD_VALIDATORS = [
{
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
},
]


# Internationalization
# https://docs.djangoproject.com/en/2.2/topics/i18n/

LANGUAGE_CODE = 'en-us'

TIME_ZONE = 'UTC'

USE_I18N = True

USE_L10N = True

USE_TZ = True


# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/2.2/howto/static-files/

staticfiles_dir=[
os.path.join(BASE_DIR,'static')
]


STATIC_ROOT = os.path.join(BASE_DIR,'static')

STATIC_URL = '/static/'

@@ -0,0 +1,23 @@

"""ChatService URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based views
1. Add an import: from other_app.views import Home
2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')
Including another URLconf
1. Import the include() function: from django.urls import include, path
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path,include

urlpatterns = [
path('admin/', admin.site.urls),
path('',include('webapp.urls')),
]
@@ -0,0 +1,17 @@

"""
WSGI config for ChatService project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""

import os

from django.core.wsgi import get_wsgi_application

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'ChatService.settings')

application = get_wsgi_application()
Binary file not shown.
Empty file.
@@ -0,0 +1,134 @@
Symptom,weight
itching,1
skin_rash,3
nodal_skin_eruptions,4
continuous_sneezing,4
shivering,5
chills,3
joint_pain,3
stomach_pain,5
acidity,3
ulcers_on_tongue,4
muscle_wasting,3
vomiting,5
burning_micturition,6
spotting_urination,6
fatigue,4
weight_gain,3
anxiety,4
cold_hands_and_feets,5
mood_swings,3
weight_loss,3
restlessness,5
lethargy,2
patches_in_throat,6
irregular_sugar_level,5
cough,4
high_fever,7
sunken_eyes,3
breathlessness,4
sweating,3
dehydration,4
indigestion,5
headache,3
yellowish_skin,3
dark_urine,4
nausea,5
loss_of_appetite,4
pain_behind_the_eyes,4
back_pain,3
constipation,4
abdominal_pain,4
diarrhoea,6
mild_fever,5
yellow_urine,4
yellowing_of_eyes,4
acute_liver_failure,6
fluid_overload,6
swelling_of_stomach,7
swelled_lymph_nodes,6
malaise,6
blurred_and_distorted_vision,5
phlegm,5
throat_irritation,4
redness_of_eyes,5
sinus_pressure,4
runny_nose,5
congestion,5
chest_pain,7
weakness_in_limbs,7
fast_heart_rate,5
pain_during_bowel_movements,5
pain_in_anal_region,6
bloody_stool,5
irritation_in_anus,6
neck_pain,5
dizziness,4
cramps,4
bruising,4
obesity,4
swollen_legs,5
swollen_blood_vessels,5
puffy_face_and_eyes,5
enlarged_thyroid,6
brittle_nails,5
swollen_extremeties,5
excessive_hunger,4
extra_marital_contacts,5
drying_and_tingling_lips,4
slurred_speech,4
knee_pain,3
hip_joint_pain,2
muscle_weakness,2
stiff_neck,4
swelling_joints,5
movement_stiffness,5
spinning_movements,6
loss_of_balance,4
unsteadiness,4
weakness_of_one_body_side,4
loss_of_smell,3
bladder_discomfort,4
foul_smell_ofurine,5
continuous_feel_of_urine,6
passage_of_gases,5
internal_itching,4
toxic_look_(typhos),5
depression,3
irritability,2
muscle_pain,2
altered_sensorium,2
red_spots_over_body,3
belly_pain,4
abnormal_menstruation,6
dischromic_patches,6
watering_from_eyes,4
increased_appetite,5
polyuria,4
family_history,5
mucoid_sputum,4
rusty_sputum,4
lack_of_concentration,3
visual_disturbances,3
receiving_blood_transfusion,5
receiving_unsterile_injections,2
coma,7
stomach_bleeding,6
distention_of_abdomen,4
history_of_alcohol_consumption,5
fluid_overload,4
blood_in_sputum,5
prominent_veins_on_calf,6
palpitations,4
painful_walking,2
pus_filled_pimples,2
blackheads,2
scurring,2
skin_peeling,3
silver_like_dusting,2
small_dents_in_nails,2
inflammatory_nails,2
blister,4
red_sore_around_nose,2
yellow_crust_ooze,3
prognosis,5
@@ -0,0 +1,42 @@
Symptoms,Disease
dischromic_patches skin_rash nodal_skin_eruptions itching,Fungal infection
chills shivering watering_from_eyes continuous_sneezing,Allergy
chest_pain vomiting cough stomach_pain ulcers_on_tongue acidity,GERD
nausea yellowing_of_eyes itching loss_of_appetite yellowish_skin abdominal_pain vomiting,Chronic cholestasis
itching spotting_ urination skin_rash stomach_pain burning_micturition,Drug Reaction
loss_of_appetite indigestion passage_of_gases abdominal_pain vomiting internal_itching,Peptic ulcer diseae
extra_marital_contacts patches_in_throat muscle_wasting high_fever,AIDS
lethargy obesity polyuria weight_loss excessive_hunger blurred_and_distorted_vision restlessness increased_appetite irregular_sugar_level fatigue,Diabetes
sunken_eyes dehydration vomiting diarrhoea,Gastroenteritis
breathlessness mucoid_sputum high_fever cough family_history fatigue,Bronchial Asthma
chest_pain headache loss_of_balance lack_of_concentration dizziness,Hypertension
headache depression excessive_hunger blurred_and_distorted_vision indigestion visual_disturbances stiff_neck irritability acidity,Migraine
weakness_in_limbs back_pain loss_of_balance neck_pain dizziness,Cervical spondylosis
headache altered_sensorium weakness_of_one_body_side vomiting,Paralysis (brain hemorrhage)
dark_urine high_fever itching weight_loss yellowish_skin abdominal_pain vomiting fatigue,Jaundice
nausea sweating high_fever diarrhoea headache chills muscle_pain vomiting,Malaria
malaise lethargy high_fever itching loss_of_appetite headache mild_fever skin_rash swelled_lymph_nodes red_spots_over_body fatigue,Chicken pox
nausea malaise high_fever loss_of_appetite headache back_pain chills joint_pain skin_rash muscle_pain red_spots_over_body pain_behind_the_eyes vomiting fatigue,Dengue
nausea high_fever constipation diarrhoea headache toxic_look_(typhos) chills belly_pain abdominal_pain vomiting fatigue,Typhoid
nausea dark_urine yellowing_of_eyes diarrhoea loss_of_appetite mild_fever joint_pain muscle_pain yellowish_skin abdominal_pain vomiting,hepatitis A
yellowing_of_eyes lethargy dark_urine malaise itching receiving_blood_transfusion receiving_unsterile_injections loss_of_appetite yellow_urine yellowish_skin abdominal_pain fatigue,Hepatitis B
nausea yellowing_of_eyes loss_of_appetite yellowish_skin family_history fatigue,Hepatitis C
nausea dark_urine yellowing_of_eyes loss_of_appetite joint_pain yellowish_skin abdominal_pain vomiting fatigue,Hepatitis D
nausea dark_urine yellowing_of_eyes high_fever coma acute_liver_failure loss_of_appetite joint_pain stomach_bleeding yellowish_skin abdominal_pain vomiting fatigue,Hepatitis E
distention_of_abdomen history_of_alcohol_consumption swelling_of_stomach fluid_overload yellowish_skin abdominal_pain vomiting,Alcoholic hepatitis
yellowing_of_eyes breathlessness malaise sweating high_fever chest_pain loss_of_appetite mild_fever weight_loss cough chills phlegm swelled_lymph_nodes blood_in_sputum vomiting fatigue,Tuberculosis
malaise high_fever chest_pain headache runny_nose sinus_pressure cough throat_irritation chills redness_of_eyes phlegm continuous_sneezing muscle_pain swelled_lymph_nodes loss_of_smell fatigue congestion,Common Cold
malaise breathlessness sweating high_fever chest_pain rusty_sputum cough chills phlegm fast_heart_rate fatigue,Pneumonia
constipation bloody_stool pain_during_bowel_movements irritation_in_anus pain_in_anal_region,Dimorphic hemmorhoids(piles)
breathlessness sweating vomiting chest_pain,Heart attack
obesity swollen_blood_vessels swollen_legs cramps prominent_veins_on_calf bruising fatigue,Varicose veins
enlarged_thyroid lethargy swollen_extremeties depression abnormal_menstruation mood_swings weight_gain puffy_face_and_eyes dizziness irritability cold_hands_and_feets fatigue brittle_nails,Hypothyroidism
muscle_weakness sweating diarrhoea weight_loss abnormal_menstruation mood_swings excessive_hunger restlessness irritability fast_heart_rate fatigue,Hyperthyroidism
nausea sweating palpitations headache excessive_hunger blurred_and_distorted_vision irritability drying_and_tingling_lips slurred_speech vomiting fatigue anxiety,Hypoglycemia
knee_pain joint_pain neck_pain swelling_joints painful_walking hip_joint_pain,Osteoarthristis
muscle_weakness movement_stiffness stiff_neck swelling_joints painful_walking,Arthritis
nausea headache unsteadiness spinning_movements loss_of_balance vomiting,(vertigo) Paroymsal Positional Vertigo
skin_rash pus_filled_pimples blackheads scurring,Acne
bladder_discomfort continuous_feel_of_urine foul_smell_of urine burning_micturition,Urinary tract infection
silver_like_dusting joint_pain small_dents_in_nails skin_rash inflammatory_nails skin_peeling,Psoriasis
red_sore_around_nose high_fever yellow_crust_ooze skin_rash blister,Impetigo

0 comments on commit 0997720

Please sign in to comment.