changeset 6556:c3bc970cf169

doc
author Alain Mazy <am@orthanc.team>
date Fri, 09 Jan 2026 12:11:35 +0100
parents a9f425e69b33
children da36804105e3
files OrthancServer/Plugins/Include/orthanc/OrthancCPlugin.h TODO
diffstat 2 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancServer/Plugins/Include/orthanc/OrthancCPlugin.h	Thu Jan 08 17:50:46 2026 +0100
+++ b/OrthancServer/Plugins/Include/orthanc/OrthancCPlugin.h	Fri Jan 09 12:11:35 2026 +0100
@@ -5714,6 +5714,13 @@
    * This function adds one worklist (encoded as a DICOM file) to the
    * set of answers corresponding to some C-Find SCP request against
    * modality worklists.
+   * 
+   * Note that the provided answer is still processed by Orthanc that matches
+   * it again against the query and remove fields that are not requested.
+   * Therefore, the answer that is actually returned might have some parts removed
+   * either because they were not requested or because Orthanc fails to match it with the
+   * query.  E.g: Orthanc is currently not able to match against a ScheduledProcedureStepStartDate
+   * AND a ScheduledProcedureStepStartTime
    *
    * @param context The Orthanc plugin context, as received by OrthancPluginInitialize().
    * @param answers The set of answers.
--- a/TODO	Thu Jan 08 17:50:46 2026 +0100
+++ b/TODO	Fri Jan 09 12:11:35 2026 +0100
@@ -244,7 +244,8 @@
   ScheduledProcedureStartTime & Date).
   We should first filter in SQL by StudyDate only, combine it with StudyTime into a single 
   DateTime string and filter again in C++.
-  https://discourse.orthanc-server.org/t/performin-find-within-orthanc-for-time-frames/4704
+  https://discourse.orthanc-server.org/t/performin-find-within-orthanc-for-time-frames/4704.
+  Related: Add a new variant of OrthancPluginWorklistAddAnswer that does not process the answer.
 * Worklist plugin: support MPPS
   https://github.com/orthanc-server/orthanc-setup-samples/blob/master/python-samples/worklist-with-mpps.py