Ejemplo n.º 1
0
        public List <SPCPathoReports> RetrivePathologistReports(SPCPathoReportRequest prData)
        {
            string stProc = FetchSPCPathoDiagnosisReports;
            var    pList  = new List <SqlParameter>()
            {
                new SqlParameter("@DistrictId", prData.districtId),
                new SqlParameter("@BlockId", prData.blockId),
                new SqlParameter("@CHCID", prData.chcId),
                new SqlParameter("@ANMID", prData.anmId),
                new SqlParameter("@SampleStatus", prData.sampleStatus),
                new SqlParameter("@FromDate", prData.fromDate),
                new SqlParameter("@ToDate", prData.toDate)
            };
            var allData = UtilityDL.FillData <SPCPathoReports>(stProc, pList);

            return(allData);
        }
Ejemplo n.º 2
0
 public SPCPathoReportResponse RetrieveDiagnosisReports(SPCPathoReportRequest prData)
 {
     try
     {
         _logger.LogInformation($"Invoking endpoint: {this.HttpContext.Request.GetDisplayUrl()}");
         _logger.LogDebug($"Received subject for diagnosis reports  - {JsonConvert.SerializeObject(prData)}");
         var subjects = _spcService.RetrivePathologistReports(prData);
         return(subjects.Count == 0 ? new SPCPathoReportResponse {
             Status = "true", Message = "No subjects found", Subjects = new List <SPCPathoReports>()
         }
         : new SPCPathoReportResponse {
             Status = "true", Message = string.Empty, Subjects = subjects
         });
     }
     catch (Exception e)
     {
         return(new SPCPathoReportResponse {
             Status = "false", Message = e.Message, Subjects = null
         });
     }
 }
Ejemplo n.º 3
0
        public List <SPCPathoReports> RetrivePathologistReports(SPCPathoReportRequest prData)
        {
            var allSubject = _spcData.RetrivePathologistReports(prData);

            return(allSubject);
        }