private void gridMain_CellDoubleClick(object sender, ODGridClickEventArgs e) { FormEhrLabOrderEdit2014 FormLOE = new FormEhrLabOrderEdit2014(); FormLOE.EhrLabCur = ListEhrLabs[e.Row]; FormLOE.ShowDialog(); if (FormLOE.DialogResult != DialogResult.OK) { return; } FillGrid(); //TODO:maybe add more code here for when we come back from form... In case we delete a lab from the form. }
private void butViewParent_Click(object sender, EventArgs e) { EhrLab ehrLabParent = null; ehrLabParent = EhrLabs.GetByGUID(EhrLabCur.ParentPlacerOrderUniversalID, EhrLabCur.ParentPlacerOrderNum); if (ehrLabParent == null) { ehrLabParent = EhrLabs.GetByGUID(EhrLabCur.ParentFillerOrderUniversalID, EhrLabCur.ParentFillerOrderNum); } if (ehrLabParent == null) { return; } FormEhrLabOrderEdit2014 FormELOE = new FormEhrLabOrderEdit2014(); FormELOE.EhrLabCur = ehrLabParent; FormELOE.IsViewOnly = true; FormELOE.Text = Lan.g(this, "Parent Lab Order - READ ONLY"); FormELOE.ShowDialog(); }
private void gridMain_CellDoubleClick(object sender, ODGridClickEventArgs e) { FormEhrLabOrderEdit2014 FormLOE = new FormEhrLabOrderEdit2014(); FormLOE.EhrLabCur = ListEhrLabs[e.Row]; FormLOE.IsImport = true; FormLOE.ShowDialog(); //if(FormLOE.DialogResult!=DialogResult.OK) { // return; //} //EhrLabs.SaveToDB(FormLOE.EhrLabCur); //for(int i=0;i<FormLOE.EhrLabCur.ListEhrLabResults.Count;i++) { // if(CDSPermissions.GetForUser(Security.CurUser.UserNum).ShowCDS && CDSPermissions.GetForUser(Security.CurUser.UserNum).LabTestCDS){ // FormCDSIntervention FormCDSI=new FormCDSIntervention(); // FormCDSI.ListCDSI=EhrTriggers.TriggerMatch(FormLOE.EhrLabCur.ListEhrLabResults[i],PatCur); // FormCDSI.ShowIfRequired(false); // } //} //TODO:maybe add more code here for when we come back from form... In case we delete a lab from the form. }
private void butAdd_Click(object sender, EventArgs e) { FormEhrLabOrderEdit2014 FormLOE = new FormEhrLabOrderEdit2014(); FormLOE.EhrLabCur = new EhrLab(); FormLOE.EhrLabCur.PatNum = PatCur.PatNum; FormLOE.IsNew = true; FormLOE.ShowDialog(); if (FormLOE.DialogResult != DialogResult.OK) { return; } EhrMeasureEvent newMeasureEvent = new EhrMeasureEvent(); newMeasureEvent.DateTEvent = DateTime.Now; newMeasureEvent.EventType = EhrMeasureEventType.CPOE_LabOrdered; //default Loinc loinc = Loincs.GetByCode(FormLOE.EhrLabCur.UsiID); if (loinc != null && loinc.ClassType == "RAD") //short circuit logic { newMeasureEvent.EventType = EhrMeasureEventType.CPOE_RadOrdered; } newMeasureEvent.PatNum = FormLOE.EhrLabCur.PatNum; newMeasureEvent.MoreInfo = ""; newMeasureEvent.FKey = FormLOE.EhrLabCur.EhrLabNum; EhrMeasureEvents.Insert(newMeasureEvent); EhrLabs.SaveToDB(FormLOE.EhrLabCur); for (int i = 0; i < FormLOE.EhrLabCur.ListEhrLabResults.Count; i++) { if (CDSPermissions.GetForUser(Security.CurUser.UserNum).ShowCDS&& CDSPermissions.GetForUser(Security.CurUser.UserNum).LabTestCDS) { FormCDSIntervention FormCDSI = new FormCDSIntervention(); FormCDSI.ListCDSI = EhrTriggers.TriggerMatch(FormLOE.EhrLabCur.ListEhrLabResults[i], PatCur); FormCDSI.ShowIfRequired(false); } } FillGrid(); }
private void gridMain_CellDoubleClick(object sender,ODGridClickEventArgs e) { FormEhrLabOrderEdit2014 FormLOE=new FormEhrLabOrderEdit2014(); FormLOE.EhrLabCur=ListEhrLabs[e.Row]; FormLOE.IsImport=true; FormLOE.ShowDialog(); //if(FormLOE.DialogResult!=DialogResult.OK) { // return; //} //EhrLabs.SaveToDB(FormLOE.EhrLabCur); //for(int i=0;i<FormLOE.EhrLabCur.ListEhrLabResults.Count;i++) { // if(CDSPermissions.GetForUser(Security.CurUser.UserNum).ShowCDS && CDSPermissions.GetForUser(Security.CurUser.UserNum).LabTestCDS){ // FormCDSIntervention FormCDSI=new FormCDSIntervention(); // FormCDSI.ListCDSI=EhrTriggers.TriggerMatch(FormLOE.EhrLabCur.ListEhrLabResults[i],PatCur); // FormCDSI.ShowIfRequired(false); // } //} //TODO:maybe add more code here for when we come back from form... In case we delete a lab from the form. }
private void gridMain_CellDoubleClick(object sender,ODGridClickEventArgs e) { FormEhrLabOrderEdit2014 FormLOE=new FormEhrLabOrderEdit2014(); FormLOE.EhrLabCur=ListEhrLabs[e.Row]; FormLOE.ShowDialog(); if(FormLOE.DialogResult!=DialogResult.OK) { return; } FillGrid(); //TODO:maybe add more code here for when we come back from form... In case we delete a lab from the form. }
private void butAdd_Click(object sender,EventArgs e) { FormEhrLabOrderEdit2014 FormLOE=new FormEhrLabOrderEdit2014(); FormLOE.EhrLabCur=new EhrLab(); FormLOE.EhrLabCur.PatNum=PatCur.PatNum; FormLOE.IsNew=true; FormLOE.ShowDialog(); if(FormLOE.DialogResult!=DialogResult.OK) { return; } EhrMeasureEvent newMeasureEvent=new EhrMeasureEvent(); newMeasureEvent.DateTEvent=DateTime.Now; newMeasureEvent.EventType=EhrMeasureEventType.CPOE_LabOrdered;//default Loinc loinc=Loincs.GetByCode(FormLOE.EhrLabCur.UsiID); if(loinc!=null && loinc.ClassType=="RAD") {//short circuit logic newMeasureEvent.EventType=EhrMeasureEventType.CPOE_RadOrdered; } newMeasureEvent.PatNum=FormLOE.EhrLabCur.PatNum; newMeasureEvent.MoreInfo=""; newMeasureEvent.FKey=FormLOE.EhrLabCur.EhrLabNum; EhrMeasureEvents.Insert(newMeasureEvent); EhrLabs.SaveToDB(FormLOE.EhrLabCur); for(int i=0;i<FormLOE.EhrLabCur.ListEhrLabResults.Count;i++) { if(CDSPermissions.GetForUser(Security.CurUser.UserNum).ShowCDS && CDSPermissions.GetForUser(Security.CurUser.UserNum).LabTestCDS) { FormCDSIntervention FormCDSI=new FormCDSIntervention(); FormCDSI.ListCDSI=EhrTriggers.TriggerMatch(FormLOE.EhrLabCur.ListEhrLabResults[i],PatCur); FormCDSI.ShowIfRequired(false); } } FillGrid(); }
private void butViewParent_Click(object sender,EventArgs e) { EhrLab ehrLabParent=null; ehrLabParent=EhrLabs.GetByGUID(EhrLabCur.ParentPlacerOrderUniversalID,EhrLabCur.ParentPlacerOrderNum); if(ehrLabParent==null) { ehrLabParent=EhrLabs.GetByGUID(EhrLabCur.ParentFillerOrderUniversalID,EhrLabCur.ParentFillerOrderNum); } if(ehrLabParent==null) { return; } FormEhrLabOrderEdit2014 FormELOE=new FormEhrLabOrderEdit2014(); FormELOE.EhrLabCur=ehrLabParent; FormELOE.IsViewOnly=true; FormELOE.Text=Lan.g(this,"Parent Lab Order - READ ONLY"); FormELOE.ShowDialog(); }