Skip to content

Commit

Permalink
fix(fhir): Resolved issue with GCP not using private URLs when return…
Browse files Browse the repository at this point in the history
…ing paging URLs
  • Loading branch information
b32147 committed Jul 11, 2024
1 parent 6028ad3 commit 6a02233
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ppmutils/fhir.py
Original file line number Diff line number Diff line change
Expand Up @@ -2779,6 +2779,12 @@ def _query_bundle(resource_type: str, query: dict[str, Any] = None) -> Bundle:
if link["relation"] == "next":
url = link["url"]

# Swap domain if necessary
if furl(url).host != furl(PPM.fhir_url()).host:

# Set it
url = furl(url).set(host=furl(PPM.fhir_url().host)).url

return Bundle(total_bundle)

@staticmethod
Expand Down

0 comments on commit 6a02233

Please sign in to comment.