0% found this document useful (0 votes)
4 views

survey_system

The document outlines the development progress and services for an Android-based Health Survey Management System, detailing work items such as OTP and login functionalities, survey data retrieval, and survey question requests. It includes specific API endpoints, request formats, and expected responses for each service, along with a list of survey questions to be utilized. The document also indicates the status of various tasks, with some completed and others yet to be started.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

survey_system

The document outlines the development progress and services for an Android-based Health Survey Management System, detailing work items such as OTP and login functionalities, survey data retrieval, and survey question requests. It includes specific API endpoints, request formats, and expected responses for each service, along with a list of survey questions to be utilized. The document also indicates the status of various tasks, with some completed and others yet to be started.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

Table of Contents

Android Work items...................................................................................................................................2


Services for android...................................................................................................................................2
1. OTP [Working]..................................................................................................................................2
2. Login [Working]................................................................................................................................2
3. Survey data [In Progress – Yeshwanth].............................................................................................3
4. Survey questions request [To be started – Ganesh]...........................................................................6
5. Submit Survey Data [To be started – Karthik]..................................................................................7
Survey Questions.......................................................................................................................................8
Health Survey Management System

Android Work items

1. Retain Login Screen from Beat System.


2. After Login, get all survey homes data from service and save it in a JSON file. Read and display
card view from this JSON file on search of URN.
3. On click of a specific survey home, screen should show list of questions and multiple choices, text
and images along with “Submit” button.

Services for android


1. OTP [Working]

URL: http://localhost/modeldata/request.php

Request: type=otp&mobile=1234567890

Response: {"success": true}

2. Login [Working]

URL: http://localhost/modeldata/request.php

Request: type=login&mobile=1234567890&otp=2567

Response:
{
"success": true,
"mobile": "1234567890",
"user": "Karthik",
"uid": "4",
"role": "role 1, role 2",
"email": "[email protected]"
}

Failure Response for all request:


{
"success": false,
"message": "invalid request"
}

3. Survey data [In Progress – Yeshwanth]

URL: http://localhost/modeldata/request.php
Request: {"type":"getsurveydata","mobile":"9000843345"}
Response:
{
"success": true,
"data": [{
"urn": "1234687904",
"house_no": "453/B",
"headoffamily_name": "Rajesh HS",
"fatherorhusband_name": "Harish S",
"address": "453/B, line 1, line2",
"village": "village name"
}, {
"urn": "1234674604",
"house_no": "453/B",
"headoffamily_name": "Rajesh HS",
"fatherorhusband_name": "Harish S",
"address": "453/B, line 1, line2",
"village": "village name"
}, {
"urn": "123348904",
"house_no": "453/B",
"headoffamily_name": "Rajesh HS",
"fatherorhusband_name": "Harish S",
"address": "453/B, line 1, line2",
"village": "village name"
}, {
"urn": "12334846804",
"house_no": "453/B",
"headoffamily_name": "Rajesh HS",
"fatherorhusband_name": "Harish S",
"address": "453/B, line 1, line2",
"village": "village name"
}, {
"urn": "1233345964",
"house_no": "453/B",
"headoffamily_name": "Rajesh HS",
"fatherorhusband_name": "Harish S",
"address": "453/B, line 1, line2",
"village": "village name"
}, {
"urn": "12332845835",
"house_no": "453/B",
"headoffamily_name": "Rajesh HS",
"fatherorhusband_name": "Harish S",
"address": "453/B, line 1, line2",
"village": "village name"
}, {
"urn": "123849275",
"house_no": "453/B",
"headoffamily_name": "Rajesh HS",
"fatherorhusband_name": "Harish S",
"address": "453/B, line 1, line2",
"village": "village name"
}, {
"urn": "14562345964",
"house_no": "453/B",
"headoffamily_name": "Rajesh HS",
"fatherorhusband_name": "Harish S",
"address": "453/B, line 1, line2",
"village": "village name"
}, {
"urn": "13457745835",
"house_no": "453/B",
"headoffamily_name": "Rajesh HS",
"fatherorhusband_name": "Harish S",
"address": "453/B, line 1, line2",
"village": "village name"
}, {
"urn": "23465649275",
"house_no": "453/B",
"headoffamily_name": "Rajesh HS",
"fatherorhusband_name": "Harish S",
"address": "453/B, line 1, line2",
"village": "village name"
}, {
"urn": "14562455964",
"house_no": "453/B",
"headoffamily_name": "Rajesh HS",
"fatherorhusband_name": "Harish S",
"address": "453/B, line 1, line2",
"village": "village name"
}, {
"urn": "6573457745835",
"house_no": "453/B",
"headoffamily_name": "Rajesh HS",
"fatherorhusband_name": "Harish S",
"address": "453/B, line 1, line2",
"village": "village name"
}, {
"urn": "12466567675",
"house_no": "453/B",
"headoffamily_name": "Rajesh HS",
"fatherorhusband_name": "Harish S",
"address": "453/B, line 1, line2",
"village": "village name"
}
]
}

4. Survey questions request [To be started – Ganesh]

URL: http://localhost/modeldata/request.php
Request: {"type":"getsurveyquestions"}
Response:
{
"success": true,
"data": [{
"qid": 4,
"question": "Question line",
"type": "multiple_choice",
"choices": [{
"cid": "5",
"choice": "choice 1"
}, {
"cid": "6",
"choice": "choice 2"
}, {
"cid": "8",
"choice": "choice 3"
}
]
}, {
"qid": 2,
"question": "Question line",
"type": "text"
}, {
"qid": 3,
"question": "Question line",
"type": "image"
}
]
}

5. Submit Survey Data [To be started – Karthik]

URL: http://localhost/modeldata/request.php
MultiPart Request: req={"sfid":6,"survey_response":
[{"qid":"3","type":"multiple_choice","answer":"mcid"},
{"qid":"4","type":"image","answer":"image.jpg"},{"qid":"5","type":"text","answer":"9008887661"}]]}

Response: {"success":true}
Survey Questions

1. Do you have a RSBY smart card?


a. Yes
b. No

2. If yes, surveyor will capture the photo of smart card

3. If card is available, have you taken the benefit of the scheme?


a. Yes
b. No

4. If not taken benefit, what are the reasons?


a. I never fell ill
b. I was not aware of the benefits of the card
c. Hospital have not accepted the card
d. Card was not working
e. The treatment taken was just OPD
f. I forgot the card in home while hospitalization

5. If No, what are the reasons?


a. I have not received the card at all
b. I have lost card
c. Card was damaged so discarded
d. I have no idea about RSBY smart card

6. Is ration card available?


a. Yes b. No

7. If yes, surveyor will capture the photo of ration card

8. Contact No. of beneficiary

You might also like