comparison OrthancServer/OrthancRestApi.cpp @ 443:be93b666ed79

link anonymized to original resource in OrthancExplorer
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 17 May 2013 16:55:30 +0200
parents 23e5b35e3c5c
children b7ef1a7d857e
comparison
equal deleted inserted replaced
442:40deb6525337 443:be93b666ed79
1317 return; 1317 return;
1318 } 1318 }
1319 1319
1320 1320
1321 /** 1321 /**
1322 * Record metadata information (AnonimizedFrom/ModifiedFrom). 1322 * Record metadata information (AnonymizedFrom/ModifiedFrom).
1323 **/ 1323 **/
1324 1324
1325 DicomInstanceHasher modifiedHasher = modified->GetHasher(); 1325 DicomInstanceHasher modifiedHasher = modified->GetHasher();
1326 DicomInstanceHasher originalHasher = original.GetHasher(); 1326 DicomInstanceHasher originalHasher = original.GetHasher();
1327 1327
1346 * Compute the JSON object that is returned by the REST call. 1346 * Compute the JSON object that is returned by the REST call.
1347 **/ 1347 **/
1348 1348
1349 if (isFirst) 1349 if (isFirst)
1350 { 1350 {
1351 context.GetIndex().SetMetadata(modifiedHasher.HashPatient(),
1352 metadataType, originalHasher.HashPatient());
1353
1351 std::string newId; 1354 std::string newId;
1352 1355
1353 switch (resourceType) 1356 switch (resourceType)
1354 { 1357 {
1355 case ResourceType_Series: 1358 case ResourceType_Series: