comparison OrthancServer/Sources/OrthancRestApi/OrthancRestAnonymizeModify.cpp @ 5497:4dd50c4b985a pg-transactions

merge default -> pg-transactions
author Alain Mazy <am@osimis.io>
date Tue, 23 Jan 2024 17:05:28 +0100
parents 4b3f5986eca1
children f7adfb22e20e
comparison
equal deleted inserted replaced
5494:3e02be2ccaee 5497:4dd50c4b985a
1 /** 1 /**
2 * Orthanc - A Lightweight, RESTful DICOM Store 2 * Orthanc - A Lightweight, RESTful DICOM Store
3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics 3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics
4 * Department, University Hospital of Liege, Belgium 4 * Department, University Hospital of Liege, Belgium
5 * Copyright (C) 2017-2023 Osimis S.A., Belgium 5 * Copyright (C) 2017-2024 Osimis S.A., Belgium
6 * Copyright (C) 2021-2023 Sebastien Jodogne, ICTEAM UCLouvain, Belgium 6 * Copyright (C) 2021-2024 Sebastien Jodogne, ICTEAM UCLouvain, Belgium
7 * 7 *
8 * This program is free software: you can redistribute it and/or 8 * This program is free software: you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License as 9 * modify it under the terms of the GNU General Public License as
10 * published by the Free Software Foundation, either version 3 of the 10 * published by the Free Software Foundation, either version 3 of the
11 * License, or (at your option) any later version. 11 * License, or (at your option) any later version.
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)