Exemplo n.º 1
0
        public void FindPatientByIdMIS()
        {
            TestPixServiceClient client  = new TestPixServiceClient();
            PatientDto           patient = new PatientDto();

            patient.FamilyName   = "Легенда";
            patient.GivenName    = "Легенда";
            patient.BirthDate    = new DateTime(1983, 01, 07);
            patient.Sex          = 1;
            patient.IdPatientMIS = "1123123123";
            PixServise.DocumentDto document = new PixServise.DocumentDto();
            document.IdDocumentType = 223;
            document.DocN           = "123-456-789 45";
            document.ProviderName   = "Снилс";
            patient.Documents       = new PixServise.DocumentDto[] { document };
            client.AddPatient(Global.GUID, "1.2.643.5.1.13.3.25.78.118", patient);
            PatientDto find = new PatientDto();

            find.IdPatientMIS = "1123123123";
            client.GetPatient(Global.GUID, "1.2.643.5.1.13.3.25.78.118", find, SourceType.Reg);
            if (Global.errors == "")
            {
                Assert.Pass();
            }
            else
            {
                Assert.Fail(Global.errors);
            }
        }
Exemplo n.º 2
0
        public void FindByFamilyAndName()
        {
            //System.Collections.ArrayList exeptions;
            TestPixServiceClient client  = new TestPixServiceClient();
            PatientDto           patient = new PatientDto();

            patient.FamilyName   = "Павел";
            patient.GivenName    = "Петров";
            patient.BirthDate    = new DateTime(1983, 01, 07);
            patient.Sex          = 1;
            patient.IdPatientMIS = "123456789010";
            PatientDto forSearch = new PatientDto();

            forSearch.FamilyName = "Павел";
            forSearch.GivenName  = "Петров";
            client.AddPatient(Global.GUID, "1.2.643.5.1.13.3.25.78.118", patient);
            var patents = client.GetPatient(Global.GUID, "1.2.643.5.1.13.3.25.78.118", forSearch, SourceType.Fed);

            if (Global.errors == "")
            {
                Assert.Pass();
            }
            else
            {
                Assert.Fail(Global.errors);
            }
        }
Exemplo n.º 3
0
        public void SearchEmptyPatient()
        {
            TestPixServiceClient client  = new TestPixServiceClient();
            PatientDto           patient = new PatientDto();
            var test = client.GetPatient("8CDE415D-FAB7-4809-AA37-8CDD70B1B46C", "1.2.643.5.1.13.3.25.78.118", patient, SourceType.Fed);

            if (Global.errors == "")
            {
                Assert.Pass();
            }
            else
            {
                Assert.Fail(Global.errors);
            }
        }
Exemplo n.º 4
0
        public void FindPatientByIdMIS()
        {
            TestPixServiceClient client  = new TestPixServiceClient();
            PatientDto           patient = (new SetData()).PatientSet();

            client.AddPatient(Global.GUID, "1.2.643.5.1.13.3.25.78.118", patient);
            PatientDto find = new PatientDto();

            find.IdPatientMIS = patient.IdPatientMIS;
            client.GetPatient(Global.GUID, "1.2.643.5.1.13.3.25.78.118", find, SourceType.Reg);
            if (Global.errors == "")
            {
                Assert.Pass();
            }
            else
            {
                Assert.Fail(Global.errors);
            }
        }
Exemplo n.º 5
0
        public void FindByFamily()
        {
            //System.Collections.ArrayList exeptions;
            TestPixServiceClient client    = new TestPixServiceClient();
            PatientDto           patient   = (new SetData()).PatientSet();
            PatientDto           forSearch = new PatientDto();

            forSearch.FamilyName = PatientData.Patient.FamilyName;
            client.AddPatient(Global.GUID, "1.2.643.5.1.13.3.25.78.118", patient);
            var patents = client.GetPatient(Global.GUID, "1.2.643.5.1.13.3.25.78.118", forSearch, SourceType.Fed);

            if (Global.errors == "")
            {
                Assert.Pass();
            }
            else
            {
                Assert.Fail(Global.errors);
            }
        }
