LEADTOOLS Support
Medical
Medical SDK Examples
HOW TO: Add a custom modality if not found in the modality enumeration
#1
Posted
:
Friday, October 18, 2019 1:58:44 PM(UTC)
Groups: Registered, Tech Support, Administrators
Posts: 15
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 EnumerationIn 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 DocumentationEdited by user Friday, October 18, 2019 6:42:49 PM(UTC)
| Reason: Not specified
Blaise Kress
Developer Support Engineer
LEAD Technologies, Inc.
LEADTOOLS Support
Medical
Medical SDK Examples
HOW TO: Add a custom modality if not found in the modality enumeration
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.