Exemplo n.º 1
0
		private void gridMain_CellClick(object sender,ODGridClickEventArgs e) {
			if(!CDSPermissions.GetForUser(Security.CurUser.UserNum).ShowInfobutton) {
				return;
			}
			if(e.Col!=0) {
				return;//not infobutton column
			}
			FormInfobutton FormIB=new FormInfobutton();
			FormIB.ListObjects=(List<object>)gridMain.Rows[e.Row].Tag;
			FormIB.ShowDialog();
		}
Exemplo n.º 2
0
        private void gridMain_CellClick(object sender, ODGridClickEventArgs e)
        {
            if (!CDSPermissions.GetForUser(Security.CurUser.UserNum).ShowInfobutton)
            {
                return;
            }
            if (e.Col != 0)
            {
                return;                //not infobutton column
            }
            FormInfobutton FormIB = new FormInfobutton((List <KnowledgeRequest>)gridMain.ListGridRows[e.Row].Tag);

            FormIB.ShowDialog();
        }
Exemplo n.º 3
0
        private void gridMain_CellClick(object sender, ODGridClickEventArgs e)
        {
            if (!CDSPermissions.GetForUser(Security.CurUser.UserNum).ShowInfobutton)             //Security.IsAuthorized(Permissions.EhrInfoButton,true)) {
            {
                return;
            }
            if (e.Col != 0)
            {
                return;
            }
            FormInfobutton FormIB = new FormInfobutton();

            FormIB.ListObjects.Add(Snomeds.GetByCode(gridMain.Rows[e.Row].Cells[1].Text));
            FormIB.ShowDialog();
        }
Exemplo n.º 4
0
        private void gridMain_CellClick(object sender, ODGridClickEventArgs e)
        {
            if (!CDSPermissions.GetForUser(Security.CurUser.UserNum).ShowInfobutton)             //Security.IsAuthorized(Permissions.EhrInfoButton,true)) {
            {
                return;
            }
            if (e.Col != 0)
            {
                return;
            }
            List <KnowledgeRequest> listKnowledgeRequests = EhrTriggers.ConvertToKnowledgeRequests(Snomeds.GetByCode(gridMain.Rows[e.Row].Cells[1].Text));
            FormInfobutton          FormIB = new FormInfobutton(listKnowledgeRequests);

            FormIB.ShowDialog();
        }
Exemplo n.º 5
0
        private void gridMain_CellClick(object sender, ODGridClickEventArgs e)
        {
            if (!CDSPermissions.GetForUser(Security.CurUser.UserNum).ShowInfobutton)             //Security.IsAuthorized(Permissions.EhrInfoButton,true)) {
            {
                return;
            }
            if (e.Col != 0)
            {
                return;
            }
            List <KnowledgeRequest> listKnowledgeRequests = EhrTriggers.ConvertToKnowledgeRequests(EhrLabCur.ListEhrLabResults[e.Row]);
            FormInfobutton          FormIB = new FormInfobutton(listKnowledgeRequests);

            //if(PatCurNum>0) {
            //	FormIB.PatCur=Patients.GetPat(PatCurNum);
            //}
            FormIB.ShowDialog();
        }
Exemplo n.º 6
0
        private void gridMain_CellClick(object sender, ODGridClickEventArgs e)
        {
            if (!CDSPermissions.GetForUser(Security.CurUser.UserNum).ShowInfobutton)             //Security.IsAuthorized(Permissions.EhrInfoButton,true)) {
            {
                return;
            }
            if (e.Col != 0)
            {
                return;
            }
            FormInfobutton FormIB = new FormInfobutton();

            if (PatCurNum != null && PatCurNum > 0)
            {
                FormIB.PatCur = Patients.GetPat(PatCurNum);
            }
            FormIB.ListObjects.Add(EhrLabCur.ListEhrLabResults[e.Row]);
            FormIB.ShowDialog();
        }
