Exemplo n.º 1
0
        /// <summary>
        /// Initialize the acquisition modality actor
        /// </summary>
        public void Initialize()
        {
            //
            // Apply the Configuration to actors
            //
            iheFrameworkInstance.ApplyConfig();

            //
            // Get the Acquisition Modality actor
            ActorName actor = new ActorName(ActorTypeEnum.AcquisitionModality, "Modality");
            _acquisitionModality = (AcquisitionModalityActor) iheFrameworkInstance.GetActor(actor);
            if (_acquisitionModality == null)
            {
                throw new System.SystemException("Acquisition Modality not configured");
            }

            //Clear previous mappings
            _acquisitionModality.MapWorklistItemToStorageDirectory.ClearMappings();

            // Set up worklist item - storage directory mapping
            _acquisitionModality.MapWorklistItemToStorageDirectory.MapTag = Tag.SCHEDULED_PROCEDURE_STEP_DESCRIPTION;
            _acquisitionModality.MapWorklistItemToStorageDirectory.AddMapping("Default",
                iheFrameworkInstance.Config.CommonConfig.RootedBaseDirectory + @"\data\acquisitionModality\default");

            // Subscribe events
            SubscribeMessageEvent();
            SubscribeTransactionEvent();

            //
            // Open the results after loading the configuration so that the results directory is defined
            //
            iheFrameworkInstance.OpenResults();

            //
            // Start the integration profile test
            //
            iheFrameworkInstance.StartTest();
        }
Exemplo n.º 2
0
        private BaseActor CreateActor(ActorName actorName)
        {
            BaseActor actor = null;
            switch(actorName.Type)
            {
                case ActorTypeEnum.AdtPatientRegistration:
                    actor = new AdtPatientRegistrationActor(actorName.Id, this);
                    break;
                case ActorTypeEnum.OrderPlacer:
                    actor = new OrderPlacerActor(actorName.Id, this);
                    break;
                case ActorTypeEnum.DssOrderFiller:
                    actor = new DssOrderFillerActor(actorName.Id, this);
                    break;
                case ActorTypeEnum.AcquisitionModality:
                    actor = new AcquisitionModalityActor(actorName.Id, this);
                    break;
                case ActorTypeEnum.ImageManager:
                    actor = new ImageManagerActor(actorName.Id, this);
                    break;
                case ActorTypeEnum.ImageArchive:
                    actor = new ImageArchiveActor(actorName.Id, this);
                    break;
                case ActorTypeEnum.PerformedProcedureStepManager:
                    actor = new PpsManagerActor(actorName.Id, this);
                    break;
                case ActorTypeEnum.EvidenceCreator:
                    actor = new EvidenceCreatorActor(actorName.Id, this);
                    break;
                case ActorTypeEnum.ImageDisplay:
                    actor = new ImageDisplayActor(actorName.Id, this);
                    break;
            //				case ActorTypeEnum.ReportManager:
            //					actor = new ReportManagerActor(actorName.Id, this);
            //					break;
                case ActorTypeEnum.PrintComposer:
                    actor = new PrintComposerActor(actorName.Id, this);
                    break;
                case ActorTypeEnum.PrintServer:
                    actor = new PrintServerActor(actorName.Id, this);
                    break;
                case ActorTypeEnum.Unknown:
                default:
                    break;
            }

            return actor;
        }