コード例 #1
0
        private void butSnomed_Click(object sender, EventArgs e)
        {
            FormSnomeds FormS = new FormSnomeds();

            FormS.IsSelectionMode = true;
            FormS.ShowDialog();
            if (FormS.DialogResult != DialogResult.OK)
            {
                return;
            }
            if (DiseaseDefs.ContainsSnomed(FormS.SelectedSnomed.SnomedCode, DiseaseDefCur.DiseaseDefNum))            //DiseaseDefNum could be zero
            {
                MsgBox.Show(this, "Snomed code already exists in the problems list.");
                return;
            }
            DiseaseDefCur.SnomedCode = FormS.SelectedSnomed.SnomedCode;
            string sdescript = Snomeds.GetCodeAndDescription(FormS.SelectedSnomed.SnomedCode);

            if (sdescript == "")
            {
                textSnomed.Text = FormS.SelectedSnomed.SnomedCode;
            }
            else
            {
                textSnomed.Text = sdescript;
            }
        }
コード例 #2
0
ファイル: FormEhrSettings.cs プロジェクト: kjb7749/testImport
        private void butPregSnomed_Click(object sender, EventArgs e)
        {
            FormSnomeds FormS = new FormSnomeds();

            if (!Security.IsAuthorized(Permissions.SecurityAdmin, false))
            {
                FormS.IsSelectionMode = false;
            }
            else
            {
                FormS.IsSelectionMode = true;
            }
            FormS.ShowDialog();
            if (FormS.DialogResult == DialogResult.OK)
            {
                NewPregCodeSystem = "SNOMEDCT";
                for (int i = 1; i < comboPregCodes.Items.Count; i++)
                {
                    if (FormS.SelectedSnomed.SnomedCode == comboPregCodes.Items[i].ToString())                   //if they go to snomed list and select one of the recommended codes, select in list
                    {
                        comboPregCodes.SelectedIndex = i;
                        textPregCodeValue.Clear();
                        textPregCodeDescript.Text = FormS.SelectedSnomed.Description;
                        labelPregWarning.Visible  = false;
                        return;
                    }
                }
                comboPregCodes.SelectedIndex = -1;
                textPregCodeValue.Text       = FormS.SelectedSnomed.SnomedCode;
                textPregCodeDescript.Text    = FormS.SelectedSnomed.Description;
                labelPregWarning.Visible     = true;
            }
        }
コード例 #3
0
        private void butTobaccoCodeSelect_Click(object sender, EventArgs e)
        {
            FormSnomeds FormS = new FormSnomeds();

            FormS.IsSelectionMode = true;
            FormS.ShowDialog();
            if (FormS.DialogResult != DialogResult.OK)
            {
                return;
            }
            EduResourceCur.DiseaseDefNum    = 0;
            EduResourceCur.MedicationNum    = 0;
            EduResourceCur.SmokingSnoMed    = FormS.SelectedSnomed.SnomedCode;
            EduResourceCur.LabResultID      = "";
            EduResourceCur.LabResultName    = "";
            EduResourceCur.LabResultCompare = "";
            textProblem.Text           = "";
            textICD9.Text              = "";
            textSnomed.Text            = "";
            textMedication.Text        = "";
            textTobaccoAssessment.Text = FormS.SelectedSnomed.SnomedCode + " - " + FormS.SelectedSnomed.Description;
            textLabResultsID.Text      = "";
            textLabTestName.Text       = "";
            textCompareValue.Text      = "";
        }
コード例 #4
0
        private void butEncSnomed_Click(object sender, EventArgs e)
        {
            FormSnomeds FormS = new FormSnomeds();

            FormS.IsSelectionMode = true;
            FormS.ShowDialog();
            if (FormS.DialogResult == DialogResult.OK)
            {
                EncCodeSystem = "SNOMEDCT";
                for (int i = 1; i < comboEncCodes.Items.Count; i++)
                {
                    if (FormS.SelectedSnomed.SnomedCode == comboEncCodes.Items[i].ToString())                   //if they selected one of the recommended codes, select in list
                    {
                        comboEncCodes.SelectedIndex = i;
                        textEncCodeValue.Clear();
                        textEncCodeDescript.Text = FormS.SelectedSnomed.Description;
                        labelEncWarning.Visible  = false;
                        return;
                    }
                }
                comboEncCodes.SelectedIndex = -1;
                textEncCodeValue.Text       = FormS.SelectedSnomed.SnomedCode;
                textEncCodeDescript.Text    = FormS.SelectedSnomed.Description;
                labelEncWarning.Visible     = true;
            }
        }
コード例 #5
0
ファイル: FormEhrCarePlanEdit.cs プロジェクト: mnisl/OD
		private void butSnomedGoalSelect_Click(object sender,EventArgs e) {
			FormSnomeds formS=new FormSnomeds();
			formS.IsSelectionMode=true;
			if(formS.ShowDialog()==DialogResult.OK) {
				_snomedGoal=formS.SelectedSnomed;
				textSnomedGoal.Text=_snomedGoal.Description;
			}
		}
