Skip to content

Commit

Permalink
RT-1023:(smart-launcher-v2) No encounter in launch context (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
yashpmohod authored Dec 29, 2023
1 parent 492e67f commit 9ce57d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/routes/auth/authorize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ export default class AuthorizeHandler {

private async getFirstEncounterId(): Promise<string | undefined> {
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()
Expand Down

0 comments on commit 9ce57d8

Please sign in to comment.