Git Product home page Git Product logo

interfaith-dental-web's Issues

Admin view

-Show questions and answers in editable format
-only allow edits to wording not type of answers (ie. dropdown will remain a dropdown)
-PUT for editing questions
-PUT for editing answers

Admin - PUT for editing questions and answers

PUT {base_url}/questions/id

{
"question":
{
"question":
"language":
"displayOrder":
},
"answerChoices":[
{
"id":
"answer":
"displayOrder":
"answerType":
},
{
"id":
"answer":
"displayOrder":
"answerType":
},
{
"id":
"answer":
"displayOrder":
"answerType":
},
]
}
}

Patient - POST form data

-Once user has been redirected to a supplemental page (qualifying or not) POST form
POST {base_url}/form
{
"form":{
"applicant":{
"id":
},
"questions":[
"question":{
"id":
"applicantChoices":
[
"applicantChoice":{
"answerId":,
"text":
},
"applicantChoice":{
"answerId":,
"text":
},
"applicantChoice":{
"answerId":,
"text":
}
]
},
"question":{
"id":
"applicantChoices":
[
"applicantChoice":{
"answerId":,
"text":
},
"applicantChoice":{
"answerId":,
"text":
},
"applicantChoice":{
"answerId":,
"text":
}
]
},
"question":{
"id":
"applicantChoices":
[
"applicantChoice":{
"answerId":,
"text":
},
"applicantChoice":{
"answerId":,
"text":
},
"applicantChoice":{
"answerId":,
"text":
}
]
}
]
}
}

Patient - Calculate eligibility

  • -If user answers '60 or above' check box on question 2 -> they do not qualify and are sent to Smile on 60+ page and their form is submitted

  • - if user does not select one of these counties

Screen Shot 2020-06-07 at 1 46 42 PM

and does NOT need an extraction -> they do not qualify and are redirected to a page with this link [](https://www.tnoralhealth.org/safety-net-directory-2 )
  • if user falls between these income ranges with this family size they DO qualify

Family size/ income range

  • 1/$0 - $31,900
    -2/$32,000 - $43,100
    -3/$43,200 - $54,300
    -4/$54,400 - $65,500
    -5/$65,600 - $76,700
    -6/$76,800 - $87,900
    -7/$88,000 - $99,100
    -8/$99,200 - $110,100
    -9+/they will conditionally qualify no matter what

Login

-User should see login button on Welcome screen.
-One service account login

Stretch Goals

-Show language options on Welcome page (Spanish, Arabic, English)
-Translate questions to preferred language
-Translate answers
-POST user, questions, and answers to db

Patient view page

-GET questions and corresponding answers for each page
-Capture user input
-validate form input before user can click next
-based on answers redirect user to next question or other resource page
-progress bar for questions
-once user has been redirected POST user data, question, and corresponding answers
-User may click back if not redirected to outside resource page

Patient - GET bulk form

GET {base_url}/form
Will need to pass language as well. (asking Backend now) 6/7/20 2:52pm
{
"form":{
questions:[
"question":
{
"id":
"question":
"language":
"displayOrder":
"answerChoices":[
{
"id":
"answer":
"displayOrder":
"answerType":
},
{
"id":
"answer":
"displayOrder":
"answerType":
},
{
"id":
"answer":
"displayOrder":
"answerType":
},
]
},
"question":
{
"id":
"question":
"language":
"displayOrder":
"answers":[
{
"id":
"answer":
"displayOrder":
"answerType":
},
{
"id":
"answer":
"displayOrder":
"answerType":
},
{
"id":
"answer":
"displayOrder":
"answerType":
},
]
}
]
},
}
}

Patient - POST patient form

POST {base_url}/form

{
"form":{
"applicant":{
"id":
},
"questions":[
"question":{
"id":
"applicantChoices":
[
"applicantChoice":{
"answerId":,
"text":
},
"applicantChoice":{
"answerId":,
"text":
},
"applicantChoice":{
"answerId":,
"text":
}
]
},
"question":{
"id":
"applicantChoices":
[
"applicantChoice":{
"answerId":,
"text":
},
"applicantChoice":{
"answerId":,
"text":
},
"applicantChoice":{
"answerId":,
"text":
}
]
},
"question":{
"id":
"applicantChoices":
[
"applicantChoice":{
"answerId":,
"text":
},
"applicantChoice":{
"answerId":,
"text":
},
"applicantChoice":{
"answerId":,
"text":
}
]
}
]
}
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.