comparison OrthancServer/OrthancRestApi.cpp @ 253:15fcd925b05b

improvement
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 05 Dec 2012 13:08:13 +0100
parents f23318b11b39
children 337c506461d2
comparison
equal deleted inserted replaced
252:bd009f0b1931 253:15fcd925b05b
364 std::string n = resource["MainDicomTags"]["PatientName"].asString(); 364 std::string n = resource["MainDicomTags"]["PatientName"].asString();
365 return p + " " + n; 365 return p + " " + n;
366 } 366 }
367 367
368 case ResourceType_Study: 368 case ResourceType_Study:
369 {
369 return resource["MainDicomTags"]["StudyDescription"].asString(); 370 return resource["MainDicomTags"]["StudyDescription"].asString();
371 }
370 372
371 case ResourceType_Series: 373 case ResourceType_Series:
372 return resource["MainDicomTags"]["SeriesDescription"].asString(); 374 {
375 std::string d = resource["MainDicomTags"]["SeriesDescription"].asString();
376 std::string m = resource["MainDicomTags"]["Modality"].asString();
377 return m + " " + d;
378 }
373 379
374 default: 380 default:
375 throw OrthancException(ErrorCode_InternalError); 381 throw OrthancException(ErrorCode_InternalError);
376 } 382 }
377 } 383 }