/// <summary> /// The get count. /// </summary> /// <param name="departmentId"> /// The department id. /// </param> /// <param name="startDateTime"> /// The start date time. /// </param> /// <param name="endDateTime"> /// The end date time. /// </param> /// <param name="hospitalizationBaseCollection"> /// The hospitalization base collection. /// </param> /// <returns> /// The <see cref="int"/>. /// </returns> public int GetCount( int departmentId, DateTime startDateTime, DateTime endDateTime, IList <HospitalizationBase> hospitalizationBaseCollection) { this.ageOperationProcessor = new AgeOperationHelper(); IList <HospitalizationBase> hospitalizationCollection = hospitalizationBaseCollection.Where(h => h.AdmissionDepartmentId == departmentId).ToList(); return(this.ageOperationProcessor.GetCountPatientAgeLessThan(14, startDateTime, hospitalizationCollection)); }
/// <summary> /// The get count. /// </summary> /// <param name="departmentId"> /// The department id. /// </param> /// <param name="startDateTime"> /// The start date time. /// </param> /// <param name="endDateTime"> /// The end date time. /// </param> /// <param name="fromDateTime"> /// The from Date Time. /// </param> /// <param name="toDateTime"> /// The to Date Time. /// </param> /// <param name="hospitalizationBaseCollection"> /// The hospitalization base collection. /// </param> /// <returns> /// The <see cref="int"/>. /// </returns> public static int GetAgeLessThan17AdmissionCount( int departmentId, DateTime startDateTime, DateTime endDateTime, DateTime fromDateTime, DateTime toDateTime, IList <HospitalizationBase> hospitalizationBaseCollection) { var ageOperationProcessor = new AgeOperationHelper(); var hospitalizationCollection = hospitalizationBaseCollection.Where( h => h.AdmissionDepartmentId == departmentId && h.EnterDateTime >= fromDateTime && h.EndDateTime <= toDateTime).ToList(); return(ageOperationProcessor.GetCountPatientAgeLessThan(17, startDateTime, hospitalizationCollection)); }