From 96dcd1da10eb1047aef4b7eb32e0a18febd6920c Mon Sep 17 00:00:00 2001 From: Kathurima Kimathi Date: Tue, 16 Apr 2024 16:33:08 +0300 Subject: [PATCH] chore: use signed url when creating FHIR media resource Signed-off-by: Kathurima Kimathi --- pkg/clinical/usecases/clinical/media.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/clinical/usecases/clinical/media.go b/pkg/clinical/usecases/clinical/media.go index 9616805..79a22f9 100644 --- a/pkg/clinical/usecases/clinical/media.go +++ b/pkg/clinical/usecases/clinical/media.go @@ -69,7 +69,7 @@ func (c *UseCasesClinicalImpl) UploadMedia(ctx context.Context, encounterID stri }, Content: &domain.FHIRAttachmentInput{ ContentType: (*scalarutils.Code)(&mediaUploadOutput.ContentType), - URL: (*scalarutils.URL)(&mediaUploadOutput.MediaLink), + URL: (*scalarutils.URL)(&mediaUploadOutput.SignedURL), Title: &mediaUploadOutput.Name, }, Issued: &now,