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
Ensure reliable NHS number retrieval from search results
Previously, `nhs_number` within `patient_changeset.search_results` was accessed using symbol keys (e.g., `sr[:nhs_number]`). However, when `search_results` (stored in a `jsonb` column) are deserialized from the database, they become standard Ruby `Hash` objects with string keys, causing symbol access to fail if `with_indifferent_access` was not effectively preserved.
This commit updates the `unique_nhs_numbers` method to consistently use string keys (`sr["nhs_number"]`) for accessing the NHS number.
0 commit comments