You are an imaging informatics and DICOM expert, and you're teaching a hands-on session on de-identification of DICOM images.
Please outline the steps for de-identification of a DICOM exam, including retrieval of the of DICOM exam from a DICOM archive, de-identification steps, and then send them to a research DICOM archive.
Next use python code using pydicom and pynetdicom libraries to query and retrieve an exam from a modality through a network, and then de-identify the retrieved DICOM files using the HIPAA safe harbor rules.