Exemplo n.º 1
0
        /// <summary>
        /// Gets the results.
        /// </summary>
        /// <param name="mouthCalculation">The mouth calculation.</param>
        /// <returns></returns>
        public static MouthSum GetResults(MouthCalculationEntity mouthCalculation)
        {
            var result = new MouthSum();

            result.RightSuperiorAvailableSpace = mouthCalculation.RightSuperiorCanine.Value +
                                                 mouthCalculation.RightSuperiorPremolar.Value;

            result.RightInferiorAvailableSpace = mouthCalculation.RightInferiorCanine.Value +
                                                 mouthCalculation.RightInferiorPremolar.Value;

            result.LeftSuperiorAvailableSpace = mouthCalculation.LeftSuperiorCanine.Value +
                                                mouthCalculation.LeftSuperiorPremolar.Value;

            result.LeftInferiorAvailableSpace = mouthCalculation.LeftInferiorCanine.Value +
                                                mouthCalculation.LeftInferiorPremolar.Value;

            return(result);
        }
        /// <summary>
        /// Gets the result.
        /// </summary>
        /// <param name="mouthMessure">The mouth messure.</param>
        /// <param name="theethMessure">The theeth messure.</param>
        /// <returns></returns>
        public static Moyers GetResult(MouthCalculationEntity mouthMessure, RoothCalculationEntity theethMessure)
        {
            var result = new Moyers();

            var theeths           = TheethsSum.GetResults(theethMessure);
            var mouthCalculations = MouthSum.GetResults(mouthMessure);

            var incisivesSum = theeths.SumInferiorFour;

            result.RightSuperior = GetMoyerResult(incisivesSum, mouthCalculations.RightSuperiorAvailableSpace, true);

            result.RightInferior = GetMoyerResult(incisivesSum, mouthCalculations.RightInferiorAvailableSpace, false);

            result.LeftSuperior = GetMoyerResult(incisivesSum, mouthCalculations.LeftSuperiorAvailableSpace, true);

            result.LeftInferior = GetMoyerResult(incisivesSum, mouthCalculations.LeftInferiorAvailableSpace, false);

            return(result);
        }