Exemplo n.º 7
0
		/*private void butIcd9_Click(object sender,EventArgs e) {
			FormIcd9s formI=new FormIcd9s();
			formI.IsSelectionMode=true;
			formI.ShowDialog();
			if(formI.DialogResult!=DialogResult.OK) {
				return;
			}
			Disease disease=new Disease();
			disease.PatNum=PatCur.PatNum;
			disease.ICD9Num=formI.SelectedIcd9Num;
			Diseases.Insert(disease);
			FillProblems();
		}*/

		private void gridDiseases_CellClick(object sender,ODGridClickEventArgs e) {
			if(!CDSPermissions.GetForUser(Security.CurUser.UserNum).ShowInfobutton) {//Security.IsAuthorized(Permissions.EhrInfoButton,true)) {
				return;
			}
			if(e.Col!=0) {
				return;
			}
			FormInfobutton FormIB=new FormInfobutton();
			FormIB.PatCur=PatCur;
			FormIB.ListObjects.Add(DiseaseDefs.GetItem(DiseaseList[e.Row].DiseaseDefNum));//TODO: verify that this is what we need to get.
			FormIB.ShowDialog();
			//Nothing to do with Dialog Result yet.
		}
Exemplo n.º 8
0
		private void gridMeds_CellClick(object sender,ODGridClickEventArgs e) {
			if(!CDSPermissions.GetForUser(Security.CurUser.UserNum).ShowInfobutton) {//Security.IsAuthorized(Permissions.EhrInfoButton,true)) {
				return;
			}
			if(e.Col!=0) {
				return;
			}
			FormInfobutton FormIB = new FormInfobutton();
			FormIB.PatCur=PatCur;
			//FormInfoButton allows MedicationCur to be null, so this will still work for medication orders returned from NewCrop (because MedicationNum will be 0).
			FormIB.ListObjects.Add(medList[e.Row]);//TODO: verify that this is what we need to get.
			//FormIB.ListObjects.Add(Medications.GetMedicationFromDb(medList[e.Row].MedicationNum));//TODO: verify that this is what we need to get.
			FormIB.ShowDialog();
			//Nothing to do with Dialog Result yet.
		}
Exemplo n.º 9
0
		private void gridAllergies_CellClick(object sender,ODGridClickEventArgs e) {
			if(!CDSPermissions.GetForUser(Security.CurUser.UserNum).ShowInfobutton) {//Security.IsAuthorized(Permissions.EhrInfoButton,true)) {
				return;
			}
			if(e.Col!=0) {
				return;
			}
			FormInfobutton FormIB=new FormInfobutton();
			FormIB.PatCur=PatCur;
			//TODO: get right object and pass it in.
			//FormIB. = Medications.GetMedicationFromDb(medList[e.Row].MedicationNum);//TODO: verify that this is what we need to get.
			FormIB.ShowDialog();
			//Nothing to do with Dialog Result yet.
		}
Exemplo n.º 10
0
		private void gridMain_CellClick(object sender,ODGridClickEventArgs e) {
			if(!CDSPermissions.GetForUser(Security.CurUser.UserNum).ShowInfobutton) {//Security.IsAuthorized(Permissions.EhrInfoButton,true)) {
				return;
			}
			if(e.Col!=0) {
				return;
			}
			FormInfobutton FormIB = new FormInfobutton();
			FormIB.ListObjects.Add(Snomeds.GetByCode(gridMain.Rows[e.Row].Cells[1].Text));
			FormIB.ShowDialog();
		}
		private void gridMain_CellClick(object sender,ODGridClickEventArgs e) {
			if(!CDSPermissions.GetForUser(Security.CurUser.UserNum).ShowInfobutton) {//Security.IsAuthorized(Permissions.EhrInfoButton,true)) {
				return;
			}
			if(e.Col!=0) {
				return;
			}
			FormInfobutton FormIB=new FormInfobutton();
			if(PatCurNum!=null && PatCurNum>0) {
				FormIB.PatCur=Patients.GetPat(PatCurNum);
			}
			FormIB.ListObjects.Add(EhrLabCur.ListEhrLabResults[e.Row]);
			FormIB.ShowDialog();
		}