예제 #1
0
파일: UnitTest1.cs 프로젝트: nbIxMaN/EMKT
        public void UpdatePatient()
        {
            TestPixServiceClient client  = new TestPixServiceClient();
            PatientDto           patient = new PatientDto();

            patient.FamilyName   = "Жукин";
            patient.GivenName    = "АЛЕКСЕЙ";
            patient.BirthDate    = new DateTime(1983, 01, 07);
            patient.Sex          = 1;
            patient.IdPatientMIS = "12345678900029";
            PixServise.DocumentDto document = new PixServise.DocumentDto();
            document.IdDocumentType = 14;
            document.DocS           = "1311";
            document.DocN           = "113131";
            document.ProviderName   = "УФМС";
            patient.Documents       = new PixServise.DocumentDto[] { document };
            PixServise.AddressDto address = new PixServise.AddressDto();
            address.IdAddressType = 1;
            address.StringAddress = "ТУТ";
            patient.Addresses     = new PixServise.AddressDto[] { address };
            ContactDto cont = new ContactDto();

            cont.IdContactType = 1;
            cont.ContactValue  = "89519435454";
            ContactDto cont2 = new ContactDto();

            cont2.IdContactType = 1;
            cont2.ContactValue  = "89519435455";
            patient.Contacts    = new ContactDto[] { cont, cont2 };
            client.AddPatient(Global.GUID, "1.2.643.5.1.13.3.25.78.118", patient);
            client.UpdatePatient(Global.GUID, "1.2.643.5.1.13.3.25.78.118", patient);
            PatientDto patient2 = new PatientDto();

            PixServise.DocumentDto document2 = new PixServise.DocumentDto();
            document2.IdDocumentType = 14;
            document2.DocS           = "1311";
            document2.DocN           = "113131";
            document2.ProviderName   = "УФМС";
            patient2.Documents       = new PixServise.DocumentDto[] { document2 };
            PixServise.AddressDto address2 = new PixServise.AddressDto();
            address2.IdAddressType = 1;
            address2.StringAddress = "ТУТ";
            patient2.FamilyName    = "Сидоров";
            patient2.Addresses     = new PixServise.AddressDto[] { address2 };
            ContactDto cont3 = new ContactDto();

            cont3.IdContactType   = 1;
            cont3.ContactValue    = "89519435456";
            patient2.Contacts     = new ContactDto[] { cont3 };
            patient2.IdPatientMIS = patient.IdPatientMIS;
            client.UpdatePatient(Global.GUID, "1.2.643.5.1.13.3.25.78.118", patient2);
            if (Global.errors == "")
            {
                Assert.Pass();
            }
            else
            {
                Assert.Fail(Global.errors);
            }
        }
예제 #2
0
파일: UnitTest1.cs 프로젝트: nbIxMaN/EMKT
        public void AddMinPatient()
        {
            TestPixServiceClient client  = new TestPixServiceClient();
            PixServiceClient     c       = new PixServiceClient();
            PatientDto           patient = new PatientDto();

            patient.FamilyName   = "Жукин";
            patient.GivenName    = "Дмитрий";
            patient.BirthDate    = new DateTime(1983, 01, 07);
            patient.Sex          = 1;
            patient.IdPatientMIS = "123456789010";
            patient.Documents    = new PixServise.DocumentDto[]
            {
                new PixServise.DocumentDto()
                {
                    DocN           = "123-123-123-12",
                    ProviderName   = "ПФР",
                    IdDocumentType = 223
                }
            };
            client.AddPatient(Global.GUID, "1.2.643.5.1.13.3.25.78.118", patient);
            client.UpdatePatient(Global.GUID, "1.2.643.5.1.13.3.25.78.118", patient);
            if (Global.errors == "")
            {
                Assert.Pass();
            }
            else
            {
                Assert.Fail(Global.errors);
            }
        }
예제 #3
0
파일: UnitTest1.cs 프로젝트: nbIxMaN/EMKT
        public void UpdateMinPatient()
        {
            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";
            patient.Documents    = (new SetData()).PatientSet().Documents;
            client.AddPatient(Global.GUID, "1.2.643.5.1.13.3.25.78.118", patient);
            //patient.FamilyName = "Сидоров";
            client.UpdatePatient(Global.GUID, "1.2.643.5.1.13.3.25.78.118", patient);
            if (Global.errors == "")
            {
                Assert.Pass();
            }
            else
            {
                Assert.Fail(Global.errors);
            }
        }
