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

Sanitise admission_date based on consultation suggestion #6669

Closed
2 tasks
rithviknishad opened this issue Nov 20, 2023 · 0 comments · Fixed by #6719
Closed
2 tasks

Sanitise admission_date based on consultation suggestion #6669

rithviknishad opened this issue Nov 20, 2023 · 0 comments · Fixed by #6719

Comments

@rithviknishad
Copy link
Member

Describe the bug
Currently, we are capturing admission_date only for "domiciliary care" and "admission" decision after consultations. However, since we are allowed to edit the "Decision after Consultation" the previously entered admission_date is not removed.

To Reproduce
Steps to reproduce the behavior:

  1. Go to a "admission" consultation
  2. Edit the decision after consultation to anything other than admission / domicilary care.
  3. Submit and see the response of request, admission_date is not cleared.

Tasks

  • Set admission_date to null for when the field is hidden.
  • Custom migration to sanitise existing records in the backend.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants