///<summary>Can only be called if IsReconcile is true.  This function is for EHR module b.4.</summary>
		private void butReconcileMedications_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;
			}
			FormReconcileMedication formRM=new FormReconcileMedication(_patCur);
			formRM.ListMedicationPatNew=new List<MedicationPat>();
			EhrCCD.GetListMedicationPats(xmlDocCcd,formRM.ListMedicationPatNew);
			formRM.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 butReconcileMedications_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;
            }
            FormReconcileMedication formRM = new FormReconcileMedication(_patCur);

            formRM.ListMedicationPatNew = new List <MedicationPat>();
            EhrCCD.GetListMedicationPats(xmlDocCcd, formRM.ListMedicationPatNew);
            formRM.ShowDialog();
        }