Skip to content

Commit 770e712

Browse files
committed
Fix bundle link in search
1 parent e503efb commit 770e712

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

backend/src/fhir_service.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,10 @@ def search_immunizations(
382382

383383
# Create the bundle
384384
fhir_bundle = FhirBundle(resourceType="Bundle", type="searchset", entry=entries)
385-
fhir_bundle.link = [BundleLink(relation="self", url=self.create_url_for_bundle_link(params, vaccine_types))]
385+
fhir_bundle.link = [BundleLink(
386+
relation="self",
387+
url=self.create_url_for_bundle_link(params, permitted_vacc_types)
388+
)]
386389
supplier_requested_unauthorised_vaccs = len(vaccine_types) != len(permitted_vacc_types)
387390

388391
return fhir_bundle, supplier_requested_unauthorised_vaccs

0 commit comments

Comments
 (0)