FHIRClient - v3.0.0
    Preparing search index...

    Node Adapter - works with native NodeJS and with Express

    Hierarchy (View Summary)

    Index
    _storage: default | null = null

    Holds the Storage instance associated with this instance

    Environment-specific options

    security: security/server = security

    Security-related methods

    • Encodes a string or Uint8Array to Base64 URL format

      Parameters

      • input: string | Uint8Array<ArrayBufferLike>

        The input string or Uint8Array

      Returns string

      The Base64 URL encoded string

    • 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

    • Given the current environment, this method must return the current url as URL instance. In Node we might be behind a proxy!

      Returns URL

    • Given the current environment, this method must redirect to the given path

      Parameters

      • location: string

        The path to redirect to

      Returns ResponseObject

    • Given a relative path, returns an absolute url using the instance base URL

      Parameters

      • path: string

        The path to convert to absolute

      Returns string

    • This is the static entry point and MUST be provided

      Parameters

      • request: Request

        The hapi request

      • h: ResponseToolkit

        The hapi response toolkit

      • Optionalstorage: default | ((options?: Record<string, any>) => default)

        Custom storage instance or a storage factory function

      Returns SMART