/// <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)
 {
     return(AgeLessThan17AdmissionCommonOperationProcessor.GetAgeLessThan17AdmissionCount(
                departmentId,
                startDateTime,
                endDateTime,
                startDateTime,
                endDateTime,
                hospitalizationBaseCollection));
 }
        /// <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)
        {
            // Past day (минула доба)
            var pastDay      = startDateTime.AddDays(-1);
            var fromDateTime = new DateTime(pastDay.Year, pastDay.Month, pastDay.Day, 8, 0, 0);
            var toDateTime   = new DateTime(startDateTime.Year, startDateTime.Month, startDateTime.Day, 7, 59, 0);

            return(AgeLessThan17AdmissionCommonOperationProcessor.GetAgeLessThan17AdmissionCount(
                       departmentId,
                       startDateTime,
                       endDateTime,
                       fromDateTime,
                       toDateTime,
                       hospitalizationBaseCollection));
        }