comparison OrthancServer/OrthancRestApi/OrthancRestSystem.cpp @ 1668:de1413733c97 db-changes

reconstructing main dicom tags
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 30 Sep 2015 17:18:39 +0200
parents eb8fbcf008b5
children b1291df2f780
comparison
equal deleted inserted replaced
1667:9e875db36aef 1668:de1413733c97
51 51
52 static void GetSystemInformation(RestApiGetCall& call) 52 static void GetSystemInformation(RestApiGetCall& call)
53 { 53 {
54 Json::Value result = Json::objectValue; 54 Json::Value result = Json::objectValue;
55 55
56 std::string dbVersion = OrthancRestApi::GetIndex(call).GetGlobalProperty(GlobalProperty_DatabaseSchemaVersion, "0"); 56 result["DatabaseVersion"] = OrthancRestApi::GetIndex(call).GetDatabaseVersion();
57
58 result["DatabaseVersion"] = boost::lexical_cast<int>(dbVersion);
59 result["DicomAet"] = Configuration::GetGlobalStringParameter("DicomAet", "ORTHANC"); 57 result["DicomAet"] = Configuration::GetGlobalStringParameter("DicomAet", "ORTHANC");
60 result["DicomPort"] = Configuration::GetGlobalIntegerParameter("DicomPort", 4242); 58 result["DicomPort"] = Configuration::GetGlobalIntegerParameter("DicomPort", 4242);
61 result["HttpPort"] = Configuration::GetGlobalIntegerParameter("HttpPort", 8042); 59 result["HttpPort"] = Configuration::GetGlobalIntegerParameter("HttpPort", 8042);
62 result["Name"] = Configuration::GetGlobalStringParameter("Name", ""); 60 result["Name"] = Configuration::GetGlobalStringParameter("Name", "");
63 result["Version"] = ORTHANC_VERSION; 61 result["Version"] = ORTHANC_VERSION;