Skip to content

Commit d44a74b

Browse files
committed
[NDR-423] Search fix
1 parent 6203f60 commit d44a74b

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

lambdas/tests/e2e/api/fhir/test_search_document_fhir_api_success.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
from enums.document_retention import DocumentRetentionDays
66
from tests.e2e.api.fhir.conftest import (
7-
PDM_SNOMED,
87
TEST_NHS_NUMBER,
98
UNKNOWN_TEST_NHS_NUMBER,
109
create_and_store_pdm_record,
@@ -51,11 +50,7 @@ def test_search_document_reference_for_valid_patient_details(test_data):
5150

5251
# Find the entry with the matching record_id
5352
matching_entry = next(
54-
(
55-
e
56-
for e in entries
57-
if e["resource"].get("id") == f"{PDM_SNOMED}~{expected_record_id}"
58-
),
53+
(e for e in entries if e["resource"].get("id") == f"{expected_record_id}"),
5954
None,
6055
)
6156
assert matching_entry
@@ -123,8 +118,8 @@ def test_search_document_reference_filters_by_custodian(test_data):
123118

124119
# Only records with custodian A11111 should be returned
125120
expected_ids = {
126-
f"{PDM_SNOMED}~{rec1['id']}",
127-
f"{PDM_SNOMED}~{rec2['id']}",
121+
f"{rec1['id']}",
122+
f"{rec2['id']}",
128123
}
129124

130125
unexpected_id = f"{rec3['id']}"

0 commit comments

Comments
 (0)