dbdicom.Record.children#
- Record.children(**kwargs) list [source]#
Return all children of the record.
- Parameters:
kwargs – Provide any number of valid DICOM (tag, value) pair as keywords to filter the list.
- Returns:
A list of all children.
- Return type:
See also
parent()
siblings()
series()
studies()
patients()
database()
Example
Find the patients of a given database:
>>> database = db.database_hollywood() >>> patients = database.children() >>> print([p.PatientName for p in patients]) ['James Bond', 'Scarface']
Find all patients with a given name:
>>> patients = database.children(PatientName='James Bond') >>> print([p.PatientName for p in patients]) ['James Bond']
Find the studies that have been performed on a given patient: >>> studies = patients[0].children() >>> print([s.StudyDescription for s in studies]) [‘MRI’, ‘Xray’]