浏览代码

Rename cMove routines to retrieve to highlight internal management of C-MOVE by Orthanc

Andrej 1 月之前
父节点
当前提交
99560b22c1
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      orthancQR.py

+ 2 - 2
orthancQR.py

@@ -47,14 +47,14 @@ class orthancQR:
       #content of answer, object with DICOM codes (IDs etc)
       #content of answer, object with DICOM codes (IDs etc)
       return orthancDatabaseBrowser.extractJSON(response.data)
       return orthancDatabaseBrowser.extractJSON(response.data)
 
 
-   def sendCMoveForAll(self,queryId):
+   def startRetrievaJobForAll(self,queryId):
 #returns jobDescripton as JSON (ID,Path)
 #returns jobDescripton as JSON (ID,Path)
       apiURL='/'.join([self.net.getCoreURL(),'queries',queryId,'retrieve'])
       apiURL='/'.join([self.net.getCoreURL(),'queries',queryId,'retrieve'])
       v={"TargetAet":"NIXLJUOIL","RetrieveMethod":"C-MOVE","Synchronous":False}
       v={"TargetAet":"NIXLJUOIL","RetrieveMethod":"C-MOVE","Synchronous":False}
       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)
 
 
-   def sendCMove(self,queryId,answerId):
+   def startRetrieveJob(self,queryId,answerId):
 #returns jobDescripton as JSON (ID,Path)
 #returns jobDescripton as JSON (ID,Path)
       apiURL='/'.join([self.net.getCoreURL(),'queries',queryId,'answers',answerId,'retrieve'])
       apiURL='/'.join([self.net.getCoreURL(),'queries',queryId,'answers',answerId,'retrieve'])
       v={"TargetAet":"NIXLJUOIL","RetrieveMethod":"C-MOVE","Synchronous":False}
       v={"TargetAet":"NIXLJUOIL","RetrieveMethod":"C-MOVE","Synchronous":False}