Exemplo n.º 6
0
        public void SearchPatientByMinParametrAndDocument()
        {
            TestPixServiceClient client  = new TestPixServiceClient();
            PatientDto           patient = new PatientDto();

            patient.FamilyName   = "Жукин";
            patient.GivenName    = "Дмитрий";
            patient.BirthDate    = new DateTime(1983, 01, 07);
            patient.Sex          = 1;
            patient.IdPatientMIS = "123456789010";
            PixServise.DocumentDto document = new PixServise.DocumentDto();
            document.IdDocumentType = 14;
            document.DocS           = "1234";
            document.DocN           = "123456";
            document.ProviderName   = "УФМС";
            patient.Documents       = new PixServise.DocumentDto[] { document };
            client.AddPatient(Global.GUID, "1.2.643.5.1.13.3.25.78.118", patient);
            PatientDto forSearch = new PatientDto();

            forSearch.FamilyName = "Жукин";
            forSearch.GivenName  = "Дмитрий";
            forSearch.BirthDate  = new DateTime(1983, 01, 07);
            forSearch.Sex        = 1;
            PixServise.DocumentDto forSearchD = new PixServise.DocumentDto();
            forSearchD.IdDocumentType = 14;
            forSearchD.DocS           = "1234";
            forSearchD.DocN           = "123456";
            forSearch.Documents       = new PixServise.DocumentDto[] { document };
            client.GetPatient(Global.GUID, "1.2.643.5.1.13.3.25.78.118", forSearch, SourceType.Reg);
            if (Global.errors == "")
            {
                Assert.Pass();
            }
            else
            {
                Assert.Fail(Global.errors);
            }
        }
Exemplo n.º 7
0
 public void SearchPatientByMinParametrAndDocument()
 {
     TestPixServiceClient client = new TestPixServiceClient();
     PatientDto patient = new PatientDto();
     patient.FamilyName = "Жукин";
     patient.GivenName = "Дмитрий";
     patient.BirthDate = new DateTime(1983, 01, 07);
     patient.Sex = 1;
     patient.IdPatientMIS = "123456789010";
     PixServise.DocumentDto document = new PixServise.DocumentDto();
     document.IdDocumentType = 14;
     document.DocS = "1234";
     document.DocN = "123456";
     document.ProviderName = "УФМС";
     patient.Documents = new PixServise.DocumentDto[] { document };
     client.AddPatient(Global.GUID, "1.2.643.5.1.13.3.25.78.118", patient);
     PatientDto forSearch = new PatientDto();
     forSearch.FamilyName = "Жукин";
     forSearch.GivenName = "Дмитрий";
     forSearch.BirthDate = new DateTime(1983, 01, 07);
     forSearch.Sex = 1;
     PixServise.DocumentDto forSearchD = new PixServise.DocumentDto();
     forSearchD.IdDocumentType = 14;
     forSearchD.DocS = "1234";
     forSearchD.DocN = "123456";
     forSearch.Documents = new PixServise.DocumentDto[] { document };
     client.GetPatient(Global.GUID, "1.2.643.5.1.13.3.25.78.118", forSearch, SourceType.Reg);
     if (Global.errors == "")
         Assert.Pass();
     else
         Assert.Fail(Global.errors);
 }
Exemplo n.º 8
0
 public void FindPatientByIdMIS()
 {
     TestPixServiceClient client = new TestPixServiceClient();
     PatientDto patient = (new SetData()).PatientSet();
     client.AddPatient(Global.GUID, "1.2.643.5.1.13.3.25.78.118", patient);
     PatientDto find = new PatientDto();
     find.IdPatientMIS = patient.IdPatientMIS;
     client.GetPatient(Global.GUID, "1.2.643.5.1.13.3.25.78.118", find, SourceType.Reg);
     if (Global.errors == "")
         Assert.Pass();
     else
         Assert.Fail(Global.errors);
 }
