From 954c1e4c5fb0abd2133452c1a43b85c588a565e9 Mon Sep 17 00:00:00 2001 From: yashmohod Date: Thu, 28 Dec 2023 19:59:58 +0530 Subject: [PATCH] RT-1023:(smart-launcher-v2) No encounter in launch context --- backend/routes/auth/authorize.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/routes/auth/authorize.ts b/backend/routes/auth/authorize.ts index 6d6eb39..fd06c9a 100644 --- a/backend/routes/auth/authorize.ts +++ b/backend/routes/auth/authorize.ts @@ -587,7 +587,7 @@ export default class AuthorizeHandler { private async getFirstEncounterId(): Promise { const fhirServer = getFhirServerBaseUrl(this.request as any); - const url = new URL(`/Encounter/?_count=1&_sort:desc=date`, fhirServer) + const url = new URL(`Encounter/?_count=1&_sort:desc=date`, fhirServer) url.searchParams.set("patient", this.launchOptions.patient.get(0)!) const res = await fetch(url) const txt = await res.text()