Splitting and Merging Studies

A study instance uid is what we use in Zed Link to determine whether a study is unique. This can be found by clicking on a study and going to More Actions > Details

The accession numbers of merged studies must be the same before merging

We have a tool called 'StudyUIDUpdater' which can be downloaded.

As the tool name suggests, it updates the study instance uid. If a study needs to be split, you would only run it against the series that needs to be on it's own. Similarly, if you need to merge studies, you will need to run it against multiple studies so they all get a common study instance uid.

Merge studies

To merge multiple studies, copy the study to the 'Images' folder in the tool. To find where the image files are stored, you can select a study and go to More Actions > Details > Storage Details.

If the study is not stored on a local drive and on Blobs/ECS, you will need to do a study export (More Actions > Export).

Place all files into the root of the images folder. If they were acquired from a study export, ensure all file names are different. Ensure files have a dcm file extension. If not you can run below command in command prompt to batch add an extension.

ren *.* *.dcm

Once the image files are ready, go back one folder to the StudyUIDUpdater folder. Run the following command in command prompt

StudyUIDUpdater.exe .\images

Once complete, the files are ready to be imported into Zed Link.. To do this, copy the files into the import folder, typically located under the FS directory, ie C:\Zedlink\AgedCareImaging\FS\Incoming. To find where the import folder is, you can also run the following SQL query against the AgentDB:

SELECT * FROM AppSettings WHERE Name = 'DicomImportFolder'

Once files are copied into this folder, they will be picked up and stored in Zed Link. Search for the study and confirm that it looks correct.

  

Split Studies

To split a study, you will need to find out which series needs to be split out to its own study. If the client points out which 'frames' in the viewer, you can use this to find the series number and then correlate it with the number in series details to get the series instance uid.

From the viewer in the top right corner of a frame, look for the 'Se' number.

We are interested in the number before the slash. This is the series number. The number after the slash means how many series there are in the study.

Back on the studies screen, if we select the study and then go to More Actions > Details > Series Details, you will see the screen below. Notice the Series ID column as that is the number that correlates with the one found in the viewer. You will need to note down the Series Instance UID for the next steps.

Images will need to be copied into the StudyUIDUpdater images folder. Depending on where the images are stored (local storage or blobs/ECS), this will determine which path you will take.

Local storage

In the Storage Details tab, browse to that folder. The folders that appear are series folders and you can copy them into the StudyUIDUpdater images folder. Make sure the images are in the root of the images folder and not in their own sub folders. Also ensure that all files have a dcm file extension. If they don't have a file extension, you can run below command line to batch add them.

Place all files into the root of the images folder. If they were acquired from a study export, ensure all file names are different. Ensure files have a dcm file extension. If not you can run below command in command prompt to batch add an extension.

ren *.* *.dcm

Once the image files are ready, go back one folder to the StudyUIDUpdater folder. Run the following command in command prompt

StudyUIDUpdater.exe .\images

Once complete, the files are ready to be imported into Zed Link.. To do this, copy the files into the import folder, typically located under the FS directory, ie C:\Zedlink\AgedCareImaging\FS\Incoming. To find where the import folder is, you can also run the following SQL query against the AgentDB:

SELECT * FROM AppSettings WHERE Name = 'DicomImportFolder'

Once files are copied into this folder, they will be picked up and stored in Zed Link. Search for the study and confirm that it looks correct.

If all good, you will need to go back to the original study and delete the unwanted series.

Blob/ECS storage

As you cannot browse to folders stored in blobs or ECS, you will need to do a study export. Unfortunately with a study export, files are renamed and stored in a single directory which makes it impossible to identify the series. The approach here will be to update the study instance uid for the entire study, import it into Zed Link and then delete the series that didn't need to be split out. After this step, you will need to go back to the original study and delete the series that need to be split out.

Place all files into the root of the images folder. If they were acquired from a study export, ensure all file names are different. Ensure files have a dcm file extension. If not you can run below command in command prompt to batch add an extension.

ren *.* *.dcm

Once the image files are ready, go back one folder to the StudyUIDUpdater folder. Run the following command in command prompt

StudyUIDUpdater.exe .\images

Once complete, the files are ready to be imported into Zed Link.. To do this, copy the files into the import folder, typically located under the FS directory, ie C:\Zedlink\AgedCareImaging\FS\Incoming. To find where the import folder is, you can also run the following SQL query against the AgentDB:

SELECT * FROM AppSettings WHERE Name = 'DicomImportFolder'

Once files are copied into this folder, they will be picked up and stored in Zed Link. Search for the study and confirm that it looks correct.

If all good, you will need to clean up the series in both the new and original studies.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.