This is an example server to handle new events on Dicoogle, considering index-push-event Plugin.
Run with poetry with the following instructions:
poetry install
poetry shell
python -m flask --app src/main run -p 9005 --debug
This is an example of configurations for Plugins/settings/z-index-push-event.xml
<configuration>
<callback>http://127.0.0.1:9005/notify_post</callback>
<timeout>5</timeout>
<modalities>
<modality>
<name>MR</name>
<level>study</level>
</modality>
</modalities>
</configuration>
Send a few images, for instance using dicom-rs, to the Dicoogle. In this example, make sure you send MR images.
dicom-storescu DICOOGLE-STORAGE@localhost:6666 I_00002
After a few seconds, the server should receive the event and print the message. You can also check the logs on browser: http://127.0.0.1:9005/