public static TanakaJohnston GetResult(RoothCalculationEntity theethMessure)
        {
            var tanakaResult = new TanakaJohnston();

            var inferiorSum = TheethsSum.GetResults(theethMessure).SumInferiorFour;

            tanakaResult.Superior = (inferiorSum / 2) + 11;
            tanakaResult.Inferior = tanakaResult.Superior - (decimal)0.5;

            return(tanakaResult);
        }
        public static TheethsSum GetResults(RoothCalculationEntity theethMessure)
        {
            var result = new TheethsSum();

            var incrementalSuperiorListToSum = new List <decimal>()
            {
                theethMessure.Tooth11.Value, theethMessure.Tooth12.Value, theethMessure.Tooth21.Value, theethMessure.Tooth22.Value
            };

            var incrementalInferiorListToSum = new List <decimal>()
            {
                theethMessure.Tooth41.Value, theethMessure.Tooth42.Value, theethMessure.Tooth31.Value, theethMessure.Tooth32.Value
            };

            // Obtain Sum of minor table
            result.SumSuperiorFour = GetSum(incrementalSuperiorListToSum);
            result.SumInferiorFour = GetSum(incrementalInferiorListToSum);

            // Add fields of next table
            incrementalSuperiorListToSum.Add(theethMessure.Tooth13.Value);
            incrementalSuperiorListToSum.Add(theethMessure.Tooth23.Value);

            incrementalInferiorListToSum.Add(theethMessure.Tooth33.Value);
            incrementalInferiorListToSum.Add(theethMessure.Tooth43.Value);

            result.SumSuperiorSix = GetSum(incrementalSuperiorListToSum);
            result.SumInferiorSix = GetSum(incrementalInferiorListToSum);

            // Add fields of next table
            incrementalSuperiorListToSum.Add(theethMessure.Tooth14.Value);
            incrementalSuperiorListToSum.Add(theethMessure.Tooth15.Value);
            incrementalSuperiorListToSum.Add(theethMessure.Tooth24.Value);
            incrementalSuperiorListToSum.Add(theethMessure.Tooth25.Value);

            incrementalInferiorListToSum.Add(theethMessure.Tooth34.Value);
            incrementalInferiorListToSum.Add(theethMessure.Tooth35.Value);
            incrementalInferiorListToSum.Add(theethMessure.Tooth44.Value);
            incrementalInferiorListToSum.Add(theethMessure.Tooth45.Value);

            result.SumSuperiorTen = GetSum(incrementalSuperiorListToSum);
            result.SumInferiorTen = GetSum(incrementalInferiorListToSum);

            // Add fields of next table
            incrementalSuperiorListToSum.Add(theethMessure.Tooth16.Value);
            incrementalSuperiorListToSum.Add(theethMessure.Tooth26.Value);

            incrementalInferiorListToSum.Add(theethMessure.Tooth36.Value);
            incrementalInferiorListToSum.Add(theethMessure.Tooth46.Value);

            result.SumSuperiorTwelve = GetSum(incrementalSuperiorListToSum);
            result.SumInferiorTwelve = GetSum(incrementalInferiorListToSum);

            return(result);
        }
Beispiel #3
0
        /// <summary>
        /// Gets the result.
        /// </summary>
        /// <param name="theethMessure">The theeth messure.</param>
        /// <returns></returns>
        public static Pont GetResult(RoothCalculationEntity theethMessure)
        {
            var pontResult = new Pont();

            var sumResult = TheethsSum.GetResults(theethMessure);

            pontResult.Pont14To24 = CalculationBase.RoundUpResult(sumResult.SumSuperiorFour * 100 / 84);
            pontResult.Pont16To26 = CalculationBase.RoundUpResult(sumResult.SumSuperiorFour * 100 / 65);

            pontResult.ArchLong = CalculationTables.PontTable.FindPontValue(sumResult.SumSuperiorFour);

            return(pontResult);
        }
Beispiel #4
0
        public static DentalBoneDiscrepancy GetResult(MouthCalculationEntity mouseMessure, RoothCalculationEntity theethMessure)
        {
            var bonesSpaces = BonesSpaces.GetBonesCalculation(mouseMessure);
            var theeths     = TheethsSum.GetResults(theethMessure);

            var dentalDiscrepancy = new DentalBoneDiscrepancy();

            dentalDiscrepancy.Superior = bonesSpaces.PerineoSuperiorArch - theeths.SumSuperiorTen;
            dentalDiscrepancy.Inferior = bonesSpaces.PerineoInferiorArch - theeths.SumInferiorTen;

            dentalDiscrepancy.SuperiorAntero = bonesSpaces.Bones13To23 - theeths.SumSuperiorSix;
            dentalDiscrepancy.InferiorAntero = bonesSpaces.Bones33To43 - theeths.SumInferiorSix;

            dentalDiscrepancy.InferiorIncisives = bonesSpaces.InferiorBonesIntercanine - theeths.SumInferiorFour;

            return(dentalDiscrepancy);
        }
Beispiel #5
0
        /// <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);
        }
Beispiel #6
0
        /// <summary>
        /// Gets the result.
        /// </summary>
        /// <param name="theethMessure">The theeth messure.</param>
        /// <returns></returns>
        public static BoltonPreviousRelation GetBoltonPreviousResult(RoothCalculationEntity theethMessure)
        {
            var result = new BoltonPreviousRelation();

            var theeths = TheethsSum.GetResults(theethMessure);

            result.Maxilar6Pac    = theeths.SumSuperiorSix;
            result.Mandibular6Pac = theeths.SumInferiorSix;

            result.Total = CalculationBase.RoundUpResult(result.Mandibular6Pac / result.Maxilar6Pac * 100);

            result.IsSuperiorExcess = result.Total < BoltonPreviousBreakPoint;

            result.Mandibular6Ideal = BoltonTable.FindPreviousRelationBoltonByMaxilarValue(result.Maxilar6Pac);
            result.InferiorExcess   = result.Mandibular6Pac - result.Mandibular6Ideal;

            result.Maxilar6Ideal  = BoltonTable.FindPreviousRelationBoltonByMandibularValue(result.Mandibular6Pac);
            result.SuperiorExcess = result.Maxilar6Pac - result.Maxilar6Ideal;

            return(result);
        }
Beispiel #7
0
        /// <summary>
        /// Gets the result.
        /// </summary>
        /// <param name="theethMessure">The theeth messure.</param>
        /// <returns></returns>
        public static BoltonTotal GetBoltonTotalResult(RoothCalculationEntity theethMessure)
        {
            var result = new BoltonTotal();

            var theeths = TheethsSum.GetResults(theethMessure);

            result.Maxilar12Pac    = theeths.SumSuperiorTwelve;
            result.Mandibular12Pac = theeths.SumInferiorTwelve;

            result.Total = CalculationBase.RoundUpResult(result.Mandibular12Pac / result.Maxilar12Pac * 100);

            result.IsSuperiorExcess = result.Total < BoltonTotalBreakPoint;

            result.Maxilar12Ideal = BoltonTable.FindBoltonTotalByMandibularValue(result.Mandibular12Pac);
            result.SuperiorExcess = result.Maxilar12Pac - result.Maxilar12Ideal;

            result.Mandibular12Ideal = BoltonTable.FindBoltonTotalByMaxilarValue(result.Maxilar12Pac);
            result.InferiorExcess    = result.Mandibular12Pac - result.Mandibular12Ideal;

            return(result);
        }