From 9163579c5f0c7db7ff8517bd7375ee9447e8eee0 Mon Sep 17 00:00:00 2001 From: Josh Nygaard <141273852+JNygaard-Skylight@users.noreply.github.com> Date: Tue, 17 Sep 2024 12:14:24 -0400 Subject: [PATCH] Update Orchestration to Account for Update to Save FHIR Endpoint (#2554) * Add metadata to save fhir data api * More detailed error handling * Add metadata saving to S3 saving * Move metadata to new endpoint * Revert changes to save fhir data route * Update error messages to include Azure * Remove S3, Azure saving for metadata. * Add metadata endpoint to the fhir data save endpoint * Update a couple of tests * Update status code in test * Update save-fhir-data in Orchestration * Add metadata to save fhir data api * More detailed error handling * Add metadata saving to S3 saving * Move metadata to new endpoint * Revert changes to save fhir data route * Update error messages to include Azure * Remove S3, Azure saving for metadata. * Add metadata endpoint to the fhir data save endpoint * Update a couple of tests * Update status code in test * Update save-fhir-data in Orchestration * Revert some changes from old branch --------- Co-authored-by: Josh Nygaard --- .../app/handlers/request_builders/ecr_viewer.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/containers/orchestration/app/handlers/request_builders/ecr_viewer.py b/containers/orchestration/app/handlers/request_builders/ecr_viewer.py index d606845a5e..33014bc92f 100644 --- a/containers/orchestration/app/handlers/request_builders/ecr_viewer.py +++ b/containers/orchestration/app/handlers/request_builders/ecr_viewer.py @@ -32,7 +32,12 @@ def build_save_fhir_data_body( "workflow_params": workflow_params, }, ): - return { + request = { "fhirBundle": input_msg, "saveSource": workflow_params.get("saveSource"), } + + if workflow_params.get("metadata") is not None: + request["metadata"] = workflow_params.get("metadata") + + return request