public bool IsContainAntibiotic() { bool isContainAntibiotic = false; isContainAntibiotic = OutPatientPrescriptionDetails.Any(oppd => oppd.IsContainAntibiotic()); return(isContainAntibiotic); }
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()); }
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); }
/// <summary> /// 获得该处方包含的所有药物信息的集合. /// </summary> /// <param name="startTime">The start time.</param> /// <param name="endTime">The end time.</param> /// <returns>List<EssentialDrugMessage>.</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); }
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); }
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()); }
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); } }
public List <string> AntibioticCategoryNumberList() { return(OutPatientPrescriptionDetails.Select(opp => opp.AntibioticCategoryNumber).ToList()); }
/// <summary> /// 处方单包含抗菌药物的费用 /// </summary> /// <returns>Decimal.</returns> public Decimal AntibioticCost() { return(OutPatientPrescriptionDetails.Sum(opp => opp.AntibioticCost())); }
/// <summary> /// 处方单的部金额 /// </summary> /// <returns>Decimal.</returns> public Decimal DrugCost() { return(OutPatientPrescriptionDetails.Sum(oppd => oppd.DrugCost())); }