comparison OrthancServer/Sources/OrthancRestApi/OrthancRestAnonymizeModify.cpp @ 5495:4b3f5986eca1

Added a 'KeepLabels' option in /modify routes (default = false)
author Alain Mazy <am@osimis.io>
date Mon, 22 Jan 2024 17:14:11 +0100
parents 48b8dae6dc77
children f7adfb22e20e
comparison
equal deleted inserted replaced
5491:42e6593aa78e 5495:4b3f5986eca1
44 static const char* const FORCE = "Force"; 44 static const char* const FORCE = "Force";
45 static const char* const INSTANCES = "Instances"; 45 static const char* const INSTANCES = "Instances";
46 static const char* const INTERPRET_BINARY_TAGS = "InterpretBinaryTags"; 46 static const char* const INTERPRET_BINARY_TAGS = "InterpretBinaryTags";
47 static const char* const KEEP = "Keep"; 47 static const char* const KEEP = "Keep";
48 static const char* const KEEP_PRIVATE_TAGS = "KeepPrivateTags"; 48 static const char* const KEEP_PRIVATE_TAGS = "KeepPrivateTags";
49 static const char* const KEEP_LABELS = "KeepLabels";
49 static const char* const KEEP_SOURCE = "KeepSource"; 50 static const char* const KEEP_SOURCE = "KeepSource";
50 static const char* const LEVEL = "Level"; 51 static const char* const LEVEL = "Level";
51 static const char* const PARENT = "Parent"; 52 static const char* const PARENT = "Parent";
52 static const char* const PRIVATE_CREATOR = "PrivateCreator"; 53 static const char* const PRIVATE_CREATOR = "PrivateCreator";
53 static const char* const REMOVE = "Remove"; 54 static const char* const REMOVE = "Remove";
120 .SetRequestField("DicomVersion", RestApiCallDocumentation::Type_String, 121 .SetRequestField("DicomVersion", RestApiCallDocumentation::Type_String,
121 "Version of the DICOM standard to be used for anonymization. Check out " 122 "Version of the DICOM standard to be used for anonymization. Check out "
122 "configuration option `DeidentifyLogsDicomVersion` for possible values.", false) 123 "configuration option `DeidentifyLogsDicomVersion` for possible values.", false)
123 .SetRequestField(KEEP_PRIVATE_TAGS, RestApiCallDocumentation::Type_Boolean, 124 .SetRequestField(KEEP_PRIVATE_TAGS, RestApiCallDocumentation::Type_Boolean,
124 "Keep the private tags from the DICOM instances (defaults to `false`)", false) 125 "Keep the private tags from the DICOM instances (defaults to `false`)", false)
126 .SetRequestField(KEEP_LABELS, RestApiCallDocumentation::Type_Boolean,
127 "Keep the labels of all resources level (defaults to `false`)", false)
125 .SetRequestField(REPLACE, RestApiCallDocumentation::Type_JsonObject, 128 .SetRequestField(REPLACE, RestApiCallDocumentation::Type_JsonObject,
126 "Associative array to change the value of some DICOM tags in the DICOM instances. " INFO_SUBSEQUENCES, false) 129 "Associative array to change the value of some DICOM tags in the DICOM instances. " INFO_SUBSEQUENCES, false)
127 .SetRequestField(REMOVE, RestApiCallDocumentation::Type_JsonListOfStrings, 130 .SetRequestField(REMOVE, RestApiCallDocumentation::Type_JsonListOfStrings,
128 "List of additional tags to be removed from the DICOM instances. " INFO_SUBSEQUENCES, false) 131 "List of additional tags to be removed from the DICOM instances. " INFO_SUBSEQUENCES, false)
129 .SetRequestField(KEEP, RestApiCallDocumentation::Type_JsonListOfStrings, 132 .SetRequestField(KEEP, RestApiCallDocumentation::Type_JsonListOfStrings,
1066 "These series must all be children of the same source study, that is specified in the URI.", false) 1069 "These series must all be children of the same source study, that is specified in the URI.", false)
1067 .SetRequestField(REPLACE, RestApiCallDocumentation::Type_JsonObject, 1070 .SetRequestField(REPLACE, RestApiCallDocumentation::Type_JsonObject,
1068 "Associative array to change the value of some DICOM tags in the new study. " 1071 "Associative array to change the value of some DICOM tags in the new study. "
1069 "These tags must be part of the \"Patient Module Attributes\" or the \"General Study " 1072 "These tags must be part of the \"Patient Module Attributes\" or the \"General Study "
1070 "Module Attributes\", as specified by the DICOM 2011 standard in Tables C.7-1 and C.7-3.", false) 1073 "Module Attributes\", as specified by the DICOM 2011 standard in Tables C.7-1 and C.7-3.", false)
1074 .SetRequestField(KEEP_LABELS, RestApiCallDocumentation::Type_Boolean,
1075 "Keep the labels of all resources level (defaults to `false`)", false)
1071 .SetRequestField(REMOVE, RestApiCallDocumentation::Type_JsonListOfStrings, 1076 .SetRequestField(REMOVE, RestApiCallDocumentation::Type_JsonListOfStrings,
1072 "List of tags that must be removed in the new study (from the same modules as in the `Replace` option)", false) 1077 "List of tags that must be removed in the new study (from the same modules as in the `Replace` option)", false)
1073 .SetRequestField(KEEP_SOURCE, RestApiCallDocumentation::Type_Boolean, 1078 .SetRequestField(KEEP_SOURCE, RestApiCallDocumentation::Type_Boolean,
1074 "If set to `true`, instructs Orthanc to keep a copy of the original series/instances in the source study. " 1079 "If set to `true`, instructs Orthanc to keep a copy of the original series/instances in the source study. "
1075 "By default, the original series/instances are deleted from Orthanc.", false) 1080 "By default, the original series/instances are deleted from Orthanc.", false)