Mercurial > hg > orthanc
comparison OrthancServer/Database/Compatibility/ICreateInstance.cpp @ 3121:f86ebf971a72 db-changes
fix unit tests
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 14 Jan 2019 16:23:08 +0100 |
parents | 2e1808b6146a |
children | c0d7aee8c3f8 |
comparison
equal
deleted
inserted
replaced
3120:a323b75e5b08 | 3121:f86ebf971a72 |
---|---|
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_); | |
147 | |
146 // Sanity checks | 148 // Sanity checks |
147 assert(result.patientId_ != -1); | 149 assert(result.patientId_ != -1); |
148 assert(result.studyId_ != -1); | 150 assert(result.studyId_ != -1); |
149 assert(result.seriesId_ != -1); | 151 assert(result.seriesId_ != -1); |
150 assert(instanceId != -1); | 152 assert(instanceId != -1); |