Mercurial > hg > orthanc
comparison OrthancServer/OrthancRestApi/OrthancRestSystem.cpp @ 788:7ebe4bf87196
refactoring
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 05 May 2014 18:39:36 +0200 |
parents | 5197fd35333c |
children | d466b3606aca |
comparison
equal
deleted
inserted
replaced
787:ac18946afa74 | 788:7ebe4bf87196 |
---|---|
66 static void GenerateUid(RestApi::GetCall& call) | 66 static void GenerateUid(RestApi::GetCall& call) |
67 { | 67 { |
68 std::string level = call.GetArgument("level", ""); | 68 std::string level = call.GetArgument("level", ""); |
69 if (level == "patient") | 69 if (level == "patient") |
70 { | 70 { |
71 call.GetOutput().AnswerBuffer(FromDcmtkBridge::GenerateUniqueIdentifier(DicomRootLevel_Patient), "text/plain"); | 71 call.GetOutput().AnswerBuffer(FromDcmtkBridge::GenerateUniqueIdentifier(ResourceType_Patient), "text/plain"); |
72 } | 72 } |
73 else if (level == "study") | 73 else if (level == "study") |
74 { | 74 { |
75 call.GetOutput().AnswerBuffer(FromDcmtkBridge::GenerateUniqueIdentifier(DicomRootLevel_Study), "text/plain"); | 75 call.GetOutput().AnswerBuffer(FromDcmtkBridge::GenerateUniqueIdentifier(ResourceType_Study), "text/plain"); |
76 } | 76 } |
77 else if (level == "series") | 77 else if (level == "series") |
78 { | 78 { |
79 call.GetOutput().AnswerBuffer(FromDcmtkBridge::GenerateUniqueIdentifier(DicomRootLevel_Series), "text/plain"); | 79 call.GetOutput().AnswerBuffer(FromDcmtkBridge::GenerateUniqueIdentifier(ResourceType_Series), "text/plain"); |
80 } | 80 } |
81 else if (level == "instance") | 81 else if (level == "instance") |
82 { | 82 { |
83 call.GetOutput().AnswerBuffer(FromDcmtkBridge::GenerateUniqueIdentifier(DicomRootLevel_Instance), "text/plain"); | 83 call.GetOutput().AnswerBuffer(FromDcmtkBridge::GenerateUniqueIdentifier(ResourceType_Instance), "text/plain"); |
84 } | 84 } |
85 } | 85 } |
86 | 86 |
87 static void ExecuteScript(RestApi::PostCall& call) | 87 static void ExecuteScript(RestApi::PostCall& call) |
88 { | 88 { |