DIMSE Messages

In this module you can find classes that implements DIMSE-C and DIMSE-N messages as they are described in PS3.7 Sections 9 (DIMSE-C) and 10 (DIMSE-N).

Note

Please note, that in this version of the library message classes does not provide any form of validation for required and conditional fields. If your service class requires such validation you are responsible for implementing one. Service classes implementations provided in Service SOP Classes do not expose messages to the user (aside from C-MOVE SCU, but it only yields received message). With that said if you are using services from this library you should not worry about any kind of message validation.

netdicom2.dimsemessages.dimse_property(tag)

Creates property for DIMSE message using specified attribute tag

Parameters:tag – tuple with group and element numbers
Returns:property that gets/sets value in command dataset
netdicom2.dimsemessages.status_mixin(dimse_class)

Helper decorator that defines common status property in provided DIMSE message class.

This property is usually found in response messages.

Parameters:dimse_class – DIMSE message class
Returns:DIMSE message class with defined status property
netdicom2.dimsemessages.priority_mixin(dimse_class)

Helper decorator that defines common priority property in provided DIMSE message class.

This property is usually found in request messages

Parameters:dimse_class – DIMSE message class
Returns:DIMSE message class with defined priority property