/// <summary>
        /// Valueses the equal.
        /// </summary>
        /// <param name="substanceUsage">The substance usage.</param>
        /// <returns>A bool indicating whether objects are equal.</returns>
        public virtual bool ValuesEqual(TedsAdmissionRecordSubstanceUsage substanceUsage)
        {
            if (substanceUsage == null)
            {
                return(false);
            }

            var valuesEqual =
                Equals(SubstanceUsageAtAdmission, substanceUsage.SubstanceUsageAtAdmission);

            return(valuesEqual);
        }
        /// <summary>
        /// Valueses the equal.
        /// </summary>
        /// <param name="substanceUsage">The substance usage.</param>
        /// <returns>A bool indicating whether objects are equal.</returns>
        public virtual bool ValuesEqual(TedsAdmissionRecordSubstanceUsage substanceUsage)
        {
            if (substanceUsage == null)
            {
                return false;
            }

            var valuesEqual =
                Equals(SubstanceUsageAtAdmission, substanceUsage.SubstanceUsageAtAdmission);

            return valuesEqual;
        }