private void butLoinc_Click(object sender,EventArgs e) { FormLoincs FormL=new FormLoincs(); FormL.IsSelectionMode=true; FormL.ShowDialog(); if(FormL.DialogResult!=DialogResult.OK) { return; } textLoinc.Text=FormL.SelectedLoinc.LoincCode; textLoincDescription.Text=FormL.SelectedLoinc.NameLongCommon; //if(FormL.SelectedLoinc.UnitsUCUM!="") { comboUnits.Text=FormL.SelectedLoinc.UnitsUCUM;//may be values that are not available otherwise. There are 270 units in the Loinc table that are not in the UCUM table. //} }
private void butPickValueLoinc_Click(object sender, EventArgs e) { FormLoincs formL = new FormLoincs(); formL.IsSelectionMode = true; if (formL.ShowDialog() == DialogResult.OK) { _loincValue = formL.SelectedLoinc; textValue.Text = _loincValue.NameShort; _strValCodeSystem = "LOINC"; labelValue.Text = _strValCodeSystem + " Value"; } }
private void butServicePicker_Click(object sender, EventArgs e) { FormLoincs FormL = new FormLoincs(); FormL.IsSelectionMode = true; FormL.ShowDialog(); if (FormL.DialogResult != DialogResult.OK) { return; } textUsiID.Text = FormL.SelectedLoinc.LoincCode; textUsiCodeSystemName.Text = "LN"; textUsiText.Text = FormL.SelectedLoinc.NameShort; textUsiTextOriginal.Text = FormL.SelectedLoinc.NameLongCommon; }
private void butLoinc_Click(object sender, EventArgs e) { FormLoincs FormL = new FormLoincs(); FormL.IsSelectionMode = true; FormL.ShowDialog(); if (FormL.DialogResult != DialogResult.OK) { return; } textLoinc.Text = FormL.SelectedLoinc.LoincCode; textLoincDescription.Text = FormL.SelectedLoinc.NameLongCommon; //if(FormL.SelectedLoinc.UnitsUCUM!="") { comboUnits.Text = FormL.SelectedLoinc.UnitsUCUM; //may be values that are not available otherwise. There are 270 units in the Loinc table that are not in the UCUM table. //} }
private void butPicker_Click(object sender,EventArgs e) { switch(listRestriction.SelectedIndex) { case 0://Birthdate //Not visible break; case 1://problem if(sender.Equals(butPicker)) { FormIcd9s FormI9=new FormIcd9s(); FormI9.IsSelectionMode=true; FormI9.ShowDialog(); if(FormI9.DialogResult!=DialogResult.OK) { return; } textCompareString.Text=FormI9.SelectedIcd9.ICD9Code; textSNOMED.Text=""; } else if(sender.Equals(butSNOMED)) { FormSnomeds FormS=new FormSnomeds(); FormS.IsSelectionMode=true; FormS.ShowDialog(); if(FormS.DialogResult!=DialogResult.OK) { return; } textSNOMED.Text=FormS.SelectedSnomed.SnomedCode; textCompareString.Text=""; } break; case 2://Medication FormMedications FormM=new FormMedications(); FormM.IsSelectionMode=true; FormM.ShowDialog(); if(FormM.DialogResult!=DialogResult.OK) { return; } textCompareString.Text=Medications.GetNameOnly(FormM.SelectedMedicationNum); break; case 3://LabResult FormLoincs FormL=new FormLoincs(); FormL.IsSelectionMode=true; FormL.ShowDialog(); if(FormL.DialogResult!=DialogResult.OK) { return; } textCompareString.Text=FormL.SelectedLoinc.LoincCode; comboUnits.Text=FormL.SelectedLoinc.UnitsUCUM;//may be valued, may be blank. break; case 4://Gender //Not visible break; case 5://Comm preference FormCommPrefPicker FormCPP = new FormCommPrefPicker(); FormCPP.ShowDialog(); if(FormCPP.DialogResult!=DialogResult.OK) { return; } textCompareString.Text=Enum.GetName(typeof(ContactMethod),FormCPP.ContMethCur); break; case 6://Alergy FormAllergySetup FormAS=new FormAllergySetup(); FormAS.IsSelectionMode=true; FormAS.ShowDialog(); if(FormAS.DialogResult!=DialogResult.OK) { return; } textCompareString.Text=AllergyDefs.GetDescription(FormAS.SelectedAllergyDefNum); break; default://should never happen break; } }
private void butAddLoinc_Click(object sender,EventArgs e) { FormLoincs FormL=new FormLoincs(); FormL.IsSelectionMode=true; FormL.ShowDialog(); if(FormL.DialogResult!=DialogResult.OK) { return; } ListObjects.Add(FormL.SelectedLoinc); fillKnowledgeRequestitems(); }
private void butObsIdLoinc_Click(object sender,EventArgs e) { FormLoincs FormL=new FormLoincs(); FormL.IsSelectionMode=true; FormL.ShowDialog(); if(FormL.DialogResult!=DialogResult.OK) { return; } textObsID.Text=FormL.SelectedLoinc.LoincCode; textObsIDCodeSystemName.Text="LN"; textObsIDText.Text=FormL.SelectedLoinc.NameShort; textObsIDOrigText.Text=FormL.SelectedLoinc.NameLongCommon; }
private void butPickValueLoinc_Click(object sender,EventArgs e) { FormLoincs formL=new FormLoincs(); formL.IsSelectionMode=true; if(formL.ShowDialog()==DialogResult.OK) { _loincValue=formL.SelectedLoinc; textValue.Text=_loincValue.NameShort; _strValCodeSystem="LOINC"; labelValue.Text=_strValCodeSystem+" Value"; } }
private void butPicker_Click(object sender, EventArgs e) { switch (listRestriction.SelectedIndex) { case 0: //Birthdate //Not visible break; case 1: //problem if (sender.Equals(butPicker)) { FormIcd9s FormI9 = new FormIcd9s(); FormI9.IsSelectionMode = true; FormI9.ShowDialog(); if (FormI9.DialogResult != DialogResult.OK) { return; } textCompareString.Text = FormI9.SelectedIcd9.ICD9Code; textSNOMED.Text = ""; } else if (sender.Equals(butSNOMED)) { FormSnomeds FormS = new FormSnomeds(); FormS.IsSelectionMode = true; FormS.ShowDialog(); if (FormS.DialogResult != DialogResult.OK) { return; } textSNOMED.Text = FormS.SelectedSnomed.SnomedCode; textCompareString.Text = ""; } break; case 2: //Medication FormMedications FormM = new FormMedications(); FormM.IsSelectionMode = true; FormM.ShowDialog(); if (FormM.DialogResult != DialogResult.OK) { return; } textCompareString.Text = Medications.GetNameOnly(FormM.SelectedMedicationNum); break; case 3: //LabResult FormLoincs FormL = new FormLoincs(); FormL.IsSelectionMode = true; FormL.ShowDialog(); if (FormL.DialogResult != DialogResult.OK) { return; } textCompareString.Text = FormL.SelectedLoinc.LoincCode; comboUnits.Text = FormL.SelectedLoinc.UnitsUCUM; //may be valued, may be blank. break; case 4: //Gender //Not visible break; case 5: //Comm preference FormCommPrefPicker FormCPP = new FormCommPrefPicker(); FormCPP.ShowDialog(); if (FormCPP.DialogResult != DialogResult.OK) { return; } textCompareString.Text = Enum.GetName(typeof(ContactMethod), FormCPP.ContMethCur); break; case 6: //Alergy FormAllergySetup FormAS = new FormAllergySetup(); FormAS.IsSelectionMode = true; FormAS.ShowDialog(); if (FormAS.DialogResult != DialogResult.OK) { return; } textCompareString.Text = AllergyDefs.GetDescription(FormAS.SelectedAllergyDefNum); break; default: //should never happen break; } }
private void butLoincs_Click(object sender, EventArgs e) { FormLoincs FormL = new FormLoincs(); FormL.ShowDialog(); }
private void butLoincs_Click(object sender,EventArgs e) { FormLoincs FormL=new FormLoincs(); FormL.ShowDialog(); }