Beispiel #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);
        }
Beispiel #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));
 }
Beispiel #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);
 }
Beispiel #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);
 }
Beispiel #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);
 }
Beispiel #6
0
 public DicomServer(BaseActor parentActor, ActorNameEnum actorName) : base(parentActor, actorName)
 {
 }
Beispiel #7
0
 public DicomClient(BaseActor parentActor, ActorNameEnum actorName)
     : base(parentActor, actorName)
 {
     _scu = new DicomScu(this);
 }
Beispiel #8
0
 public BaseServer(BaseActor parentActor, ActorNameEnum actorName)
 {
     _parentActor = parentActor;
     _actorName   = actorName;
 }
Beispiel #9
0
 public BaseClient(BaseActor parentActor, ActorNameEnum actorName)
 {
     _parentActor = parentActor;
     _actorName = actorName;
 }
Beispiel #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);
 }
 public DicomStorageCommitServer(BaseActor parentActor, ActorNameEnum actorName)
     : base(parentActor, actorName)
 {
     // set up the Query/Retrieve information models
     _informationModels = new QueryRetrieveInformationModels();
 }
Beispiel #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));
 }
Beispiel #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));
 }
Beispiel #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);
 }
Beispiel #15
0
 public BaseServer(BaseActor parentActor, ActorNameEnum actorName)
 {
     _parentActor = parentActor;
     _actorName = actorName;
 }
Beispiel #16
0
 public DicomClient(BaseActor parentActor, ActorNameEnum actorName) : base(parentActor, actorName)
 {
     _scu = new DicomScu(this);
 }
Beispiel #17
0
 public Hl7Client(BaseActor parentActor, ActorNameEnum actorName, Hl7Config config)
     : base(parentActor, actorName)
 {
     _config = config;
 }
Beispiel #18
0
 public DicomMppsServer(BaseActor parentActor, ActorNameEnum actorName)
     : base(parentActor, actorName)
 {
 }
Beispiel #19
0
 public BaseClient(BaseActor parentActor, ActorNameEnum actorName)
 {
     _parentActor = parentActor;
     _actorName   = actorName;
 }
Beispiel #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));
 }
Beispiel #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();
        }
Beispiel #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));
 }
Beispiel #23
0
 public Hl7Client(BaseActor parentActor, ActorNameEnum actorName, Hl7Config config) : base(parentActor, actorName)
 {
     _config = config;
 }
Beispiel #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));
 }