dashboard.blueprints.timepoints package¶
Module contents¶
- dashboard.blueprints.timepoints.register_bp(app)¶
Submodules¶
dashboard.blueprints.timepoints.emails module¶
Timepoint blueprint email notifications.
- dashboard.blueprints.timepoints.emails.incidental_finding_email(user, timepoint, comment)¶
Notify admins about an incidental finding reported during QC.
- Parameters:
user (
str
) – The reporting user’s nametimepoint (
str
) – The timepoint with an incidental finding.comment (
str
) – The descriptive comment entered by the user.
dashboard.blueprints.timepoints.forms module¶
- class dashboard.blueprints.timepoints.forms.DataDeletionForm(*args, **kwargs)¶
Bases:
FlaskForm
- database_records = <UnboundField(BooleanField, ('Database Records',), {})>¶
- raw_data = <UnboundField(BooleanField, ('Raw Data',), {})>¶
- class dashboard.blueprints.timepoints.forms.EmptySessionForm(*args, **kwargs)¶
Bases:
FlaskForm
- comment = <UnboundField(TextAreaField, ('Explanation: ',), {'id': 'missing_comment', 'validators': [<wtforms.validators.DataRequired object>], 'render_kw': {'rows': 4, 'cols': 50, 'required': True, 'placeholder': 'Please describe what happened to this session.', 'maxlength': '2048'}})>¶
- class dashboard.blueprints.timepoints.forms.IncidentalFindingsForm(*args, **kwargs)¶
Bases:
FlaskForm
- comment = <UnboundField(TextAreaField, ('Description: ',), {'id': 'finding-description', 'validators': [<wtforms.validators.DataRequired object>], 'render_kw': {'rows': 4, 'cols': 65, 'required': True, 'placeholder': 'Please describe the finding'}})>¶
- submit = <UnboundField(SubmitField, ('Submit',), {})>¶
- class dashboard.blueprints.timepoints.forms.NewIssueForm(*args, **kwargs)¶
Bases:
FlaskForm
- body = <UnboundField(TextAreaField, ('Body: ',), {'validators': [<wtforms.validators.DataRequired object>], 'render_kw': {'rows': 4, 'cols': 65, 'required': True, 'placeholder': 'Enter issue here.'}})>¶
- submit = <UnboundField(SubmitField, ('Create Issue',), {})>¶
- title = <UnboundField(StringField, ('Title: ',), {'validators': [<wtforms.validators.DataRequired object>], 'render_kw': {'required': True}})>¶
- class dashboard.blueprints.timepoints.forms.ScanChecklistForm(*args, **kwargs)¶
Bases:
FlaskForm
- comment = <UnboundField(TextAreaField, ('Comment:',), {'id': 'scan-comment', 'validators': [<wtforms.validators.DataRequired object>], 'render_kw': {'placeholder': 'Add description', 'rows': 12, 'required': True, 'maxlength': '1028'}})>¶
- submit = <UnboundField(SubmitField, ('Submit',), {})>¶
- class dashboard.blueprints.timepoints.forms.TimepointCommentsForm(*args, **kwargs)¶
Bases:
FlaskForm
- comment = <UnboundField(TextAreaField, (), {'validators': [<wtforms.validators.DataRequired object>], 'render_kw': {'rows': 5, 'required': True, 'placeholder': 'Add new comment'}})>¶
- submit = <UnboundField(SubmitField, ('Submit',), {})>¶
dashboard.blueprints.timepoints.utils module¶
- dashboard.blueprints.timepoints.utils.clean_issue_title(title, timepoint)¶
- dashboard.blueprints.timepoints.utils.get_issues_repo(token)¶
- dashboard.blueprints.timepoints.utils.handle_issue(token, issue_form, study_id, timepoint)¶
- dashboard.blueprints.timepoints.utils.make_issue(token, title, body, assign=None)¶
- dashboard.blueprints.timepoints.utils.search_issues(token, timepoint)¶
dashboard.blueprints.timepoints.views module¶
- dashboard.blueprints.timepoints.views.add_comment(study_id, timepoint_id, comment_id=None)¶
- dashboard.blueprints.timepoints.views.create_issue(study_id, timepoint_id)¶
Posts a new issue to Github
- dashboard.blueprints.timepoints.views.delete_comment(study_id, timepoint_id, comment_id)¶
- dashboard.blueprints.timepoints.views.delete_scan(study_id, timepoint_id, scan_id)¶
- dashboard.blueprints.timepoints.views.delete_session(study_id, timepoint_id, session_num)¶
- dashboard.blueprints.timepoints.views.delete_timepoint(study_id, timepoint_id)¶
- dashboard.blueprints.timepoints.views.dismiss_missing(study_id, timepoint_id, session_num)¶
Dismiss a session’s ‘missing scans’ error message
- dashboard.blueprints.timepoints.views.dismiss_redcap(study_id, timepoint_id, session_num)¶
Dismiss a session’s ‘missing redcap’ error message.
- dashboard.blueprints.timepoints.views.flag_finding(study_id, timepoint_id)¶
- dashboard.blueprints.timepoints.views.qc_files(study_id, timepoint_id, item_path)¶
- dashboard.blueprints.timepoints.views.review_scan()¶
Add a QC review from an AJAX request.
- dashboard.blueprints.timepoints.views.sign_off(study_id, timepoint_id, session_num)¶
- dashboard.blueprints.timepoints.views.tech_notes(study_id, timepoint_id, notes_path)¶
- dashboard.blueprints.timepoints.views.timepoint(study_id, timepoint_id)¶
Default view for a single timepoint.