comparison OrthancServer/ServerToolbox.cpp @ 1725:a7c05bbfaf6a db-changes

refactoring
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 20 Oct 2015 11:21:36 +0200
parents 3926e6317a43
children 54d78925cbb6 ec66a16aa398
comparison
equal deleted inserted replaced
1724:7e0b5e413c7c 1725:a7c05bbfaf6a
182 if (value != NULL && 182 if (value != NULL &&
183 !value->IsNull()) 183 !value->IsNull())
184 { 184 {
185 std::string s = value->AsString(); 185 std::string s = value->AsString();
186 186
187 if (!tag.IsIdentifier()) 187 if (tag != DICOM_TAG_PATIENT_ID &&
188 tag != DICOM_TAG_STUDY_INSTANCE_UID &&
189 tag != DICOM_TAG_SERIES_INSTANCE_UID &&
190 tag != DICOM_TAG_SOP_INSTANCE_UID &&
191 tag != DICOM_TAG_ACCESSION_NUMBER)
188 { 192 {
189 s = NormalizeIdentifierTag(s); 193 s = NormalizeIdentifierTag(s);
190 } 194 }
191 195
192 database.SetIdentifierTag(resource, tag, s); 196 database.SetIdentifierTag(resource, tag, s);