Mercurial > hg > orthanc
comparison OrthancServer/OrthancRestApi.cpp @ 434:ccf3a0a43dac
EnumerationDictionary
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 15 May 2013 14:54:58 +0200 |
parents | b79bf2f4ab2e |
children | d51186bf7602 |
comparison
equal
deleted
inserted
replaced
433:aa50783f9550 | 434:ccf3a0a43dac |
---|---|
849 { | 849 { |
850 result["ID"] = publicId; | 850 result["ID"] = publicId; |
851 result["Path"] = GetBasePath(ResourceType_Instance, publicId); | 851 result["Path"] = GetBasePath(ResourceType_Instance, publicId); |
852 } | 852 } |
853 | 853 |
854 result["Status"] = ToString(status); | 854 result["Status"] = EnumerationToString(status); |
855 call.GetOutput().AnswerJson(result); | 855 call.GetOutput().AnswerJson(result); |
856 } | 856 } |
857 | 857 |
858 | 858 |
859 | 859 |
1366 | 1366 |
1367 default: | 1367 default: |
1368 throw OrthancException(ErrorCode_InternalError); | 1368 throw OrthancException(ErrorCode_InternalError); |
1369 } | 1369 } |
1370 | 1370 |
1371 result["Type"] = ToString(resourceType); | 1371 result["Type"] = EnumerationToString(resourceType); |
1372 result["ID"] = newId; | 1372 result["ID"] = newId; |
1373 result["Path"] = GetBasePath(resourceType, newId); | 1373 result["Path"] = GetBasePath(resourceType, newId); |
1374 result["PatientID"] = modifiedHasher.HashPatient(); | 1374 result["PatientID"] = modifiedHasher.HashPatient(); |
1375 isFirst = false; | 1375 isFirst = false; |
1376 } | 1376 } |