File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -47,10 +47,9 @@ def process_nhs_number(nhs_number: str) -> Optional[str]:
4747 # if patient NHS != id, update patient index of vax events to new number
4848 if patient_details_id != nhs_number and patient_details_id :
4949 logger .info (f"process_nhs_number. Update patient ID from { nhs_number } to { patient_details_id } " )
50- # test_ieds_insert_patient(patient_details_id) # NOSONAR
51- if ieds_check_exist (patient_details_id ):
50+ if ieds_check_exist (nhs_number ):
5251 logger .info ("process_nhs_number. IEDS record found, updating patient ID" )
53- response = ieds_update_patient_id (patient_details_id , nhs_number )
52+ response = ieds_update_patient_id (nhs_number , patient_details_id )
5453 else :
5554 logger .info ("process_nhs_number. No ieds record found for: %s" , nhs_number )
5655 response = {"status" : "success" , "message" : f"No records returned for ID: { nhs_number } " }
You can’t perform that action at this time.
0 commit comments