comparison 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
comparison
equal deleted inserted replaced
1708:275780da54ae 1709:2ad22b2970a2
685 // Create the study if needed 685 // Create the study if needed
686 if (isNewStudy) 686 if (isNewStudy)
687 { 687 {
688 study = CreateResource(hasher.HashStudy(), ResourceType_Study); 688 study = CreateResource(hasher.HashStudy(), ResourceType_Study);
689 Toolbox::SetMainDicomTags(db_, study, ResourceType_Study, dicomSummary, true); 689 Toolbox::SetMainDicomTags(db_, study, ResourceType_Study, dicomSummary, true);
690 Toolbox::SetMainDicomTags(db_, study, ResourceType_Patient, dicomSummary, false); // New in version 0.9.5 (db v6) 690
691 // New in version 0.9.5 (db v6)
692 Toolbox::SetMainDicomTags(db_, study, ResourceType_Patient, dicomSummary, false);
693
694 DicomMap module;
695 Toolbox::ExtractModule(module, dicomSummary, DicomModule_Patient, true /* normalize */);
696 Toolbox::ExtractModule(module, dicomSummary, DicomModule_Study, true /* normalize */);
697 db_.StoreStudyModule(study, module);
691 } 698 }
692 699
693 // Create the patient if needed 700 // Create the patient if needed
694 if (isNewPatient) 701 if (isNewPatient)
695 { 702 {