Mercurial > hg > orthanc
diff Plugins/Samples/Basic/Plugin.c @ 1861:a7bea843a7bc
"OrthancPluginLookupDictionary()" to get information about some DICOM tag
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 02 Dec 2015 13:00:18 +0100 |
parents | 2abfdca9b915 |
children | b1291df2f780 |
line wrap: on
line diff
--- a/Plugins/Samples/Basic/Plugin.c Wed Dec 02 11:26:52 2015 +0100 +++ b/Plugins/Samples/Basic/Plugin.c Wed Dec 02 13:00:18 2015 +0100 @@ -327,6 +327,7 @@ OrthancPluginMemoryBuffer tmp; char info[1024], *s; int counter, i; + OrthancPluginDictionaryEntry entry; context = c; OrthancPluginLogWarning(context, "Sample plugin is initializing"); @@ -407,6 +408,9 @@ OrthancPluginRegisterDictionaryTag(context, 0x0014, 0x1020, OrthancPluginValueRepresentation_DA, "ValidationExpiryDate", 1, 1); + OrthancPluginLookupDictionary(context, &entry, "ValidationExpiryDate"); + OrthancPluginLookupDictionary(context, &entry, "0010-0010"); + return 0; }