Mercurial > hg > orthanc-python
diff CodeAnalysis/CustomFunctions.json @ 213:f8dc8dd2da76
documented orthanc.RegisterIncomingCStoreInstanceFilter() and orthanc.RegisterReceivedInstanceCallback()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 03 Jul 2024 14:56:51 +0200 |
parents | 2db6c1f6417f |
children | d74ed3e6423e |
line wrap: on
line diff
--- a/CodeAnalysis/CustomFunctions.json Wed Jul 03 14:39:25 2024 +0200 +++ b/CodeAnalysis/CustomFunctions.json Wed Jul 03 14:56:51 2024 +0200 @@ -299,5 +299,49 @@ } ], "return_sdk_type" : "void" + }, + + { + "comment" : "New in release 4.0", + "short_name" : "RegisterIncomingCStoreInstanceFilter", + "implementation" : "RegisterIncomingCStoreInstanceFilter", + "documentation" : { + "description" : [ "Register a callback to filter incoming DICOM instances received by Orthanc through C-STORE." ], + "args" : { + "callback" : "The callback function." + } + }, + "args" : [ + { + "sdk_name" : "callback", + "sdk_type" : "Callable", + "callable_type" : "IncomingCStoreInstanceFilter", + "callable_protocol_args" : "received_dicom: DicomInstance", + "callable_protocol_return" : "int" + } + ], + "return_sdk_type" : "void" + }, + + { + "comment" : "New in release 4.0", + "short_name" : "RegisterReceivedInstanceCallback", + "implementation" : "RegisterReceivedInstanceCallback", + "documentation" : { + "description" : [ "Register a callback to keep/discard/modify a DICOM instance received by Orthanc from any source (C-STORE or REST API)." ], + "args" : { + "callback" : "The callback function." + } + }, + "args" : [ + { + "sdk_name" : "callback", + "sdk_type" : "Callable", + "callable_type" : "ReceivedInstanceCallback", + "callable_protocol_args" : "received_dicom: bytes, origin: InstanceOrigin", + "callable_protocol_return" : "tuple(ReceivedInstanceAction, bytes)" + } + ], + "return_sdk_type" : "void" } ]