Skip to content
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

[Quest] Update Extraction triggering to only happen for QuestionnaireResponses with the status == Completed #1700

Closed
5 of 6 tasks
dubdabasoduba opened this issue Sep 28, 2022 · 0 comments · Fixed by #1831
Closed
5 of 6 tasks
Assignees
Labels

Comments

@dubdabasoduba
Copy link
Member

dubdabasoduba commented Sep 28, 2022

Enhancement context

  • We currently, don't check the status of a QuestionnaireResponse before we trigger extraction of any kind.
  • We should only trigger extraction of schedules or to different resources when the Questionnaire is completely filled and the QuestionnaireResponse status is marked as completed.

Implementation

  • Add the complete status on the QuestionnaireResponse when the SAVE is clicked on the questionnaire. This status should only be added when the QR is not marked as draft.
  • Attach the QR subject before the extraction bit. This should be added immediately after the QR is created and not during the extraction period.
  • Check the QuestionnaireResponse status before passing it through the extraction method.
    • The QuestionnaireResponse status should be set to Completed for the extraction to be triggered.
  • If the QuestionnaireResponse status is not completed we save the resource as is to the resources table on SQLite.

Acceptance Criteria

  • Extraction of any kind should only happen when the QuestionnaireResponse status is set to Completed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants