PACS Server IntelePACS 4-2-1-P394 – Medical Connections – Inaccurate Image Counts

Hi,

When quering pacs at the Study Level, it is possible to get the incorrect ImageCounts, due to bugs in the software of IntelePACS. I think it is due to studies with mixed modalities.

I have written a library to alleviate this issue for .Net, where the imageCounts can be correctly retrieved at the Series level.

We need to query at the SeriesLevel and just parse an empty string for the studyUId (To force it)

https://gist.github.com/Romiko/4dbba2d5ea37a99b368b


private void SetQueryResultsSeries()
        {
            var seriesCount = Data.Count;
            if (seriesCount > 0)
            {

                for (var i = 0; i < seriesCount; i++)
                {
                    var imagesInSeriesCount = Data[i][Keyword.NumberOfSeriesRelatedInstances];
                    if (imagesInSeriesCount.ExistsWithValue)
                        ImageCount += int.Parse(imagesInSeriesCount.Value.ToString());
                }
                SetIntrinsicProperties();
            }
            else
            {
                ImageCount = 0;
            }
        }

Then to use my lirbary, we just do this:

var query = new DicomQueryManager("AE_Romiko", "MYMasterPacsServer", "5000", "MyAccessionNumber","").BuildMasterSeriesLevel();
            //Notice the empty string above to force studyLevel enumaration so I can get the actual series collections.
            query.Find();
            var imageCount = query.ImageCount

https://gist.github.com/Romiko/4dbba2d5ea37a99b368b

Advertisement

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s