view Sphinx/source/plugins/python/autorouting-2.py @ 966:02121f3c7e65

note about the Accept header in WSI plugin
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 12 Jul 2023 16:24:56 +0200
parents a589668768d7
children 44700cfa7656
line wrap: on
line source

import orthanc

def OnChange(changeType, level, resourceId):
    if changeType == orthanc.ChangeType.STABLE_STUDY:
        print('Stable study: %s' % resourceId)
        orthanc.RestApiPostAfterPlugins('/dicom-web/servers/sample/store', resourceId)

orthanc.RegisterOnChangeCallback(OnChange)