Environment-specific options
Holds the Storage instance associated with this instance
Stores the URL instance associated with this adapter
Environment-specific options
In browsers we need to be able to (dynamically) check if fhir.js is included in the page. If it is, it should have created a "fhir" variable in the global scope.
ASCII string to Base64
Base64Url to ASCII string
ASCII string or Uint8Array to Base64URL
Base64 to ASCII string
Returns a reference to the AbortController constructor. In browsers, AbortController will always be available as global (native or polyfilled)
Creates and returns adapter-aware SMART api. Not that while the shape of the returned object is well known, the arguments to this function are not. Those who override this method are free to require any environment-specific arguments. For example in node we will need a request, a response and optionally a storage or storage factory function.
Returns a BrowserStorage object which is just a wrapper around sessionStorage
Given the current environment, this method must return the current url as URL instance
Given the current environment, this method must redirect to the given path
Given a relative path, returns an absolute url using the instance base URL
Generated using TypeDoc
Browser Adapter