comparison UnitTestsSources/ServerIndexTests.cpp @ 1823:0ef4e6e66b56

"Origin" metadata for the instances
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 25 Nov 2015 10:32:54 +0100
parents 9ed9458aa44f
children b1291df2f780
comparison
equal deleted inserted replaced
1822:9ed9458aa44f 1823:0ef4e6e66b56
797 797
798 std::map<MetadataType, std::string> instanceMetadata; 798 std::map<MetadataType, std::string> instanceMetadata;
799 DicomInstanceToStore toStore; 799 DicomInstanceToStore toStore;
800 toStore.SetSummary(instance); 800 toStore.SetSummary(instance);
801 ASSERT_EQ(StoreStatus_Success, index.Store(instanceMetadata, toStore, attachments)); 801 ASSERT_EQ(StoreStatus_Success, index.Store(instanceMetadata, toStore, attachments));
802 ASSERT_EQ(2u, instanceMetadata.size()); 802 ASSERT_EQ(3u, instanceMetadata.size());
803 ASSERT_TRUE(instanceMetadata.find(MetadataType_Instance_RemoteAet) != instanceMetadata.end()); 803 ASSERT_TRUE(instanceMetadata.find(MetadataType_Instance_RemoteAet) != instanceMetadata.end());
804 ASSERT_TRUE(instanceMetadata.find(MetadataType_Instance_ReceptionDate) != instanceMetadata.end()); 804 ASSERT_TRUE(instanceMetadata.find(MetadataType_Instance_ReceptionDate) != instanceMetadata.end());
805 805
806 DicomInstanceHasher hasher(instance); 806 DicomInstanceHasher hasher(instance);
807 ids.push_back(hasher.HashPatient()); 807 ids.push_back(hasher.HashPatient());