Dcmtk Tutorial · Proven & Certified

dcmodify -e PatientName -e PatientID -e PatientBirthDate patient.dcm Or set a dummy value:

#include "dcmtk/config/osconfig.h" #include "dcmtk/dcmdata/dctk.h" #include <iostream> int main() DcmFileFormat file; OFCondition status = file.loadFile("patient.dcm"); if (status.good()) OFString patientName; file.getDataset()->findAndGetOFString(DCM_PatientName, patientName); std::cout << "Patient Name: " << patientName << std::endl; else std::cerr << "Error: " << status.text() << std::endl; dcmtk tutorial

(0008,0052) CS [STUDY] # QueryRetrieveLevel (0010,0020) LO [PAT*] # PatientID pattern (0020,000D) UI [] # StudyInstanceUID (empty to match all) Then run: int main() DcmFileFormat file

dcmodify -ma "StudyDescription=CT Chest" study.dcm dcmgpdir -r +D ./dicom_folder/ DICOMDIR 4.6 Network – receive studies (basic SCP) Start a listener on port 11112, storing files in ./received/ : OFCondition status = file.loadFile("patient.dcm")

return 0;

We use cookies

We use cookies and other tracking technologies to improve your browsing experience on our website, to show you personalized content and to analyze our website traffic, and to understand where our visitors are coming from. By browsing our website, you consent to our use of cookies and other tracking technologies. Privacy Notice