-
Notifications
You must be signed in to change notification settings - Fork 2
Fix: [AEA-6446] - Bug fix single patient return not loading prescription findings #1975
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
base: main
Are you sure you want to change the base?
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -152,9 +152,12 @@ export default function SearchResultsPage() { | |
| if (payload.length === 1) { | ||
| const relevantParams = | ||
| navigationContext.getRelevantSearchParameters("basicDetails") | ||
| // Set the search type before attempting search again | ||
| // As we'll now be using the nhs number search | ||
| searchContext.setAllSearchParameters({ | ||
| ...relevantParams, | ||
| nhsNumber: payload[0].nhsNumber | ||
| nhsNumber: payload[0].nhsNumber, | ||
| searchType: "nhs" | ||
| }) | ||
|
Comment on lines
152
to
161
|
||
| navigate(FRONTEND_PATHS.PRESCRIPTION_LIST_CURRENT) | ||
| return | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This log line includes
originalSearchParameters, which can contain patient identifiers (e.g. NHS number, name, postcode). Logging these atinfolevel risks leaking PII into browser logs and creates noisy telemetry sincegetRelevantSearchParametersis called frequently. Consider removing the parameters from the log (or redacting sensitive fields) and/or downgrading todebug/trace.