comparison OrthancServer/Sources/ServerJobs/DicomMoveScuJob.h @ 4730:7826ac059c31

Added Short/Simplify/Full options to format "/modalities/{id}/find-worklist" and "/queries/{id}/retrieve"
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 25 Jun 2021 18:13:45 +0200
parents 4e2247df6327
children c1d6ce00be3f 7053502fbf97
comparison
equal deleted inserted replaced
4729:4e2247df6327 4730:7826ac059c31
50 class Unserializer; 50 class Unserializer;
51 51
52 ServerContext& context_; 52 ServerContext& context_;
53 DicomAssociationParameters parameters_; 53 DicomAssociationParameters parameters_;
54 std::string targetAet_; 54 std::string targetAet_;
55 Json::Value query_; 55 DicomFindAnswers query_;
56 DicomToJsonFormat queryFormat_; // New in 1.9.5 56 DicomToJsonFormat queryFormat_; // New in 1.9.5
57 57
58 std::unique_ptr<DicomControlUserConnection> connection_; 58 std::unique_ptr<DicomControlUserConnection> connection_;
59 59
60 void Retrieve(const DicomMap& findAnswer); 60 void Retrieve(const DicomMap& findAnswer);
61 61
62 public: 62 public:
63 explicit DicomMoveScuJob(ServerContext& context) : 63 explicit DicomMoveScuJob(ServerContext& context) :
64 context_(context), 64 context_(context),
65 query_(Json::arrayValue), 65 query_(true /* this is for worklists */),
66 queryFormat_(DicomToJsonFormat_Short) 66 queryFormat_(DicomToJsonFormat_Short)
67 { 67 {
68 } 68 }
69 69
70 DicomMoveScuJob(ServerContext& context, 70 DicomMoveScuJob(ServerContext& context,