コード例 #1
0
        /// <summary>
        /// 获取诊断的详细信息。
        /// </summary>
        /// <returns></returns>
        public string GetDescription()
        {
            StringBuilder sb = new StringBuilder();
            string        result;

            sb.AppendLine($"诊断: ({string.Join(";", InsomniaConversion11s.Select(c => c.ToString()))}) ");
            sb.AppendLine($"脏腑评分:{string.Join(";", MaxVicerals.Select(c => c.ToString()))};症候评分:{string.Join(";", MaxPhenomenons.Select(c => c.ToString()))}");
            sb.AppendLine($"评分表2:{string.Join(";", InsomniaConversion12s.Select(c => c.ToString()))}");
            sb.AppendLine($"药物加味:{string.Join(";", InsomniaCnDrugConversion2s.Select(c => c.ToString()))}");
            sb.AppendLine($"无效项:{string.Join(";", Invalid11s.Select(c => c.ToString()))}");
            result = sb.ToString();
            return(result);
        }
コード例 #2
0
        /// <summary>
        /// 刷新采用的评分表2的项。调用此方法重新计算使用的评分表2的项。
        /// </summary>
        private void RefreshInsomniaConversion12()
        {
            if (null == _InsomniaConversion12s)
            {
                _InsomniaConversion12s = new List <InsomniaConversion12>();
            }
            else
            {
                _InsomniaConversion12s.Clear();
            }
            HashSet <string> hs = new HashSet <string>(InsomniaConversion11s.Select(c => c.CnSymptomNumber).Distinct());

            _InsomniaConversion12s.AddRange(InsomniaConversion12.DefaultCollection.Where(c => hs.IsSupersetOf(c.Numbers)));
        }