Record#

Record is a base class grouping properties that are common to all types of DICOM records (Database, Patient, Study, Series).

Record is an abstract base class, meaning that it is inherited by all key classes but is not intended to be instantiated directly. It exists only to avoid duplicating properties in the individual derived classes.

Properties#

Record.path

Directory of the DICOM database

Record.empty

Check if the record has data.

Record.files

Return a list of all DICOM files saved in the database

Record.label

Return a human-readable label describing the record.

Creating new records#

Record.new_patient

Create a new patient.

Record.new_study

Create a new study.

Record.new_series

Create a new series.

Record.new_sibling

Create a new sibling of the record under the same parent.

Record.new_pibling

Create a new sibling of the parent record (pibling).

Record.new_child

Create a new child of the record.

Copy and move#

Record.remove

Remove a record from the database.

Record.move_to

Move the record to another parent.

Record.copy_to

Return a copy of the record under another parent.

Record.copy

Return a copy of the record under the same parent.

Save and restore#

Record.save

Save any changes made to the record.

Record.restore

Restore the record to the last changed state.

Export to other formats#

Record.export_as_dicom

Export record in DICOM format to an external directory.

Record.export_as_png

Export record in PNG format.

Record.export_as_csv

Export record in CSV format to an external directory.

Record.export_as_nifti

Export record in NIFTI format to an external directory.

Record.export_as_npy

Export record in numpy's NPY format to an external directory.

Messaging#

Record.print

Print a summary of the record and its contents.

Record.set_log

Set a new file for logging.

Record.log

Write an entry in the log file.

Record.message

Print a message to the user.

Record.progress

Print progress message to the terminal..

Record.mute

Prevent the object from sending status updates to the user

Record.unmute

Allow the object from sending status updates to the user