comparison OrthancServer/Database/Compatibility/ICreateInstance.cpp @ 3124:c0d7aee8c3f8 db-changes

Fix issue #58 (Patient recycling order should be defined by their received last instance)
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 15 Jan 2019 21:09:33 +0100
parents f86ebf971a72
children 94f4a18a79cc
comparison
equal deleted inserted replaced
3121:f86ebf971a72 3124:c0d7aee8c3f8
141 if (result.isNewStudy_) 141 if (result.isNewStudy_)
142 { 142 {
143 database.AttachChild(result.patientId_, result.studyId_); 143 database.AttachChild(result.patientId_, result.studyId_);
144 } 144 }
145 145
146 database.TagAsMostRecentPatient(result.patientId_); 146 database.TagMostRecentPatient(result.patientId_);
147 147
148 // Sanity checks 148 // Sanity checks
149 assert(result.patientId_ != -1); 149 assert(result.patientId_ != -1);
150 assert(result.studyId_ != -1); 150 assert(result.studyId_ != -1);
151 assert(result.seriesId_ != -1); 151 assert(result.seriesId_ != -1);