예제 #1
0
        public FhirResponse Search(string type)
        {
            var searchparams = Request.GetSearchParams();

            //int pagesize = Request.GetIntParameter(FhirParameter.COUNT) ?? Const.DEFAULT_PAGE_SIZE;
            //string sortby = Request.GetParameter(FhirParameter.SORT);

            return(service.Search(type, searchparams));
        }
예제 #2
0
        public Bundle Search(string type)
        {
            var    parameters = Request.TupledParameters();
            int    pagesize   = Request.GetIntParameter(FhirParameter.COUNT) ?? Const.DEFAULT_PAGE_SIZE;
            bool   summary    = Request.GetBooleanParameter(FhirParameter.SUMMARY) ?? false;
            string sortby     = Request.GetParameter(FhirParameter.SORT);

            // On implementing _summary: this has to be done at two different abstraction layers:
            // a) The serialization (which is the formatter in WebApi2 needs to call the serializer with a _summary param
            // b) The service needs to generate self/paging links which retain the _summary parameter
            // This is all still todo ;-)
            return(service.Search(type, parameters, pagesize, sortby));
        }