Mercurial > hg > orthanc
comparison OrthancServer/UnitTestsSources/ServerIndexTests.cpp @ 4494:39192eb9b43d
New metadata automatically computed at the instance level: "PixelDataOffset"
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 04 Feb 2021 15:31:00 +0100 |
parents | 6831de40acd9 |
children | 6f99949b2878 |
comparison
equal
deleted
inserted
replaced
4493:b57ca702a430 | 4494:39192eb9b43d |
---|---|
727 std::map<MetadataType, std::string> instanceMetadata; | 727 std::map<MetadataType, std::string> instanceMetadata; |
728 DicomInstanceToStore toStore; | 728 DicomInstanceToStore toStore; |
729 toStore.SetSummary(instance); | 729 toStore.SetSummary(instance); |
730 ASSERT_EQ(StoreStatus_Success, index.Store(instanceMetadata, toStore, attachments, | 730 ASSERT_EQ(StoreStatus_Success, index.Store(instanceMetadata, toStore, attachments, |
731 false /* don't overwrite */)); | 731 false /* don't overwrite */)); |
732 ASSERT_EQ(5u, instanceMetadata.size()); | 732 ASSERT_EQ(6u, instanceMetadata.size()); |
733 ASSERT_TRUE(instanceMetadata.find(MetadataType_RemoteAet) != instanceMetadata.end()); | 733 ASSERT_TRUE(instanceMetadata.find(MetadataType_RemoteAet) != instanceMetadata.end()); |
734 ASSERT_TRUE(instanceMetadata.find(MetadataType_Instance_ReceptionDate) != instanceMetadata.end()); | 734 ASSERT_TRUE(instanceMetadata.find(MetadataType_Instance_ReceptionDate) != instanceMetadata.end()); |
735 ASSERT_TRUE(instanceMetadata.find(MetadataType_Instance_TransferSyntax) != instanceMetadata.end()); | 735 ASSERT_TRUE(instanceMetadata.find(MetadataType_Instance_TransferSyntax) != instanceMetadata.end()); |
736 ASSERT_TRUE(instanceMetadata.find(MetadataType_Instance_SopClassUid) != instanceMetadata.end()); | 736 ASSERT_TRUE(instanceMetadata.find(MetadataType_Instance_SopClassUid) != instanceMetadata.end()); |
737 ASSERT_TRUE(instanceMetadata.find(MetadataType_Instance_PixelDataOffset) != instanceMetadata.end()); | |
737 | 738 |
738 // The default transfer syntax depends on the OS endianness | 739 // The default transfer syntax depends on the OS endianness |
739 std::string s = instanceMetadata[MetadataType_Instance_TransferSyntax]; | 740 std::string s = instanceMetadata[MetadataType_Instance_TransferSyntax]; |
740 ASSERT_TRUE(s == "1.2.840.10008.1.2.1" || | 741 ASSERT_TRUE(s == "1.2.840.10008.1.2.1" || |
741 s == "1.2.840.10008.1.2.2"); | 742 s == "1.2.840.10008.1.2.2"); |