The base URL of the FHIR server
Generates a progress indicator
The percentage
Given a token response, computes and returns the expiresAt timestamp. Note that this should only be used immediately after an access token is received, otherwise the computed timestamp will be incorrect.
Given a baseUrl
fetches the CapabilityStatement
. Note that this request
is cached by default!
The server base url
Pass true to disable caching
Given a baseUrl
fetches a /.well-known/smart-configuration
statement
from the root of the baseUrl. Note that this request is cached by default!
The server base url
Pass true to disable caching
Returns the byte size with units
The size to format
If true, will divide by 1000 instead of 1024
Simple utility for waiting. Returns a promise that will resolve after the
given number of milliseconds. The timer can be aborted if an AbortSignal
is passed as second argument.
Milliseconds to wait
Pass an AbortSignal
if you want to abort the waiting
Generated using TypeDoc
Given a FHIR server baseURL, looks up it's
.well-known/smart-configuration
and/or it'sCapabilityStatement
(whichever arrives first) and resolves with the token endpoint as defined there.