Mercurial > hg > orthanc
comparison OrthancServer/main.cpp @ 1805:f08978b1f45b worklists
c-find scu for modality worklists
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 20 Nov 2015 17:56:31 +0100 |
parents | 138664eb59de |
children | 91216c42c6e5 |
comparison
equal
deleted
inserted
replaced
1803:d093f998a83b | 1805:f08978b1f45b |
---|---|
1078 { | 1078 { |
1079 for (;;) | 1079 for (;;) |
1080 { | 1080 { |
1081 OrthancInitialize(configurationFile); | 1081 OrthancInitialize(configurationFile); |
1082 | 1082 |
1083 if (0) | |
1084 { | |
1085 // TODO REMOVE THIS TEST | |
1086 DicomUserConnection c; | |
1087 c.SetRemoteHost("localhost"); | |
1088 c.SetRemotePort(4243); | |
1089 c.SetRemoteApplicationEntityTitle("ORTHANCTEST"); | |
1090 c.Open(); | |
1091 ParsedDicomFile f(false); | |
1092 f.Replace(DICOM_TAG_PATIENT_NAME, "M*"); | |
1093 DicomFindAnswers a; | |
1094 c.FindWorklist(a, f); | |
1095 Json::Value j; | |
1096 a.ToJson(j, true); | |
1097 std::cout << j; | |
1098 } | |
1099 | |
1083 bool restart = StartOrthanc(argc, argv, allowDatabaseUpgrade); | 1100 bool restart = StartOrthanc(argc, argv, allowDatabaseUpgrade); |
1084 if (restart) | 1101 if (restart) |
1085 { | 1102 { |
1086 OrthancFinalize(); | 1103 OrthancFinalize(); |
1087 } | 1104 } |