Mercurial > hg > orthanc
diff OrthancServer/ServerIndex.cpp @ 1709:2ad22b2970a2 db-changes
SearchableStudies
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 13 Oct 2015 17:48:30 +0200 |
parents | a903d57d9f0c |
children | 5ebd6cbb3da8 |
line wrap: on
line diff
--- a/OrthancServer/ServerIndex.cpp Tue Oct 13 16:57:55 2015 +0200 +++ b/OrthancServer/ServerIndex.cpp Tue Oct 13 17:48:30 2015 +0200 @@ -687,7 +687,14 @@ { study = CreateResource(hasher.HashStudy(), ResourceType_Study); Toolbox::SetMainDicomTags(db_, study, ResourceType_Study, dicomSummary, true); - Toolbox::SetMainDicomTags(db_, study, ResourceType_Patient, dicomSummary, false); // New in version 0.9.5 (db v6) + + // New in version 0.9.5 (db v6) + Toolbox::SetMainDicomTags(db_, study, ResourceType_Patient, dicomSummary, false); + + DicomMap module; + Toolbox::ExtractModule(module, dicomSummary, DicomModule_Patient, true /* normalize */); + Toolbox::ExtractModule(module, dicomSummary, DicomModule_Study, true /* normalize */); + db_.StoreStudyModule(study, module); } // Create the patient if needed