Mercurial > hg > orthanc
diff OrthancServer/main.cpp @ 1811:67466dcd23b1
integration worklists->mainline
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 23 Nov 2015 17:10:11 +0100 |
parents | 5ed8769b17f9 |
children | d364926389e0 |
line wrap: on
line diff
--- a/OrthancServer/main.cpp Mon Nov 23 15:24:39 2015 +0100 +++ b/OrthancServer/main.cpp Mon Nov 23 17:10:11 2015 +0100 @@ -736,7 +736,8 @@ dicomServer.SetFindRequestHandlerFactory(serverFactory); #if ORTHANC_PLUGINS_ENABLED == 1 - if (plugins) + if (plugins && + plugins->HasWorklistHandler()) { dicomServer.SetWorklistRequestHandlerFactory(*plugins); } @@ -1106,6 +1107,23 @@ { OrthancInitialize(configurationFile); + if (0) + { + // TODO REMOVE THIS TEST + DicomUserConnection c; + c.SetRemoteHost("localhost"); + c.SetRemotePort(4243); + c.SetRemoteApplicationEntityTitle("ORTHANCTEST"); + c.Open(); + ParsedDicomFile f(false); + f.Replace(DICOM_TAG_PATIENT_NAME, "M*"); + DicomFindAnswers a; + c.FindWorklist(a, f); + Json::Value j; + a.ToJson(j, true); + std::cout << j; + } + bool restart = StartOrthanc(argc, argv, allowDatabaseUpgrade); if (restart) {