Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Friday, October 18, 2019 2:03:44 PM(UTC)

Blaise  
Blaise

Groups: Registered, Tech Support, Administrators
Posts: 10

Was thanked: 1 time(s) in 1 post(s)

In the LEADTOOLS SDK we do offer a modality enumeration that allows for streamlined coding when creating a list that would hold many modalities. A list of the members that are part of the enumeration can be found here: ModalityTypes Enumeration

In our ModalityWorklistWCFDemo which is found at the below default installation path, we have one implementation that is currently used.

C:\LEADTOOLS 20\Examples\DotNet\PACSFramework\CS\ModalityWorklistWCFDemo

You can set the modality that can update the ScheduledProcedureStep table in the UpdateScheduledProcedureStep() of the UI\Pages\ScheduledProcedureStepPage.cs. The ScheduledProcedureStep.Modality property requires a string input and could take in the value of your custom Modality.

Code:

private void UpdateScheduledProcedureStep()
        {
            _ScheduledProcedureStep.ScheduledProcedureStepID = comboBoxId.Text;
            _ScheduledProcedureStep.ScheduledProcedureStepLocation = textBoxLocation.Text;
            _ScheduledProcedureStep.Modality = "Custom Modality text here";
            _ScheduledProcedureStep.ScheduledPerformingPhysicianNamePrefix = textBoxPrefix.Text;
            _ScheduledProcedureStep.ScheduledPerformingPhysicianNameGivenName = textBoxGiven.Text;
            _ScheduledProcedureStep.ScheduledPerformingPhysicianNameFamilyName = textBoxFamily.Text;
            _ScheduledProcedureStep.ScheduledPerformingPhysicianNameSuffix = textBoxSuffix.Text;
            _ScheduledProcedureStep.ScheduledProcedureStepDescription = textBoxDescription.Text;
            _ScheduledProcedureStep.ScheduledProcedureStepStartDate_Time = new DateRange() { StartDate = dateTimePickerStartDate.Value };
            
            _ScheduledProcedureStep.ScheduledStationAETitle.Clear();
            if (textBoxScheduledStationAE.Text.Length > 0)
            {
                string[] aes = textBoxScheduledStationAE.Text.Split(',', '\r', '\n', ';');

                foreach (string ae in aes)
                {                    
                    _ScheduledProcedureStep.ScheduledStationAETitle.Add(ae.Trim());
                }
            }

            _ScheduledProcedureStep.ScheduledProtocolCodeSequence.Clear();
            foreach (ListViewItem item in listViewSPCS.Items)
            {
                _ScheduledProcedureStep.ScheduledProtocolCodeSequence.Add(item.Tag as ScheduledProtocolCodeSequence);
            }
        }


ScheduledProcedureStep.Modality Property Documentation

Edited by user Friday, October 18, 2019 6:47:49 PM(UTC)  | Reason: Not specified

Blaise Kress
Developer Support Engineer
LEAD Technologies, Inc.
LEAD Logo
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2020, Yet Another Forum.NET
This page was generated in 0.110 seconds.