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

    Function pacsFile_getText

    • Downloads a PACS file and returns it as a UTF-8 string.

      WARNING: This function converts binary DICOM data to a UTF-8 string, which may corrupt the file if it contains non-text binary data. Use pacsFile_getBlob() instead for DICOM files to preserve data integrity.

      This function is provided for legacy compatibility only.

      Parameters

      • fileId: number

        The numeric ID of the PACS file in ChRIS.

      Returns Promise<Result<string>>

      A Result containing the file content as a string, or an error.