Arogya-Nidhi
A Kotlin Android app — a Health Scheme Eligibility Checker for Indian families.
The user answers 5 short questions about the family (income, occupation, BPL status,
state, special situations) and the app shows which government health schemes they
qualify for, the documents they need to carry, and the empaneled hospitals nearby.
Open in Android Studio
- Unzip this folder.
- Open Android Studio → Open → select the
ArogyaNidhi folder.
- Android Studio will sync Gradle automatically (it will download the Gradle
wrapper the first time — make sure you are online for the first build).
- Select an emulator or a physical device, then click Run (Shift + F10).
If Android Studio prompts about a missing Gradle wrapper jar, run
gradle wrapper from the project root once (any local Gradle 8.x install works),
or simply let Android Studio re-create the wrapper from the
gradle-wrapper.properties file.
Tech Stack
- Kotlin 1.9
- Android Gradle Plugin 8.5
- Min SDK 24, Target SDK 34
- Material Components, ViewBinding, ViewPager2, RecyclerView
- Gson for parsing the local JSON scheme/hospital data
Project Structure
app/
src/main/
java/com/arogyanidhi/app/
model/Models.kt -- data classes (Scheme, Hospital, FamilyProfile, enums)
data/SchemeRepository.kt -- loads schemes.json + hospitals.json from /res/raw
logic/EligibilityEngine.kt -- decision-tree eligibility rules
ui/SplashActivity.kt
ui/MainActivity.kt -- home screen with 3 actions
ui/QuizActivity.kt -- 5-step stepper UI
ui/QuestionFragment.kt -- one question per page
ui/ResultActivity.kt -- shows matched schemes
ui/SchemeDetailActivity.kt -- benefits, document checklist, how-to-apply
ui/HospitalListActivity.kt -- searchable list (by district / state)
res/raw/schemes.json
res/raw/hospitals.json
res/layout/ -- all XML layouts
res/drawable/ -- icons, card backgrounds, stepper dots
res/values/ -- strings, colors, themes, button styles
Schemes Included
PM-JAY (Ayushman Bharat), RSBY, ESIC, JSY, PMSBY, PMJJBY, Aarogyasri (AP/Telangana),
MJPJAY (Maharashtra), Chirayu (Haryana). All eligibility rules live in
EligibilityEngine.kt so you can extend or tweak them easily.
Adding a New Scheme
- Add an entry to
app/src/main/res/raw/schemes.json (id, name, tagline,
category, benefits, documents, howToApply, helpline).
- Add an
isEligibleX(profile) rule in EligibilityEngine.kt and wire it
into the when block in isEligible(...).
Adding a New Hospital
Add an entry to app/src/main/res/raw/hospitals.json with district, state,
phone, and the list of scheme ids it accepts.
Notes
- The app does NOT collect or send any personal data to a server. Everything
is computed on-device.
- All scheme details are based on publicly available information about Indian
government health schemes and are intended for educational use. Always
confirm details with the official scheme website or your nearest CSC before
applying.