Mercurial > hg > orthanc
comparison Plugins/Samples/Basic/Plugin.c @ 1657:5360cdba70d8
New function "OrthancPluginRegisterDictionaryTag()" to declare DICOM tags
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 29 Sep 2015 16:31:48 +0200 |
parents | 2e692c83e2f3 |
children | 94990da8710e |
comparison
equal
deleted
inserted
replaced
1656:d3ba98d6b6e9 | 1657:5360cdba70d8 |
---|---|
403 sprintf(info, "[ \"STORESCP\", \"localhost\", 2000 ]"); | 403 sprintf(info, "[ \"STORESCP\", \"localhost\", 2000 ]"); |
404 OrthancPluginRestApiPut(context, &tmp, "/modalities/demo", info, strlen(info)); | 404 OrthancPluginRestApiPut(context, &tmp, "/modalities/demo", info, strlen(info)); |
405 | 405 |
406 customError = OrthancPluginRegisterErrorCode(context, 4, 402, "Hello world"); | 406 customError = OrthancPluginRegisterErrorCode(context, 4, 402, "Hello world"); |
407 | 407 |
408 OrthancPluginRegisterDictionaryTag(context, 0x0014, 0x1020, OrthancPluginValueRepresentation_DA, | |
409 "ValidationExpiryDate", 1, 1); | |
410 | |
408 return 0; | 411 return 0; |
409 } | 412 } |
410 | 413 |
411 | 414 |
412 ORTHANC_PLUGINS_API void OrthancPluginFinalize() | 415 ORTHANC_PLUGINS_API void OrthancPluginFinalize() |