Skip to content

Commit 0644072

Browse files
committed
VED-755: Resolve lint issues
1 parent 7df9358 commit 0644072

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lambdas/id_sync/src/pds_details.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ def pds_get_patient_id(nhs_number: str) -> str:
5555
logger.exception(msg)
5656
raise IdSyncException(message=msg, exception=e)
5757

58+
5859
def normalize_name_from_pds(pds_get_patient_details: dict) -> str | None:
5960
"""Return a normalized full name (given + family) from PDS patient details or None."""
6061
try:

lambdas/id_sync/src/record_processor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ def process_nhs_number(nhs_number: str) -> Dict[str, Any]:
105105
response["nhs_number"] = nhs_number
106106
return response
107107

108+
108109
def extract_normalized_name_from_patient(patient: dict) -> str | None:
109110
"""Return a normalized 'given family' name string from a Patient resource or None."""
110111
if not patient:
@@ -133,10 +134,9 @@ def demographics_match(pds_details: dict, ieds_item: dict) -> bool:
133134
If required fields are missing or unparsable on the IEDS side the function returns False.
134135
"""
135136
try:
136-
137137
def normalize_strings(item: Any) -> str | None:
138138
return str(item).strip().lower() if item else None
139-
139+
140140
# Retrieve patient resource from PDS
141141
pds_name = normalize_strings(normalize_name_from_pds(pds_details))
142142
pds_gender = normalize_strings(pds_details.get("gender"))
@@ -169,4 +169,4 @@ def normalize_strings(item: Any) -> str | None:
169169
return True
170170
except Exception:
171171
logger.exception("demographics_match: comparison failed with exception")
172-
return False
172+
return False

lambdas/id_sync/tests/test_ieds_db_operations.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,4 +672,3 @@ def test_ieds_check_exist_limit_parameter(self):
672672

673673
# Assert - Verify the limit parameter is correctly passed
674674
self.mock_get_items_from_patient_id.assert_called_once_with(patient_id, 1)
675-

0 commit comments

Comments
 (0)