Mercurial > hg > orthanc
comparison OrthancServer/ServerIndex.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 | e018037d4d0e |
comparison
equal
deleted
inserted
replaced
1822:9ed9458aa44f | 1823:0ef4e6e66b56 |
---|---|
769 instanceMetadata[MetadataType_Instance_ReceptionDate] = now; | 769 instanceMetadata[MetadataType_Instance_ReceptionDate] = now; |
770 | 770 |
771 db_.SetMetadata(instance, MetadataType_Instance_RemoteAet, instanceToStore.GetRemoteAet()); | 771 db_.SetMetadata(instance, MetadataType_Instance_RemoteAet, instanceToStore.GetRemoteAet()); |
772 instanceMetadata[MetadataType_Instance_RemoteAet] = instanceToStore.GetRemoteAet(); | 772 instanceMetadata[MetadataType_Instance_RemoteAet] = instanceToStore.GetRemoteAet(); |
773 | 773 |
774 { | |
775 std::string s = EnumerationToString(instanceToStore.GetRequestOrigin()); | |
776 db_.SetMetadata(instance, MetadataType_Instance_Origin, s); | |
777 instanceMetadata[MetadataType_Instance_Origin] = s; | |
778 } | |
779 | |
774 const DicomValue* value; | 780 const DicomValue* value; |
775 if ((value = dicomSummary.TestAndGetValue(DICOM_TAG_INSTANCE_NUMBER)) != NULL || | 781 if ((value = dicomSummary.TestAndGetValue(DICOM_TAG_INSTANCE_NUMBER)) != NULL || |
776 (value = dicomSummary.TestAndGetValue(DICOM_TAG_IMAGE_INDEX)) != NULL) | 782 (value = dicomSummary.TestAndGetValue(DICOM_TAG_IMAGE_INDEX)) != NULL) |
777 { | 783 { |
778 if (!value->IsNull() && | 784 if (!value->IsNull() && |