示例#1
0
        public void SearchMany_IsReferralReviwed()
        {
            using (TestMqServiceClient mq = new TestMqServiceClient())
            {
                Credentials cr = new Credentials {
                    Organization = idLpu, Token = guid
                };
                Options opt = new Options
                {
                    EventsInfo = new EventsInfo
                    {
                        Target = new EventTarget {
                            IsReferralReviwed = true
                        }
                    }
                };
                var res2 = mq.SearchMany(cr, opt);
            }

            if (Global.errors == "")
            {
                Assert.Pass();
            }
            else
            {
                Assert.Fail(Global.errors);
            }
        }
示例#2
0
        public void SearchMany_Privilege()
        {
            using (TestMqServiceClient mq = new TestMqServiceClient())
            {
                Credentials cr = new Credentials {
                    Organization = idLpu, Token = guid
                };
                SetUp();
                Options opt = new Options
                {
                    Patient = new Patient
                    {
                        Privileges = new Privilege[]
                        {
                            new Privilege {
                                PrivilegeType = PersonData.patient.Privileges[0].PrivilegeType
                            }
                        }
                    }
                };
                var res2 = mq.SearchMany(cr, opt);
            }

            if (Global.errors == "")
            {
                Assert.Pass();
            }
            else
            {
                Assert.Fail(Global.errors);
            }
        }
示例#3
0
        public void SearchMany_Survey()
        {
            using (TestMqServiceClient mq = new TestMqServiceClient())
            {
                Credentials cr = new Credentials {
                    Organization = idLpu, Token = guid
                };
                Options opt = new Options
                {
                    Survey = new Survey
                    {
                        SurveyOrgan = new Coding {
                            Code = "1", System = Dictionary.SURVEY_TYPE, Version = "1"
                        },
                        SurveyType = new Coding {
                            Code = "1", System = Dictionary.SURVEY_ORGAN, Version = "1"
                        }
                    }
                };
                var res2 = mq.SearchMany(cr, opt);
            }

            if (Global.errors == "")
            {
                Assert.Pass();
            }
            else
            {
                Assert.Fail(Global.errors);
            }
        }
示例#4
0
        public void SearchMany_PlannedDate()
        {
            using (TestMqServiceClient mq = new TestMqServiceClient())
            {
                Credentials cr = new Credentials {
                    Organization = idLpu, Token = guid
                };
                Options opt = new Options
                {
                    EventsInfo = new EventsInfo
                    {
                        Source = new EventSource {
                            PlannedDate = Convert.ToDateTime("03.01.2012")
                        }
                    }
                };
                var res2 = mq.SearchMany(cr, opt);
            }

            if (Global.errors == "")
            {
                Assert.Pass();
            }
            else
            {
                Assert.Fail(Global.errors);
            }
        }
示例#5
0
        public void SearchMany_ReferralType()
        {
            using (TestMqServiceClient mq = new TestMqServiceClient())
            {
                Credentials cr = new Credentials {
                    Organization = idLpu, Token = guid
                };
                Options opt = new Options
                {
                    ReferralInfo = new ReferralInfo
                    {
                        ReferralType = new Coding {
                            Code = "2", System = Dictionary.REFERRAL_TYPE, Version = "1"
                        }
                    }
                };
                var res2 = mq.SearchMany(cr, opt);
            }

            if (Global.errors == "")
            {
                Assert.Pass();
            }
            else
            {
                Assert.Fail(Global.errors);
            }
        }
示例#6
0
        public void SearchMany_SourceLpu()
        {
            using (TestMqServiceClient mq = new TestMqServiceClient())
            {
                Credentials cr = new Credentials {
                    Organization = idLpu, Token = guid
                };
                Options opt = new Options
                {
                    Source = new ReferralSource {
                        Lpu = new Coding {
                            Code = "1.2.643.5.1.13.3.25.78.125", System = Dictionary.MO, Version = "1"
                        }
                    }
                };
                var res2 = mq.SearchMany(cr, opt);
            }

            if (Global.errors == "")
            {
                Assert.Pass();
            }
            else
            {
                Assert.Fail(Global.errors);
            }
        }
示例#7
0
        public void SearchMany_Empty()
        {
            using (TestMqServiceClient mq = new TestMqServiceClient())
            {
                Credentials cr = new Credentials { Organization = idLpu, Token = guid };
                Options opt = new Options();
                var res = mq.SearchMany(cr, opt);
            }

            if (Global.errors == "")
                Assert.Pass();
            else
                Assert.Fail(Global.errors);
        }
示例#8
0
        public void SearchMany_Test()
        {
            using (TestMqServiceClient mq = new TestMqServiceClient())
            {
                Credentials cr = new Credentials {
                    Organization = idLpu, Token = guid
                };
                //Регистрируем один случай. Статус направления "Зарегистрировано в РЕГИЗ.УО"
                Referral referral = (new SetData()).MinRegister();
                var      result   = mq.Register(cr, referral);

                //Задаём Options по зарегистрированному направлению и ищем его
                Options opt  = (new SetData()).GetRefferalReturnOptions_SearchMany(referral, null, result.MqReferralStatus);
                var     res2 = mq.SearchMany(cr, opt);
            }
        }
