dbdicom.Record.save#

Record.save(path=None)[source]#

Save any changes made to the record.

Warning

Saving is irreversible! Any edits made to the record before saving cannot be undone.

See also

restore()

Example

Create a new patient, change the name, and save:

>>> patient = db.patient(PatientName='James Bond')
>>> patient.PatientName = 'Scarface'
>>> patient.save()

At this point the original information can no longer be restored. Calling restore does not revert back to the original:

>>> patient.restore()
>>> print(patient.PatientName)
Scarface