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
                //Not visible
                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;
            }
        }