How to get the relevant information after dicom loading is completed?

How to get the relevant information in the code, such as serial number, sex, name, admission time, etc., when loading the dicom number. Is there an interface in the code?
Such as the sequence in the picture :
图片

Yes, see the example here:

https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#How_to_access_tag_of_a_volume_loaded_from_DICOM.3F_For_example.2C_get_the_patient_position_stored_in_a_volume:

thank you very much and have a good day at work!