Mercurial > hg > orthanc
comparison OrthancCppClient/Patient.cpp @ 540:eaca3d38b2aa laaw
many fixes
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 12 Sep 2013 12:55:07 +0200 |
parents | 50d9660f960c |
children | 2d0a347e8cfc |
comparison
equal
deleted
inserted
replaced
537:2890721b0f57 | 540:eaca3d38b2aa |
---|---|
74 else | 74 else |
75 { | 75 { |
76 return defaultValue; | 76 return defaultValue; |
77 } | 77 } |
78 } | 78 } |
79 | |
80 void Patient::Delete() | |
81 { | |
82 Orthanc::HttpClient client(connection_.GetHttpClient()); | |
83 client.SetMethod(Orthanc::HttpMethod_Delete); | |
84 client.SetUrl(std::string(connection_.GetOrthancUrl()) + "/patients/" + id_); | |
85 | |
86 std::string s; | |
87 if (!client.Apply(s)) | |
88 { | |
89 throw OrthancClientException(Orthanc::ErrorCode_NetworkProtocol); | |
90 } | |
91 } | |
79 } | 92 } |