Mercurial > hg > orthanc
comparison OrthancServer/ServerIndex.cpp @ 2189:c4b3259c8bce
New metadata automatically computed at the instance level: "TransferSyntax"
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 29 Nov 2016 16:07:14 +0100 |
parents | 7cfc2e0383b3 |
children | 90ea60bee5ff |
comparison
equal
deleted
inserted
replaced
2188:7cfc2e0383b3 | 2189:c4b3259c8bce |
---|---|
773 | 773 |
774 // Attach the auto-computed metadata for the instance level, | 774 // Attach the auto-computed metadata for the instance level, |
775 // reflecting these additions into the input metadata map | 775 // reflecting these additions into the input metadata map |
776 SetInstanceMetadata(instanceMetadata, instance, MetadataType_Instance_ReceptionDate, now); | 776 SetInstanceMetadata(instanceMetadata, instance, MetadataType_Instance_ReceptionDate, now); |
777 SetInstanceMetadata(instanceMetadata, instance, MetadataType_Instance_RemoteAet, instanceToStore.GetRemoteAet()); | 777 SetInstanceMetadata(instanceMetadata, instance, MetadataType_Instance_RemoteAet, instanceToStore.GetRemoteAet()); |
778 | 778 SetInstanceMetadata(instanceMetadata, instance, MetadataType_Instance_Origin, |
779 { | 779 EnumerationToString(instanceToStore.GetRequestOrigin())); |
780 std::string s = EnumerationToString(instanceToStore.GetRequestOrigin()); | 780 |
781 SetInstanceMetadata(instanceMetadata, instance, MetadataType_Instance_Origin, s); | 781 { |
782 std::string s; | |
783 if (instanceToStore.LookupTransferSyntax(s)) | |
784 { | |
785 SetInstanceMetadata(instanceMetadata, instance, MetadataType_Instance_TransferSyntax, s); | |
786 } | |
782 } | 787 } |
783 | 788 |
784 const DicomValue* value; | 789 const DicomValue* value; |
785 if ((value = dicomSummary.TestAndGetValue(DICOM_TAG_INSTANCE_NUMBER)) != NULL || | 790 if ((value = dicomSummary.TestAndGetValue(DICOM_TAG_INSTANCE_NUMBER)) != NULL || |
786 (value = dicomSummary.TestAndGetValue(DICOM_TAG_IMAGE_INDEX)) != NULL) | 791 (value = dicomSummary.TestAndGetValue(DICOM_TAG_IMAGE_INDEX)) != NULL) |