コード例 #6
0
ファイル: FormAllergyEdit.cs プロジェクト: royedwards/DRDNet
        private void butSnomedReactionSelect_Click(object sender, EventArgs e)
        {
            FormSnomeds formS = new FormSnomeds();

            formS.IsSelectionMode = true;
            if (formS.ShowDialog() == DialogResult.OK)
            {
                snomedReaction          = formS.SelectedSnomed;
                textSnomedReaction.Text = snomedReaction.Description;
            }
        }
コード例 #7
0
        private void butPickValueSnomedct_Click(object sender, EventArgs e)
        {
            FormSnomeds formS = new FormSnomeds();

            formS.IsSelectionMode = true;
            if (formS.ShowDialog() == DialogResult.OK)
            {
                _snomedValue      = formS.SelectedSnomed;
                textValue.Text    = _snomedValue.Description;
                _strValCodeSystem = "SNOMEDCT";
                labelValue.Text   = _strValCodeSystem + " Value";
            }
        }
コード例 #8
0
        private void butSnomed_Click(object sender, EventArgs e)
        {
            FormSnomeds formS = new FormSnomeds();

            formS.IsSelectionMode = true;
            if (formS.ShowDialog() == DialogResult.OK)
            {
                _encCur.CodeSystem    = "SNOMEDCT";
                _encCur.CodeValue     = formS.SelectedSnomed.SnomedCode;
                textCodeSystem.Text   = "SNOMEDCT";
                textCodeValue.Text    = formS.SelectedSnomed.SnomedCode;
                textCodeDescript.Text = formS.SelectedSnomed.Description;
            }
        }
コード例 #9
0
		private void butSnomed_Click(object sender,EventArgs e) {
			FormSnomeds FormS=new FormSnomeds();
			FormS.IsSelectionMode=true;
			FormS.ShowDialog();
			if(FormS.DialogResult!=DialogResult.OK) {
				return;
			}
			//Clear other options
			checkAllResults.Checked=false;
			textObsValue.Text="";
			//Set Microbiology results
			textSnomed.Text=FormS.SelectedSnomed.SnomedCode;
			textSnomedDescription.Text=FormS.SelectedSnomed.Description;

		}
コード例 #10
0
        private void butCodedElementLoinc_Click(object sender, EventArgs e)
        {
            FormSnomeds FormS = new FormSnomeds();

            FormS.IsSelectionMode = true;
            FormS.ShowDialog();
            if (FormS.DialogResult != DialogResult.OK)
            {
                return;
            }
            textObsElementID.Text         = FormS.SelectedSnomed.SnomedCode;
            textObsElementText.Text       = FormS.SelectedSnomed.Description;
            textObsElementCodeSystem.Text = "SCT";
            textObsElementOrigText.Text   = FormS.SelectedSnomed.Description;
        }
コード例 #11
0
        private void butAddSnomed_Click(object sender, EventArgs e)
        {
            FormSnomeds FormS = new FormSnomeds();

            FormS.IsMultiSelectMode = true;
            FormS.ShowDialog();
            if (FormS.DialogResult != DialogResult.OK)
            {
                return;
            }
            for (int i = 0; i < FormS.ListSelectedSnomeds.Count; i++)
            {
                EhrTriggerCur.ProblemSnomedList += " " + FormS.ListSelectedSnomeds[i].SnomedCode + " ";
            }
            FillGrid();
        }
コード例 #12
0
        private void butSnomed_Click(object sender, EventArgs e)
        {
            FormSnomeds FormS = new FormSnomeds();

            FormS.IsSelectionMode = true;
            FormS.ShowDialog();
            if (FormS.DialogResult != DialogResult.OK)
            {
                return;
            }
            //Clear other options
            checkAllResults.Checked = false;
            textObsValue.Text       = "";
            //Set Microbiology results
            textSnomed.Text            = FormS.SelectedSnomed.SnomedCode;
            textSnomedDescription.Text = FormS.SelectedSnomed.Description;
        }
