Mercurial > hg > orthanc
diff Core/DicomFormat/DicomTag.cpp @ 1162:1ea4094d077c db-changes
refactoring
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 17 Sep 2014 13:25:37 +0200 |
parents | b39c4837966e |
children | 6164f7200c43 |
line wrap: on
line diff
--- a/Core/DicomFormat/DicomTag.cpp Wed Sep 17 12:38:28 2014 +0200 +++ b/Core/DicomFormat/DicomTag.cpp Wed Sep 17 13:25:37 2014 +0200 @@ -244,4 +244,14 @@ throw OrthancException(ErrorCode_ParameterOutOfRange); } } + + + bool DicomTag::IsIdentifier() const + { + return (*this == DICOM_TAG_PATIENT_ID || + *this == DICOM_TAG_STUDY_INSTANCE_UID || + *this == DICOM_TAG_ACCESSION_NUMBER || + *this == DICOM_TAG_SERIES_INSTANCE_UID || + *this == DICOM_TAG_SOP_INSTANCE_UID); + } }