Mercurial > hg > orthanc
comparison OrthancServer/FromDcmtkBridge.cpp @ 2172:84d1d392a9ab
GenerateUuid() not available in sandboxed environments
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 23 Nov 2016 12:06:00 +0100 |
parents | cbebc5d072b0 |
children | 6dc3bdb4088b |
comparison
equal
deleted
inserted
replaced
2171:35febe19e874 | 2172:84d1d392a9ab |
---|---|
37 #endif | 37 #endif |
38 | 38 |
39 #include "FromDcmtkBridge.h" | 39 #include "FromDcmtkBridge.h" |
40 #include "ToDcmtkBridge.h" | 40 #include "ToDcmtkBridge.h" |
41 #include "../Core/Logging.h" | 41 #include "../Core/Logging.h" |
42 #include "../Core/SystemToolbox.h" | |
42 #include "../Core/Toolbox.h" | 43 #include "../Core/Toolbox.h" |
43 #include "../Core/TemporaryFile.h" | 44 #include "../Core/TemporaryFile.h" |
44 #include "../Core/OrthancException.h" | 45 #include "../Core/OrthancException.h" |
45 | 46 |
46 #include <list> | 47 #include <list> |
1117 { | 1118 { |
1118 case ResourceType_Patient: | 1119 case ResourceType_Patient: |
1119 // The "PatientID" field is of type LO (Long String), 64 | 1120 // The "PatientID" field is of type LO (Long String), 64 |
1120 // Bytes Maximum. An UUID is of length 36, thus it can be used | 1121 // Bytes Maximum. An UUID is of length 36, thus it can be used |
1121 // as a random PatientID. | 1122 // as a random PatientID. |
1122 return Toolbox::GenerateUuid(); | 1123 return SystemToolbox::GenerateUuid(); |
1123 | 1124 |
1124 case ResourceType_Instance: | 1125 case ResourceType_Instance: |
1125 return dcmGenerateUniqueIdentifier(uid, SITE_INSTANCE_UID_ROOT); | 1126 return dcmGenerateUniqueIdentifier(uid, SITE_INSTANCE_UID_ROOT); |
1126 | 1127 |
1127 case ResourceType_Series: | 1128 case ResourceType_Series: |