@health-samurai/aidbox-client
    Preparing search index...

    Class AidboxClient<TBundle, TOperationOutcome, TUser>

    Create a client to the FHIR server.

    import type { User } from "@health-samurai/aidbox-client";

    const baseUrl = "https://fhir-server.address";
    const client = new AidboxClient(
    baseUrl,
    new BrowserAuthProvider(baseUrl);
    );

    // alternatively, specify different FHIR types:
    import type { Bundle, OperationOutcome } from "hl7-fhir-r5-core";
    const client = new AidboxClient<Bundle, OperationOutcome, User>(
    baseUrl,
    authProvider: new BrowserAuthProvider(baseUrl);
    );

    Main client functions are request for typed interactions, and rawRequest for manual response processing.

    This client also provides a set of convenience methods for accessing FHIR operations, provided below.

    Type Parameters

    Index

    Instance Level Interactions

    Type Level Interactions

    Whole System Interactions

    Compartment Interactions

    Operations

    Aidbox methods

    Client methods

    Constructors

    Properties

    baseUrl: string
    authProvider: AuthProvider