Exemplo n.º 9
0
 public void FindMultidocumentPatient()
 {
     TestPixServiceClient client = new TestPixServiceClient();
     PatientDto patient = new PatientDto();
     patient.Addresses = new PixServise.AddressDto[]
      {
          new PixServise.AddressDto
          {
              IdAddressType = 1,
              StringAddress = "Россия, г.Санкт-Петербург, р-н.Центральный, пер.Дегтярный, д.1/8, кв.82"
          }
      };
     patient.BirthDate = new DateTime(1976, 07, 19);
     patient.BirthPlace = new BirthPlaceDto
     {
         City = "г. СПБ",
         Country = "г. СПБ",
         Region = "г. СПБ"
     };
     patient.Contacts = new ContactDto[]
      {
          new ContactDto
          {
              ContactValue = "274-26-75",
              IdContactType = 1
          }
      };
     patient.Documents = new PixServise.DocumentDto[]
      {
          new PixServise.DocumentDto
          {
              DocN = "993820",
              DocS = "40 02",
              IdDocumentType = 14,
              IssuedDate = new DateTime(2002, 09, 06),
              ProviderName = "76 о/м СПб"
          },
          new PixServise.DocumentDto
          {
              DocN = "7852320830001562",
              DocS = "ЕП",
              IdDocumentType = 228,
              IdProvider = "78008",
              IssuedDate = new DateTime(2014, 05, 03),
              ProviderName = "САНКТ-ПЕТЕРБУРГСКИЙ ФИЛИАЛ ОАО 'РОСНО-МС'"
          },
          new PixServise.DocumentDto
          {
              DocN = "148-841-391 96",
              IdDocumentType = 223,
              ProviderName = "ПФР"
          }
      };
     patient.FamilyName = "Трескунов";
     patient.GivenName = "Роман";
     patient.IdLivingAreaType = 1;
     patient.Job = new PixServise.JobDto
     {
         CompanyName = "Не работает",
     };
     patient.SocialStatus = "2.4";
     patient.IdPatientMIS = "2312312312399";
     patient.Sex = 1;
     client.AddPatient(Global.GUID, "1.2.643.5.1.13.3.25.78.230", patient);
     client.UpdatePatient(Global.GUID, "1.2.643.5.1.13.3.25.78.230", patient);
     PatientDto patient2 = new PatientDto();
     patient2.Documents = new PixServise.DocumentDto[]
      {
          new PixServise.DocumentDto
          {
              DocN = "7852320830001562",
              DocS = "ЕП",
              IdDocumentType = 228
          }
      };
     patient2.FamilyName = "Трескунов";
     patient2.GivenName = "Роман";
     patient2.BirthDate = new DateTime(1976, 07, 19);
     client.GetPatient(Global.GUID, "1.2.643.5.1.13.3.25.78.230", patient2, SourceType.Reg);
 }
Exemplo n.º 10
0
 public void FindByFamilyAndName()
 {
     //System.Collections.ArrayList exeptions;
     TestPixServiceClient client = new TestPixServiceClient();
     PatientDto patient = (new SetData()).PatientSet();
     PatientDto forSearch = new PatientDto();
     forSearch.FamilyName = PatientData.Patient.GivenName;
     forSearch.GivenName = PatientData.Patient.FamilyName;
     client.AddPatient(Global.GUID, "1.2.643.5.1.13.3.25.78.118", patient);
     var patents = client.GetPatient(Global.GUID, "1.2.643.5.1.13.3.25.78.118", forSearch, SourceType.Fed);
     if (Global.errors == "")
         Assert.Pass();
     else
         Assert.Fail(Global.errors);
 }
Exemplo n.º 11
0
 public void SearchEmptyPatient()
 {
     TestPixServiceClient client = new TestPixServiceClient();
     PatientDto patient = new PatientDto();
     var test = client.GetPatient("8CDE415D-FAB7-4809-AA37-8CDD70B1B46C", "1.2.643.5.1.13.3.25.78.118", patient, SourceType.Fed);
     if (Global.errors == "")
         Assert.Pass();
     else
         Assert.Fail(Global.errors);
 }
Exemplo n.º 12
0
 public void FindPatientBySnilsInReg()
 {
     TestPixServiceClient client = new TestPixServiceClient();
     PatientDto patient = new PatientDto();
     patient.FamilyName = "Легенда";
     patient.GivenName = "Легенда";
     patient.BirthDate = new DateTime(1983, 01, 07);
     patient.Sex = 1;
     patient.IdPatientMIS = "1123123123";
     PixServise.DocumentDto document = new PixServise.DocumentDto();
     document.IdDocumentType = 223;
     document.DocN = "123-456-789 45";
     document.ProviderName = "Снилс";
     patient.Documents = new PixServise.DocumentDto[] { document };
     PatientDto find = new PatientDto();
     find.FamilyName = "Легенда";
     find.GivenName = "Легенда";
     find.BirthDate = new DateTime(1983, 01, 07);
     find.Documents = new PixServise.DocumentDto[] { document };
     client.GetPatient(Global.GUID, "1.2.643.5.1.13.3.25.78.118", find, SourceType.Reg);
     if (Global.errors == "")
         Assert.Pass();
     else
         Assert.Fail(Global.errors);
 }
