Mercurial > hg > orthanc
comparison OrthancServer/ServerContext.cpp @ 2898:e5e3253a1164
DicomInstanceToStore::GetHasher()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 18 Oct 2018 11:44:17 +0200 |
parents | a27b0e9a3fd9 |
children | a80ba85d89e6 |
comparison
equal
deleted
inserted
replaced
2897:9ff17eb830ec | 2898:e5e3253a1164 |
---|---|
314 { | 314 { |
315 try | 315 try |
316 { | 316 { |
317 StorageAccessor accessor(area_); | 317 StorageAccessor accessor(area_); |
318 | 318 |
319 { | 319 resultPublicId = dicom.GetHasher().HashInstance(); |
320 DicomInstanceHasher hasher(dicom.GetSummary()); | |
321 resultPublicId = hasher.HashInstance(); | |
322 } | |
323 | 320 |
324 Json::Value simplifiedTags; | 321 Json::Value simplifiedTags; |
325 ServerToolbox::SimplifyTags(simplifiedTags, dicom.GetJson(), DicomToJsonFormat_Human); | 322 ServerToolbox::SimplifyTags(simplifiedTags, dicom.GetJson(), DicomToJsonFormat_Human); |
326 | 323 |
327 // Test if the instance must be filtered out | 324 // Test if the instance must be filtered out |