-
Notifications
You must be signed in to change notification settings - Fork 18
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
Add redtext warning status to researcher session data #1292
Comments
Comments/questions:
Implementation notes: I think the relevant place to do these checks is in Another option for this might be in the API's It would also be possible to add this data into the response object from within EFP, but I don't think the EFP has access to all of the information it would need (e.g. all of the child's prior study participation, the study's criteria expression and prior participation requirements). So I don't think we should go this route. |
How about a bracketed list of reasons? e.g. {TooYoung, Ineligible_CriteriaExpression, Ineligible_OtherStudyParticipation} or {} or {Ineligible_CriteriaExpression} as appropriate? |
Actually for style consistency, we should match this to how we handle multiple "other info" criteria, which shows up in the researcher tables with a value like
So the equivalent here would be
|
* add eligibility field to Response model/serializer, set value on object creation, add/refactor queries, add helper * add eligibility to the Response fields displayed in admin pages * add eligibility to response columns available for researcher download/display * display eligibility value in details table on individual responses page * alter child birthday field to not allow blank or null * add a default blank value for Study criteria expression, modify response eligibility migration to include change to Study model * fix failing tests: add required birthday to Child instances * add tests for child_in_age_range_for_study_days_difference * add tests for eligibility field, get_eligibility_for_response returns sorted list of eligibility strings
* add eligibility field to Response model/serializer, set value on object creation, add/refactor queries, add helper * add eligibility to the Response fields displayed in admin pages * add eligibility to response columns available for researcher download/display * display eligibility value in details table on individual responses page * alter child birthday field to not allow blank or null * add a default blank value for Study criteria expression, modify response eligibility migration to include change to Study model * fix failing tests: add required birthday to Child instances * add tests for child_in_age_range_for_study_days_difference * add tests for eligibility field, get_eligibility_for_response returns sorted list of eligibility strings
TL;DR
As a researcher, I want to know if the child was eligible for the study at the moment they started it Happily, this is identical to the logic performed to generate eligibility and resulting warnings on the search and study-detail pages. Can this information be injected into the Lookit session info so it's saved and included in the resulting data tables?
Desiderata -
Acceptance criteria:
The text was updated successfully, but these errors were encountered: