Reload Thumbnail Series

Hi everyone,
I created a mode in the OHIF viewer that creates a new series while being in a study and adds it to the current study in the backend (Orthanc). However, it does not show up in the thumbnails, except I refresh the page.

Is there a way to reload the series without refreshing the entire page?

Any help or guidance in any direction is appreciated.

I believe it works, at least for the DICOM SR we generate.

Please examine what happens when we export DICOM SR, as I’m fairly certain it appears.

You’ll likely need to add the displaySet as well when exporting it.

In my case it doesn’t update the thumbnail, maybe because the series gets added in the backend via a POST request to the Orthanc server?

It gets added to Orthanc with sth. like

const _uploadDicomToOrthanc = async (blob) => {
        try {
            const formData = new FormData();
            formData.append('file', blob, 'example.dcm');

            const orthancResponse = await'http://localhost/pacs/instances', formData, {
            headers: {
                'Content-Type': 'multipart/form-data'

        } catch (error) {
          console.error('Error uploading DICOM file to Orthanc:', error);

Whereas the “blob” is the response of an external server sending the DICOM images.

In this POST request scenario, the viewer doesn’t handle it. You might need to subscribe to an event from your backend, possibly retrieve the SeriesInstanceUID, and then use datasource.retrieve.series.metadata to fetch the necessary information and that forces to re-run the other parts of the viewer