# HG changeset patch # User Sebastien Jodogne # Date 1392288840 -3600 # Node ID a9cff2c077d48b0abd368350fd5a347182420494 # Parent 4789da60d6551465f79c6d50bed246e0db79a89a notes diff -r 4789da60d655 -r a9cff2c077d4 NEWS --- 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 diff -r 4789da60d655 -r a9cff2c077d4 README --- 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. diff -r 4789da60d655 -r a9cff2c077d4 UnitTestsSources/ServerIndex.cpp --- 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 @@ -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, "")); +}