Skip to content

Commit 1873ab3

Browse files
committed
review5
1 parent 57abee9 commit 1873ab3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

backend/src/fhir_service.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
def get_service_url(service_env: str = None, service_base_path: str = None
3333
) -> str:
3434
service_env: str = service_env if service_env is not None else os.getenv("IMMUNIZATION_ENV", "")
35-
service_base_path: str = os.getenv("IMMUNIZATION_BASE_PATH")
36-
35+
base_path: str = service_base_path or os.getenv("IMMUNIZATION_BASE_PATH")
36+
3737
non_prod = ["internal-dev", "int", "sandbox"]
3838
if service_env in non_prod:
3939
subdomain = f"{service_env}."
@@ -42,7 +42,7 @@ def get_service_url(service_env: str = None, service_base_path: str = None
4242
else:
4343
subdomain = "internal-dev."
4444

45-
return f"https://{subdomain}api.service.nhs.uk/{service_base_path}"
45+
return f"https://{subdomain}api.service.nhs.uk/{base_path}"
4646

4747

4848
class UpdateOutcome(Enum):

0 commit comments

Comments
 (0)