Mercurial > hg > orthanc
comparison UnitTestsSources/ServerIndexTests.cpp @ 2190:3b9ee145f149
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 29 Nov 2016 19:29:12 +0100 |
parents | 84d1d392a9ab |
children | 90ea60bee5ff |
comparison
equal
deleted
inserted
replaced
2189:c4b3259c8bce | 2190:3b9ee145f149 |
---|---|
796 | 796 |
797 std::map<MetadataType, std::string> instanceMetadata; | 797 std::map<MetadataType, std::string> instanceMetadata; |
798 DicomInstanceToStore toStore; | 798 DicomInstanceToStore toStore; |
799 toStore.SetSummary(instance); | 799 toStore.SetSummary(instance); |
800 ASSERT_EQ(StoreStatus_Success, index.Store(instanceMetadata, toStore, attachments)); | 800 ASSERT_EQ(StoreStatus_Success, index.Store(instanceMetadata, toStore, attachments)); |
801 ASSERT_EQ(3u, instanceMetadata.size()); | 801 ASSERT_EQ(4u, instanceMetadata.size()); |
802 ASSERT_TRUE(instanceMetadata.find(MetadataType_Instance_RemoteAet) != instanceMetadata.end()); | 802 ASSERT_TRUE(instanceMetadata.find(MetadataType_Instance_RemoteAet) != instanceMetadata.end()); |
803 ASSERT_TRUE(instanceMetadata.find(MetadataType_Instance_ReceptionDate) != instanceMetadata.end()); | 803 ASSERT_TRUE(instanceMetadata.find(MetadataType_Instance_ReceptionDate) != instanceMetadata.end()); |
804 ASSERT_TRUE(instanceMetadata.find(MetadataType_Instance_TransferSyntax) != instanceMetadata.end()); | |
805 | |
806 // By default, an Explicit VR Little Endian is used by Orthanc | |
807 ASSERT_EQ("1.2.840.10008.1.2.1", instanceMetadata[MetadataType_Instance_TransferSyntax]); | |
804 | 808 |
805 DicomInstanceHasher hasher(instance); | 809 DicomInstanceHasher hasher(instance); |
806 ids.push_back(hasher.HashPatient()); | 810 ids.push_back(hasher.HashPatient()); |
807 ids.push_back(hasher.HashStudy()); | 811 ids.push_back(hasher.HashStudy()); |
808 ids.push_back(hasher.HashSeries()); | 812 ids.push_back(hasher.HashSeries()); |