public StudyData[] FindStudies(string authenticationCookie, DataContracts.QueryOptions options, DataContracts.ExtraOptions extraOptions)
        {
            string userName;

            userName = ServiceUtils.Authorize(authenticationCookie, PermissionsTable.Instance.CanQuery);

            int MaxQueryResults = 0;

            if (extraOptions != null && extraOptions.UserData != null)
            {
                MaxQueryResults = Convert.ToInt32(extraOptions.UserData);
            }

            var readModalitiesInStudy = false;

            if (extraOptions != null)
            {
                if (extraOptions.UserData2 != null)
                {
                    if (extraOptions.UserData2.ToLower() == "readmodalitiesinstudy")
                    {
                        readModalitiesInStudy = true;
                    }
                }
            }

            return(_queryAddin.FindStudies(userName, options, MaxQueryResults, readModalitiesInStudy));
        }
Exemple #2
0
        public Task <PatientData[]> FindPatients(string authenticationCookie, DataContracts.QueryOptions options, ExtraOptions extraOptions)
        {
            AuthHandler.Authorize(authenticationCookie, PermissionsTable.Instance.CanQuery);
            return(null);

            //this may be implemented as follows:
            //var config = RemoteConnectionFactory.Config(new WadoConnection() { dicomWebRoot = @"http://localhost/WadoService/api/", qido = "qido-rs" });
            //var patients = await _query.FindPatients(config , options);
            //return patients;
            //MaxQueryResults(extraOptions)
        }
        public PatientData[] FindPatients(string authenticationCookie, DataContracts.QueryOptions options, DataContracts.ExtraOptions extraOptions)
        {
            string userName;

            userName = ServiceUtils.Authorize(authenticationCookie, PermissionsTable.Instance.CanQuery);

            int MaxQueryResults = 0;

            if (extraOptions != null && extraOptions.UserData != null)
            {
                MaxQueryResults = Convert.ToInt32(extraOptions.UserData);
            }
            return(_queryAddin.FindPatients(userName, options, MaxQueryResults));
        }
Exemple #4
0
        public Task <InstanceData[]> FindInstances(string authenticationCookie, DataContracts.QueryOptions options, string baseUrl, DataContracts.ExtraOptions extraOptions)
        {
            AuthHandler.Authorize(authenticationCookie, PermissionsTable.Instance.CanQuery);
            return(null);

            //this may be implemented as follows:
            //var config = RemoteConnectionFactory.Config(new WadoConnection() { dicomWebRoot = @"http://localhost/WadoService/api/", qido = "qido-rs" });
            //var instances = await _query.FindInstances(config , options);
            //return instances;
            //authenticationCookie,
            //MaxQueryResults(extraOptions),
            //LightQuery(extraOptions),
            //NoSort(extraOptions),
            //StackInstanceUID(extraOptions),
            //TimeStampProvider.GetTimeStamp(),
        }
        public SeriesData[] FindSeries(string authenticationCookie, DataContracts.QueryOptions options, DataContracts.ExtraOptions extraOptions)
        {
            string userName;

            userName = ServiceUtils.Authorize(authenticationCookie, PermissionsTable.Instance.CanQuery);

            int MaxQueryResults = 0;

            if (extraOptions != null && extraOptions.UserData != null)
            {
                MaxQueryResults = Convert.ToInt32(extraOptions.UserData);
            }

            bool lightQuery = extraOptions != null && extraOptions.UserData2 != null ? (extraOptions.UserData2 == "lightQuery") : false;

            return(_queryAddin.FindSeries(userName, options, MaxQueryResults, lightQuery));
        }
        public InstanceData[] FindInstances(string authenticationCookie, DataContracts.QueryOptions options, DataContracts.ExtraOptions extraOptions)
        {
            string userName;


            userName = ServiceUtils.Authorize(authenticationCookie, PermissionsTable.Instance.CanQuery);

            int MaxQueryResults = 0;

            if (extraOptions != null && extraOptions.UserData != null)
            {
                MaxQueryResults = Convert.ToInt32(extraOptions.UserData);
            }

            bool   lightQuery       = extraOptions != null && extraOptions.UserData2 != null ? (extraOptions.UserData2 == "lightQuery") : false;
            bool   noSort           = extraOptions != null && extraOptions.UserData3 != null ? (extraOptions.UserData3 == "NoSort") : false;
            string stackInstanceUID = !lightQuery && extraOptions != null && extraOptions.UserData2 != null ? extraOptions.UserData2 : string.Empty;

            return(_queryAddin.FindInstances(userName, options, MaxQueryResults, lightQuery, noSort, stackInstanceUID));
        }
Exemple #7
0
        public Task <InstanceData[]> FindInstances(string authenticationCookie, DataContracts.QueryOptions options, string baseUrl, DataContracts.ExtraOptions extraOptions)
        {
            var userName = AuthHandler.Authorize(authenticationCookie, PermissionsTable.Instance.CanQuery);

            return(Task.Factory.StartNew(() => _queryAddin.Value.FindInstances(userName, options, MaxQueryResults(extraOptions), LightQuery(extraOptions), NoSort(extraOptions), StackInstanceUID(extraOptions))));
        }
Exemple #8
0
        public Task <StudyData[]> FindStudies(string authenticationCookie, DataContracts.QueryOptions options, DataContracts.ExtraOptions extraOptions)
        {
            var userName = AuthHandler.Authorize(authenticationCookie, PermissionsTable.Instance.CanQuery);

            return(Task.Factory.StartNew(() => _queryAddin.Value.FindStudies(userName, options, MaxQueryResults(extraOptions), ReadModalitiesInStudy(extraOptions))));
        }
Exemple #9
0
        public InstanceData[] FindInstances(string authenticationCookie, DataContracts.PACSConnection server, DataContracts.ClientConnection client, DataContracts.QueryOptions options, DataContracts.ExtraOptions extraOptions)
        {
            ServiceUtils.Authorize(authenticationCookie, PermissionsTable.Instance.CanQueryPACS);

            return(AddinsFactory.CreatePacsQueryAddin( ).FindInstances(server, client, options));
        }