dbdicom.Record.print#
- Record.print()[source]#
Print a summary of the record and its contents.
See also
Example
Print a summary of a database:
>>> database = db.database_hollywood() >>> database.print() ---------- DATABASE -------------- Location: In memory Patient James Bond Study MRI [19821201] Series 001 [Localizer] Nr of instances: 0 Series 002 [T2w] Nr of instances: 0 Study Xray [19821205] Series 001 [Chest] Nr of instances: 0 Series 002 [Head] Nr of instances: 0 Patient Scarface Study MRI [19850105] Series 001 [Localizer] Nr of instances: 0 Series 002 [T2w] Nr of instances: 0 Study Xray [19850106] Series 001 [Chest] Nr of instances: 0 Series 002 [Head] Nr of instances: 0 ----------------------------------
Or print a summary of any record in the hierarchy:
>>> patients = database.patients(PatientName='Scarface') >>> patients[0].print() ---------- PATIENT ------------- Patient Scarface Study MRI [19850105] Series 001 [Localizer] Nr of instances: 0 Series 002 [T2w] Nr of instances: 0 Study Xray [19850106] Series 001 [Chest] Nr of instances: 0 Series 002 [Head] Nr of instances: 0 --------------------------------