├── .idea
├── .name
├── vcs.xml
├── runConfigurations.xml
├── gradle.xml
├── misc.xml
└── codeStyles
│ └── Project.xml
├── app
├── .gitignore
├── src
│ ├── main
│ │ ├── res
│ │ │ ├── drawable
│ │ │ │ ├── betn.png
│ │ │ │ ├── fill.png
│ │ │ │ ├── home.png
│ │ │ │ ├── login.png
│ │ │ │ ├── nextp.png
│ │ │ │ ├── redqr.png
│ │ │ │ ├── greenqr.png
│ │ │ │ ├── loading.png
│ │ │ │ ├── loginbg.png
│ │ │ │ ├── qr_icon.png
│ │ │ │ ├── redrisk.png
│ │ │ │ ├── signup.png
│ │ │ │ ├── submit.png
│ │ │ │ ├── donut_icon.png
│ │ │ │ ├── greenrisk.png
│ │ │ │ ├── loginback.png
│ │ │ │ ├── mainmenu.png
│ │ │ │ ├── signinbtn.png
│ │ │ │ ├── typeform.png
│ │ │ │ ├── typeform1.png
│ │ │ │ ├── yellowqr.png
│ │ │ │ ├── yellowrisk.png
│ │ │ │ ├── account_circ.png
│ │ │ │ ├── eaarthvector.png
│ │ │ │ ├── hospital_icon.png
│ │ │ │ ├── location_icon.png
│ │ │ │ └── ic_launcher_background.xml
│ │ │ ├── mipmap-hdpi
│ │ │ │ ├── ic_launcher.png
│ │ │ │ ├── ic_launcher_round.png
│ │ │ │ └── ic_launcher_foreground.png
│ │ │ ├── mipmap-mdpi
│ │ │ │ ├── ic_launcher.png
│ │ │ │ ├── ic_launcher_round.png
│ │ │ │ └── ic_launcher_foreground.png
│ │ │ ├── mipmap-xhdpi
│ │ │ │ ├── ic_launcher.png
│ │ │ │ ├── ic_launcher_round.png
│ │ │ │ └── ic_launcher_foreground.png
│ │ │ ├── mipmap-xxhdpi
│ │ │ │ ├── ic_launcher.png
│ │ │ │ ├── ic_launcher_round.png
│ │ │ │ └── ic_launcher_foreground.png
│ │ │ ├── mipmap-xxxhdpi
│ │ │ │ ├── ic_launcher.png
│ │ │ │ ├── ic_launcher_round.png
│ │ │ │ └── ic_launcher_foreground.png
│ │ │ ├── values
│ │ │ │ ├── ic_launcher_background.xml
│ │ │ │ ├── colors.xml
│ │ │ │ ├── preloaded_fonts.xml
│ │ │ │ ├── dimens.xml
│ │ │ │ ├── strings.xml
│ │ │ │ ├── styles.xml
│ │ │ │ └── font_certs.xml
│ │ │ ├── values-v21
│ │ │ │ └── styles.xml
│ │ │ ├── mipmap-anydpi-v26
│ │ │ │ ├── ic_launcher.xml
│ │ │ │ └── ic_launcher_round.xml
│ │ │ ├── font
│ │ │ │ ├── roboto.xml
│ │ │ │ └── roboto_mono.xml
│ │ │ ├── layout
│ │ │ │ ├── activity_maps.xml
│ │ │ │ ├── activity_risk.xml
│ │ │ │ ├── activity_loadactivity.xml
│ │ │ │ ├── activity_qractivity.xml
│ │ │ │ ├── nav_header.xml
│ │ │ │ ├── activity_betn.xml
│ │ │ │ ├── activity_typeform1.xml
│ │ │ │ ├── activity_typeform.xml
│ │ │ │ ├── activity_login.xml
│ │ │ │ ├── activity_home.xml
│ │ │ │ ├── activity_main.xml
│ │ │ │ └── activity_mainmenu.xml
│ │ │ ├── drawable-v24
│ │ │ │ ├── back.xml
│ │ │ │ └── ic_launcher_foreground.xml
│ │ │ └── menu
│ │ │ │ └── drawe_menu.xml
│ │ ├── ic_launcher-playstore.png
│ │ ├── java
│ │ │ └── com
│ │ │ │ └── sud
│ │ │ │ └── e_healthify
│ │ │ │ ├── FormActivity.java
│ │ │ │ ├── loadactivity.java
│ │ │ │ ├── betn.java
│ │ │ │ ├── MainActivity.java
│ │ │ │ ├── home.java
│ │ │ │ ├── mainmenu.java
│ │ │ │ ├── qractivity.java
│ │ │ │ ├── LoginActivity.java
│ │ │ │ ├── risk.java
│ │ │ │ ├── typeform1.java
│ │ │ │ ├── MapsActivity.java
│ │ │ │ └── typeform.java
│ │ └── AndroidManifest.xml
│ ├── test
│ │ └── java
│ │ │ └── com
│ │ │ └── sud
│ │ │ └── e_healthify
│ │ │ └── ExampleUnitTest.java
│ ├── release
│ │ └── res
│ │ │ └── values
│ │ │ └── google_maps_api.xml
│ ├── androidTest
│ │ └── java
│ │ │ └── com
│ │ │ └── sud
│ │ │ └── e_healthify
│ │ │ └── ExampleInstrumentedTest.java
│ └── debug
│ │ └── res
│ │ └── values
│ │ └── google_maps_api.xml
├── proguard-rules.pro
├── google-services.json
└── build.gradle
├── settings.gradle
├── gradle
└── wrapper
│ ├── gradle-wrapper.jar
│ └── gradle-wrapper.properties
├── .gitignore
├── gradle.properties
├── gradlew.bat
├── README.md
├── gradlew
└── Probability Prediction
└── ANN-Prob-Predictor.ipynb
/.idea/.name:
--------------------------------------------------------------------------------
1 | e-Healthify
--------------------------------------------------------------------------------
/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/settings.gradle:
--------------------------------------------------------------------------------
1 | rootProject.name='e-Healthify'
2 | include ':app'
3 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/betn.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudnyeshtalekar/e-Healthify/HEAD/app/src/main/res/drawable/betn.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/fill.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudnyeshtalekar/e-Healthify/HEAD/app/src/main/res/drawable/fill.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/home.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudnyeshtalekar/e-Healthify/HEAD/app/src/main/res/drawable/home.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/login.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudnyeshtalekar/e-Healthify/HEAD/app/src/main/res/drawable/login.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/nextp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudnyeshtalekar/e-Healthify/HEAD/app/src/main/res/drawable/nextp.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/redqr.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudnyeshtalekar/e-Healthify/HEAD/app/src/main/res/drawable/redqr.png
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudnyeshtalekar/e-Healthify/HEAD/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/app/src/main/res/drawable/greenqr.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudnyeshtalekar/e-Healthify/HEAD/app/src/main/res/drawable/greenqr.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/loading.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudnyeshtalekar/e-Healthify/HEAD/app/src/main/res/drawable/loading.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/loginbg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudnyeshtalekar/e-Healthify/HEAD/app/src/main/res/drawable/loginbg.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/qr_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudnyeshtalekar/e-Healthify/HEAD/app/src/main/res/drawable/qr_icon.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/redrisk.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudnyeshtalekar/e-Healthify/HEAD/app/src/main/res/drawable/redrisk.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/signup.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudnyeshtalekar/e-Healthify/HEAD/app/src/main/res/drawable/signup.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/submit.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudnyeshtalekar/e-Healthify/HEAD/app/src/main/res/drawable/submit.png
--------------------------------------------------------------------------------
/app/src/main/ic_launcher-playstore.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudnyeshtalekar/e-Healthify/HEAD/app/src/main/ic_launcher-playstore.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/donut_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudnyeshtalekar/e-Healthify/HEAD/app/src/main/res/drawable/donut_icon.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/greenrisk.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudnyeshtalekar/e-Healthify/HEAD/app/src/main/res/drawable/greenrisk.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/loginback.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudnyeshtalekar/e-Healthify/HEAD/app/src/main/res/drawable/loginback.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/mainmenu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudnyeshtalekar/e-Healthify/HEAD/app/src/main/res/drawable/mainmenu.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/signinbtn.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudnyeshtalekar/e-Healthify/HEAD/app/src/main/res/drawable/signinbtn.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/typeform.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudnyeshtalekar/e-Healthify/HEAD/app/src/main/res/drawable/typeform.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/typeform1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudnyeshtalekar/e-Healthify/HEAD/app/src/main/res/drawable/typeform1.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/yellowqr.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudnyeshtalekar/e-Healthify/HEAD/app/src/main/res/drawable/yellowqr.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/yellowrisk.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudnyeshtalekar/e-Healthify/HEAD/app/src/main/res/drawable/yellowrisk.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/account_circ.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudnyeshtalekar/e-Healthify/HEAD/app/src/main/res/drawable/account_circ.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/eaarthvector.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudnyeshtalekar/e-Healthify/HEAD/app/src/main/res/drawable/eaarthvector.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/hospital_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudnyeshtalekar/e-Healthify/HEAD/app/src/main/res/drawable/hospital_icon.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/location_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudnyeshtalekar/e-Healthify/HEAD/app/src/main/res/drawable/location_icon.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudnyeshtalekar/e-Healthify/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudnyeshtalekar/e-Healthify/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudnyeshtalekar/e-Healthify/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudnyeshtalekar/e-Healthify/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudnyeshtalekar/e-Healthify/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudnyeshtalekar/e-Healthify/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudnyeshtalekar/e-Healthify/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudnyeshtalekar/e-Healthify/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudnyeshtalekar/e-Healthify/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudnyeshtalekar/e-Healthify/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudnyeshtalekar/e-Healthify/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudnyeshtalekar/e-Healthify/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudnyeshtalekar/e-Healthify/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudnyeshtalekar/e-Healthify/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sudnyeshtalekar/e-Healthify/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/app/src/main/res/values/ic_launcher_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #FFFFFF
4 |
--------------------------------------------------------------------------------
/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #6200EE
4 | #3700B3
5 | #03DAC5
6 |
7 |
--------------------------------------------------------------------------------
/app/src/main/res/values/preloaded_fonts.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | - @font/roboto
5 | - @font/roboto_mono
6 |
7 |
8 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | /.idea/caches
5 | /.idea/libraries
6 | /.idea/modules.xml
7 | /.idea/workspace.xml
8 | /.idea/navEditor.xml
9 | /.idea/assetWizardSettings.xml
10 | .DS_Store
11 | /build
12 | /captures
13 | .externalNativeBuild
14 | .cxx
15 |
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Fri Apr 03 15:14:56 IST 2020
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip
7 |
--------------------------------------------------------------------------------
/app/src/main/res/values-v21/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/app/src/main/res/font/roboto.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
--------------------------------------------------------------------------------
/app/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 16dp
4 | 16dp
5 | 8dp
6 | 176dp
7 | 16dp
8 |
--------------------------------------------------------------------------------
/app/src/main/res/font/roboto_mono.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
--------------------------------------------------------------------------------
/app/src/main/java/com/sud/e_healthify/FormActivity.java:
--------------------------------------------------------------------------------
1 | package com.sud.e_healthify;
2 |
3 | import androidx.appcompat.app.AppCompatActivity;
4 | import android.os.Bundle;
5 |
6 | public class FormActivity extends AppCompatActivity {
7 |
8 | @Override
9 | protected void onCreate(Bundle savedInstanceState) {
10 | super.onCreate(savedInstanceState);
11 | setContentView(R.layout.activity_loadactivity);
12 |
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_maps.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/app/src/test/java/com/sud/e_healthify/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package com.sud.e_healthify;
2 |
3 | import org.junit.Test;
4 |
5 | import static org.junit.Assert.*;
6 |
7 | /**
8 | * Example local unit test, which will execute on the development machine (host).
9 | *
10 | * @see Testing documentation
11 | */
12 | public class ExampleUnitTest {
13 | @Test
14 | public void addition_isCorrect() {
15 | assertEquals(4, 2 + 2);
16 | }
17 | }
--------------------------------------------------------------------------------
/app/src/main/res/drawable-v24/back.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/app/src/main/res/menu/drawe_menu.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/.idea/runConfigurations.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
11 |
12 |
--------------------------------------------------------------------------------
/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | BreakTheChain!
3 | navbar
4 | Open navigation drawer
5 | Close navigation drawer
6 | Android Studio
7 | android.studio@android.com
8 | Navigation header
9 | Settings
10 |
11 |
12 | Home Second
13 | Map
14 |
15 |
--------------------------------------------------------------------------------
/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
11 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/.idea/gradle.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # You can control the set of applied configuration files using the
3 | # proguardFiles setting in build.gradle.
4 | #
5 | # For more details, see
6 | # http://developer.android.com/guide/developing/tools/proguard.html
7 |
8 | # If your project uses WebView with JS, uncomment the following
9 | # and specify the fully qualified class name to the JavaScript interface
10 | # class:
11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12 | # public *;
13 | #}
14 |
15 | # Uncomment this to preserve the line number information for
16 | # debugging stack traces.
17 | #-keepattributes SourceFile,LineNumberTable
18 |
19 | # If you keep the line number information, uncomment this to
20 | # hide the original source file name.
21 | #-renamesourcefileattribute SourceFile
22 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_risk.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/app/src/main/java/com/sud/e_healthify/loadactivity.java:
--------------------------------------------------------------------------------
1 | package com.sud.e_healthify;
2 |
3 | import androidx.appcompat.app.AppCompatActivity;
4 |
5 | import android.content.Intent;
6 | import android.os.Bundle;
7 | import android.os.Handler;
8 |
9 | public class loadactivity extends AppCompatActivity {
10 |
11 |
12 |
13 | @Override
14 | protected void onCreate(Bundle savedInstanceState) {
15 | super.onCreate(savedInstanceState);
16 | setContentView(R.layout.activity_loadactivity);
17 |
18 | new Handler().postDelayed(new Runnable() {
19 | @Override
20 | public void run() {
21 | Intent mySuperIntent = new Intent(loadactivity.this, risk.class);
22 | startActivity(mySuperIntent);
23 |
24 | finish();
25 |
26 | }
27 | }, 2000);
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_loadactivity.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
17 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_qractivity.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
17 |
--------------------------------------------------------------------------------
/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 | 1.8
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/app/src/release/res/values/google_maps_api.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 | YOUR_KEY_HERE
20 |
21 |
--------------------------------------------------------------------------------
/app/src/androidTest/java/com/sud/e_healthify/ExampleInstrumentedTest.java:
--------------------------------------------------------------------------------
1 | package com.sud.e_healthify;
2 |
3 | import android.content.Context;
4 |
5 | import androidx.test.platform.app.InstrumentationRegistry;
6 | import androidx.test.ext.junit.runners.AndroidJUnit4;
7 |
8 | import org.junit.Test;
9 | import org.junit.runner.RunWith;
10 |
11 | import static org.junit.Assert.*;
12 |
13 | /**
14 | * Instrumented test, which will execute on an Android device.
15 | *
16 | * @see Testing documentation
17 | */
18 | @RunWith(AndroidJUnit4.class)
19 | public class ExampleInstrumentedTest {
20 | @Test
21 | public void useAppContext() {
22 | // Context of the app under test.
23 | Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
24 |
25 | assertEquals("com.sud.e_healthify", appContext.getPackageName());
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/nav_header.xml:
--------------------------------------------------------------------------------
1 |
2 |
11 |
12 |
16 |
17 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/app/src/debug/res/values/google_maps_api.xml:
--------------------------------------------------------------------------------
1 |
2 |
23 | AIzaSyD8v2096-AUaaux6R37T5su7eYgIN9EdcE
24 |
25 |
--------------------------------------------------------------------------------
/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 | # IDE (e.g. Android Studio) users:
3 | # Gradle settings configured through the IDE *will override*
4 | # any settings specified in this file.
5 | # For more details on how to configure your build environment visit
6 | # http://www.gradle.org/docs/current/userguide/build_environment.html
7 | # Specifies the JVM arguments used for the daemon process.
8 | # The setting is particularly useful for tweaking memory settings.
9 | org.gradle.jvmargs=-Xmx1536m
10 | # When configured, Gradle will run in incubating parallel mode.
11 | # This option should only be used with decoupled projects. More details, visit
12 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
13 | # org.gradle.parallel=true
14 | # AndroidX package structure to make it clearer which packages are bundled with the
15 | # Android operating system, and which are packaged with your app's APK
16 | # https://developer.android.com/topic/libraries/support-library/androidx-rn
17 | android.useAndroidX=true
18 | # Automatically convert third-party libraries to use AndroidX
19 | android.enableJetifier=true
20 |
21 |
--------------------------------------------------------------------------------
/app/google-services.json:
--------------------------------------------------------------------------------
1 | {
2 | "project_info": {
3 | "project_number": "152424377178",
4 | "firebase_url": "https://e-healthify.firebaseio.com",
5 | "project_id": "e-healthify",
6 | "storage_bucket": "e-healthify.appspot.com"
7 | },
8 | "client": [
9 | {
10 | "client_info": {
11 | "mobilesdk_app_id": "1:152424377178:android:c1db8b716e18d1746f6163",
12 | "android_client_info": {
13 | "package_name": "com.sud.e_healthify"
14 | }
15 | },
16 | "oauth_client": [
17 | {
18 | "client_id": "152424377178-0sde8ot1n3ll31j2c5q9pvdehhmn3ckv.apps.googleusercontent.com",
19 | "client_type": 3
20 | }
21 | ],
22 | "api_key": [
23 | {
24 | "current_key": "AIzaSyCUZeIZv8kx6tTaBvLUBqUqvE8oDeC_8FY"
25 | }
26 | ],
27 | "services": {
28 | "appinvite_service": {
29 | "other_platform_oauth_client": [
30 | {
31 | "client_id": "152424377178-0sde8ot1n3ll31j2c5q9pvdehhmn3ckv.apps.googleusercontent.com",
32 | "client_type": 3
33 | }
34 | ]
35 | }
36 | }
37 | }
38 | ],
39 | "configuration_version": "1"
40 | }
--------------------------------------------------------------------------------
/app/src/main/java/com/sud/e_healthify/betn.java:
--------------------------------------------------------------------------------
1 | package com.sud.e_healthify;
2 |
3 | import androidx.appcompat.app.AppCompatActivity;
4 |
5 | import android.content.Intent;
6 | import android.os.Bundle;
7 | import android.view.View;
8 | import android.widget.ImageView;
9 |
10 | public class betn extends AppCompatActivity {
11 |
12 | private ImageView betn;
13 | private ImageView fill;
14 |
15 | @Override
16 | protected void onCreate(Bundle savedInstanceState) {
17 | super.onCreate(savedInstanceState);
18 | setContentView(R.layout.activity_betn);
19 |
20 | betn=findViewById(R.id.betn);
21 | fill=findViewById(R.id.fill);
22 |
23 | betn.setOnClickListener(new View.OnClickListener() {
24 | @Override
25 | public void onClick(View v) {
26 | Intent intent = new Intent(betn.this, mainmenu.class);
27 | startActivity(intent);
28 | }
29 | });
30 |
31 | fill.setOnClickListener(new View.OnClickListener() {
32 | @Override
33 | public void onClick(View v) {
34 | Intent intent = new Intent(betn.this, typeform.class);
35 | startActivity(intent);
36 | }
37 | });
38 |
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/app/src/main/java/com/sud/e_healthify/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.sud.e_healthify;
2 |
3 | import androidx.appcompat.app.AppCompatActivity;
4 |
5 | import android.content.Intent;
6 | import android.os.Bundle;
7 | import android.view.View;
8 | import android.widget.ImageView;
9 |
10 | public class MainActivity extends AppCompatActivity {
11 |
12 | private ImageView login;
13 | private ImageView signup;
14 |
15 | @Override
16 | protected void onCreate(Bundle savedInstanceState) {
17 | super.onCreate(savedInstanceState);
18 | setContentView(R.layout.activity_main);
19 |
20 | login=findViewById(R.id.login);
21 | signup=findViewById(R.id.signup);
22 |
23 | login.setOnClickListener(new View.OnClickListener() {
24 | @Override
25 | public void onClick(View v) {
26 | Intent intent = new Intent(MainActivity.this, LoginActivity.class);
27 | startActivity(intent);
28 |
29 | }
30 | });
31 | signup.setOnClickListener(new View.OnClickListener() {
32 | @Override
33 | public void onClick(View v) {
34 | Intent intent = new Intent(MainActivity.this, MapsActivity.class);
35 | startActivity(intent);
36 |
37 | }
38 | });
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/app/src/main/java/com/sud/e_healthify/home.java:
--------------------------------------------------------------------------------
1 | package com.sud.e_healthify;
2 |
3 | import androidx.appcompat.app.ActionBarDrawerToggle;
4 | import androidx.appcompat.app.AppCompatActivity;
5 | import androidx.core.view.GravityCompat;
6 | import androidx.drawerlayout.widget.DrawerLayout;
7 |
8 | import android.os.Bundle;
9 | import androidx.appcompat.widget.Toolbar;
10 | public class home extends AppCompatActivity {
11 |
12 |
13 | private DrawerLayout drawer;
14 | @Override
15 | protected void onCreate(Bundle savedInstanceState) {
16 | super.onCreate(savedInstanceState);
17 | setContentView(R.layout.activity_home);
18 |
19 | Toolbar toolbar = findViewById(R.id.toolbar);
20 | setSupportActionBar(toolbar);
21 |
22 | drawer = findViewById(R.id.drawer_layout);
23 |
24 | ActionBarDrawerToggle toggle = new ActionBarDrawerToggle(this, drawer, toolbar,
25 | R.string.navigation_drawer_open, R.string.navigation_drawer_close);
26 | drawer.addDrawerListener(toggle);
27 | toggle.syncState();
28 | }
29 |
30 | @Override
31 | public void onBackPressed() {
32 | if (drawer.isDrawerOpen(GravityCompat.START)) {
33 | drawer.closeDrawer(GravityCompat.START);
34 | } else {
35 | super.onBackPressed();
36 | }
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_betn.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
18 |
19 |
30 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_typeform1.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
18 |
19 |
20 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_typeform.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
20 |
21 |
22 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_login.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
21 |
22 |
23 |
37 |
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_home.xml:
--------------------------------------------------------------------------------
1 |
2 |
11 |
12 |
16 |
17 |
25 |
26 |
30 |
31 |
32 |
33 |
40 |
41 |
--------------------------------------------------------------------------------
/app/src/main/java/com/sud/e_healthify/mainmenu.java:
--------------------------------------------------------------------------------
1 | package com.sud.e_healthify;
2 |
3 | import androidx.appcompat.app.AppCompatActivity;
4 |
5 | import android.content.Intent;
6 | import android.os.Bundle;
7 | import android.os.Handler;
8 | import android.view.View;
9 | import android.widget.TextView;
10 |
11 | public class mainmenu extends AppCompatActivity {
12 |
13 | private TextView inf;
14 | private TextView qr;
15 | private TextView risk;
16 | @Override
17 | protected void onCreate(Bundle savedInstanceState) {
18 | super.onCreate(savedInstanceState);
19 | setContentView(R.layout.activity_mainmenu);
20 | inf=findViewById(R.id.inf);
21 | qr=findViewById(R.id.qr);
22 | risk=findViewById(R.id.risk);
23 |
24 | qr.setOnClickListener(new View.OnClickListener() {
25 | @Override
26 | public void onClick(View v) {
27 | Intent mySuperIntent = new Intent(mainmenu.this, qractivity.class);
28 | startActivity(mySuperIntent);
29 |
30 | }
31 | });
32 |
33 | inf.setOnClickListener(new View.OnClickListener() {
34 | @Override
35 | public void onClick(View v) {
36 | Intent mySuperIntent = new Intent(mainmenu.this, MapsActivity.class);
37 | startActivity(mySuperIntent);
38 |
39 | }
40 | });
41 |
42 |
43 | risk.setOnClickListener(new View.OnClickListener() {
44 | @Override
45 | public void onClick(View v) {
46 | Intent mySuperIntent = new Intent(mainmenu.this, loadactivity.class);
47 | startActivity(mySuperIntent);
48 |
49 | }
50 | });
51 |
52 | }
53 |
54 |
55 | }
56 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable-v24/ic_launcher_foreground.xml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
9 |
15 |
18 |
21 |
22 |
23 |
24 |
30 |
--------------------------------------------------------------------------------
/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 | apply plugin: 'com.google.gms.google-services'
3 |
4 | android {
5 | compileSdkVersion 29
6 | buildToolsVersion "29.0.2"
7 |
8 | defaultConfig {
9 | applicationId "com.sud.e_healthify"
10 | minSdkVersion 21
11 | targetSdkVersion 29
12 | versionCode 1
13 | versionName "1.0"
14 |
15 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
16 | }
17 |
18 | buildTypes {
19 | release {
20 | minifyEnabled false
21 | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
22 | }
23 | }
24 |
25 | }
26 |
27 | dependencies {
28 | implementation fileTree(dir: 'libs', include: ['*.jar'])
29 | implementation 'com.google.android.material:material:1.0.0'
30 | implementation 'androidx.appcompat:appcompat:1.1.0'
31 | implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
32 | implementation 'androidx.legacy:legacy-support-v4:1.0.0'
33 | implementation 'androidx.navigation:navigation-fragment:2.2.1'
34 | implementation 'androidx.navigation:navigation-ui:2.2.1'
35 | implementation 'androidx.lifecycle:lifecycle-extensions:2.0.0'
36 | implementation 'com.google.firebase:firebase-database:19.2.1'
37 | implementation 'com.google.android.gms:play-services-maps:17.0.0'
38 | testImplementation 'junit:junit:4.12'
39 | androidTestImplementation 'androidx.test.ext:junit:1.1.1'
40 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
41 |
42 | implementation 'com.google.android.material:material:1.2.0-alpha02'
43 |
44 |
45 | implementation "com.google.android.gms:play-services-location:15.0.1"
46 | implementation "com.google.android.gms:play-services-places:15.0.1"
47 |
48 |
49 | }
50 |
--------------------------------------------------------------------------------
/app/src/main/java/com/sud/e_healthify/qractivity.java:
--------------------------------------------------------------------------------
1 | package com.sud.e_healthify;
2 |
3 | import androidx.appcompat.app.AppCompatActivity;
4 |
5 | import android.os.Bundle;
6 | import android.util.Log;
7 | import android.widget.ImageView;
8 |
9 | import com.google.firebase.database.DataSnapshot;
10 | import com.google.firebase.database.DatabaseError;
11 | import com.google.firebase.database.DatabaseReference;
12 | import com.google.firebase.database.FirebaseDatabase;
13 | import com.google.firebase.database.ValueEventListener;
14 |
15 | public class qractivity extends AppCompatActivity {
16 | private ImageView qrimg;
17 | @Override
18 | protected void onCreate(Bundle savedInstanceState) {
19 | super.onCreate(savedInstanceState);
20 | setContentView(R.layout.activity_qractivity);
21 |
22 | qrimg=findViewById(R.id.qrimg);
23 | FirebaseDatabase database = FirebaseDatabase.getInstance();
24 | DatabaseReference myRef = database.getReference("prediction").child("Risk").child("Color");
25 | myRef.addValueEventListener(new ValueEventListener() {
26 | @Override
27 | public void onDataChange(DataSnapshot dataSnapshot) {
28 | // This method is called once with the initial value and again
29 | // whenever data at this location is updated.
30 | String color = dataSnapshot.getValue(String.class);
31 | Log.i( "Value is: " , color);
32 | if (color.equals("Green")){
33 | Log.i( "Value is: " , "Green");
34 | qrimg.setImageResource(R.drawable.greenqr);
35 | }
36 | else if(color.equals("Orange")){qrimg.setImageResource(R.drawable.yellowqr);
37 | Log.i( "Value is: " , "Orange");
38 | }
39 | else if(color.equals("Red")){qrimg.setImageResource(R.drawable.yellowqr); Log.i( "Value is: " , "red");
40 | }
41 |
42 | }
43 |
44 | @Override
45 | public void onCancelled(DatabaseError error) {
46 | // Failed to read value
47 | Log.i("Failed to read value.", String.valueOf(error.toException()));
48 | }
49 | });
50 |
51 | }
52 | }
53 |
--------------------------------------------------------------------------------
/app/src/main/java/com/sud/e_healthify/LoginActivity.java:
--------------------------------------------------------------------------------
1 | package com.sud.e_healthify;
2 |
3 | import androidx.appcompat.app.AppCompatActivity;
4 |
5 | import android.content.Intent;
6 | import android.os.Bundle;
7 | import android.view.View;
8 | import android.widget.EditText;
9 | import android.widget.ImageView;
10 | import android.widget.TextView;
11 | import android.widget.Toast;
12 |
13 | public class LoginActivity extends AppCompatActivity {
14 |
15 |
16 | private EditText usnam;
17 | private EditText pass;
18 | private ImageView signin;
19 | @Override
20 | protected void onCreate(Bundle savedInstanceState) {
21 | super.onCreate(savedInstanceState);
22 | setContentView(R.layout.activity_login);
23 |
24 | // usnam=findViewById(R.id.usnam);
25 | //pass=findViewById(R.id.pass);
26 | signin=findViewById(R.id.signin);
27 | signin.setOnClickListener(new View.OnClickListener() {
28 | @Override
29 | public void onClick(View v) {
30 | Intent intent = new Intent(LoginActivity.this, betn.class);
31 | startActivity(intent);
32 | /*if (usnam.getText().toString()=="rishik" && pass.getText().toString()=="test"){
33 |
34 | Intent intent = new Intent(LoginActivity.this, typeform.class);
35 | startActivity(intent);
36 | }
37 | else{Toast. makeText(getApplicationContext(),"Incorrect login details",Toast. LENGTH_SHORT);}*/
38 |
39 | }
40 | });
41 |
42 |
43 | /**/
58 | }
59 | }
60 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
20 |
21 |
35 |
36 |
49 |
50 |
--------------------------------------------------------------------------------
/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | set DIRNAME=%~dp0
12 | if "%DIRNAME%" == "" set DIRNAME=.
13 | set APP_BASE_NAME=%~n0
14 | set APP_HOME=%DIRNAME%
15 |
16 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
17 | set DEFAULT_JVM_OPTS=
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windows variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 |
53 | :win9xME_args
54 | @rem Slurp the command line arguments.
55 | set CMD_LINE_ARGS=
56 | set _SKIP=2
57 |
58 | :win9xME_args_slurp
59 | if "x%~1" == "x" goto execute
60 |
61 | set CMD_LINE_ARGS=%*
62 |
63 | :execute
64 | @rem Setup the command line
65 |
66 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
67 |
68 | @rem Execute Gradle
69 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
70 |
71 | :end
72 | @rem End local scope for the variables with windows NT shell
73 | if "%ERRORLEVEL%"=="0" goto mainEnd
74 |
75 | :fail
76 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
77 | rem the _cmd.exe /c_ return code!
78 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
79 | exit /b 1
80 |
81 | :mainEnd
82 | if "%OS%"=="Windows_NT" endlocal
83 |
84 | :omega
85 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # e-Healthify
2 | App developed for Hack-the-Crisis India.\
3 | Predicts the infection probability of a person.
4 | # App Features
5 | * The objective of this system is to predict the probability of a person getting infected by COVID-19.
6 | * To predict the probability, various parameters are taken into consideration.
7 | * These parameters were identified with combined efforts of experts of the healthcare industry and various government bodies.
8 |
9 | **These parameters include:** \
10 | i. Place\
11 | ii. Gender\
12 | iii. Occupation\
13 | iv. Mode of usual transport\
14 | v. Number of confirmed cases per 1 million population in that region\
15 | vi. Number of Death case per 1 million population in that region\
16 | vii. Presence of one or more additional medical conditions co-occurring with a primary condition [Hypertension/diabetes/coronary heart disease]\
17 | viii. Age of the person\
18 | ix. Neurological coma score\
19 | x. Pulmonary PaO2 (mmHg)/FiO2\
20 | xi. Cardiological Mean systolic Arterial pressure (mmHg)\
21 | xii. Diuresis in mL/Day\
22 | xiii. Haematological Platelets 10/L\
23 | xiv. Hepatic Blood bilirubin (µmol/L)\
24 | xv. D-dimer concentration in the blood (ng/ml)\
25 | xvi. Number of times a person's heart beats per minute\
26 | xvii. High-density lipoprotein level (milligrams per decilitre)\
27 | xviii. One-year mortality for a patient who may have a range of comorbid conditions, such as heart disease, AIDS, or cancer\
28 | xix. Concentration of glucose present in the blood (millimoles per litre)\
29 | xx. Average number of foreign trips taken by the person per month, considering last 2 years data
30 |
31 | * Data of these parameters and the probability of them being affected, of more than 10,000 people is collected.
32 | * Using this data, an ANN prediction model is built which can predict the probability of a person getting affected by the CoronaVirus.
33 | * As the testing procedures for the virus take a lot of time and the testing kits are available in limited supply, this algorithm can be used by the local doctors to predict the probability.
34 | * The input parameters of the algorithm are given as input by the local doctor/physician or medical camps setup by Health Organisations to give a probability score of the patient.
35 | * If the probability of the infection is high, then the patient is kept under isolation and sent for further testing and screening
36 |
--------------------------------------------------------------------------------
/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
9 |
10 |
11 |
12 |
19 |
20 |
28 |
31 |
32 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
55 |
56 |
57 |
--------------------------------------------------------------------------------
/app/src/main/res/values/font_certs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | - @array/com_google_android_gms_fonts_certs_dev
5 | - @array/com_google_android_gms_fonts_certs_prod
6 |
7 |
8 | -
9 | MIIEqDCCA5CgAwIBAgIJANWFuGx90071MA0GCSqGSIb3DQEBBAUAMIGUMQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEQMA4GA1UEChMHQW5kcm9pZDEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UEAxMHQW5kcm9pZDEiMCAGCSqGSIb3DQEJARYTYW5kcm9pZEBhbmRyb2lkLmNvbTAeFw0wODA0MTUyMzM2NTZaFw0zNTA5MDEyMzM2NTZaMIGUMQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEQMA4GA1UEChMHQW5kcm9pZDEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UEAxMHQW5kcm9pZDEiMCAGCSqGSIb3DQEJARYTYW5kcm9pZEBhbmRyb2lkLmNvbTCCASAwDQYJKoZIhvcNAQEBBQADggENADCCAQgCggEBANbOLggKv+IxTdGNs8/TGFy0PTP6DHThvbbR24kT9ixcOd9W+EaBPWW+wPPKQmsHxajtWjmQwWfna8mZuSeJS48LIgAZlKkpFeVyxW0qMBujb8X8ETrWy550NaFtI6t9+u7hZeTfHwqNvacKhp1RbE6dBRGWynwMVX8XW8N1+UjFaq6GCJukT4qmpN2afb8sCjUigq0GuMwYXrFVee74bQgLHWGJwPmvmLHC69EH6kWr22ijx4OKXlSIx2xT1AsSHee70w5iDBiK4aph27yH3TxkXy9V89TDdexAcKk/cVHYNnDBapcavl7y0RiQ4biu8ymM8Ga/nmzhRKya6G0cGw8CAQOjgfwwgfkwHQYDVR0OBBYEFI0cxb6VTEM8YYY6FbBMvAPyT+CyMIHJBgNVHSMEgcEwgb6AFI0cxb6VTEM8YYY6FbBMvAPyT+CyoYGapIGXMIGUMQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEQMA4GA1UEChMHQW5kcm9pZDEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UEAxMHQW5kcm9pZDEiMCAGCSqGSIb3DQEJARYTYW5kcm9pZEBhbmRyb2lkLmNvbYIJANWFuGx90071MAwGA1UdEwQFMAMBAf8wDQYJKoZIhvcNAQEEBQADggEBABnTDPEF+3iSP0wNfdIjIz1AlnrPzgAIHVvXxunW7SBrDhEglQZBbKJEk5kT0mtKoOD1JMrSu1xuTKEBahWRbqHsXclaXjoBADb0kkjVEJu/Lh5hgYZnOjvlba8Ld7HCKePCVePoTJBdI4fvugnL8TsgK05aIskyY0hKI9L8KfqfGTl1lzOv2KoWD0KWwtAWPoGChZxmQ+nBli+gwYMzM1vAkP+aayLe0a1EQimlOalO762r0GXO0ks+UeXde2Z4e+8S/pf7pITEI/tP+MxJTALw9QUWEv9lKTk+jkbqxbsh8nfBUapfKqYn0eidpwq2AzVp3juYl7//fKnaPhJD9gs=
10 |
11 |
12 |
13 | -
14 | MIIEQzCCAyugAwIBAgIJAMLgh0ZkSjCNMA0GCSqGSIb3DQEBBAUAMHQxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtHb29nbGUgSW5jLjEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UEAxMHQW5kcm9pZDAeFw0wODA4MjEyMzEzMzRaFw0zNjAxMDcyMzEzMzRaMHQxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtHb29nbGUgSW5jLjEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UEAxMHQW5kcm9pZDCCASAwDQYJKoZIhvcNAQEBBQADggENADCCAQgCggEBAKtWLgDYO6IIrgqWbxJOKdoR8qtW0I9Y4sypEwPpt1TTcvZApxsdyxMJZ2JORland2qSGT2y5b+3JKkedxiLDmpHpDsz2WCbdxgxRczfey5YZnTJ4VZbH0xqWVW/8lGmPav5xVwnIiJS6HXk+BVKZF+JcWjAsb/GEuq/eFdpuzSqeYTcfi6idkyugwfYwXFU1+5fZKUaRKYCwkkFQVfcAs1fXA5V+++FGfvjJ/CxURaSxaBvGdGDhfXE28LWuT9ozCl5xw4Yq5OGazvV24mZVSoOO0yZ31j7kYvtwYK6NeADwbSxDdJEqO4k//0zOHKrUiGYXtqw/A0LFFtqoZKFjnkCAQOjgdkwgdYwHQYDVR0OBBYEFMd9jMIhF1Ylmn/Tgt9r45jk14alMIGmBgNVHSMEgZ4wgZuAFMd9jMIhF1Ylmn/Tgt9r45jk14aloXikdjB0MQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEUMBIGA1UEChMLR29vZ2xlIEluYy4xEDAOBgNVBAsTB0FuZHJvaWQxEDAOBgNVBAMTB0FuZHJvaWSCCQDC4IdGZEowjTAMBgNVHRMEBTADAQH/MA0GCSqGSIb3DQEBBAUAA4IBAQBt0lLO74UwLDYKqs6Tm8/yzKkEu116FmH4rkaymUIE0P9KaMftGlMexFlaYjzmB2OxZyl6euNXEsQH8gjwyxCUKRJNexBiGcCEyj6z+a1fuHHvkiaai+KL8W1EyNmgjmyy8AW7P+LLlkR+ho5zEHatRbM/YAnqGcFh5iZBqpknHf1SKMXFh4dd239FJ1jWYfbMDMy3NS5CTMQ2XFI1MvcyUTdZPErjQfTbQe3aDQsQcafEQPD+nqActifKZ0Np0IS9L9kR/wbNvyz6ENwPiTrjV2KRkEjH78ZMcUQXg0L3BYHJ3lc69Vs5Ddf9uUGGMYldX3WfMBEmh/9iFBDAaTCK
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/app/src/main/java/com/sud/e_healthify/risk.java:
--------------------------------------------------------------------------------
1 | package com.sud.e_healthify;
2 |
3 | import androidx.appcompat.app.AppCompatActivity;
4 |
5 | import android.content.Intent;
6 | import android.os.Bundle;
7 | import android.os.Handler;
8 | import android.util.Log;
9 | import android.widget.ImageView;
10 |
11 | import com.google.firebase.database.DataSnapshot;
12 | import com.google.firebase.database.DatabaseError;
13 | import com.google.firebase.database.DatabaseReference;
14 | import com.google.firebase.database.FirebaseDatabase;
15 | import com.google.firebase.database.ValueEventListener;
16 |
17 | public class risk extends AppCompatActivity {
18 |
19 | private ImageView risk;
20 | @Override
21 | protected void onCreate(Bundle savedInstanceState) {
22 | super.onCreate(savedInstanceState);
23 | setContentView(R.layout.activity_risk);
24 | risk=findViewById(R.id.risk);
25 |
26 | // Read from the database
27 |
28 | FirebaseDatabase database = FirebaseDatabase.getInstance();
29 | DatabaseReference myRef = database.getReference("prediction").child("Risk").child("Color");
30 | myRef.addValueEventListener(new ValueEventListener() {
31 | @Override
32 | public void onDataChange(DataSnapshot dataSnapshot) {
33 | // This method is called once with the initial value and again
34 | // whenever data at this location is updated.
35 | String color = dataSnapshot.getValue(String.class);
36 | Log.i( "Value is: " , color);
37 | if (color.equals("Green")){
38 | Log.i( "Value is: " , "Green");
39 | risk.setImageResource(R.drawable.greenrisk);
40 | }
41 | else if(color.equals("Orange")){risk.setImageResource(R.drawable.yellowrisk);
42 | Log.i( "Value is: " , "Orange");
43 | }
44 | else if(color.equals("Red")){risk.setImageResource(R.drawable.yellowrisk); Log.i( "Value is: " , "red");
45 | }
46 |
47 | }
48 |
49 | @Override
50 | public void onCancelled(DatabaseError error) {
51 | // Failed to read value
52 | Log.i("Failed to read value.", String.valueOf(error.toException()));
53 | }
54 | });
55 | alle();
56 |
57 | }
58 | @Override
59 | public void onBackPressed() {
60 | Log.d("CDA", "onBackPressed Called");
61 | Intent mySuperIntent = new Intent(risk.this, mainmenu.class);
62 | startActivity(mySuperIntent);
63 | }
64 |
65 |
66 |
67 | public void alle() {
68 | FirebaseDatabase database = FirebaseDatabase.getInstance();
69 | DatabaseReference myRef = database.getReference("message");
70 | myRef.child("age").setValue("e");
71 | myRef.child("blood").setValue("e");
72 | myRef.child("cardio").setValue("e");
73 | myRef.child("cases").setValue("e");
74 | myRef.child("charl").setValue("e");
75 | myRef.child("child").setValue("e");
76 | myRef.child("coma").setValue("e");
77 | myRef.child("death").setValue("e");
78 | myRef.child("dimer").setValue("e");
79 | myRef.child("diu").setValue("e");
80 | myRef.child("gend").setValue("e");
81 | myRef.child("hbb").setValue("e");
82 | myRef.child("hdl").setValue("e");
83 | myRef.child("heart").setValue("e");
84 | myRef.child("occ").setValue("e");
85 | myRef.child("plat").setValue("e");
86 | myRef.child("pulm").setValue("e");
87 | myRef.child("trans").setValue("e");
88 | myRef.child("trips").setValue("e");
89 | myRef.child("como").setValue("e");
90 | myRef.child("counter").setValue("0");
91 |
92 |
93 | }
94 | }
95 |
--------------------------------------------------------------------------------
/.idea/codeStyles/Project.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 | xmlns:android
14 |
15 | ^$
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 | xmlns:.*
25 |
26 | ^$
27 |
28 |
29 | BY_NAME
30 |
31 |
32 |
33 |
34 |
35 |
36 | .*:id
37 |
38 | http://schemas.android.com/apk/res/android
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 | .*:name
48 |
49 | http://schemas.android.com/apk/res/android
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 | name
59 |
60 | ^$
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 | style
70 |
71 | ^$
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 | .*
81 |
82 | ^$
83 |
84 |
85 | BY_NAME
86 |
87 |
88 |
89 |
90 |
91 |
92 | .*
93 |
94 | http://schemas.android.com/apk/res/android
95 |
96 |
97 | ANDROID_ATTRIBUTE_ORDER
98 |
99 |
100 |
101 |
102 |
103 |
104 | .*
105 |
106 | .*
107 |
108 |
109 | BY_NAME
110 |
111 |
112 |
113 |
114 |
115 |
116 |
--------------------------------------------------------------------------------
/app/src/main/java/com/sud/e_healthify/typeform1.java:
--------------------------------------------------------------------------------
1 | package com.sud.e_healthify;
2 |
3 | import androidx.appcompat.app.AppCompatActivity;
4 |
5 | import android.content.Intent;
6 | import android.os.Bundle;
7 | import android.view.View;
8 | import android.widget.ImageButton;
9 | import android.widget.ImageView;
10 | import android.widget.TextView;
11 |
12 | import com.google.firebase.database.DatabaseReference;
13 | import com.google.firebase.database.FirebaseDatabase;
14 |
15 | public class typeform1 extends AppCompatActivity {
16 |
17 | private ImageView submit;
18 | private TextView plat;
19 | private TextView diu;
20 | private TextView hbb;
21 | private TextView dimer;
22 | private TextView heart;
23 | private TextView hdl;
24 | private TextView charl;
25 | private TextView blood;
26 | private TextView trips;
27 | DatabaseReference myRef;
28 |
29 | @Override
30 | protected void onCreate(Bundle savedInstanceState) {
31 | super.onCreate(savedInstanceState);
32 | setContentView(R.layout.activity_typeform1);
33 |
34 | submit=findViewById(R.id.submit);
35 | /*diu= findViewById(R.id.diu);
36 | plat= findViewById(R.id.plat);
37 | hbb= findViewById(R.id.hbb);
38 | dimer= findViewById(R.id.dimer);heart= findViewById(R.id.heart);
39 | hdl= findViewById(R.id.hdl);
40 | charl= findViewById(R.id.charl);blood= findViewById(R.id.blood);trips= findViewById(R.id.trips);*/
41 | submit.setOnClickListener(new View.OnClickListener() {
42 | @Override
43 | public void onClick(View v) {
44 |
45 | /*FirebaseDatabase database = FirebaseDatabase.getInstance();
46 | DatabaseReference myRef = database.getReference("message");
47 | myRef.child("diu").setValue(diu.getText().toString());
48 | myRef.child("plat").setValue(plat.getText().toString());
49 | myRef.child("hbb").setValue(hbb.getText().toString());
50 | myRef.child("dimer").setValue(dimer.getText().toString());
51 | myRef.child("hdl").setValue(hdl.getText().toString());
52 | myRef.child("charl").setValue(charl.getText().toString());
53 | myRef.child("blood").setValue(blood.getText().toString());
54 | myRef.child("heart").setValue(heart.getText().toString());
55 | myRef.child("trips").setValue(trips.getText().toString());*/
56 | //alle();
57 | Intent intent = new Intent(typeform1.this, betn.class);
58 | startActivity(intent);
59 | myRef.child("counter").setValue("1");
60 | }
61 |
62 | /*public void alle() {
63 | FirebaseDatabase database = FirebaseDatabase.getInstance();
64 | DatabaseReference myRef = database.getReference("message");
65 | myRef.child("age").setValue("e");
66 | myRef.child("blood").setValue("e");
67 | myRef.child("cardio").setValue("e");
68 | myRef.child("cases").setValue("e");
69 | myRef.child("charl").setValue("e");
70 | myRef.child("child").setValue("e");
71 | myRef.child("coma").setValue("e");
72 | myRef.child("death").setValue("e");
73 | myRef.child("dimer").setValue("e");
74 | myRef.child("diu").setValue("e");
75 | myRef.child("gend").setValue("e");
76 | myRef.child("hbb").setValue("e");
77 | myRef.child("hdl").setValue("e");
78 | myRef.child("heart").setValue("e");
79 | myRef.child("occ").setValue("e");
80 | myRef.child("plat").setValue("e");
81 | myRef.child("pulm").setValue("e");
82 | myRef.child("trans").setValue("e");
83 | myRef.child("trips").setValue("e");
84 | myRef.child("como").setValue("e");
85 |
86 | }*/
87 | });
88 |
89 | }
90 | }
91 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_mainmenu.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
20 |
21 |
36 |
37 |
54 |
55 |
72 |
73 |
90 |
91 |
108 |
109 |
110 |
--------------------------------------------------------------------------------
/app/src/main/java/com/sud/e_healthify/MapsActivity.java:
--------------------------------------------------------------------------------
1 | package com.sud.e_healthify;
2 |
3 | import androidx.annotation.NonNull;
4 | import androidx.core.app.ActivityCompat;
5 | import androidx.core.content.ContextCompat;
6 | import androidx.fragment.app.FragmentActivity;
7 |
8 | import android.Manifest;
9 | import android.content.Context;
10 | import android.content.pm.PackageManager;
11 | import android.location.Location;
12 | import android.location.LocationListener;
13 | import android.location.LocationManager;
14 | import android.os.Build;
15 | import android.os.Bundle;
16 |
17 | import com.google.android.gms.maps.CameraUpdateFactory;
18 | import com.google.android.gms.maps.GoogleMap;
19 | import com.google.android.gms.maps.OnMapReadyCallback;
20 | import com.google.android.gms.maps.SupportMapFragment;
21 | import com.google.android.gms.maps.model.BitmapDescriptorFactory;
22 | import com.google.android.gms.maps.model.LatLng;
23 | import com.google.android.gms.maps.model.Marker;
24 | import com.google.android.gms.maps.model.MarkerOptions;
25 |
26 | import static com.google.android.gms.maps.model.BitmapDescriptorFactory.HUE_GREEN;
27 |
28 | public class MapsActivity extends FragmentActivity implements OnMapReadyCallback {
29 |
30 | private GoogleMap mMap;
31 | private GoogleMap mMap1;
32 | LocationManager locationManager;
33 |
34 | LocationListener locationListener;
35 |
36 |
37 | @Override
38 | public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {
39 | super.onRequestPermissionsResult(requestCode, permissions, grantResults);
40 |
41 | if (requestCode == 1) {
42 |
43 | if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {
44 |
45 | if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED) {
46 | {
47 |
48 | locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, locationListener);
49 |
50 | }
51 |
52 | }
53 |
54 | }
55 |
56 | }
57 |
58 | }
59 |
60 | @Override
61 | protected void onCreate(Bundle savedInstanceState) {
62 | super.onCreate(savedInstanceState);
63 | setContentView(R.layout.activity_maps);
64 | // Obtain the SupportMapFragment and get notified when the map is ready to be used.
65 | SupportMapFragment mapFragment = (SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map);
66 | mapFragment.getMapAsync(this);
67 |
68 | }
69 |
70 |
71 | /**
72 | * Manipulates the map once available.
73 | * This callback is triggered when the map is ready to be used.
74 | * This is where we can add markers or lines, add listeners or move the camera. In this case,
75 | * we just add a marker near Sydney, Australia.
76 | * If Google Play services is not installed on the device, the user will be prompted to install
77 | * it inside the SupportMapFragment. This method will only be triggered once the user has
78 | * installed Google Play services and returned to the app.
79 | */
80 | @Override
81 | public void onMapReady(GoogleMap googleMap) {
82 | mMap = googleMap;
83 |
84 |
85 | /*LatLng red = new LatLng(-17.6853904, 74.0092798);
86 | mMap1.addMarker(new MarkerOptions().position(red).title("High risk user")).setIcon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_YELLOW));;
87 | mMap1.moveCamera(CameraUpdateFactory.newLatLng(red));
88 |
89 | LatLng green = new LatLng(-17.6851754, 74.0092308);
90 | mMap1.addMarker(new MarkerOptions().position(green).title("Low risk user")).setIcon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_GREEN));;
91 | mMap1.moveCamera(CameraUpdateFactory.newLatLng(green));*/
92 |
93 | //Add a marker in Sydney and move the camera
94 | LatLng sydney = new LatLng(17.6745341,73.9831558);
95 | mMap.addMarker(new MarkerOptions().position(sydney).title("Your location|Low risk user")).setIcon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_GREEN));;
96 | mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));
97 |
98 | LatLng pune = new LatLng(18.5245646,73.7225363);
99 | mMap.addMarker(new MarkerOptions().position(pune).title("Moderate risk user")).setIcon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_YELLOW));;
100 | mMap.moveCamera(CameraUpdateFactory.newLatLng(pune));
101 |
102 | LatLng bhuinj = new LatLng(17.8766168,73.9642879);
103 | mMap.addMarker(new MarkerOptions().position(bhuinj).title("High risk user")).setIcon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_RED));;
104 | mMap.moveCamera(CameraUpdateFactory.newLatLng(bhuinj));
105 |
106 | LatLng mum = new LatLng( 19.0852945,72.6305058);
107 | mMap.addMarker(new MarkerOptions().position(mum).title("High risk user")).setIcon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_RED));;
108 | mMap.moveCamera(CameraUpdateFactory.newLatLng(mum));
109 |
110 | }
111 | }
112 |
--------------------------------------------------------------------------------
/gradlew:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env sh
2 |
3 | ##############################################################################
4 | ##
5 | ## Gradle start up script for UN*X
6 | ##
7 | ##############################################################################
8 |
9 | # Attempt to set APP_HOME
10 | # Resolve links: $0 may be a link
11 | PRG="$0"
12 | # Need this for relative symlinks.
13 | while [ -h "$PRG" ] ; do
14 | ls=`ls -ld "$PRG"`
15 | link=`expr "$ls" : '.*-> \(.*\)$'`
16 | if expr "$link" : '/.*' > /dev/null; then
17 | PRG="$link"
18 | else
19 | PRG=`dirname "$PRG"`"/$link"
20 | fi
21 | done
22 | SAVED="`pwd`"
23 | cd "`dirname \"$PRG\"`/" >/dev/null
24 | APP_HOME="`pwd -P`"
25 | cd "$SAVED" >/dev/null
26 |
27 | APP_NAME="Gradle"
28 | APP_BASE_NAME=`basename "$0"`
29 |
30 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
31 | DEFAULT_JVM_OPTS=""
32 |
33 | # Use the maximum available, or set MAX_FD != -1 to use that value.
34 | MAX_FD="maximum"
35 |
36 | warn () {
37 | echo "$*"
38 | }
39 |
40 | die () {
41 | echo
42 | echo "$*"
43 | echo
44 | exit 1
45 | }
46 |
47 | # OS specific support (must be 'true' or 'false').
48 | cygwin=false
49 | msys=false
50 | darwin=false
51 | nonstop=false
52 | case "`uname`" in
53 | CYGWIN* )
54 | cygwin=true
55 | ;;
56 | Darwin* )
57 | darwin=true
58 | ;;
59 | MINGW* )
60 | msys=true
61 | ;;
62 | NONSTOP* )
63 | nonstop=true
64 | ;;
65 | esac
66 |
67 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
68 |
69 | # Determine the Java command to use to start the JVM.
70 | if [ -n "$JAVA_HOME" ] ; then
71 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
72 | # IBM's JDK on AIX uses strange locations for the executables
73 | JAVACMD="$JAVA_HOME/jre/sh/java"
74 | else
75 | JAVACMD="$JAVA_HOME/bin/java"
76 | fi
77 | if [ ! -x "$JAVACMD" ] ; then
78 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
79 |
80 | Please set the JAVA_HOME variable in your environment to match the
81 | location of your Java installation."
82 | fi
83 | else
84 | JAVACMD="java"
85 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
86 |
87 | Please set the JAVA_HOME variable in your environment to match the
88 | location of your Java installation."
89 | fi
90 |
91 | # Increase the maximum file descriptors if we can.
92 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
93 | MAX_FD_LIMIT=`ulimit -H -n`
94 | if [ $? -eq 0 ] ; then
95 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
96 | MAX_FD="$MAX_FD_LIMIT"
97 | fi
98 | ulimit -n $MAX_FD
99 | if [ $? -ne 0 ] ; then
100 | warn "Could not set maximum file descriptor limit: $MAX_FD"
101 | fi
102 | else
103 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
104 | fi
105 | fi
106 |
107 | # For Darwin, add options to specify how the application appears in the dock
108 | if $darwin; then
109 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
110 | fi
111 |
112 | # For Cygwin, switch paths to Windows format before running java
113 | if $cygwin ; then
114 | APP_HOME=`cygpath --path --mixed "$APP_HOME"`
115 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
116 | JAVACMD=`cygpath --unix "$JAVACMD"`
117 |
118 | # We build the pattern for arguments to be converted via cygpath
119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
120 | SEP=""
121 | for dir in $ROOTDIRSRAW ; do
122 | ROOTDIRS="$ROOTDIRS$SEP$dir"
123 | SEP="|"
124 | done
125 | OURCYGPATTERN="(^($ROOTDIRS))"
126 | # Add a user-defined pattern to the cygpath arguments
127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then
128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
129 | fi
130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
131 | i=0
132 | for arg in "$@" ; do
133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
135 |
136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
138 | else
139 | eval `echo args$i`="\"$arg\""
140 | fi
141 | i=$((i+1))
142 | done
143 | case $i in
144 | (0) set -- ;;
145 | (1) set -- "$args0" ;;
146 | (2) set -- "$args0" "$args1" ;;
147 | (3) set -- "$args0" "$args1" "$args2" ;;
148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
154 | esac
155 | fi
156 |
157 | # Escape application args
158 | save () {
159 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
160 | echo " "
161 | }
162 | APP_ARGS=$(save "$@")
163 |
164 | # Collect all arguments for the java command, following the shell quoting and substitution rules
165 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
166 |
167 | # by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
168 | if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
169 | cd "$(dirname "$0")"
170 | fi
171 |
172 | exec "$JAVACMD" "$@"
173 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_launcher_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
10 |
15 |
20 |
25 |
30 |
35 |
40 |
45 |
50 |
55 |
60 |
65 |
70 |
75 |
80 |
85 |
90 |
95 |
100 |
105 |
110 |
115 |
120 |
125 |
130 |
135 |
140 |
145 |
150 |
155 |
160 |
165 |
170 |
171 |
--------------------------------------------------------------------------------
/app/src/main/java/com/sud/e_healthify/typeform.java:
--------------------------------------------------------------------------------
1 | package com.sud.e_healthify;
2 |
3 | import androidx.appcompat.app.AppCompatActivity;
4 |
5 | import android.content.Intent;
6 | import android.os.Bundle;
7 | import android.util.Log;
8 | import android.view.View;
9 | import android.widget.AdapterView;
10 | import android.widget.ArrayAdapter;
11 | import android.widget.EditText;
12 | import android.widget.ImageView;
13 | import android.widget.Spinner;
14 | import android.widget.Toast;
15 |
16 | import com.google.firebase.database.DatabaseReference;
17 | import com.google.firebase.database.FirebaseDatabase;
18 |
19 | public class typeform extends AppCompatActivity {
20 | private ImageView nextp;
21 | public String trans="";
22 | private EditText child;
23 | private EditText age;
24 | private EditText cases;
25 | private EditText death;
26 | private EditText coma;
27 | DatabaseReference myRef;
28 |
29 |
30 | @Override
31 | protected void onCreate(Bundle savedInstanceState) {
32 | super.onCreate(savedInstanceState);
33 | setContentView(R.layout.activity_typeform);
34 |
35 | /*child=findViewById(R.id.child);
36 | age=findViewById(R.id.age);
37 | cases=findViewById(R.id.cases);
38 | death=findViewById(R.id.death);
39 | coma=findViewById(R.id.coma);
40 |
41 | alle();
42 | dropdown();
43 | occ();
44 | trans();
45 | como();
46 | pulm();
47 | cardio();*/
48 |
49 |
50 | nextp=findViewById(R.id.nextp);
51 | nextp.setOnClickListener(new View.OnClickListener() {
52 | @Override
53 | public void onClick(View v) {
54 |
55 | /*FirebaseDatabase database = FirebaseDatabase.getInstance();
56 | DatabaseReference myRef = database.getReference("message");
57 | myRef.child("child").setValue(child.getText().toString());
58 | myRef.child("age").setValue(age.getText().toString());
59 | myRef.child("cases").setValue(cases.getText().toString());
60 | myRef.child("death").setValue(death.getText().toString());
61 | myRef.child("coma").setValue(coma.getText().toString());*/
62 | Intent intent = new Intent(typeform.this, typeform1.class);
63 | startActivity(intent);
64 | }
65 |
66 |
67 | });
68 |
69 |
70 | }
71 |
72 | /*public void alle() {
73 | FirebaseDatabase database = FirebaseDatabase.getInstance();
74 | DatabaseReference myRef = database.getReference("message");
75 | myRef.child("age").setValue("e");
76 | myRef.child("blood").setValue("e");
77 | myRef.child("cardio").setValue("e");
78 | myRef.child("cases").setValue("e");
79 | myRef.child("charl").setValue("e");
80 | myRef.child("child").setValue("e");
81 | myRef.child("coma").setValue("e");
82 | myRef.child("death").setValue("e");
83 | myRef.child("dimer").setValue("e");
84 | myRef.child("diu").setValue("e");
85 | myRef.child("gend").setValue("e");
86 | myRef.child("hbb").setValue("e");
87 | myRef.child("hdl").setValue("e");
88 | myRef.child("heart").setValue("e");
89 | myRef.child("occ").setValue("e");
90 | myRef.child("plat").setValue("e");
91 | myRef.child("pulm").setValue("e");
92 | myRef.child("trans").setValue("e");
93 | myRef.child("trips").setValue("e");
94 | myRef.child("como").setValue("e");
95 |
96 |
97 | }
98 |
99 | public void cardio() {
100 | String[] items = new String[]{"NA", "Elevated" , "Normal" , "Stage-01" , "Stage-02"};
101 | ArrayAdapter adapter = new ArrayAdapter<>(this, android.R.layout.simple_spinner_dropdown_item, items);
102 | final Spinner cardio = findViewById(R.id.cardio);
103 | cardio.setAdapter(adapter);
104 | cardio.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
105 |
106 | @Override
107 | public void onItemSelected(AdapterView> adapterView, View view, int position, long id) {
108 | Object item = adapterView.getItemAtPosition(position);
109 | if (item != null && item !="NA") {
110 | Toast.makeText(typeform.this, item.toString(),Toast.LENGTH_SHORT).show();
111 | String cardio=item.toString();
112 | Log.i("str",cardio);
113 | FirebaseDatabase database = FirebaseDatabase.getInstance();
114 | DatabaseReference myRef = database.getReference("message");
115 | myRef.child("cardio").setValue(cardio);
116 |
117 | }
118 | else if(item=="NA"){ FirebaseDatabase database = FirebaseDatabase.getInstance();
119 | DatabaseReference myRef = database.getReference("message");
120 | myRef.child("cardio").setValue("0");
121 | }
122 | Toast.makeText(typeform.this, "Selected", Toast.LENGTH_SHORT).show();
123 | }
124 |
125 | @Override
126 | public void onNothingSelected(AdapterView> parent) {
127 |
128 |
129 | }
130 |
131 | });
132 | }
133 |
134 | public void pulm() {
135 | String[] items = new String[]{"<100" , "<200" , "<300" , "<400"};
136 | ArrayAdapter adapter = new ArrayAdapter<>(this, android.R.layout.simple_spinner_dropdown_item, items);
137 | final Spinner pulm = findViewById(R.id.pulm);
138 | pulm.setAdapter(adapter);
139 | pulm.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
140 |
141 | @Override
142 | public void onItemSelected(AdapterView> adapterView, View view, int position, long id) {
143 | Object item = adapterView.getItemAtPosition(position);
144 | if (item != null) {
145 | Toast.makeText(typeform.this, item.toString(),Toast.LENGTH_SHORT).show();
146 | String pulm=item.toString();
147 | Log.i("str",pulm);
148 | FirebaseDatabase database = FirebaseDatabase.getInstance();
149 | DatabaseReference myRef = database.getReference("message");
150 | myRef.child("pulm").setValue(pulm);
151 |
152 | }
153 | Toast.makeText(typeform.this, "Selected", Toast.LENGTH_SHORT).show();
154 | }
155 |
156 | @Override
157 | public void onNothingSelected(AdapterView> parent) {
158 |
159 |
160 | }
161 |
162 | });
163 | }
164 |
165 | public void como() {
166 | String[] items = new String[]{"NA" , "Coronary Heart Disease" , "Diabetes" , "Hypertension" , "None" };
167 | ArrayAdapter adapter = new ArrayAdapter<>(this, android.R.layout.simple_spinner_dropdown_item, items);
168 | final Spinner como = findViewById(R.id.como);
169 | como.setAdapter(adapter);
170 | como.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
171 |
172 | @Override
173 | public void onItemSelected(AdapterView> adapterView, View view, int position, long id) {
174 | Object item = adapterView.getItemAtPosition(position);
175 | if (item != null && item !="NA") {
176 | Toast.makeText(typeform.this, item.toString(),Toast.LENGTH_SHORT).show();
177 | String como=item.toString();
178 | Log.i("str",como);
179 | FirebaseDatabase database = FirebaseDatabase.getInstance();
180 | DatabaseReference myRef = database.getReference("message");
181 | myRef.child("como").setValue(como);
182 |
183 | }
184 | else if(item=="NA"){ FirebaseDatabase database = FirebaseDatabase.getInstance();
185 | DatabaseReference myRef = database.getReference("message");
186 | myRef.child("como").setValue("0");
187 | }
188 | Toast.makeText(typeform.this, "Selected", Toast.LENGTH_SHORT).show();
189 | }
190 |
191 | @Override
192 | public void onNothingSelected(AdapterView> parent) {
193 |
194 |
195 | }
196 |
197 | });
198 | }
199 |
200 |
201 | public void trans() {
202 | String[] items = new String[]{"NA","Car","Public","Walk"};
203 | ArrayAdapter adapter = new ArrayAdapter<>(this, android.R.layout.simple_spinner_dropdown_item, items);
204 | final Spinner trans = findViewById(R.id.trans);
205 | trans.setAdapter(adapter);
206 | trans.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
207 |
208 | @Override
209 | public void onItemSelected(AdapterView> adapterView, View view, int position, long id) {
210 | Object item = adapterView.getItemAtPosition(position);
211 | if (item != null && item !="NA") {
212 | Toast.makeText(typeform.this, item.toString(),Toast.LENGTH_SHORT).show();
213 | String trans=item.toString();
214 | Log.i("str",trans);
215 | FirebaseDatabase database = FirebaseDatabase.getInstance();
216 | DatabaseReference myRef = database.getReference("message");
217 | myRef.child("trans").setValue(trans);
218 |
219 | }
220 | else if(item=="NA"){ FirebaseDatabase database = FirebaseDatabase.getInstance();
221 | DatabaseReference myRef = database.getReference("message");
222 | myRef.child("trans").setValue("0");
223 | }
224 | Toast.makeText(typeform.this, "Selected", Toast.LENGTH_SHORT).show();
225 | }
226 |
227 | @Override
228 | public void onNothingSelected(AdapterView> parent) {
229 |
230 |
231 | }
232 |
233 | });
234 | }
235 |
236 | public void occ() {
237 | String[] items = new String[]{ "NA" , "Business" , "Cleaner" , "Clerk" , "Driver" , "Farmer" , "Legal" , "Manufacturing" , "Researcher" , "Sales"};
238 | ArrayAdapter adapter = new ArrayAdapter<>(this, android.R.layout.simple_spinner_dropdown_item, items);
239 | Spinner occ = findViewById(R.id.occ);
240 | occ.setAdapter(adapter);
241 | occ.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
242 |
243 | @Override
244 | public void onItemSelected(AdapterView> adapterView, View view, int position, long id) {
245 | Object item = adapterView.getItemAtPosition(position);
246 | if (item != null && item != "NA") {
247 | Toast.makeText(typeform.this, item.toString(),Toast.LENGTH_SHORT).show();
248 | String occ=item.toString();
249 | Log.i("str",occ);
250 | FirebaseDatabase database = FirebaseDatabase.getInstance();
251 | DatabaseReference myRef = database.getReference("message");
252 | myRef.child("occ").setValue(occ);
253 |
254 | }
255 | else if(item=="NA"){ FirebaseDatabase database = FirebaseDatabase.getInstance();
256 | DatabaseReference myRef = database.getReference("message");
257 | myRef.child("occ").setValue("0");
258 | }
259 | Toast.makeText(typeform.this, "Selected",Toast.LENGTH_SHORT).show();
260 |
261 | }
262 |
263 | @Override
264 | public void onNothingSelected(AdapterView> parent) {
265 |
266 |
267 | }
268 |
269 | });
270 | }
271 |
272 | public void dropdown() {
273 | String[] items = new String[]{"Male", "Female", "other"};
274 | ArrayAdapter adapter = new ArrayAdapter<>(this, android.R.layout.simple_spinner_dropdown_item, items);
275 | Spinner dropdown = findViewById(R.id.spinner1);
276 | dropdown.setAdapter(adapter);
277 | dropdown.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
278 |
279 | @Override
280 | public void onItemSelected(AdapterView> adapterView, View view,
281 | int position, long id) {
282 | Object item = adapterView.getItemAtPosition(position);
283 | if (item != null) {
284 | Toast.makeText(typeform.this, item.toString(),Toast.LENGTH_SHORT).show();
285 | String gend=item.toString();
286 | Log.i("str",gend);
287 | FirebaseDatabase database = FirebaseDatabase.getInstance();
288 | DatabaseReference myRef = database.getReference("message");
289 | myRef.child("gend").setValue(gend);
290 |
291 | }
292 | Toast.makeText(typeform.this, "Selected",
293 | Toast.LENGTH_SHORT).show();
294 |
295 | }
296 |
297 | @Override
298 | public void onNothingSelected(AdapterView> parent) {
299 |
300 |
301 | }
302 |
303 | });
304 | }*/
305 | }
306 |
--------------------------------------------------------------------------------
/Probability Prediction/ANN-Prob-Predictor.ipynb:
--------------------------------------------------------------------------------
1 | {
2 | "cells": [
3 | {
4 | "cell_type": "code",
5 | "execution_count": 14,
6 | "metadata": {},
7 | "outputs": [],
8 | "source": [
9 | "import numpy as np\n",
10 | "import matplotlib.pyplot as plt\n",
11 | "import pandas as pd\n",
12 | "\n",
13 | "#import dataset\n",
14 | "\n",
15 | "dataset = pd.read_csv(\"Prob_Train_Set.csv\")\n",
16 | "X = np.array(dataset.iloc[:,[2,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,26]])\n",
17 | "y = dataset.iloc[:,27].values\n"
18 | ]
19 | },
20 | {
21 | "cell_type": "markdown",
22 | "metadata": {},
23 | "source": [
24 | "Certain features are selected which affect the probability. The rest of them are ignored while training."
25 | ]
26 | },
27 | {
28 | "cell_type": "markdown",
29 | "metadata": {},
30 | "source": [
31 | "Users will be classified into three categories based on their probability.\n",
32 | "
0-45% as 'Green' coded 0.\n",
33 | "
45-70% as 'Yellow' coded 1.\n",
34 | "
The rest as 'Red' coded 2."
35 | ]
36 | },
37 | {
38 | "cell_type": "code",
39 | "execution_count": 15,
40 | "metadata": {},
41 | "outputs": [],
42 | "source": [
43 | "for q in range(len(y)):\n",
44 | " if(0<=y[q]<=45):\n",
45 | " y[q]=0\n",
46 | " elif(45You can use your own firebase API key and replace it in the app and in the 'config' variable."
712 | ]
713 | },
714 | {
715 | "cell_type": "code",
716 | "execution_count": null,
717 | "metadata": {},
718 | "outputs": [],
719 | "source": [
720 | "count = '0'\n",
721 | "while True:\n",
722 | " feat = db.child(\"message\").get()\n",
723 | " feat = feat.val()\n",
724 | " count = feat['counter']\n",
725 | " if(count=='1'):\n",
726 | " # Home Work method 2\n",
727 | " X_hm = np.array([feat['gend'], int(feat['child']), feat['occ'], feat['trans'], int(feat['cases']), int(feat['death']), feat['como'], int(feat['age']), int(feat['coma']), feat['pulm'], feat['cardio'], int(feat['diu']), int(feat['plat']), int(feat['hbb']), int(feat['dimer']), int(feat['heart']), int(feat['hdl']), int(feat['charl']), int(feat['blood']), int(feat['trips']) ] )\n",
728 | " X_hm = pd.DataFrame(X_hm).values\n",
729 | " X_hm = X_hm.reshape(1,-1)\n",
730 | " X_hm[:,0] = labelencoder_X_0.transform(X_hm[:,0])\n",
731 | " X_hm[:,2] = labelencoder_X_2.transform(X_hm[:,2])\n",
732 | " X_hm[:,3] = labelencoder_X_3.transform(X_hm[:,3])\n",
733 | " X_hm[:,6] = labelencoder_X_6.transform(X_hm[:,6])\n",
734 | " X_hm[:,9] = labelencoder_X_9.transform(X_hm[:,9])\n",
735 | " X_hm[:,10] = labelencoder_X_10.transform(X_hm[:,10])\n",
736 | " X_hm=np.array(onehotencoder_x.transform(X_hm))\n",
737 | " X_hm = np.delete(X_hm,2,axis=1)\n",
738 | " X_hm = sc.transform(X_hm)\n",
739 | " y_predhm = classifier.predict(X_hm)\n",
740 | " \n",
741 | " for z in range(len(y_predhm)):\n",
742 | " for z1 in range(0,3):\n",
743 | " if(y_predhm[z,z1] ==max(y_predhm[z,0],y_predhm[z,1],y_predhm[z,0])):\n",
744 | " y_predhm[z,z1] =1 \n",
745 | " else:\n",
746 | " y_predhm[z,z1]=0\n",
747 | " if(y_predhm[0,0]==1):\n",
748 | " color = 'Orange'\n",
749 | " elif(y_pred[0,1]==1):\n",
750 | " color = 'Red'\n",
751 | " else:\n",
752 | " color = 'Green'\n",
753 | " \n",
754 | " db.child(\"prediction\").child(\"Risk\").set({\"Color\":color})\n",
755 | " count = '0'\n",
756 | "\n"
757 | ]
758 | },
759 | {
760 | "cell_type": "markdown",
761 | "metadata": {},
762 | "source": [
763 | "The Firebase connection runs infinitely as a server to the app.\n",
764 | "
Features can be given as input from the app, predictions are made and send back to display in the app via the Firebase Cloud Realtime Database"
765 | ]
766 | }
767 | ],
768 | "metadata": {
769 | "kernelspec": {
770 | "display_name": "Python 3",
771 | "language": "python",
772 | "name": "python3"
773 | },
774 | "language_info": {
775 | "codemirror_mode": {
776 | "name": "ipython",
777 | "version": 3
778 | },
779 | "file_extension": ".py",
780 | "mimetype": "text/x-python",
781 | "name": "python",
782 | "nbconvert_exporter": "python",
783 | "pygments_lexer": "ipython3",
784 | "version": "3.7.7"
785 | }
786 | },
787 | "nbformat": 4,
788 | "nbformat_minor": 4
789 | }
790 |
--------------------------------------------------------------------------------