-
Notifications
You must be signed in to change notification settings - Fork 306
Read only mode use case in catalog app. #2803
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
santosh-pingle
wants to merge
2
commits into
google:master
Choose a base branch
from
santosh-pingle:sp/read-only-use-case
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,317 @@ | ||
{ | ||
"resourceType": "QuestionnaireResponse", | ||
"extension": [ | ||
{ | ||
"url": "http://github.com/google-android/questionnaire-lastLaunched-timestamp", | ||
"valueDateTime": "2025-03-12T11:09:41+05:30" | ||
} | ||
], | ||
"authored": "2025-03-12T11:16:54+05:30", | ||
"item": [ | ||
{ | ||
"linkId": "1", | ||
"text": "Personal information" | ||
}, | ||
{ | ||
"linkId": "2", | ||
"answer": [ | ||
{ | ||
"valueString": "Jennifer", | ||
"item": [ | ||
{ | ||
"linkId": "2.1", | ||
"text": "First Name" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"linkId": "3", | ||
"answer": [ | ||
{ | ||
"valueString": "Symond", | ||
"item": [ | ||
{ | ||
"linkId": "3.1", | ||
"text": "Family Name" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"linkId": "4", | ||
"answer": [ | ||
{ | ||
"valueInteger": 1234567890, | ||
"item": [ | ||
{ | ||
"linkId": "4.1", | ||
"text": "ID number" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"linkId": "5", | ||
"answer": [ | ||
{ | ||
"valueInteger": 1234567890, | ||
"item": [ | ||
{ | ||
"linkId": "5.1", | ||
"text": "Mobile number" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"linkId": "6", | ||
"answer": [ | ||
{ | ||
"valueCoding": { | ||
"code": "code", | ||
"display": "Receive SMS reminders" | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"linkId": "7", | ||
"text": "Date of birth", | ||
"answer": [ | ||
{ | ||
"valueDate": "2025-03-12", | ||
"item": [ | ||
{ | ||
"linkId": "7.1", | ||
"text": "If the real DOB is unknown, provide an estimated year." | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"linkId": "8" | ||
}, | ||
{ | ||
"linkId": "9", | ||
"text": "Address" | ||
}, | ||
{ | ||
"linkId": "10", | ||
"answer": [ | ||
{ | ||
"valueString": "141, Jason street", | ||
"item": [ | ||
{ | ||
"linkId": "10.1", | ||
"text": "House number and street" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"linkId": "11", | ||
"answer": [ | ||
{ | ||
"valueString": "A-141", | ||
"item": [ | ||
{ | ||
"linkId": "11.1", | ||
"text": "Apartment, unit" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"linkId": "12", | ||
"answer": [ | ||
{ | ||
"valueString": "Sydney, vile Parle ", | ||
"item": [ | ||
{ | ||
"linkId": "12.1", | ||
"text": "City, town or village" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"linkId": "13", | ||
"answer": [ | ||
{ | ||
"valueString": "Australia ", | ||
"item": [ | ||
{ | ||
"linkId": "13.1", | ||
"text": "County" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"linkId": "14", | ||
"answer": [ | ||
{ | ||
"valueString": "412033", | ||
"item": [ | ||
{ | ||
"linkId": "14.1", | ||
"text": "Postal Code" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"linkId": "15", | ||
"text": "Alternative contact person" | ||
}, | ||
{ | ||
"linkId": "16", | ||
"answer": [ | ||
{ | ||
"valueString": "Pamela", | ||
"item": [ | ||
{ | ||
"linkId": "16.1", | ||
"text": "Name" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"linkId": "17", | ||
"answer": [ | ||
{ | ||
"valueCoding": { | ||
"code": "mother", | ||
"display": "Mother" | ||
}, | ||
"item": [ | ||
{ | ||
"linkId": "17.1", | ||
"text": "Relationship" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"linkId": "18", | ||
"answer": [ | ||
{ | ||
"valueString": "1234567890", | ||
"item": [ | ||
{ | ||
"linkId": "18.1", | ||
"text": "Phone number" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"linkId": "19", | ||
"text": "What is the highest level of education achieved?", | ||
"answer": [ | ||
{ | ||
"valueCoding": { | ||
"code": "higher-education", | ||
"display": "Higher education" | ||
}, | ||
"item": [ | ||
{ | ||
"linkId": "19.1", | ||
"text": "Select one" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"linkId": "20", | ||
"text": "Who does the client live with?", | ||
"answer": [ | ||
{ | ||
"valueCoding": { | ||
"code": "Parents", | ||
"display": "Parents" | ||
}, | ||
"item": [ | ||
{ | ||
"linkId": "20.1", | ||
"text": "Check all that apply" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"linkId": "21", | ||
"text": "Has the client received this year’s seasonal flu vaccine?", | ||
"answer": [ | ||
{ | ||
"valueCoding": { | ||
"code": "yes", | ||
"display": "Yes" | ||
}, | ||
"item": [ | ||
{ | ||
"linkId": "21.1", | ||
"text": "Select one" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"linkId": "22", | ||
"text": "When was their last menstrual period? (LMP)", | ||
"answer": [ | ||
{ | ||
"valueDate": "2025-03-12", | ||
"item": [ | ||
{ | ||
"linkId": "22.1", | ||
"text": "First day of the most recent period" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"linkId": "23", | ||
"text": "How many times have they been pregnant?", | ||
"answer": [ | ||
{ | ||
"valueInteger": 1, | ||
"item": [ | ||
{ | ||
"linkId": "23.1", | ||
"text": "Including this pregnancy. Also referred to as gravida." | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"linkId": "24", | ||
"text": "What was the date and time of the ultrasound?", | ||
"answer": [ | ||
{ | ||
"valueDateTime": "2025-03-12T11:14:00+05:30" | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you please explore using a lambda to encapsulate these configurations? i think we might have more complex setups for different modes in the future and it's not ideal to have to change the demo questionnaire fragment class each time.