Mercurial > hg > orthanc
comparison Resources/Samples/Lua/AutoroutingModification.lua @ 1307:f796207e3df1
Fix replacement and insertion of private DICOM tags
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 11 Feb 2015 10:26:17 +0100 |
parents | 23590917e83e |
children | bfdf24883ff3 |
comparison
equal
deleted
inserted
replaced
1306:8cd5784a6d80 | 1307:f796207e3df1 |
---|---|
5 metadata['AnonymizedFrom'] == nil) then | 5 metadata['AnonymizedFrom'] == nil) then |
6 | 6 |
7 -- The tags to be replaced | 7 -- The tags to be replaced |
8 local replace = {} | 8 local replace = {} |
9 replace['StationName'] = 'My Medical Device' | 9 replace['StationName'] = 'My Medical Device' |
10 replace['0031-1020'] = 'Some private tag' | |
10 | 11 |
11 -- The tags to be removed | 12 -- The tags to be removed |
12 local remove = { 'MilitaryRank' } | 13 local remove = { 'MilitaryRank' } |
13 | 14 |
14 -- Modify the instance, send it, then delete the modified instance | 15 -- Modify the instance, send it, then delete the modified instance |