view Resources/Samples/Lua/CallDcm2Xml.lua @ 2991:38b71a1006fd Orthanc-1.5.0

set version
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 10 Dec 2018 15:15:28 +0100 (2018-12-10)
parents 921532f67770
children
line wrap: on
line source
function OnStoredInstance(instanceId, tags, metadata)
   -- Assume Latin1 encoding in dcm2xml
   local args = {}
   table.insert(args, '+Ca')
   table.insert(args, 'latin-1')

   Delete(CallSystem(instanceId, 'dcm2xml', args))
end