dbdicom.study#
- dbdicom.study(in_patient: Patient | None = None, in_database: Database | None = None, **kwargs) Study [source]#
Create an empty DICOM study record.
- Parameters:
in_patient (Patient, optional) – If provided, the study is created in this Patient. Defaults to None.
in_database (Database, optional) – If provided, the study is created in this database. Defaults to None.
kwargs – Any valid DICOM (tag, value) pair to set properties of the new study
- Returns:
DICOM study with defaults for all attributes.
- Return type:
Study
See also
Example
Create an empty study in memory:
>>> study = db.study() >>> study.print() ---------- STUDY --------------- Study New Study [None] --------------------------------
Note since no patient object is provided, a default hierarchy is created automatically:
>>> study.database().print() ---------- DATABASE -------------- Location: In memory Patient New Patient Study New Study [None] ----------------------------------