Skip to content

Commit 9b9f8d5

Browse files
committed
VED-740: review2
1 parent 9bf9cc7 commit 9b9f8d5

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

backend/src/fhir_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
def get_service_url(service_env: str = None, service_base_path: str = None
3434
) -> str:
3535
service_env: str = service_env if service_env is not None else os.getenv("IMMUNIZATION_ENV", "")
36-
service_base_path: str = service_base_path if service_base_path else os.getenv("IMMUNIZATION_BASE_PATH")
36+
service_base_path: str = os.getenv("IMMUNIZATION_BASE_PATH")
3737

3838
non_prod = ["internal-dev", "int", "sandbox"]
3939
if service_env in non_prod:

backend/tests/test_fhir_service.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1109,10 +1109,6 @@ def test_patient_contains_fullUrl(self):
11091109
"""Patient must have a fullUrl consisting of its id.
11101110
See http://hl7.org/fhir/R4B/bundle-definitions.html#Bundle.entry.fullUrl.
11111111
Tested because fhir.resources validation doesn't check this as mandatory."""
1112-
1113-
print(f"IMMUNIZATION_ENV: {os.environ.get('IMMUNIZATION_ENV')}")
1114-
print(f"IMMUNIZATION_BASE_PATH: {os.environ.get('IMMUNIZATION_BASE_PATH')}")
1115-
11161112
imms_ids = ["imms-1", "imms-2"]
11171113
imms_list = [create_covid_19_immunization_dict(imms_id) for imms_id in imms_ids]
11181114
self.imms_repo.find_immunizations.return_value = imms_list

terraform/endpoints.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ locals {
2424
imms_lambda_env_vars = {
2525
"DYNAMODB_TABLE_NAME" = local.imms_table_name,
2626
"IMMUNIZATION_ENV" = local.resource_scope,
27-
"IMMUNIZATION_BASE_PATH" = strcontains(var.sub_environment, "pr-") ? "immunisation-fhir-api/FHIR/R4-${var.sub_environment}" : "immunisation-fhir-api"
27+
"IMMUNIZATION_BASE_PATH" = strcontains(var.sub_environment, "pr-") ? "immunisation-fhir-api/FHIR/R4-${var.sub_environment}" : "immunisation-fhir-api/FHIR/R4"
2828
# except for prod and ref, any other env uses PDS int environment
2929
"PDS_ENV" = var.pds_environment
3030
"PDS_CHECK_ENABLED" = tostring(var.pds_check_enabled)

0 commit comments

Comments
 (0)