public InPatientAntibioticCostRateDomain GetInPatientAntibioticCostRateDomain(DateTime startTime, DateTime endTime)
        {
            var result = new InPatientAntibioticCostRateDomain();

            try
            {
                result.TotalDrugCost       = this.innerFactory.CreateInPatientAllDrugCost().GetInPatientAllDrugCost(startTime, endTime);
                result.TotalAntibioticCost = this.innerFactory.CreateInPatientAntibioticCost().GetInPatientAntibioticCost(startTime, endTime);
            }
            catch (Exception)
            {
                throw;
            }
            return(result);
        }
        public InPatientAntibioticCostRateDomain GetInPatientAntibioticCostRateDomain(DateTime startTime, DateTime endTime)
        {
            var result = new InPatientAntibioticCostRateDomain();

            try
            {
                var inPatientAllDrugCostList = this.innerFactory.CreateInPatientAllDrugRecordFee().GetInpatientDrugRecordFees(startTime, endTime);
                result.TotalDrugCost       = inPatientAllDrugCostList.Sum(a => a.ActualPrice);
                result.TotalAntibioticCost = inPatientAllDrugCostList.Where(a => a.IsAntibiotic).Sum(b => b.ActualPrice);
            }
            catch (Exception)
            {
                throw;
            }
            return(result);
        }