comparison OrthancServer/Sources/LuaScripting.cpp @ 4697:569d9ef165b1

Added "short", "simplify" and/or "full" options to control the format of DICOM tags wherever possible
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 18 Jun 2021 16:08:35 +0200
parents d01702fb29a9
children f0038043fb97 94616af363ec
comparison
equal deleted inserted replaced
4696:dd6274412ff4 4697:569d9ef165b1
180 180
181 if (change_.GetResourceType() == ResourceType_Study) 181 if (change_.GetResourceType() == ResourceType_Study)
182 { 182 {
183 DicomMap t; 183 DicomMap t;
184 tags_.ExtractStudyInformation(t); // Discard patient-related tags 184 tags_.ExtractStudyInformation(t); // Discard patient-related tags
185 FromDcmtkBridge::ToJson(json, t, true); 185 FromDcmtkBridge::ToJson(json, t, DicomToJsonFormat_Human);
186 } 186 }
187 else 187 else
188 { 188 {
189 FromDcmtkBridge::ToJson(json, tags_, true); 189 FromDcmtkBridge::ToJson(json, tags_, DicomToJsonFormat_Human);
190 } 190 }
191 191
192 LuaFunctionCall call(lock.GetLua(), name); 192 LuaFunctionCall call(lock.GetLua(), name);
193 call.PushString(change_.GetPublicId()); 193 call.PushString(change_.GetPublicId());
194 call.PushJson(json); 194 call.PushJson(json);