21 #include <dcmtk/dcmdata/dcelem.h> 22 #include <dcmtk/dcmdata/dcdeftag.h> 23 #include <dcmtk/dcmnet/dfindscu.h> 26 #include "dcmtk/dcmtls/tlstrans.h" 27 #include "dcmtk/dcmtls/tlslayer.h" 60 Q_UNUSED(responseCount)
63 QMap<QString, QString> infosMap;
71 responseIdentifiers->findAndGetOFString ( DCM_PatientName, info );
72 infosMap.insert (
"Name", QString ( info.c_str() ) );
73 responseIdentifiers->findAndGetOFString ( DCM_PatientID, info );
74 infosMap.insert (
"ID", QString ( info.c_str() ) );
75 responseIdentifiers->findAndGetOFString ( DCM_PatientSex, info );
76 infosMap.insert (
"Sex", QString ( info.c_str() ) );
77 responseIdentifiers->findAndGetOFString ( DCM_PatientBirthDate, info );
78 infosMap.insert (
"Birthdate", QString ( info.c_str() ) );
85 responseIdentifiers->findAndGetOFString ( DCM_StudyDescription, info );
86 infosMap.insert (
"Description", QString ( info.c_str() ) );
87 responseIdentifiers->findAndGetOFString ( DCM_StudyDate, info );
88 infosMap.insert (
"Date", QString ( info.c_str() ) );
89 responseIdentifiers->findAndGetOFString ( DCM_StudyID, info );
90 infosMap.insert (
"ID", QString ( info.c_str() ) );
91 responseIdentifiers->findAndGetOFString ( DCM_StudyInstanceUID, info );
92 infosMap.insert (
"UID", QString ( info.c_str() ) );
99 responseIdentifiers->findAndGetOFString ( DCM_SeriesDescription, info );
100 infosMap.insert (
"Description", QString ( info.c_str() ) );
101 responseIdentifiers->findAndGetOFString ( DCM_StudyDate, info );
102 infosMap.insert (
"Date", QString ( info.c_str() ) );
103 responseIdentifiers->findAndGetOFString ( DCM_Modality, info );
104 infosMap.insert (
"Modality", QString ( info.c_str() ) );
105 responseIdentifiers->findAndGetOFString ( DCM_SeriesInstanceUID, info );
106 infosMap.insert (
"ID", QString ( info.c_str() ) );
107 responseIdentifiers->findAndGetOFString ( DCM_InstitutionName, info );
108 infosMap.insert (
"Institution", QString ( info.c_str() ) );
109 responseIdentifiers->findAndGetOFString ( DCM_PerformingPhysicianName, info );
110 infosMap.insert (
"Operator", QString ( info.c_str() ) );
111 responseIdentifiers->findAndGetOFString ( DCM_NumberOfSeriesRelatedInstances, info );
112 infosMap.insert (
"InstanceCount", QString ( info.c_str() ) );
118 responseIdentifiers->findAndGetOFString ( DCM_SOPInstanceUID, info );
125 responseIdentifiers->findAndGetOFString ( DCM_SOPInstanceUID, info );
126 responseIdentifiers->findAndGetOFString ( DCM_InstanceNumber, number );
128 if ( !number.length() )
static QtDcmManager * instance()
void foundSerie(const QMap< QString, QString > &infosMap)
void foundPatient(const QMap< QString, QString > &infosMap)
virtual ~QtDcmFindCallback()
QtDcmFindCallback(int type=PATIENT)
void foundStudy(const QMap< QString, QString > &infosMap)
virtual void callback(T_DIMSE_C_FindRQ *request, int responseCount, T_DIMSE_C_FindRSP *rsp, DcmDataset *responseIdentifiers)
void foundImage(const QString &image, int number)