Mercurial > hg > orthanc
comparison OrthancServer/FromDcmtkBridge.cpp @ 1417:8e23f16a198d
fix issues 35 and 37
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 10 Jun 2015 15:17:02 +0200 |
parents | b22ba8c5edbe |
children | 7366a0bdda6a |
comparison
equal
deleted
inserted
replaced
1416:037d5ffca74d | 1417:8e23f16a198d |
---|---|
744 return false; | 744 return false; |
745 } | 745 } |
746 } | 746 } |
747 | 747 |
748 | 748 |
749 bool FromDcmtkBridge::IsPNValueRepresentation(const DicomTag& tag) | 749 ValueRepresentation FromDcmtkBridge::GetValueRepresentation(const DicomTag& tag) |
750 { | 750 { |
751 DcmTag t(tag.GetGroup(), tag.GetElement()); | 751 DcmTag t(tag.GetGroup(), tag.GetElement()); |
752 return t.getEVR() == EVR_PN; | 752 switch (t.getEVR()) |
753 { | |
754 case EVR_PN: | |
755 return ValueRepresentation_PatientName; | |
756 | |
757 case EVR_DA: | |
758 return ValueRepresentation_Date; | |
759 | |
760 case EVR_DT: | |
761 return ValueRepresentation_DateTime; | |
762 | |
763 case EVR_TM: | |
764 return ValueRepresentation_Time; | |
765 | |
766 default: | |
767 return ValueRepresentation_Other; | |
768 } | |
753 } | 769 } |
754 | 770 |
755 } | 771 } |