コード例 #13
0
        private void comboTobaccoStatus_SelectionChangeCommitted(object sender, EventArgs e)
        {
            if (comboTobaccoStatus.SelectedIndex < _listTobaccoStatuses.Count)           //user selected a code in the list, just return
            {
                return;
            }
            if (comboTobaccoStatus.SelectedIndex == _listTobaccoStatuses.Count &&
                !MsgBox.Show(this, MsgBoxButtons.OKCancel, "Selecting a code that is not in the recommended list of codes may make "
                             + "it more difficult to meet CQM's."))
            {
                comboTobaccoStatus.SelectedIndex = -1;
                return;
            }
            //user wants to select a custom status from the SNOMED list
            FormSnomeds FormS = new FormSnomeds();

            FormS.IsSelectionMode = true;
            FormS.ShowDialog();
            if (FormS.DialogResult != DialogResult.OK)
            {
                comboTobaccoStatus.SelectedIndex = -1;
                return;
            }
            if (!_listTobaccoStatuses.Any(x => x.CodeValue == FormS.SelectedSnomed.SnomedCode))
            {
                _listCustomTobaccoCodes.Add(new EhrCode()
                {
                    CodeValue = FormS.SelectedSnomed.SnomedCode, Description = FormS.SelectedSnomed.Description
                });
                _listCustomTobaccoCodes = _listCustomTobaccoCodes.OrderBy(x => x.Description).ToList();
                radioTobaccoStatuses_CheckedChanged(GetSelectedStatusFilter(), new EventArgs());               //refills drop down with newly added custom code
            }
            //selected code guaranteed to exist in the drop down at this point
            comboTobaccoStatus.Items.Clear();
            comboTobaccoStatus.Items.AddRange(_listTobaccoStatuses.Select(x => x.Description).ToArray());
            comboTobaccoStatus.Items.Add(Lan.g(this, "Choose from all SNOMED CT codes") + "...");
            comboTobaccoStatus.SelectedIndex = _listTobaccoStatuses.FindIndex(x => x.CodeValue == FormS.SelectedSnomed.SnomedCode);        //add 1 for ...choose from
        }
コード例 #14
0
        private void butSnomed_Click(object sender, EventArgs e)
        {
            MsgBox.Show(this, "Selecting a code that is not in the recommended list of codes may make it more difficult to meet Meaningful Use and CQM's.");
            FormSnomeds FormS = new FormSnomeds();

            FormS.IsSelectionMode = true;
            FormS.ShowDialog();
            if (FormS.DialogResult != DialogResult.OK)
            {
                return;
            }
            for (int i = 0; i < Enum.GetNames(typeof(SmokingSnoMed)).Length; i++)
            {
                if (FormS.SelectedSnomed.SnomedCode == ((SmokingSnoMed)i).ToString().Substring(1))
                {
                    comboSmokeStatus.SelectedIndex = i + 1;
                    _TobaccoCodeSelected           = ((SmokingSnoMed)i).ToString().Substring(1);
                    return;
                }
            }
            _TobaccoCodeSelected           = FormS.SelectedSnomed.SnomedCode;
            comboSmokeStatus.SelectedIndex = -1;
            comboSmokeStatus.Text          = FormS.SelectedSnomed.Description;
        }
コード例 #15
0
		private void butSnomeds_Click(object sender,EventArgs e) {
			FormSnomeds FormS=new FormSnomeds();
			FormS.ShowDialog();
		}
コード例 #16
0
ファイル: FormEhrTriggerEdit.cs プロジェクト: mnisl/OD
		private void butAddSnomed_Click(object sender,EventArgs e) {
			FormSnomeds FormS=new FormSnomeds();
			FormS.IsMultiSelectMode=true;
			FormS.ShowDialog();
			if(FormS.DialogResult!=DialogResult.OK) {
				return;
			}
			for(int i=0;i<FormS.ListSelectedSnomeds.Count;i++) {
				EhrTriggerCur.ProblemSnomedList+=" "+FormS.ListSelectedSnomeds[i].SnomedCode+" ";
			}
			FillGrid();
		}
コード例 #17
0
		private void butPregSnomed_Click(object sender,EventArgs e) {
			FormSnomeds FormS=new FormSnomeds();
			if(!Security.IsAuthorized(Permissions.SecurityAdmin,false)) {
				FormS.IsSelectionMode=false;
			}
			else {
				FormS.IsSelectionMode=true;
			}
			FormS.ShowDialog();
			if(FormS.DialogResult==DialogResult.OK) {
				NewPregCodeSystem="SNOMEDCT";
				for(int i=1;i<comboPregCodes.Items.Count;i++) {
					if(FormS.SelectedSnomed.SnomedCode==comboPregCodes.Items[i].ToString()) {//if they go to snomed list and select one of the recommended codes, select in list
						comboPregCodes.SelectedIndex=i;
						textPregCodeValue.Clear();
						textPregCodeDescript.Text=FormS.SelectedSnomed.Description;
						labelPregWarning.Visible=false;
						return;
					}
				}
				comboPregCodes.SelectedIndex=-1;
				textPregCodeValue.Text=FormS.SelectedSnomed.SnomedCode;
				textPregCodeDescript.Text=FormS.SelectedSnomed.Description;
				labelPregWarning.Visible=true;
			}
		}
コード例 #18
0
		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;
			}
		}
