예제 #1
0
        private BaseActor CreateActor(System.String actorNameString)
        {
            BaseActor     actor     = null;
            ActorNameEnum actorName = ActorNames.NameEnum(actorNameString);

            switch (actorName)
            {
            case ActorNameEnum.AdtPatientRegistration:
                actor = new AdtPatientRegistrationActor(_actorsTransactionLog);
                break;

            case ActorNameEnum.OrderPlacer:
                actor = new OrderPlacerActor(_actorsTransactionLog);
                break;

            case ActorNameEnum.DssOrderFiller:
                actor = new DssOrderFillerActor(_actorsTransactionLog);
                break;

            case ActorNameEnum.AcquisitionModality:
                actor = new AcquisitionModalityActor(_actorsTransactionLog);
                break;

            case ActorNameEnum.ImageManager:
                actor = new ImageManagerActor(_actorsTransactionLog);
                break;

            case ActorNameEnum.ImageArchive:
                actor = new ImageArchiveActor(_actorsTransactionLog);
                break;

            case ActorNameEnum.PerformedProcedureStepManager:
                actor = new PpsManagerActor(_actorsTransactionLog);
                break;

            case ActorNameEnum.EvidenceCreator:
                actor = new EvidenceCreatorActor(_actorsTransactionLog);
                break;

//				case ActorNameEnum.ReportManager:
//					actor = new ReportManagerActor(_actorsTransactionLog);
//					break;
            case ActorNameEnum.PrintComposer:
                actor = new PrintComposerActor(_actorsTransactionLog);
                break;

            case ActorNameEnum.PrintServer:
                actor = new PrintServerActor(_actorsTransactionLog);
                break;

            case ActorNameEnum.Unknown:
            default:
                break;
            }

            return(actor);
        }
예제 #2
0
 /// <summary>
 /// Determines whether the <see cref="ActorCollection"/> contains a specific element.
 /// </summary>
 /// <param name="value">The <see cref="BaseActor"/> to locate in the <see cref="ActorCollection"/>.</param>
 /// <returns>
 /// <c>true</c> if the <see cref="ActorCollection"/> contains the specified value;
 /// otherwise, <c>false</c>.
 /// </returns>
 public bool Contains(BaseActor value)
 {
     // If value is not of type Code, this will return false.
     return(List.Contains(value));
 }
예제 #3
0
 /// <summary>
 /// Removes the first occurrence of a specific <see cref="BaseActor"/> from the <see cref="ActorCollection"/>.
 /// </summary>
 /// <param name="value">The <see cref="BaseActor"/> to remove from the <see cref="ActorCollection"/>.</param>
 public void Remove(BaseActor value)
 {
     List.Remove(value);
 }
예제 #4
0
 /// <summary>
 /// Inserts an <see cref="BaseActor"/> element into the <see cref="ActorCollection"/> at the specified index.
 /// </summary>
 /// <param name="index">The zero-based index at which value should be inserted.</param>
 /// <param name="value">The <see cref="BaseActor"/> to insert.</param>
 public void Insert(int index, BaseActor value)
 {
     List.Insert(index, value);
 }
예제 #5
0
 /// <summary>
 /// Inserts an <see cref="BaseActor"/> element into the <see cref="ActorCollection"/> at the specified index.
 /// </summary>
 /// <param name="index">The zero-based index at which value should be inserted.</param>
 /// <param name="value">The <see cref="BaseActor"/> to insert.</param>
 public void Insert(int index, BaseActor value)
 {
     List.Insert(index, value);
 }
예제 #6
0
 public DicomServer(BaseActor parentActor, ActorNameEnum actorName) : base(parentActor, actorName)
 {
 }
예제 #7
0
파일: DicomClient.cs 프로젝트: ewcasas/DVTK
 public DicomClient(BaseActor parentActor, ActorNameEnum actorName)
     : base(parentActor, actorName)
 {
     _scu = new DicomScu(this);
 }
예제 #8
0
 public BaseServer(BaseActor parentActor, ActorNameEnum actorName)
 {
     _parentActor = parentActor;
     _actorName   = actorName;
 }
예제 #9
0
파일: BaseClient.cs 프로젝트: ewcasas/DVTK
 public BaseClient(BaseActor parentActor, ActorNameEnum actorName)
 {
     _parentActor = parentActor;
     _actorName = actorName;
 }
