///<summary>Can only be called if IsReconcile is true.  This function is for EHR module b.4.</summary>
		private void butReconcileProblems_Click(object sender,EventArgs e) {
			XmlDocument xmlDocCcd=new XmlDocument();
			try {
				string strXmlText=File.ReadAllText(StrXmlFilePath);
				xmlDocCcd.LoadXml(strXmlText);
			}
			catch(Exception ex) {
				MessageBox.Show(Lan.g(this,"Error reading file")+": "+ex.Message);
				return;
			}
			FormReconcileProblem formRP=new FormReconcileProblem(_patCur);
			formRP.ListProblemNew=new List<Disease>();
			formRP.ListProblemDefNew=new List<DiseaseDef>();
			EhrCCD.GetListDiseases(xmlDocCcd,formRP.ListProblemNew,formRP.ListProblemDefNew);
			formRP.ShowDialog();
		}
Exemplo n.º 2
0
        ///<summary>Can only be called if IsReconcile is true.  This function is for EHR module b.4.</summary>
        private void butReconcileProblems_Click(object sender, EventArgs e)
        {
            XmlDocument xmlDocCcd = new XmlDocument();

            try {
                string strXmlText = File.ReadAllText(StrXmlFilePath);
                xmlDocCcd.LoadXml(strXmlText);
            }
            catch (Exception ex) {
                MessageBox.Show(Lan.g(this, "Error reading file") + ": " + ex.Message);
                return;
            }
            FormReconcileProblem formRP = new FormReconcileProblem(_patCur);

            formRP.ListProblemNew    = new List <Disease>();
            formRP.ListProblemDefNew = new List <DiseaseDef>();
            EhrCCD.GetListDiseases(xmlDocCcd, formRP.ListProblemNew, formRP.ListProblemDefNew);
            formRP.ShowDialog();
        }