コード例 #19
0
ファイル: FormEhrPatientSmoking.cs プロジェクト: mnisl/OD
		private void butSnomed_Click(object sender,EventArgs e) {
			MsgBox.Show(this,"Selecting a code that is not in the recommended list of codes may make it more difficult to meet Meaningful Use and CQM's.");
			FormSnomeds FormS=new FormSnomeds();
			FormS.IsSelectionMode=true;
			FormS.ShowDialog();
			if(FormS.DialogResult!=DialogResult.OK) {
				return;
			}
			for(int i=0;i<Enum.GetNames(typeof(SmokingSnoMed)).Length;i++) {
				if(FormS.SelectedSnomed.SnomedCode==((SmokingSnoMed)i).ToString().Substring(1)) {
					comboSmokeStatus.SelectedIndex=i+1;
					_TobaccoCodeSelected=((SmokingSnoMed)i).ToString().Substring(1);
					return;
				}
			}
			_TobaccoCodeSelected=FormS.SelectedSnomed.SnomedCode;
			comboSmokeStatus.SelectedIndex=-1;
			comboSmokeStatus.Text=FormS.SelectedSnomed.Description;
		}
コード例 #20
0
        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;
            }
        }
コード例 #21
0
		private void butAddSnomed_Click(object sender,EventArgs e) {
			FormSnomeds FormS = new FormSnomeds();
			FormS.IsMultiSelectMode=true;
			FormS.ShowDialog();
			if(FormS.DialogResult!=DialogResult.OK) {
				return;
			}
			for(int i=0;i<FormS.ListSelectedSnomeds.Count;i++) {
				ListObjects.Add(FormS.ListSelectedSnomeds[i]);
			}
			fillKnowledgeRequestitems();
		}
コード例 #22
0
ファイル: FormEncounterEdit.cs プロジェクト: mnisl/OD
		private void butSnomed_Click(object sender,EventArgs e) {
			FormSnomeds formS=new FormSnomeds();
			formS.IsSelectionMode=true;
			if(formS.ShowDialog()==DialogResult.OK) {
				_encCur.CodeSystem="SNOMEDCT";
				_encCur.CodeValue=formS.SelectedSnomed.SnomedCode;
				textCodeSystem.Text="SNOMEDCT";
				textCodeValue.Text=formS.SelectedSnomed.SnomedCode;
				textCodeDescript.Text=formS.SelectedSnomed.Description;
			}
		}
コード例 #23
0
ファイル: FormEhrLabResultEdit2014.cs プロジェクト: mnisl/OD
		private void butCodedElementLoinc_Click(object sender,EventArgs e) {
			FormSnomeds FormS=new FormSnomeds();
			FormS.IsSelectionMode=true;
			FormS.ShowDialog();
			if(FormS.DialogResult!=DialogResult.OK) {
				return;
			}
			textObsElementID.Text=FormS.SelectedSnomed.SnomedCode;
			textObsElementText.Text=FormS.SelectedSnomed.Description;
			textObsElementCodeSystem.Text="SCT";
			textObsElementOrigText.Text=FormS.SelectedSnomed.Description;
		}
コード例 #24
0
ファイル: FormEhrAptObsEdit.cs プロジェクト: mnisl/OD
		private void butPickValueSnomedct_Click(object sender,EventArgs e) {
			FormSnomeds formS=new FormSnomeds();
			formS.IsSelectionMode=true;
			if(formS.ShowDialog()==DialogResult.OK) {
				_snomedValue=formS.SelectedSnomed;
				textValue.Text=_snomedValue.Description;
				_strValCodeSystem="SNOMEDCT";
				labelValue.Text=_strValCodeSystem+" Value";
			}
		}
コード例 #25
0
ファイル: FormEhrSetup.cs プロジェクト: kjb7749/testImport
        private void butSnomeds_Click(object sender, EventArgs e)
        {
            FormSnomeds FormS = new FormSnomeds();

            FormS.ShowDialog();
        }
コード例 #26
0
		private void butSnomed_Click(object sender,EventArgs e) {
			FormSnomeds FormS=new FormSnomeds();
			FormS.IsSelectionMode=true;
			FormS.ShowDialog();
			if(FormS.DialogResult!=DialogResult.OK) {
				return;
			}
			if(DiseaseDefs.ContainsSnomed(FormS.SelectedSnomed.SnomedCode,DiseaseDefCur.DiseaseDefNum)) {//DiseaseDefNum could be zero
				MsgBox.Show(this,"Snomed code already exists in the problems list.");
				return;
			}
			DiseaseDefCur.SnomedCode=FormS.SelectedSnomed.SnomedCode;
			string sdescript=Snomeds.GetCodeAndDescription(FormS.SelectedSnomed.SnomedCode);
			if(sdescript=="") {
				textSnomed.Text=FormS.SelectedSnomed.SnomedCode;
			}
			else {
				textSnomed.Text=sdescript;
			}
		}