cjharkins / interfaith-dental-web Goto Github PK
View Code? Open in Web Editor NEWPatient portal
Patient portal
Using the provided credentials yields the following 401 Unauthorized error:
{
"type": "https://tools.ietf.org/html/rfc7235#section-3.1",
"title": "Unauthorized",
"status": 401,
"traceId": "|d10ce61d-43085a96827337a5."
}
-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
PUT {base_url}/questions/id
{
"question":
{
"question":
"language":
"displayOrder":
},
"answerChoices":[
{
"id":
"answer":
"displayOrder":
"answerType":
},
{
"id":
"answer":
"displayOrder":
"answerType":
},
{
"id":
"answer":
"displayOrder":
"answerType":
},
]
}
}
If patient has been redirected to outside resources or an approval/denial page they cannot go back to next question.
English, Arabic, Spanish
-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":
}
]
}
]
}
}
-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
Family size/ income range
GET {base_url}/questions/id
-User should see login button on Welcome screen.
-One service account login
-Show language options on Welcome page (Spanish, Arabic, English)
-Translate questions to preferred language
-Translate answers
-POST user, questions, and answers to db
-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
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":
},
]
}
]
},
}
}
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":
}
]
}
]
}
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.