How to get Get Patient Details

How can I get patient details like name, sex etc?
What is the method to access these tags in python through a dicom database?

The Slicer script repository includes many python scripting examples of common Slicer actions including manipulating DICOM database details.

This thread details some of that

1 Like