private void butAddRxNorm_Click(object sender, EventArgs e) { FormRxNorms FormRXN = new FormRxNorms(); FormRXN.IsMultiSelectMode = true; FormRXN.ShowDialog(); if (FormRXN.DialogResult != DialogResult.OK) { return; } for (int i = 0; i < FormRXN.ListSelectedRxNorms.Count; i++) { EhrTriggerCur.RxCuiList += " " + FormRXN.ListSelectedRxNorms[i].RxCui + " "; } FillGrid(); }
//New Crop now handles formulary checks /*private void butFormulary_Click(object sender,EventArgs e) { * FormFormularies FormF=new FormFormularies(); * FormF.IsSelectionMode=true; * FormF.ShowDialog(); * Cursor=Cursors.WaitCursor; * if(FormF.DialogResult!=DialogResult.OK) { * Cursor=Cursors.Default; * return; * } * List<FormularyMed> ListMeds=FormularyMeds.GetMedsForFormulary(FormF.SelectedFormularyNum); * bool medIsInFormulary=false; * for(int i=0;i<ListMeds.Count;i++) { * if(ListMeds[i].MedicationNum==MedicationPatCur.MedicationNum) { * medIsInFormulary=true; * } * } * Cursor=Cursors.Default; * if(medIsInFormulary){ * MsgBox.Show(this,"This medication is in the selected formulary."); * } * else { * MsgBox.Show(this,"This medication is not in the selected forumulary."); * } * }*/ private void butRxNormSelect_Click(object sender, EventArgs e) { FormRxNorms FormRN = new FormRxNorms(); FormRN.IsSelectionMode = true; FormRN.ShowDialog(); if (FormRN.DialogResult != DialogResult.OK) { return; } MedicationPatCur.RxCui = PIn.Long(FormRN.SelectedRxNorm.RxCui); textRxNormDesc.Text = RxNorms.GetDescByRxCui(MedicationPatCur.RxCui.ToString()); if (IsNew) { textMedName.Text = RxNorms.GetDescByRxCui(MedicationPatCur.RxCui.ToString()); } }
private void gridAllMedications_CellClick(object sender, ODGridClickEventArgs e) { Medication med = (Medication)gridAllMedications.Rows[e.Row].Tag; if (CultureInfo.CurrentCulture.Name.EndsWith("US") && e.Col == 3) //United States RxNorm Column { FormRxNorms formRxNorm = new FormRxNorms(); formRxNorm.IsSelectionMode = true; formRxNorm.InitSearchCodeOrDescript = med.MedName; formRxNorm.ShowDialog(); if (formRxNorm.DialogResult == DialogResult.OK) { med.RxCui = PIn.Long(formRxNorm.SelectedRxNorm.RxCui); //The following behavior mimics FormMedicationEdit OK click. Medications.Update(med); MedicationPats.UpdateRxCuiForMedication(med.MedicationNum, med.RxCui); DataValid.SetInvalid(InvalidType.Medications); } FillTab(); } }
private void butRxNorm_Click(object sender, EventArgs e) { FormRxNorms formR = new FormRxNorms(); formR.ShowDialog(); }
private void butRxNorm_Click(object sender,EventArgs e) { FormRxNorms FormRN=new FormRxNorms(); FormRN.ShowDialog(); if(FormRN.DialogResult!=DialogResult.OK) { return; } MedicationCur.RxCui=PIn.Long(FormRN.SelectedRxNorm.RxCui); textRxNormDesc.Text=RxNorms.GetDescByRxCui(MedicationCur.RxCui.ToString()); if(IsNew) { textMedName.Text=RxNorms.GetDescByRxCui(MedicationCur.RxCui.ToString()); } }
private void butAddRxNorm_Click(object sender,EventArgs e) { FormRxNorms FormRXN=new FormRxNorms(); FormRXN.IsMultiSelectMode=true; FormRXN.ShowDialog(); if(FormRXN.DialogResult!=DialogResult.OK) { return; } for(int i=0;i<FormRXN.ListSelectedRxNorms.Count;i++) { ListObjects.Add(FormRXN.ListSelectedRxNorms[i]); } fillKnowledgeRequestitems(); }
private void butRxNorm_Click(object sender,EventArgs e) { FormRxNorms formR=new FormRxNorms(); formR.ShowDialog(); }
private void butRxNormSelect_Click(object sender,EventArgs e) { FormRxNorms FormRN=new FormRxNorms(); FormRN.IsSelectionMode=true; FormRN.ShowDialog(); if(FormRN.DialogResult!=DialogResult.OK) { return; } RxDefCur.RxCui=PIn.Long(FormRN.SelectedRxNorm.RxCui); FillRxCui(); }
private void butAddRxNorm_Click(object sender,EventArgs e) { FormRxNorms FormRXN=new FormRxNorms(); FormRXN.IsMultiSelectMode=true; FormRXN.ShowDialog(); if(FormRXN.DialogResult!=DialogResult.OK) { return; } for(int i=0;i<FormRXN.ListSelectedRxNorms.Count;i++) { EhrTriggerCur.RxCuiList+=" "+FormRXN.ListSelectedRxNorms[i].RxCui+" "; } FillGrid(); }
private void butRxNormSelect_Click(object sender,EventArgs e) { FormRxNorms FormRN=new FormRxNorms(); FormRN.ShowDialog(); if(FormRN.DialogResult!=DialogResult.OK) { return; } RxPatCur.RxCui=PIn.Long(FormRN.SelectedRxNorm.RxCui); textRxNorm.Text=RxPatCur.RxCui.ToString(); }