Exemplo n.º 13
0
 public void FindByFamilyAndName()
 {
     //System.Collections.ArrayList exeptions;
     TestPixServiceClient client = new TestPixServiceClient();
     PatientDto patient = new PatientDto();
     patient.FamilyName = "Павел";
     patient.GivenName = "Петров";
     patient.BirthDate = new DateTime(1983, 01, 07);
     patient.Sex = 1;
     patient.IdPatientMIS = "123456789010";
     PatientDto forSearch = new PatientDto();
     forSearch.FamilyName = "Павел";
     forSearch.GivenName = "Петров";
     client.AddPatient(Global.GUID, "1.2.643.5.1.13.3.25.78.118", patient);
     var patents = client.GetPatient(Global.GUID, "1.2.643.5.1.13.3.25.78.118", forSearch, SourceType.Fed);
     if (Global.errors == "")
         Assert.Pass();
     else
         Assert.Fail(Global.errors);
 }
Exemplo n.º 14
0
        public void FindMultidocumentPatient()
        {
            TestPixServiceClient client  = new TestPixServiceClient();
            PatientDto           patient = new PatientDto();

            patient.Addresses = new PixServise.AddressDto[]
            {
                new PixServise.AddressDto
                {
                    IdAddressType = 1,
                    StringAddress = "Россия, г.Санкт-Петербург, р-н.Центральный, пер.Дегтярный, д.1/8, кв.82"
                }
            };
            patient.BirthDate  = new DateTime(1976, 07, 19);
            patient.BirthPlace = new BirthPlaceDto
            {
                City    = "г. СПБ",
                Country = "г. СПБ",
                Region  = "г. СПБ"
            };
            patient.Contacts = new ContactDto[]
            {
                new ContactDto
                {
                    ContactValue  = "274-26-75",
                    IdContactType = 1
                }
            };
            patient.Documents = new PixServise.DocumentDto[]
            {
                new PixServise.DocumentDto
                {
                    DocN           = "993820",
                    DocS           = "40 02",
                    IdDocumentType = 14,
                    IssuedDate     = new DateTime(2002, 09, 06),
                    ProviderName   = "76 о/м СПб"
                },
                new PixServise.DocumentDto
                {
                    DocN           = "7852320830001562",
                    DocS           = "ЕП",
                    IdDocumentType = 228,
                    IdProvider     = "78008",
                    IssuedDate     = new DateTime(2014, 05, 03),
                    ProviderName   = "САНКТ-ПЕТЕРБУРГСКИЙ ФИЛИАЛ ОАО 'РОСНО-МС'"
                },
                new PixServise.DocumentDto
                {
                    DocN           = "148-841-391 96",
                    IdDocumentType = 223,
                    ProviderName   = "ПФР"
                }
            };
            patient.FamilyName       = "Трескунов";
            patient.GivenName        = "Роман";
            patient.IdLivingAreaType = 1;
            patient.Job = new PixServise.JobDto
            {
                CompanyName = "Не работает",
            };
            patient.SocialStatus = "2.4";
            patient.IdPatientMIS = "2312312312399";
            patient.Sex          = 1;
            client.AddPatient(Global.GUID, "1.2.643.5.1.13.3.25.78.230", patient);
            client.UpdatePatient(Global.GUID, "1.2.643.5.1.13.3.25.78.230", patient);
            PatientDto patient2 = new PatientDto();

            patient2.Documents = new PixServise.DocumentDto[]
            {
                new PixServise.DocumentDto
                {
                    DocN           = "7852320830001562",
                    DocS           = "ЕП",
                    IdDocumentType = 228
                }
            };
            patient2.FamilyName = "Трескунов";
            patient2.GivenName  = "Роман";
            patient2.BirthDate  = new DateTime(1976, 07, 19);
            client.GetPatient(Global.GUID, "1.2.643.5.1.13.3.25.78.230", patient2, SourceType.Reg);
        }