Hello, while browsing the docs, I discovered there exist an event “OrthancPluginChangeType_CompletedSeries” [1] that may be sent to plugins (the Python plugin in my case).
And I’m wondering how Orthanc can ever determine that a series is completed.
I looked up in the source code and found the method ServerIndex::ComputeExpectedNumberOfInstances(…) but as I understand it only handles 3 limited cases and is not a generic method that would always work.
So my question is: can I rely on this event being sent even for MR, CT or whatever dicom is being received by Orthanc?
If you handle IODs that don’t provide the “DICOM_TAG_IMAGES_IN_ACQUISITION”, “DICOM_TAG_NUMBER_OF_TEMPORAL_POSITIONS”, “DICOM_TAG_NUMBER_OF_SLICES”, “DICOM_TAG_NUMBER_OF_TIME_SLICES”, or “DICOM_TAG_CARDIAC_NUMBER_OF_IMAGES”, Orthanc cannot guess the number of instances in the series.
The “ChangeType_StableSeries” event is how most DICOM/PACS servers work: If no new instance is received during some time (that is known as the “stable age” in Orthanc), the series is considered as complete.