comparison OrthancServer/ServerIndex.cpp @ 1711:5ebd6cbb3da8 db-changes

Backed out changeset 2ad22b2970a2
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 16 Oct 2015 17:36:07 +0200
parents 2ad22b2970a2
children 2ca7888f8600
comparison
equal deleted inserted replaced
1709:2ad22b2970a2 1711:5ebd6cbb3da8
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 690 Toolbox::SetMainDicomTags(db_, study, ResourceType_Patient, dicomSummary, false); // New in version 0.9.5 (db v6)
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);
698 } 691 }
699 692
700 // Create the patient if needed 693 // Create the patient if needed
701 if (isNewPatient) 694 if (isNewPatient)
702 { 695 {