Example #1
0
        private void DisplaySymptomProperty(string SelSymptomName)
        {
            List <string> OldList = GetPropertyNameList(SelSymptomName, SelectedXmlInfo);
            List <string> NewList = GetPropertyNameList(SelSymptomName, CdssXmlForList);

            //如果有属性信息则显示属性信息,否则调用CDSS算法并返回进一步问诊信息
            if (NewList.Count > 0)
            {
                XmlDocument SelectedXmlInfo1 = new XmlDocument();
                SelectedXmlInfo1.LoadXml(BasicalXmlStru);
                XmlDocument xml = CdssAlgorithm.GetPropertyName(SelSymptomName, SelectedXmlInfo1);
                // List<string> NewList = GetOptionNameList(SelSymptomName, SelSymptomProperty, CdssXmlForList);
                List <string> NewList1 = GetPropertyNameList(SelSymptomName, xml);

                DisplayBulletedList(this.blSymptomProperty, OldList, NewList1);
            }
            else
            {
                //在CdssOutputXml基础上,把当前症状名称选择结果添加到CdssAlgorithm的输入信息中
                AddSelSymptomToCdssOutput(SelSymptomName, "", "");
                AddSelSymptomToSelectedInfo(SelSymptomName, "", "");
                //第一次调用CdssAlgorithm之前需要初始化CDSS算法的数据库连接以及用户的健康档案号

                CdssAlgorithm.CDSSConnectionString = CDSSConnectionString;
                CdssAlgorithm.CdssUsersPhrNumber   = CurSelectedUsersPhrNumber;
                //调用CDSS算法
                CdssXmlForList = CdssAlgorithm.GetCdssOutput(CdssOutputXml);
                DisplayChiefComplaintCDSS(SelSymptomName);
            }
        }
Example #2
0
        public string XmlArithmetic(string XmlInput)
        {
            XmlDocument xmlDoc = new XmlDocument();

            xmlDoc.LoadXml(XmlInput);

            //xmlDoc.Save("c:/InputXML.xml");

            XmlDocument OutputXmlDoc = CdssAlgorithm.GetCdssOutput(xmlDoc);
            string      OutputString = OutputXmlDoc.OuterXml;

            return(OutputString);
        }
Example #3
0
        protected void blSymptomOption_Click(object sender, BulletedListEventArgs e)
        {
            //首先获取选项列表信息
            string SelSymptomName     = CurSelectedSymptomName;
            string SelSymptomProperty = CurSelectedSymptomProperty;
            string SelSymptomOption   = this.blSymptomOption.Items[e.Index].Value.ToString().Trim();

            CurSelectedSymptomOption = SelSymptomOption;
            // SelectedSymtoms();//看看已选的症候特征
            AddSelSymptomToCdssOutput(SelSymptomName, SelSymptomProperty, SelSymptomOption);
            AddSelSymptomToSelectedInfo(SelSymptomName, SelSymptomProperty, SelSymptomOption);
            CdssXmlForList = CdssAlgorithm.GetCdssOutput(CdssOutputXml);

            blSymptomName.Items.Clear();
            blSymptomProperty.Items.Clear();
            blSymptomOption.Items.Clear();
            DisplaySymptomNameList();
        }
Example #4
0
        private void DisplaySymptomOption(string SelSymptomName, string SelSymptomProperty)
        {
            List <string> OldList          = GetOptionNameList(SelSymptomName, SelSymptomProperty, SelectedXmlInfo);
            XmlDocument   SelectedXmlInfo1 = new XmlDocument();

            SelectedXmlInfo1.LoadXml(BasicalXmlStru);
            XmlDocument xml = CdssAlgorithm.GetOptionName(SelSymptomName, SelSymptomProperty, SelectedXmlInfo1);
            // List<string> NewList = GetOptionNameList(SelSymptomName, SelSymptomProperty, CdssXmlForList);
            List <string> NewList = GetOptionNameList(SelSymptomName, SelSymptomProperty, xml);

            if (NewList.Count > 0)
            {
                DisplayBulletedList(this.blSymptomOption, OldList, NewList);
            }
            else
            {
                //如果没有说明知识库内容存在问题需要纠正完善
            }
        }
Example #5
0
        protected void SureButton_Click(object sender, EventArgs e)
        {
            String result = this.DropDownList1.SelectedValue.ToString().Trim();

            CdssAlgorithm.GetCdssResult(CdssOutputXml, SelectedXmlInfo, result);
        }