pynetdicom.events.Event

class pynetdicom.events.Event(assoc, event, attrs=None)[source][source]

Representation of an event.

assoc

The association in which the event occurred.

Type

association.Association

timestamp

The date/time the event was created. Will be slightly before or after the actual event that this object represents.

Type

datetime.datetime

__init__(assoc, event, attrs=None)[source][source]

Create a new Event.

Parameters
  • assoc (association.Association) – The association in which the event occurred.

  • event (events.NotificationEvent or events.InterventionEvent) – The representation of the event that occurred.

  • attrs (dict, optional) – The {attribute : value} pairs to use to set the Event’s attributes.

Methods

__init__(assoc, event[, attrs])

Create a new Event.

Attributes

action_information

Return an N-ACTION request's Action Information as a pydicom Dataset.

attribute_identifiers

Return an N-GET request's Attribute Identifier List as a list of pydicom Tags.

attribute_list

Return an N-CREATE request's Attribute List as a pydicom Dataset.

dataset

Return a C-STORE request's Data Set as a pydicom Dataset.

description

Return a description of the event as a str.

event_information

Return an N-EVENT-REPORT request's Event Information as a pydicom Dataset.

file_meta

Return a pydicom Dataset with the File Meta Information for a C-STORE request's Data Set.

identifier

Return a C-FIND, C-GET or C-MOVE request's Identifier as a pydicom Dataset.

is_cancelled

Return True if a C-CANCEL request has been received.

modification_list

Return an N-SET request's Modification List as a pydicom Dataset.

name

Return the name of the event as a str.