private void ConfigureNCreateSettings(WorklistAddInsConfiguration settings) { NCreateCommandConfiguration commandConfig = new NCreateCommandConfiguration(); settings.ModalityPerformedProcedureCreateValidation.AllowExtraElements = commandConfig.AllowExtraElements; settings.ModalityPerformedProcedureCreateValidation.AllowPrivateElements = commandConfig.AllowPrivateElements; }
private WorklistAddInsConfiguration GetWorklistAddInsSettings(AdvancedSettings advancedSettings) { WorklistAddInsConfiguration settings; string addInsName; addInsName = System.Reflection.Assembly.GetExecutingAssembly().GetName().Name; settings = advancedSettings.GetAddInCustomData <WorklistAddInsConfiguration>(addInsName, WorklistAddInsConfiguration.SectionName); if (null == settings) { settings = new WorklistAddInsConfiguration(); FillDefaultConfiguration(settings); advancedSettings.SetAddInCustomData <WorklistAddInsConfiguration>(addInsName, WorklistAddInsConfiguration.SectionName, settings); advancedSettings.Save(); } return(settings); }
private void ConfigureMppsNSetSettings(WorklistAddInsConfiguration settings) { NSetMppsCommandConfiguration commandConfig = new NSetMppsCommandConfiguration(); settings.ModaliyPerformedProcedureSetIODPath = commandConfig.ModalityPerformedProcedureStepIODPath; }
private void ConfigureMppsNCreateSettings(WorklistAddInsConfiguration settings) { NCreateMppsCommandConfiguration commandConfig = new NCreateMppsCommandConfiguration(); settings.ModaliyPerformedProcedureCreateIODPath = commandConfig.ModalityPerformedProcedureStepIODPath; settings.ModalityPerformedProcedureCreateValidation.ValidateRelationalToIHERules = commandConfig.ValidateRelationalAttributesAccordingToIHE; }
private void FillDefaultConfiguration(WorklistAddInsConfiguration settings) { ConfigureNCreateSettings(settings); ConfigureMppsNCreateSettings(settings); ConfigureNSetSettings(settings); ConfigureMppsNSetSettings(settings); ConfigureCFindSettings(settings); ConfigureMWLFindSettings(settings); }
private void ConfigureCFindSettings(WorklistAddInsConfiguration settings) { CFindCommandConfiguration commandConfig = new CFindCommandConfiguration(); settings.ModalityWorklistValidation.AllowExtraElements = commandConfig.AllowExtraElements; settings.ModalityWorklistValidation.AllowMultipleItemsSequence = commandConfig.AllowMultipleItems; settings.ModalityWorklistValidation.AllowPrivateElements = commandConfig.AllowPrivateElements; settings.ModalityWorklistValidation.AllowZeroItemsSequence = commandConfig.AllowZeroItemCount; }
private void ConfigureMWLFindSettings(WorklistAddInsConfiguration settings) { MWLCFindCommandConfiguration commandConfig = new MWLCFindCommandConfiguration(); settings.EliminateCompletedMWL = commandConfig.ExcludeCompletedStatus; settings.EliminateDiscontinuedMWL = commandConfig.ExcludeDiscontinuedStatus; settings.EliminateInProgressMWL = commandConfig.ExcludeInProgressStatus; settings.UseStationAETitleForMatching = commandConfig.LimitMWLResponseToClientStationAE; settings.ModaliyWorklistIODPath = commandConfig.ModalityWorklistIODPath; }
private static void ConfigureMppsNSetCommand ( DicomCommand command, WorklistAddInsConfiguration worklistConfig ) { MppsNSetCommand mppsSetCommand; mppsSetCommand = command as MppsNSetCommand; if (null != mppsSetCommand) { mppsSetCommand.PPSConfiguration.ModalityPerformedProcedureStepIODPath = worklistConfig.ModaliyPerformedProcedureSetIODPath; } }
private static void ConfigureNSetCommand ( DicomCommand command, WorklistAddInsConfiguration worklistConfig ) { NSetCommand setCommand; setCommand = command as NSetCommand; if (null != setCommand) { setCommand.Configuration.AllowExtraElements = worklistConfig.ModalityPerformedProcedureSetValidation.AllowExtraElements; setCommand.Configuration.AllowPrivateElements = worklistConfig.ModalityPerformedProcedureSetValidation.AllowPrivateElements; } }
private static void ConfigureMppsNCreateCommand ( DicomCommand command, WorklistAddInsConfiguration worklistConfig ) { MppsNCreateCommand mppsCreateCommand; mppsCreateCommand = command as MppsNCreateCommand; if (null != mppsCreateCommand) { mppsCreateCommand.PPSConfiguration.ModalityPerformedProcedureStepIODPath = worklistConfig.ModaliyPerformedProcedureCreateIODPath; mppsCreateCommand.PPSConfiguration.ValidateRelationalAttributesAccordingToIHE = worklistConfig.ModalityPerformedProcedureCreateValidation.ValidateRelationalToIHERules; } }
private static void ConfigureNCreateCommand ( DicomCommand command, WorklistAddInsConfiguration worklistConfig ) { NCreateCommand createCommand; createCommand = command as NCreateCommand; if (null != createCommand) { createCommand.Configuration.AllowExtraElements = worklistConfig.ModalityPerformedProcedureCreateValidation.AllowExtraElements; createCommand.Configuration.AllowPrivateElements = worklistConfig.ModalityPerformedProcedureCreateValidation.AllowPrivateElements; } }
private static void ConfigureCFindCommand ( DicomCommand command, WorklistAddInsConfiguration findConfig ) { CFindCommand findCommand; findCommand = command as CFindCommand; if (null != findCommand) { findCommand.Configuration.AllowExtraElements = findConfig.ModalityWorklistValidation.AllowExtraElements; findCommand.Configuration.AllowMultipleItems = findConfig.ModalityWorklistValidation.AllowMultipleItemsSequence; findCommand.Configuration.AllowPrivateElements = findConfig.ModalityWorklistValidation.AllowPrivateElements; findCommand.Configuration.AllowZeroItemCount = findConfig.ModalityWorklistValidation.AllowZeroItemsSequence; } }
private static void ConfigureQueryCFindCommand ( DicomCommand command, WorklistAddInsConfiguration findConfig ) { MWLCFindCommand queryFindCommand; queryFindCommand = command as MWLCFindCommand; if (null != queryFindCommand) { queryFindCommand.MWLConfiguration.ExcludeCompletedStatus = findConfig.EliminateCompletedMWL; queryFindCommand.MWLConfiguration.ExcludeDiscontinuedStatus = findConfig.EliminateDiscontinuedMWL; queryFindCommand.MWLConfiguration.ExcludeInProgressStatus = findConfig.EliminateInProgressMWL; queryFindCommand.MWLConfiguration.LimitMWLResponseToClientStationAE = findConfig.UseStationAETitleForMatching; queryFindCommand.MWLConfiguration.ModalityWorklistIODPath = findConfig.ModaliyWorklistIODPath; } }