Mercurial > hg > orthanc
changeset 705:a9cff2c077d4
notes
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 13 Feb 2014 11:54:00 +0100 |
parents | 4789da60d655 |
children | 2d829ea1db96 |
files | NEWS README UnitTestsSources/ServerIndex.cpp |
diffstat | 3 files changed, 36 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/NEWS Wed Feb 12 17:03:18 2014 +0100 +++ b/NEWS Thu Feb 13 11:54:00 2014 +0100 @@ -1,11 +1,18 @@ Pending changes in the mainline =============================== +Major changes +------------- + * Custom attachment of files to patients, studies, series or instances * Access to lowlevel info about the attached files through the REST API +* Recover pixel data for more transfer syntaxes (notably JPEG) + +Minor changes +------------- + * AET comparison is now case-insensitive by default * Possibility to disable the HTTP server or the DICOM server -* Recover pixel data for more transfer syntaxes (notably JPEG) * Automatic computation of MD5 hashes for the stored DICOM files * Maintenance tool to recover DICOM files compressed by Orthanc * The newline characters in the configuration file are fixed for Linux
--- a/README Wed Feb 12 17:03:18 2014 +0100 +++ b/README Thu Feb 13 11:54:00 2014 +0100 @@ -5,9 +5,9 @@ General Information ------------------- -General information about this software can be found on our Google -Code hosting page: -http://code.google.com/p/orthanc/ +General information about this software can be found on its official +Website: +http://www.orthanc-server.com/ The instructions for building Orthanc can be found in the "INSTALL" file.
--- a/UnitTestsSources/ServerIndex.cpp Wed Feb 12 17:03:18 2014 +0100 +++ b/UnitTestsSources/ServerIndex.cpp Thu Feb 13 11:54:00 2014 +0100 @@ -1,6 +1,8 @@ #include "gtest/gtest.h" #include "../OrthancServer/DatabaseWrapper.h" +#include "../OrthancServer/ServerContext.h" +#include "../OrthancServer/ServerIndex.h" #include "../Core/Uuid.h" #include <ctype.h> @@ -508,3 +510,26 @@ ASSERT_TRUE(DicomMap::IsMainDicomTag(DICOM_TAG_PATIENT_ID, ResourceType_Patient)); ASSERT_FALSE(DicomMap::IsMainDicomTag(DICOM_TAG_PATIENT_ID, ResourceType_Study)); } + + + +TEST(DatabaseWrapper, AttachmentRecycling) +{ + const std::string path = "OrthancStorageUnitTests"; + Toolbox::RemoveFile(path + "/index"); + ServerContext context(path, ":memory:"); + ServerIndex& index = context.GetIndex(); + + Json::Value tmp; + index.ComputeStatistics(tmp); + ASSERT_EQ(0, tmp["PatientCount"].asInt()); + + ServerIndex::Attachments attachments; + + DicomMap instance; + m.SetValue(DICOM_TAG_PATIENT_ID, "patient1"); + m.SetValue(DICOM_TAG_STUDY_INSTANCE_UID, "study1"); + m.SetValue(DICOM_TAG_SERIES_INSTANCE_UID, "series1"); + m.SetValue(DICOM_TAG_SOP_INSTANCE_UID, "instance1"); + ASSERT_EQ(StoreStatus_Success, index.Store(instance, attachments, "")); +}