Exemple #1
0
        private void UpdateMPPS()
        {
            MainForm.Mpps.PPSDiscontinuationReasonCodeSequence.Clear();
            foreach (ListViewItem item in listViewReasonCode.Items)
            {
                PPSDiscontinuationReasonCodeSequence s = item.Tag as PPSDiscontinuationReasonCodeSequence;

                MainForm.Mpps.PPSDiscontinuationReasonCodeSequence.Add(s);
            }

            MainForm.Mpps.ProcedureCodeSequence.Clear();
            foreach (ListViewItem item in listViewCodeSequence.Items)
            {
                ProcedureCodeSequence s = item.Tag as ProcedureCodeSequence;

                MainForm.Mpps.ProcedureCodeSequence.Add(s);
            }

            MainForm.Mpps.PerformedProtocolCodeSequence.Clear();
            foreach (ListViewItem item in listViewProtocol.Items)
            {
                PerformedProtocolCodeSequence s = item.Tag as PerformedProtocolCodeSequence;

                MainForm.Mpps.PerformedProtocolCodeSequence.Add(s);
            }
        }
Exemple #2
0
        private void AddProcedureCodeSequence(ProcedureCodeSequence sequence)
        {
            ListViewItem item = listViewCodeSequence.Items.Add(sequence.CodeValue);

            item.SubItems.Add(sequence.CodingSchemeDesignator);
            item.SubItems.Add(sequence.CodeMeaning);
            item.SubItems.Add(sequence.CodingSchemeVersion);
            item.SubItems.Add(sequence.OrderNumber);
            item.Tag = sequence;
        }
Exemple #3
0
        private void buttonAddCodeSequence_Click(object sender, EventArgs e)
        {
            ObjectEditor <ProcedureCodeSequence> editor = new ObjectEditor <ProcedureCodeSequence>(null, "Procedure Code Sequence");

            if (editor.ShowDialog(this) == DialogResult.OK)
            {
                ProcedureCodeSequence sequence = editor.EditObject as ProcedureCodeSequence;

                if (string.IsNullOrEmpty(sequence.CodeValue) || string.IsNullOrEmpty(sequence.CodingSchemeDesignator))
                {
                    Messager.ShowError(this, "Must provide a value for CodeValue and CodingSchemeDesignator.  Item not added to sequence.");
                }
                else
                {
                    AddProcedureCodeSequence(editor.EditObject);
                }
            }
        }