コード例 #1
0
        public bool IsContainAntibiotic()
        {
            bool isContainAntibiotic = false;

            isContainAntibiotic = OutPatientPrescriptionDetails.Any(oppd => oppd.IsContainAntibiotic());
            return(isContainAntibiotic);
        }
コード例 #2
0
 public List <DrugCost> GetDrugCost()
 {
     return(OutPatientPrescriptionDetails.Select(opp => new DrugCost
     {
         ProductNumber = opp.DrugMaintenances.ProductNumber,
         ProductName = opp.DrugMaintenances.ProductName,
         Cost = opp.DrugCost(),
         IsAntibiotic = opp.IsContainAntibiotic()
     }).ToList());
 }
コード例 #3
0
        public List <string> AntibioticCategoryNumberList(DateTime startTime, DateTime endTime)
        {
            List <string> result = new List <string>();

            result = this.ChargeTime >= startTime && this.ChargeTime < endTime
                ? OutPatientPrescriptionDetails.Select(opp => opp.AntibioticCategoryNumber).ToList()
                : result;

            return(result);
        }
コード例 #4
0
        /// <summary>
        /// 获得该处方包含的所有药物信息的集合.
        /// </summary>
        /// <param name="startTime">The start time.</param>
        /// <param name="endTime">The end time.</param>
        /// <returns>List&lt;EssentialDrugMessage&gt;.</returns>
        internal List <AllDrugMessage> GetAllDrugMessage(DateTime startTime, DateTime endTime)
        {
            List <AllDrugMessage> result = new List <AllDrugMessage>();

            if (this.ChargeTime >= startTime && this.ChargeTime < endTime)
            {
                result = OutPatientPrescriptionDetails.Select(oop => oop.GetAllDrugMessage()).ToList();
            }
            return(result);
        }
コード例 #5
0
        public bool IsContainAntibiotic(DateTime startTime, DateTime endTime)
        {
            bool isContainAntibiotic = false;

            if (this.ChargeTime >= startTime && this.ChargeTime < endTime)
            {
                isContainAntibiotic = OutPatientPrescriptionDetails.Any(oppd => oppd.IsContainAntibiotic());
            }
            return(isContainAntibiotic);
        }
コード例 #6
0
 public List <DrugDoctorDepartmentCost> GetDrugDoctorDepartmentCost(string productNumber)
 {
     return(OutPatientPrescriptionDetails.Where(oppd => oppd.DrugMaintenances.ProductNumber == productNumber)
            .Select(c => new DrugDoctorDepartmentCost
     {
         Doctor = Doctors.DoctorName,
         Department = Departments.DepartmentName,
         Cost = c.Quantity * c.DrugMaintenances.UnitCost
     }).ToList());
 }
コード例 #7
0
 public List <DrugCost> GetDrugCost(DateTime startTime, DateTime endTime)
 {
     if (this.ChargeTime >= startTime && this.ChargeTime < endTime)
     {
         return(OutPatientPrescriptionDetails.Select(opp => new DrugCost
         {
             ProductNumber = opp.DrugMaintenances.ProductNumber,
             ProductName = opp.DrugMaintenances.ProductName,
             Cost = opp.DrugCost(),
             IsAntibiotic = opp.IsContainAntibiotic()
         }).ToList());
     }
     else
     {
         return(null);
     }
 }
コード例 #8
0
 public List <string> AntibioticCategoryNumberList()
 {
     return(OutPatientPrescriptionDetails.Select(opp => opp.AntibioticCategoryNumber).ToList());
 }
コード例 #9
0
 /// <summary>
 /// 处方单包含抗菌药物的费用
 /// </summary>
 /// <returns>Decimal.</returns>
 public Decimal AntibioticCost()
 {
     return(OutPatientPrescriptionDetails.Sum(opp => opp.AntibioticCost()));
 }
コード例 #10
0
 /// <summary>
 /// 处方单的部金额
 /// </summary>
 /// <returns>Decimal.</returns>
 public Decimal DrugCost()
 {
     return(OutPatientPrescriptionDetails.Sum(oppd => oppd.DrugCost()));
 }