Mercurial > hg > orthanc
comparison UnitTestsSources/ServerIndexTests.cpp @ 2007:655489d9165d
DicomMap::ParseDicomMetaInformation()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 09 Jun 2016 15:46:33 +0200 |
parents | 869a87c08673 |
children | 7e8889bc95c6 |
comparison
equal
deleted
inserted
replaced
2006:6301bbcbcaed | 2007:655489d9165d |
---|---|
788 std::vector<std::string> ids; | 788 std::vector<std::string> ids; |
789 for (int i = 0; i < 10; i++) | 789 for (int i = 0; i < 10; i++) |
790 { | 790 { |
791 std::string id = boost::lexical_cast<std::string>(i); | 791 std::string id = boost::lexical_cast<std::string>(i); |
792 DicomMap instance; | 792 DicomMap instance; |
793 instance.SetValue(DICOM_TAG_PATIENT_ID, "patient-" + id); | 793 instance.SetValue(DICOM_TAG_PATIENT_ID, "patient-" + id, false); |
794 instance.SetValue(DICOM_TAG_STUDY_INSTANCE_UID, "study-" + id); | 794 instance.SetValue(DICOM_TAG_STUDY_INSTANCE_UID, "study-" + id, false); |
795 instance.SetValue(DICOM_TAG_SERIES_INSTANCE_UID, "series-" + id); | 795 instance.SetValue(DICOM_TAG_SERIES_INSTANCE_UID, "series-" + id, false); |
796 instance.SetValue(DICOM_TAG_SOP_INSTANCE_UID, "instance-" + id); | 796 instance.SetValue(DICOM_TAG_SOP_INSTANCE_UID, "instance-" + id, false); |
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)); |