Mercurial > hg > orthanc
comparison OrthancFramework/Sources/Enumerations.cpp @ 5025:afa427f65444
Added an Asynchronous mode to /modalities/../move
author | Alain Mazy <am@osimis.io> |
---|---|
date | Tue, 21 Jun 2022 10:55:45 +0200 |
parents | b7ce2bb6b881 |
children | 3444990cf295 |
comparison
equal
deleted
inserted
replaced
5021:559b35d18ef7 | 5025:afa427f65444 |
---|---|
1312 } | 1312 } |
1313 | 1313 |
1314 throw OrthancException(ErrorCode_ParameterOutOfRange); | 1314 throw OrthancException(ErrorCode_ParameterOutOfRange); |
1315 } | 1315 } |
1316 | 1316 |
1317 const char* ResourceTypeToDicomQueryRetrieveLevel(ResourceType type) | |
1318 { | |
1319 if (type == ResourceType_Patient) | |
1320 { | |
1321 return "PATIENT"; | |
1322 } | |
1323 else if (type == ResourceType_Study) | |
1324 { | |
1325 return "STUDY"; | |
1326 } | |
1327 else if (type == ResourceType_Series) | |
1328 { | |
1329 return "SERIES"; | |
1330 } | |
1331 else if (type == ResourceType_Instance) | |
1332 { | |
1333 return "IMAGE"; | |
1334 } | |
1335 | |
1336 throw OrthancException(ErrorCode_ParameterOutOfRange); | |
1337 } | |
1317 | 1338 |
1318 ImageFormat StringToImageFormat(const char* format) | 1339 ImageFormat StringToImageFormat(const char* format) |
1319 { | 1340 { |
1320 std::string s(format); | 1341 std::string s(format); |
1321 Toolbox::ToUpperCase(s); | 1342 Toolbox::ToUpperCase(s); |