pydicom.fileset.FileInstance¶
- class pydicom.fileset.FileInstance(node: RecordNode)[source]¶
Representation of a File in the File-set.
- node¶
The leaf record that references this instance.
- __init__(node: RecordNode) None [source]¶
Create a new FileInstance.
- Parameters:
node (pydicom.fileset.RecordNode) – The record that references this instance.
Methods
__init__
(node)Create a new FileInstance.
load
()Return the referenced instance as a
Dataset
.Attributes
Return the File ID of the referenced instance.
Return the SOP Class UID of the referenced instance.
Return the SOP Instance UID of the referenced instance.
Return the Transfer Syntax UID of the referenced instance.
Return the
FileSet
this instance belongs to.Return
True
if the instance has been staged for addition to the File-set.Return
True
if the instance will be moved to a new location within the File-set.Return
True
if the instance has been staged for removal from the File-set.Return
True
if the instance is privately defined.Return
True
if the instance is staged for moving, addition or removalReturn the path to the corresponding instance as
str
.- property for_addition: bool¶
Return
True
if the instance has been staged for addition to the File-set.
- property for_moving: bool¶
Return
True
if the instance will be moved to a new location within the File-set.