Mercurial > hg > orthanc
comparison OrthancServer/main.cpp @ 681:3bdb5db8e839 query-retrieve
generalization of query/retrieve
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 24 Jan 2014 17:40:45 +0100 |
parents | 5425bb6f1ea5 |
children | 67e6400fca03 |
comparison
equal
deleted
inserted
replaced
679:28e4b3ec8aff | 681:3bdb5db8e839 |
---|---|
410 | 410 |
411 // GO !!! | 411 // GO !!! |
412 httpServer.Start(); | 412 httpServer.Start(); |
413 dicomServer.Start(); | 413 dicomServer.Start(); |
414 | 414 |
415 | |
416 { | |
417 DicomUserConnection c; | |
418 c.SetLocalApplicationEntityTitle("ORTHANC"); | |
419 c.SetDistantApplicationEntityTitle("ORTHANC"); | |
420 c.SetDistantHost("localhost"); | |
421 c.SetDistantPort(4343); | |
422 c.Open(); | |
423 | |
424 DicomMap m; // Delphine | |
425 m.SetValue(DICOM_TAG_PATIENT_ID, "5423962"); | |
426 m.SetValue(DICOM_TAG_STUDY_INSTANCE_UID, "1.2.840.113845.11.1000000001951524609.20121203131451.1457891"); | |
427 m.SetValue(DICOM_TAG_SERIES_INSTANCE_UID, "1.2.840.113619.2.278.3.262930758.589.1354512768.115"); | |
428 m.SetValue(DICOM_TAG_SOP_INSTANCE_UID, "1.3.12.2.1107.5.2.33.37097.2012041613043195815872177"); | |
429 | |
430 DicomFindAnswers fnd; | |
431 c.FindInstance(fnd, m); | |
432 //c.FindSeries(fnd, m); | |
433 | |
434 printf("ok %d\n", fnd.GetSize()); | |
435 } | |
436 | |
437 | |
415 LOG(WARNING) << "Orthanc has started"; | 438 LOG(WARNING) << "Orthanc has started"; |
416 Toolbox::ServerBarrier(); | 439 Toolbox::ServerBarrier(); |
417 | 440 |
418 // Stop | 441 // Stop |
419 LOG(WARNING) << "Orthanc is stopping"; | 442 LOG(WARNING) << "Orthanc is stopping"; |