|
@@ -28,8 +28,8 @@ class orthancQR:
|
|
#OK if empty,JSON if fail
|
|
#OK if empty,JSON if fail
|
|
return orthancDatabaseBrowser.extractJSON(response.data)
|
|
return orthancDatabaseBrowser.extractJSON(response.data)
|
|
|
|
|
|
- def sendCFind(self,name,query):
|
|
|
|
- v={"Level":"Study","Query":query}
|
|
|
|
|
|
+ def sendCFind(self,name,par):
|
|
|
|
+ v={"Level":par.get("Level","Study"),"Query":par["Query"]}
|
|
apiURL='/'.join([self.net.getCoreURL(),'modalities',name,'query'])
|
|
apiURL='/'.join([self.net.getCoreURL(),'modalities',name,'query'])
|
|
response=self.net.post(apiURL,json.dumps(v),'json')
|
|
response=self.net.post(apiURL,json.dumps(v),'json')
|
|
#pair of ID/Path json object
|
|
#pair of ID/Path json object
|
|
@@ -61,3 +61,4 @@ class orthancQR:
|
|
response=self.net.post(apiURL,json.dumps(v),'json')
|
|
response=self.net.post(apiURL,json.dumps(v),'json')
|
|
return orthancDatabaseBrowser.extractJSON(response.data)
|
|
return orthancDatabaseBrowser.extractJSON(response.data)
|
|
|
|
|
|
|
|
+
|