Conversation
|
This branch is working on a ticket in the NHS England VED JIRA Project. Here's a handy link to the ticket: VED-850 |
| patient = self._validate_patient(immunization) | ||
| if "diagnostics" in patient: | ||
| return None, patient, None | ||
| return False, patient, None |
There was a problem hiding this comment.
We should not be looking for 'diagnostics' in patient. This is all legacy code from when we used to interact with PDS. I have removed it from the create journey and will be doing so for the in-flight ticket where we do the full refactoring of the update service.
There was a problem hiding this comment.
Good spot. In fact that means I can remove the 'outcome' element from the method return entirely, and all the tests which check it.
There was a problem hiding this comment.
After discussion, I won't remove the check for 'diagnostics' nor the 'outcome' element yet in this ticket. It should be resolved in 747.
|



Summary
Small piece of code cleaning:
Note for testers: No functionality has changed here. Smoke testing only.
Reviews Required
Review Checklist
ℹ️ This section is to be filled in by the reviewer.