예제 #4
0
 public void UpdatePatient()
 {
     TestPixServiceClient client = new TestPixServiceClient();
     PatientDto patient = new PatientDto();
     patient.FamilyName = "Жукин";
     patient.GivenName = "АЛЕКСЕЙ";
     patient.BirthDate = new DateTime(1983, 01, 07);
     patient.Sex = 1;
     patient.IdPatientMIS = "12345678900029";
     PixServise.DocumentDto document = new PixServise.DocumentDto();
     document.IdDocumentType = 14;
     document.DocS = "1311";
     document.DocN = "113131";
     document.ProviderName = "УФМС";
     patient.Documents = new PixServise.DocumentDto[] { document };
     PixServise.AddressDto address = new PixServise.AddressDto();
     address.IdAddressType = 1;
     address.StringAddress = "ТУТ";
     patient.Addresses = new PixServise.AddressDto[] { address };
     ContactDto cont = new ContactDto();
     cont.IdContactType = 1;
     cont.ContactValue = "89519435454";
     ContactDto cont2 = new ContactDto();
     cont2.IdContactType = 1;
     cont2.ContactValue = "89519435455";
     patient.Contacts = new ContactDto[] { cont, cont2 };
     client.AddPatient(Global.GUID, "1.2.643.5.1.13.3.25.78.118", patient);
     client.UpdatePatient(Global.GUID, "1.2.643.5.1.13.3.25.78.118", patient);
     PatientDto patient2 = new PatientDto();
     PixServise.DocumentDto document2 = new PixServise.DocumentDto();
     document2.IdDocumentType = 14;
     document2.DocS = "1311";
     document2.DocN = "113131";
     document2.ProviderName = "УФМС";
     patient2.Documents = new PixServise.DocumentDto[] { document2 };
     PixServise.AddressDto address2 = new PixServise.AddressDto();
     address2.IdAddressType = 1;
     address2.StringAddress = "ТУТ";
     patient2.FamilyName = "Сидоров";
     patient2.Addresses = new PixServise.AddressDto[] { address2 };
     ContactDto cont3 = new ContactDto();
     cont3.IdContactType = 1;
     cont3.ContactValue = "89519435456";
     patient2.Contacts = new ContactDto[] { cont3 };
     patient2.IdPatientMIS = patient.IdPatientMIS;
     client.UpdatePatient(Global.GUID, "1.2.643.5.1.13.3.25.78.118", patient2);
     if (Global.errors == "")
         Assert.Pass();
     else
         Assert.Fail(Global.errors);
 }
예제 #5
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);
 }
예제 #6
0
파일: UnitTest1.cs 프로젝트: nbIxMaN/EMKT
 public void UpdateMinPatient()
 {
     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";
     patient.Documents = (new SetData()).PatientSet().Documents;
     client.AddPatient(Global.GUID, "1.2.643.5.1.13.3.25.78.118", patient);
     //patient.FamilyName = "Сидоров";
     client.UpdatePatient(Global.GUID, "1.2.643.5.1.13.3.25.78.118", patient);
     if (Global.errors == "")
         Assert.Pass();
     else
         Assert.Fail(Global.errors);
 }
예제 #7
0
파일: UnitTest1.cs 프로젝트: nbIxMaN/EMKT
 public void AddMinPatient()
 {
     TestPixServiceClient client = new TestPixServiceClient();
     PixServiceClient c = new PixServiceClient();
     PatientDto patient = new PatientDto();
     patient.FamilyName = "Жукин";
     patient.GivenName = "Дмитрий";
     patient.BirthDate = new DateTime(1983, 01, 07);
     patient.Sex = 1;
     patient.IdPatientMIS = "123456789010";
     patient.Documents = new PixServise.DocumentDto[]
     {
         new PixServise.DocumentDto()
         {
             DocN = "123-123-123-12",
             ProviderName = "ПФР",
             IdDocumentType = 223
         }
     };
     client.AddPatient(Global.GUID, "1.2.643.5.1.13.3.25.78.118", patient);
     client.UpdatePatient(Global.GUID, "1.2.643.5.1.13.3.25.78.118", patient);
     if (Global.errors == "")
         Assert.Pass();
     else
         Assert.Fail(Global.errors);
 }
예제 #8
0
파일: UnitTest1.cs 프로젝트: nbIxMaN/EMKT
        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);
        }