dbdicom.Record.new_child#
- Record.new_child(**kwargs)[source]#
Create a new child of the record.
- Parameters:
kwargs – Any valid DICOM (tag, value) pair to assign to the new sibling.
Example
Consider an empty study:
>>> fMRI = db.study(StudyDescription='fMRI', StudyDate='20230203') >>> fMRI.print() ---------- STUDY --------------- Study fMRI [20230203] --------------------------------
Create two new series in the study:
>>> rstate = fMRI.new_child(SeriesDescription='Resting state') >>> ftap = fMRI.new_child(SeriesDescription='Finger tap') >>> fMRI.print() ---------- STUDY --------------- Study fMRI [20230203] Series 001 [Resting state] Nr of instances: 0 Series 002 [Finger tap] Nr of instances: 0 --------------------------------
Note the same result could also be obtained by calling
new_series()
on the study.