module DICOMwebJS { export module ServerConfiguration { export var BaseServerUrl ; export var OhifViewerUrl ; export var WadoUriPart = "wadouri" ; export var WadoRsPart = "wadors" ; export var StowPart = "stowrs" ; export var QidoPart = "qidors" ; export var DelowRsPart = "delowrs" ; export var IncludeAuthorizationHeader = false ; export var SecurityToken = "" ; export function getWadoUriUrl ( ) { return DICOMwebJS . ServerConfiguration . BaseServerUrl + DICOMwebJS . ServerConfiguration . WadoUriPart ; } export function getWadoRsUrl ( ) { return DICOMwebJS . ServerConfiguration . BaseServerUrl + DICOMwebJS . ServerConfiguration . WadoRsPart ; } export function getStowUrl ( ) { return DICOMwebJS . ServerConfiguration . BaseServerUrl + DICOMwebJS . ServerConfiguration . StowPart ; } export function getQidoUrl ( ) { return DICOMwebJS . ServerConfiguration . BaseServerUrl + DICOMwebJS . ServerConfiguration . QidoPart ; } export function getDelowRsUrl ( ) { return DICOMwebJS . ServerConfiguration . BaseServerUrl + DICOMwebJS . ServerConfiguration . DelowRsPart ; } export function getOhifJsonEndpoint ( studyInstanceUid ) { return DICOMwebJS . ServerConfiguration . BaseServerUrl + "/ohif/study/" + studyInstanceUid + "/series" ; } export function getOhifViewerUrl ( studyInstanceUid ) { return DICOMwebJS . ServerConfiguration . OhifViewerUrl + "?url=" + DICOMwebJS . ServerConfiguration . getOhifJsonEndpoint ( studyInstanceUid ) ; } } }