示例#9
0
        public void SearchMany_Empty()
        {
            using (TestMqServiceClient mq = new TestMqServiceClient())
            {
                Credentials cr = new Credentials {
                    Organization = idLpu, Token = guid
                };
                Options opt = new Options();
                var     res = mq.SearchMany(cr, opt);
            }

            if (Global.errors == "")
            {
                Assert.Pass();
            }
            else
            {
                Assert.Fail(Global.errors);
            }
        }
示例#10
0
        public void SearchMany_MqReferralStatus()
        {
            using (TestMqServiceClient mq = new TestMqServiceClient())
            {
                Credentials cr = new Credentials { Organization = idLpu, Token = guid };
                Options opt = new Options
                {
                    ReferralInfo = new ReferralInfo
                    {
                        MqReferralStatus = new Coding { Code = "1", System = Dictionary.REFERRAL_STATUS, Version = "1" }
                    }
                };
                var res2 = mq.SearchMany(cr, opt);
            }

            if (Global.errors == "")
                Assert.Pass();
            else
                Assert.Fail(Global.errors);
        }
示例#11
0
        public void SearchMany_IsReferralReviwed()
        {
            using (TestMqServiceClient mq = new TestMqServiceClient())
            {
                Credentials cr = new Credentials { Organization = idLpu, Token = guid };
                Options opt = new Options
                {
                    EventsInfo = new EventsInfo
                    {
                        Target = new EventTarget { IsReferralReviwed = true }
                    }
                };
                var res2 = mq.SearchMany(cr, opt);
            }

            if (Global.errors == "")
                Assert.Pass();
            else
                Assert.Fail(Global.errors);
        }
示例#12
0
        public void SearchMany_ProfileMedService()
        {
            using (TestMqServiceClient mq = new TestMqServiceClient())
            {
                Credentials cr = new Credentials { Organization = idLpu, Token = guid };
                Options opt = new Options
                {
                    ReferralInfo = new ReferralInfo
                    {
                        ProfileMedService = new Coding { Code = "1", System = Dictionary.PROFILE_MED_SERVICE, Version = "1" }
                    }
                };
                var res2 = mq.SearchMany(cr, opt);
            }

            if (Global.errors == "")
                Assert.Pass();
            else
                Assert.Fail(Global.errors);
        }
示例#13
0
        public void SearchMany_Test()
        {
            using (TestMqServiceClient mq = new TestMqServiceClient())
            {
                Credentials cr = new Credentials { Organization = idLpu, Token = guid };
                //Регистрируем один случай. Статус направления "Зарегистрировано в РЕГИЗ.УО"
                Referral referral = (new SetData()).MinRegister();
                var result = mq.Register(cr, referral);

                //Задаём Options по зарегистрированному направлению и ищем его
                Options opt = (new SetData()).GetRefferalReturnOptions_SearchMany(referral, null, result.MqReferralStatus);
                var res2 = mq.SearchMany(cr, opt);
            }
        }
示例#14
0
        public void SearchMany_TargetLpu()
        {
            using (TestMqServiceClient mq = new TestMqServiceClient())
            {
                Credentials cr = new Credentials { Organization = idLpu, Token = guid };
                Options opt = new Options
                {
                    Target = new ReferralTarget { Lpu = new Coding { Code = "1.2.643.5.1.13.3.25.78.125", System = Dictionary.MO, Version = "1" } }
                };
                var res2 = mq.SearchMany(cr, opt);
            }

            if (Global.errors == "")
                Assert.Pass();
            else
                Assert.Fail(Global.errors);
        }
示例#15
0
        public void SearchMany_Survey()
        {
            using (TestMqServiceClient mq = new TestMqServiceClient())
            {
                Credentials cr = new Credentials { Organization = idLpu, Token = guid };
                Options opt = new Options
                {
                    Survey = new Survey
                    {
                        SurveyOrgan = new Coding {Code = "1",System =  Dictionary.SURVEY_TYPE,Version =  "1"},
                        SurveyType = new Coding {Code = "1",System =  Dictionary.SURVEY_ORGAN,Version =  "1"}
                    }
                };
                var res2 = mq.SearchMany(cr, opt);
            }

            if (Global.errors == "")
                Assert.Pass();
            else
                Assert.Fail(Global.errors);
        }
示例#16
0
        public void SearchMany_PlannedDate()
        {
            using (TestMqServiceClient mq = new TestMqServiceClient())
            {
                Credentials cr = new Credentials { Organization = idLpu, Token = guid };
                Options opt = new Options
                {
                    EventsInfo = new EventsInfo
                    {
                        Source = new EventSource { PlannedDate = Convert.ToDateTime("03.01.2012") }
                    }
                };
                var res2 = mq.SearchMany(cr, opt);
            }

            if (Global.errors == "")
                Assert.Pass();
            else
                Assert.Fail(Global.errors);
        }
示例#17
0
        public void SearchMany_Privilege()
        {
            using (TestMqServiceClient mq = new TestMqServiceClient())
            {
                Credentials cr = new Credentials { Organization = idLpu, Token = guid };
                SetUp();
                Options opt = new Options
                {
                    Patient = new Patient
                    {
                        Privileges = new Privilege[]
                        {
                            new Privilege { PrivilegeType = PersonData.patient.Privileges[0].PrivilegeType }
                        }
                    }
                };
                var res2 = mq.SearchMany(cr, opt);
            }

            if (Global.errors == "")
                Assert.Pass();
            else
                Assert.Fail(Global.errors);
        }