Constructors

Methods

  • Generic GET request for custom endpoints

    Type Parameters

    • T

    Parameters

    • url: string
    • Optionalparams: Record<string, any>

    Returns Promise<T>

  • Retrieve the provenance of a resource

    Parameters

    • resource_type: string
    • resource_id: string

    Returns Promise<any[]>

  • Execute a custom operation

    Parameters

    • resource_type: string
    • operation_name: string
    • params: any

    Returns Promise<any>

  • Patch a resource using JSON Patch

    Type Parameters

    • T

    Parameters

    • resource_type: string
    • id: string
    • patch_data: any

    Returns Promise<T>

  • Refresh OAuth2 access token

    Parameters

    • refresh_token: string
    • client_id: string

    Returns Promise<void>

  • Search for resources with query parameters

    Type Parameters

    • T

    Parameters

    • resource_type: string
    • params: Record<string, string | number>

    Returns Promise<T[]>

  • Search care plans by patient and category

    Parameters

    • patient_id: string
    • category: string

    Returns Promise<any[]>

  • Search encounters by patient and date

    Parameters

    • patient_id: string
    • date: string

    Returns Promise<any[]>

  • Search observations by patient ID and code

    Parameters

    • patient_id: string
    • code: string

    Returns Promise<any[]>

  • Search with inclusion of related resources

    Type Parameters

    • T

    Parameters

    • resource_type: string
    • params: Record<string, string | number>
    • include: string

    Returns Promise<T[]>

  • Search resources with pagination

    Type Parameters

    • T

    Parameters

    • resource_type: string
    • params: Record<string, string | number>
    • Optionalpage_url: string

    Returns Promise<{
        data: T[];
        next_page_url?: string;
    }>

  • Update an existing resource by ID

    Type Parameters

    • T

    Parameters

    • resource_type: string
    • id: string
    • resource: T

    Returns Promise<T>

  • Validate a resource against a profile

    Type Parameters

    • T

    Parameters

    • resource_type: string
    • resource: T

    Returns Promise<any>