Beispiel #1
0
 public Task <DownloadInfo> DownloadImages([FromBody] dynamic model)
 {
     return(impl(model).DownloadImages((string)model.authenticationCookie,
                                       RemoteConnectionFactory.Server(model),
                                       (string)model.client,
                                       (string)model.patientID,
                                       (string)model.studyInstanceUID,
                                       (string)model.seriesInstanceUID,
                                       (string)model.sopInstanceUID,
                                       ParseTools.ToObject <ExtraOptions>(model.extraOptions)));
 }
Beispiel #2
0
 public DICOMQueryResult ElectStudyTimeLineInstances([FromBody] dynamic model)
 {
     return(impl(model).ElectStudyTimeLineInstances((string)model.authenticationCookie, ParseTools.ToObject <QueryOptions>(model.options)));
 }
Beispiel #3
0
 public async Task <SeriesData[]> FindSeries([FromBody] dynamic model)
 {
     return(await impl(model).FindSeries((string)model.authenticationCookie, ParseTools.ToObject <QueryOptions>(model.options), ParseTools.ToObject <ExtraOptions>(model.extraOptions)));
 }
Beispiel #4
0
        public async Task <InstanceData[]> FindInstances([FromBody] dynamic model)
        {
            var fullUrl = Request.RequestUri.OriginalString;
            var index   = fullUrl.LastIndexOf("/api/");
            var baseUrl = fullUrl.Substring(0, index + 1);

            return(await impl(model).FindInstances((string)model.authenticationCookie, ParseTools.ToObject <QueryOptions>(model.options), baseUrl, ParseTools.ToObject <ExtraOptions>(model.extraOptions)));
        }
Beispiel #5
0
 public async Task <string> Create3DObject([FromBody] dynamic model)
 {
     try
     {
         return(await Task.Factory.StartNew(() => _threedimpl.Create3DObject(model.authenticationCookie.ToString(), ParseTools.ToObject <QueryOptions>(model.options), model.id.ToString(), int.Parse(model.renderingType.ToString()), ParseTools.ToObject <ExtraOptions>(model.extraOptions))));
     }
     catch (Exception ex)
     {
         throw Error(ex);
     }
 }
 public void DenyRoleAccess([FromBody] dynamic model)
 {
     _impl.DenyRoleAccess((string)model.authenticationCookie, ParseTools.ToObject <RolePermissions>(model.roleAccess));
 }
 public void GrantRolePatients([FromBody] dynamic model)
 {
     _impl.GrantRolePatients((string)model.authenticationCookie, (string)model.role, ParseTools.ToObject <List <string> >(model.patientIds));
 }
 public void GrantUserAccess([FromBody] dynamic model)
 {
     _impl.GrantUserAccess((string)model.authenticationCookie, ParseTools.ToObject <UserPermissions>(model.userAccess));
 }
 public RolePermissions[] GetRolesAccess([FromBody] dynamic model)
 {
     return(_impl.GetRolesAccess((string)model.authenticationCookie, ParseTools.ToObject <List <string> >(model.roles)));
 }