Mercurial > hg > orthanc-book
view Sphinx/source/plugins/python/autorouting-1.py @ 860:3e8a3a900e9e
Orthanc 1.11.1
| author | Alain Mazy <am@osimis.io> |
|---|---|
| date | Thu, 30 Jun 2022 16:48:08 +0200 |
| parents | a589668768d7 |
| children |
line wrap: on
line source
import orthanc def OnChange(changeType, level, resourceId): if changeType == orthanc.ChangeType.STABLE_STUDY: print('Stable study: %s' % resourceId) orthanc.RestApiPost('/modalities/sample/store', resourceId) orthanc.RegisterOnChangeCallback(OnChange)
