Mercurial > hg > orthanc
diff OrthancServer/OrthancRestApi.cpp @ 198:663cc6c46d0a
before refactoring of ServerIndex::GetXXX
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 27 Nov 2012 15:49:42 +0100 |
parents | 530a25320461 |
children | dfa2899d9960 |
line wrap: on
line diff
--- a/OrthancServer/OrthancRestApi.cpp Tue Nov 27 14:59:55 2012 +0100 +++ b/OrthancServer/OrthancRestApi.cpp Tue Nov 27 15:49:42 2012 +0100 @@ -514,6 +514,7 @@ if (uri[0] == "patients") { existingResource = index_.GetPatient(result, uri[1]); + assert(result["Type"] == "Patient"); } else if (uri[0] == "studies") {