Bulk Data Client
    Preparing search index...

    Interface FileDownload

    interface FileDownload {
        attachments: number;
        completed: boolean;
        downloadedBytes: number;
        downloadedChunks: number;
        error: Error | null;
        exportType: "error" | "output" | "deleted";
        name: string;
        resources: number;
        type: string;
        uncompressedBytes: number;
        url: string;
    }
    Index
    attachments: number

    Number of downloaded attachments (for DocumentReferences)

    completed: boolean

    true if the file has been fully downloaded

    downloadedBytes: number

    Number of bytes downloaded

    downloadedChunks: number

    Number of chunks received (downloaded as stream with chunked encoding)

    error: Error | null

    Download processing error (if any)

    exportType: "error" | "output" | "deleted"

    The value shows which part of the manifest this download comes from. Can be:

    • "output" - For exported files
    • "deleted" - The "deleted" bundles
    • "error" - For ndjson files with error operation outcomes
    name: string

    The file display name (typically the URL basename)

    resources: number

    Number of FHIR resources in the file (applicable for FHIR NDJSON)

    type: string

    The FHIR resourceType

    uncompressedBytes: number

    Number of bytes after decompression. If the response is compressed, this will be greater than downloadedBytes

    url: string

    The file URL