Mercurial > hg > orthanc
comparison Plugins/Engine/OrthancPluginDatabase.cpp @ 1713:4db9200c7f46 db-changes
SetIdentifierTag
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 16 Oct 2015 18:17:22 +0200 |
parents | 5ebd6cbb3da8 |
children | 2b812969e136 |
comparison
equal
deleted
inserted
replaced
1712:a7745f3a2cc4 | 1713:4db9200c7f46 |
---|---|
709 OrthancPluginDicomTag tmp; | 709 OrthancPluginDicomTag tmp; |
710 tmp.group = tag.GetGroup(); | 710 tmp.group = tag.GetGroup(); |
711 tmp.element = tag.GetElement(); | 711 tmp.element = tag.GetElement(); |
712 tmp.value = value.c_str(); | 712 tmp.value = value.c_str(); |
713 | 713 |
714 OrthancPluginErrorCode code; | 714 CheckSuccess(backend_.setMainDicomTag(payload_, id, &tmp)); |
715 | 715 } |
716 if (tag.IsIdentifier()) | 716 |
717 { | 717 |
718 code = backend_.setIdentifierTag(payload_, id, &tmp); | 718 void OrthancPluginDatabase::SetIdentifierTag(int64_t id, |
719 } | 719 const DicomTag& tag, |
720 else | 720 const std::string& value) |
721 { | 721 { |
722 code = backend_.setMainDicomTag(payload_, id, &tmp); | 722 OrthancPluginDicomTag tmp; |
723 } | 723 tmp.group = tag.GetGroup(); |
724 | 724 tmp.element = tag.GetElement(); |
725 CheckSuccess(code); | 725 tmp.value = value.c_str(); |
726 | |
727 CheckSuccess(backend_.setIdentifierTag(payload_, id, &tmp)); | |
726 } | 728 } |
727 | 729 |
728 | 730 |
729 void OrthancPluginDatabase::SetMetadata(int64_t id, | 731 void OrthancPluginDatabase::SetMetadata(int64_t id, |
730 MetadataType type, | 732 MetadataType type, |