예제 #10
0
 /// <summary>
 /// Copies the elements of the <see cref="ICollection"/> to a strong-typed <c>BaseActor[]</c>, 
 /// starting at a particular <c>BaseActor[]</c> index.
 /// </summary>
 /// <param name="array">
 /// The one-dimensional <c>BaseActor[]</c> that is the destination of the elements 
 /// copied from <see cref="ICollection"/>.
 /// The <c>BaseActor[]</c> must have zero-based indexing. 
 /// </param>
 /// <param name="index">
 /// The zero-based index in array at which copying begins.
 /// </param>
 /// <remarks>
 /// Provides the strongly typed member for <see cref="ICollection"/>.
 /// </remarks>
 public void CopyTo(BaseActor[] array, int index)
 {
     ((ICollection)this).CopyTo(array, index);
 }
예제 #11
0
 public DicomStorageCommitServer(BaseActor parentActor, ActorNameEnum actorName)
     : base(parentActor, actorName)
 {
     // set up the Query/Retrieve information models
     _informationModels = new QueryRetrieveInformationModels();
 }
예제 #12
0
 /// <summary>
 /// Determines whether the <see cref="ActorCollection"/> contains a specific element.
 /// </summary>
 /// <param name="value">The <see cref="BaseActor"/> to locate in the <see cref="ActorCollection"/>.</param>
 /// <returns>
 /// <c>true</c> if the <see cref="ActorCollection"/> contains the specified value; 
 /// otherwise, <c>false</c>.
 /// </returns>
 public bool Contains(BaseActor value)
 {
     // If value is not of type Code, this will return false.
     return (List.Contains(value));
 }
예제 #13
0
 /// <summary>
 /// Adds an object to the end of the <see cref="ActorCollection"/>.
 /// </summary>
 /// <param name="value">The <see cref="BaseActor"/> to be added to the end of the <see cref="ActorCollection"/>.</param>
 /// <returns>The <see cref="ActorCollection"/> index at which the value has been added.</returns>
 public int Add(BaseActor value)
 {
     return (List.Add(value));
 }
예제 #14
0
 /// <summary>
 /// Removes the first occurrence of a specific <see cref="BaseActor"/> from the <see cref="ActorCollection"/>.
 /// </summary>
 /// <param name="value">The <see cref="BaseActor"/> to remove from the <see cref="ActorCollection"/>.</param>
 public void Remove(BaseActor value)
 {
     List.Remove(value);
 }
예제 #15
0
파일: BaseServer.cs 프로젝트: ewcasas/DVTK
 public BaseServer(BaseActor parentActor, ActorNameEnum actorName)
 {
     _parentActor = parentActor;
     _actorName = actorName;
 }
예제 #16
0
 public DicomClient(BaseActor parentActor, ActorNameEnum actorName) : base(parentActor, actorName)
 {
     _scu = new DicomScu(this);
 }
예제 #17
0
파일: Hl7Client.cs 프로젝트: ewcasas/DVTK
 public Hl7Client(BaseActor parentActor, ActorNameEnum actorName, Hl7Config config)
     : base(parentActor, actorName)
 {
     _config = config;
 }
예제 #18
0
 public DicomMppsServer(BaseActor parentActor, ActorNameEnum actorName)
     : base(parentActor, actorName)
 {
 }
예제 #19
0
 public BaseClient(BaseActor parentActor, ActorNameEnum actorName)
 {
     _parentActor = parentActor;
     _actorName   = actorName;
 }
예제 #20
0
 /// <summary>
 /// Adds an object to the end of the <see cref="ActorCollection"/>.
 /// </summary>
 /// <param name="value">The <see cref="BaseActor"/> to be added to the end of the <see cref="ActorCollection"/>.</param>
 /// <returns>The <see cref="ActorCollection"/> index at which the value has been added.</returns>
 public int Add(BaseActor value)
 {
     return(List.Add(value));
 }
