コード例 #1
0
        public override IList<SupportedSop> GetSupportedSopClasses()
        {
            if (_list == null)
            {
                _list = new List<SupportedSop>();

                var storageAbstractSyntaxList = new List<SopClass>();
                using (var ctx = new PacsContext())
                {
                    storageAbstractSyntaxList.AddRange(
                        ctx.SupportedSopClasses.ToList().Select(
                        sopClass => SopClass.GetSopClass(sopClass.SopClassUid)));
                }

                foreach (var abstractSyntax in storageAbstractSyntaxList)
                {
                    var supportedSop = new SupportedSop {SopClass = abstractSyntax};
                    supportedSop.AddSyntax(TransferSyntax.ExplicitVrLittleEndian);
                    supportedSop.AddSyntax(TransferSyntax.ImplicitVrLittleEndian);
                    _list.Add(supportedSop);
                }
            }

            return _list;
        }
コード例 #2
0
ファイル: CEchoScp.cs プロジェクト: kevinpig/MyRepository
        /// <summary>
        /// Public default constructor. Implements the Verification SOP Class.
        /// </summary>
        public CEchoScp()
        {
            var sop = new SupportedSop {SopClass = SopClass.VerificationSopClass};
            sop.SyntaxList.Add(TransferSyntax.ExplicitVrLittleEndian);
            sop.SyntaxList.Add(TransferSyntax.ImplicitVrLittleEndian);

            _list.Add(sop);
        }
コード例 #3
0
        private static IEnumerable<SupportedSop> GetSupportedSops()
        {
            var sop = new SupportedSop()
                {
                    SopClass = SopClass.StudyRootQueryRetrieveInformationModelFind
                };
            sop.SyntaxList.Add(TransferSyntax.ExplicitVrLittleEndian);
            sop.SyntaxList.Add(TransferSyntax.ImplicitVrLittleEndian);

            yield return sop;
        }
コード例 #4
0
ファイル: WorklistScp.cs プロジェクト: kevinpig/MyRepository
        public WorklistScp()
        {
            var sop = new SupportedSop
                {
                    SopClass = SopClass.ModalityWorklistInformationModelFind
                };
            sop.SyntaxList.Add(TransferSyntax.ExplicitVrLittleEndian);
            sop.SyntaxList.Add(TransferSyntax.ImplicitVrLittleEndian);

            _list.Add(sop);
        }
コード例 #5
0
ファイル: MppsScp.cs プロジェクト: kevinpig/MyRepository
        public MppsScp()
        {
            var sop = new SupportedSop
            {
                SopClass = SopClass.ModalityPerformedProcedureStepSopClass
            };

            sop.SyntaxList.Add(TransferSyntax.ExplicitVrLittleEndian);
            sop.SyntaxList.Add(TransferSyntax.ImplicitVrLittleEndian);

            _list.Add(sop);
        }
コード例 #6
0
        private static IEnumerable<SupportedSop> GetSupportedSops()
        {
            var sop = new SupportedSop()
                {
                    SopClass = SopClass.VerificationSopClass
                };

            sop.SyntaxList.Add(TransferSyntax.ExplicitVrLittleEndian);
            sop.SyntaxList.Add(TransferSyntax.ImplicitVrLittleEndian);

            yield return sop;
        }
コード例 #7
0
ファイル: CMoveScp.cs プロジェクト: kevinpig/MyRepository
        public CMoveScp()
        {
            var sop = new SupportedSop()
                {
                    SopClass = SopClass.PatientRootQueryRetrieveInformationModelMove
                };
            sop.SyntaxList.Add(TransferSyntax.ExplicitVrLittleEndian);
            sop.SyntaxList.Add(TransferSyntax.ImplicitVrLittleEndian);
            _list.Add(sop);

            sop = new SupportedSop()
                {
                    SopClass = SopClass.StudyRootQueryRetrieveInformationModelMove
                };
            sop.SyntaxList.Add(TransferSyntax.ExplicitVrLittleEndian);
            sop.SyntaxList.Add(TransferSyntax.ImplicitVrLittleEndian);
            _list.Add(sop);
        }