Options
All
  • Public
  • Public/Protected
  • All
Menu

Browser Adapter

Hierarchy

  • default

Implements

Index

Constructors

Properties

_storage: null | Storage = null

Holds the Storage instance associated with this instance

_url: null | URL = null

Stores the URL instance associated with this adapter

Environment-specific options

security: security/browser = security

Accessors

  • get fhir(): any
  • 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.

    Returns any

Methods

  • atob(str: string): string
  • base64urldecode(input: string): string
  • base64urlencode(input: string | Uint8Array): string
  • btoa(str: string): string
  • getAbortController(): { prototype: AbortController }
  • Returns a reference to the AbortController constructor. In browsers, AbortController will always be available as global (native or polyfilled)

    Returns { prototype: AbortController }

    • prototype: AbortController
  • 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 SMART

  • getUrl(): URL
  • redirect(to: string): void
  • relative(path: string): string

Generated using TypeDoc