private void SetRankingSexo(Cie10MapResultViewModel item, string sexo)
 {
     if (((item.MapRule.Contains("248153007") && sexo == "M") || (item.MapRule.Contains("248152002") && sexo == "F")))
     {
         item.RankingPreferido++;
     }
 }
        private void SetRankingEdad(Cie10MapResultViewModel item, int edad)
        {
            string ruleSimbol;
            string ruleAge;

            if (item.MapRule.Contains("424144002"))
            {
                var textToParse = item.MapRule.Split('|')[2].ToCharArray();

                matchCollector.Value.CollectorResult = string.Empty;
                dfaComparizon.Value.CollectTokens(textToParse, matchCollector.Value);
                ruleSimbol = matchCollector.Value.CollectorResult;

                matchCollector.Value.CollectorResult = string.Empty;
                dfaNumber.Value.CollectTokens(textToParse, matchCollector.Value);
                ruleAge = matchCollector.Value.CollectorResult;

                if (CompareEdad(ruleSimbol, ruleAge, edad))
                {
                    item.RankingPreferido++;
                }
            }
        }