comparison OrthancServer/OrthancRestApi/OrthancRestAnonymizeModify.cpp @ 1640:48224db51ee7

allow override date/time when creating DICOM files
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 23 Sep 2015 12:02:39 +0200
parents 644c32c07306
children 4e56b5a206b7
comparison
equal deleted inserted replaced
1636:8c4f1de71f8d 1640:48224db51ee7
506 506
507 DicomTag tag = FromDcmtkBridge::ParseTag(name); 507 DicomTag tag = FromDcmtkBridge::ParseTag(name);
508 if (tag != DICOM_TAG_SPECIFIC_CHARACTER_SET) 508 if (tag != DICOM_TAG_SPECIFIC_CHARACTER_SET)
509 { 509 {
510 if (tag != DICOM_TAG_PATIENT_ID && 510 if (tag != DICOM_TAG_PATIENT_ID &&
511 tag != DICOM_TAG_ACQUISITION_DATE &&
512 tag != DICOM_TAG_ACQUISITION_TIME &&
513 tag != DICOM_TAG_CONTENT_DATE &&
514 tag != DICOM_TAG_CONTENT_TIME &&
515 tag != DICOM_TAG_INSTANCE_CREATION_DATE &&
516 tag != DICOM_TAG_INSTANCE_CREATION_TIME &&
517 tag != DICOM_TAG_SERIES_DATE &&
518 tag != DICOM_TAG_SERIES_TIME &&
519 tag != DICOM_TAG_STUDY_DATE &&
520 tag != DICOM_TAG_STUDY_TIME &&
511 dicom.HasTag(tag)) 521 dicom.HasTag(tag))
512 { 522 {
513 throw OrthancException(ErrorCode_CreateDicomOverrideTag); 523 throw OrthancException(ErrorCode_CreateDicomOverrideTag);
514 } 524 }
515 525