mise API - v0.0.0
    Preparing search index...

    Interface PACSFile

    PACS file item resource object representing a PACS file.

    interface PACSFile {
        auth: Object;
        collection: Object | null;
        contentType: string;
        url: string;
        get data(): Object | null;
        get isEmpty(): boolean;
        _delete(timeout?: number): Promise<any>;
        _getResource(
            linkRelation: string,
            ResourceClass: Object,
            searchParams?: { limit?: number; offset?: number },
            timeout?: number,
        ): Promise<Object>;
        _put(
            data: Object,
            uploadFileObj: Object | null,
            timeout?: number,
        ): Promise<PACSFile>;
        clone(): Resource;
        get(timeout?: number): Promise<PACSFile>;
        getFileBlob(timeout?: number): Promise<Blob>;
        getParentFolder(timeout?: number): Promise<FileBrowserFolder>;
        getPUTParameters(): string[] | null;
    }

    Hierarchy (View Summary)

    Index
    auth: Object
    collection: Object | null
    contentType: string
    url: string
    • get data(): Object | null

      Get the item's data object (REST API descriptors).

      Returns Object | null

    • get isEmpty(): boolean

      Return true if the resource object contains any data.

      Returns boolean

    • Internal helper method to make a DELETE request to this item resource through the REST API.

      Parameters

      • Optionaltimeout: number

        request timeout

      Returns Promise<any>

      • JS Promise
    • Internal method to fetch a related resource from the REST API that is referenced by a link relation within the item object.

      Parameters

      • linkRelation: string
      • ResourceClass: Object
      • OptionalsearchParams: { limit?: number; offset?: number }

        search parameters object which is resource-specific

        • Optionallimit?: number

          page limit

        • Optionaloffset?: number

          page offset

      • Optionaltimeout: number

        request timeout

      Returns Promise<Object>

      • JS Promise, resolves to a ResourceClass object

      throw error if this item resource has not yet been fetched from the REST API

      throw error when the link relation is not found

    • Internal helper method to make a PUT request to this item resource through the REST API.

      Parameters

      • data: Object

        request JSON data object

      • uploadFileObj: Object | null

        custom file object

        • Object
          • fname

            file blob

        • null
      • Optionaltimeout: number

        request timeout

      Returns Promise<PACSFile>

      • JS Promise, resolves to this object
    • Make a deep copy clone of this object resource.

      Returns Resource

      • clone object
    • Fetch this item resource from the REST API.

      Parameters

      • Optionaltimeout: number

        request timeout

      Returns Promise<PACSFile>

      • JS Promise, resolves to this object
    • Fetch the file blob associated to this file item from the REST API.

      Parameters

      • Optionaltimeout: number

        request timeout

      Returns Promise<Blob>

      • JS Promise, resolves to a Blob object
    • Fetch the parent folder of this file from the REST API.

      Parameters

      • Optionaltimeout: number

        request timeout

      Returns Promise<FileBrowserFolder>

      • JS Promise, resolves to a FileBrowserFolder object
    • Get an array of parameter names that can be used as properties of the data object in PUT requests.

      Returns string[] | null

      • array of PUT data property name or null if this list resource's data has not been fetched from the API yet or it doesn't support PUT requests.