-
Notifications
You must be signed in to change notification settings - Fork 3
VED-813-Fix NHS-Number-Change #847
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
Conversation
|
This branch is working on a ticket in the NHS England VED JIRA Project. Here's a handy link to the ticket: VED-813 |
| try: | ||
| patient_resource_parsed = json.loads(patient_resource) | ||
| except json.JSONDecodeError: | ||
| logger.warning("Failed to decode patient_resource JSON string") |
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.
Should be error. Means we have somehow persisted bad data to our events DB.
| logger.exception("process_nhs_number: failed to fetch demographic details: %s", e) | ||
| return make_status(str(e), nhs_number, "error") | ||
|
|
||
| logger.debug("Fetched PDS details: %s", pds_patient_resource) |
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.
Are we permitted to log PID? If we enable debug logs, then this will come out.
dlzhry2nhs
left a comment
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.
Looks okay.
c4b261a
|



Summary
Add any other relevant notes or explanations here. Remove this line if you have nothing to add.
Reviews Required
Review Checklist
ℹ️ This section is to be filled in by the reviewer.