예제 #21
0
        public void LoadConfiguration(System.String configurationFilename)
        {
            XmlTextReader reader = new XmlTextReader(configurationFilename);

            while (reader.EOF == false)
            {
                reader.ReadStartElement("IheIntegrationProfile");
                _profileName = reader.ReadElementString("IntegrationProfileName");

                while (reader.IsStartElement())
                {
                    reader.ReadStartElement("IheActorConfiguration");
                    System.String actorNameString = reader.ReadElementString("ActorName");

                    BaseActor   actor       = CreateActor(actorNameString);
                    ActorConfig actorConfig = new ActorConfig(actor.ActorName);

                    while (reader.IsStartElement())
                    {
                        reader.ReadStartElement("PeerIheActorDicomConfiguration");
                        System.String peerActorNameString = reader.ReadElementString("ActorName");

                        ActorNameEnum peerActorName = ActorNames.NameEnum(peerActorNameString);
                        DicomConfig   dicomConfig   = new DicomConfig(peerActorName);

                        dicomConfig.SessionId = UInt16.Parse(reader.ReadElementString("SessionId"));
                        reader.ReadStartElement("DvtNode");
                        dicomConfig.DvtAeTitle    = reader.ReadElementString("AeTitle");
                        dicomConfig.DvtIpAddress  = reader.ReadElementString("IpAddress");
                        dicomConfig.DvtPortNumber = UInt16.Parse(reader.ReadElementString("PortNumber"));
                        reader.ReadEndElement();
                        reader.ReadStartElement("SutNode");
                        dicomConfig.SutAeTitle    = reader.ReadElementString("AeTitle");
                        dicomConfig.SutIpAddress  = reader.ReadElementString("IpAddress");
                        dicomConfig.SutPortNumber = UInt16.Parse(reader.ReadElementString("PortNumber"));
                        reader.ReadEndElement();
                        dicomConfig.DataDirectory = reader.ReadElementString("DataDirectory");
                        System.String storeData = reader.ReadElementString("StoreData");
                        if (storeData == "True")
                        {
                            dicomConfig.StoreData = true;
                        }
                        else
                        {
                            dicomConfig.StoreData = false;
                        }
                        reader.ReadStartElement("DefinitionFiles");

                        bool readingDefinitions = true;
                        while (readingDefinitions == true)
                        {
                            dicomConfig.AddDefinitionFile(reader.ReadElementString("DefinitionFile"));
                            reader.Read();
                            if ((reader.NodeType == XmlNodeType.EndElement) &&
                                (reader.Name == "DefinitionFiles"))
                            {
                                reader.Read();
                                readingDefinitions = false;
                            }
                        }

                        dicomConfig.ResultsRootDirectory = reader.ReadElementString("ResultsRootDirectory");

                        _resultsDirectory = dicomConfig.ResultsRootDirectory;

                        reader.ReadEndElement();

                        actorConfig.Add(dicomConfig);
                    }
                    reader.ReadEndElement();

                    actor.ConfigActor(actorConfig);
                    _actors.Add(actor);
                }
                reader.ReadEndElement();
            }

            reader.Close();
        }
예제 #22
0
 /// <summary>
 /// Searches for the specified <see cref="BaseActor"/> and
 /// returns the zero-based index of the first occurrence within the entire <see cref="ActorCollection"/>.
 /// </summary>
 /// <param name="value">The <see cref="BaseActor"/> to locate in the <see cref="ActorCollection"/>.</param>
 /// <returns>
 /// The zero-based index of the first occurrence of value within the entire <see cref="ActorCollection"/>,
 /// if found; otherwise, -1.
 /// </returns>
 public int IndexOf(BaseActor value)
 {
     return(List.IndexOf(value));
 }
예제 #23
0
파일: Hl7Client.cs 프로젝트: top501/DVTK-1
 public Hl7Client(BaseActor parentActor, ActorNameEnum actorName, Hl7Config config) : base(parentActor, actorName)
 {
     _config = config;
 }
예제 #24
0
 /// <summary>
 /// Searches for the specified <see cref="BaseActor"/> and 
 /// returns the zero-based index of the first occurrence within the entire <see cref="ActorCollection"/>.
 /// </summary>
 /// <param name="value">The <see cref="BaseActor"/> to locate in the <see cref="ActorCollection"/>.</param>
 /// <returns>
 /// The zero-based index of the first occurrence of value within the entire <see cref="ActorCollection"/>, 
 /// if found; otherwise, -1.
 /// </returns>
 public int IndexOf(BaseActor value)
 {
     return (List.IndexOf(value));
 }