pydicom.fileset.FileInstance¶
-
class
pydicom.fileset.
FileInstance
(node: pydicom.fileset.RecordNode)[source]¶ Representation of a File in the File-set.
-
node
¶ The leaf record that references this instance.
-
__init__
(node: pydicom.fileset.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
FileID
¶ Return the File ID of the referenced instance.
-
property
SOPClassUID
¶ Return the SOP Class UID of the referenced instance.
-
property
SOPInstanceUID
¶ Return the SOP Instance UID of the referenced instance.
-
property
TransferSyntaxUID
¶ Return the Transfer Syntax UID of the referenced instance.
-
property
for_addition
¶ Return
True
if the instance has been staged for addition to the File-set.
-
property
for_moving
¶ Return
True
if the instance will be moved to a new location within the File-set.
-
property
for_removal
¶ Return
True
if the instance has been staged for removal from the File-set.
-
property
is_private
¶ Return
True
if the instance is privately defined.
-
property
is_staged
¶ Return
True
if the instance is staged for moving, addition or removal
-
load
() → pydicom.dataset.Dataset[source]¶ Return the referenced instance as a
Dataset
.
-