-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support Delete Study to DICOMcloud server. Issue #8
- Loading branch information
1 parent
8a017d2
commit 1366e1f
Showing
19 changed files
with
439 additions
and
1,300 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
class DelowRsProxy | ||
{ | ||
public _baseUrl: string = ""; | ||
|
||
constructor(baseUrl: string = null) { | ||
this._baseUrl = baseUrl; | ||
} | ||
|
||
public get BaseUrl() { | ||
if (this._baseUrl === null) { | ||
return DICOMwebJS.ServerConfiguration.getDelowRsUrl(); | ||
} | ||
else | ||
{ | ||
return this._baseUrl; | ||
} | ||
} | ||
|
||
public set BaseUrl(value: string) { | ||
this._baseUrl = value; | ||
} | ||
|
||
public deleteStudy(studyUID: string): JQueryPromise<any> { | ||
var url = this.BaseUrl + "/studies/" + studyUID + "/"; //last part "/" is needed for proper routing | ||
let settings: JQueryAjaxSettings = { | ||
url: url, | ||
type: "DELETE" | ||
} | ||
|
||
if (DICOMwebJS.ServerConfiguration.IncludeAuthorizationHeader) { | ||
settings.headers = { "Authorization": DICOMwebJS.ServerConfiguration.SecurityToken }; | ||
} | ||
|
||
var deffered = $.Deferred(); | ||
|
||
$.ajax(settings).then( | ||
(data) => { | ||
return deffered.resolve(data); | ||
}, | ||
(jqxhr, textStatus, error) => { | ||
return deffered.reject(Error(error)); | ||
}); | ||
|
||
return deffered.promise(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.