You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generate consent status from submitted at time (#3563)
This changes how we determine the most recent consent response from the
`created_at` to the `submitted_at`. In most cases these values will be
the same, but it's possible for a consent to be matched with a patient
manually which can occur some period of time after the consent was
submitted.
In particular, it's possible to manually match multiple consents in a
different order to when they were submitted, which can lead to bugs
where the patient is given the wrong consent status.
This has been implemented by storing a `submitted_at` column on consent
responses, which has been done to ensure we don't hit performance issues
when filtering or ordering consents where we need to fetch the related
consent form.
This is a version of
#3558 which
will be merged in to `main` to make sure it's in the 2.2.2 release.
[Jira Issue](https://nhsd-jira.digital.nhs.uk/browse/MAV-1196)
0 commit comments