当前位置: 首页>>代码示例>>C#>>正文


C# TestPixServiceClient.UpdatePatient方法代码示例

本文整理汇总了C#中PixServiseTests.TestPixServiceClient.UpdatePatient方法的典型用法代码示例。如果您正苦于以下问题:C# TestPixServiceClient.UpdatePatient方法的具体用法?C# TestPixServiceClient.UpdatePatient怎么用?C# TestPixServiceClient.UpdatePatient使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在PixServiseTests.TestPixServiceClient的用法示例。


在下文中一共展示了TestPixServiceClient.UpdatePatient方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: UpdatePatient

 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);
 }
开发者ID:nbIxMaN,项目名称:EMKT,代码行数:51,代码来源:PatientTests.cs

示例2: UpdateMinPatient

 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);
 }
开发者ID:nbIxMaN,项目名称:EMKT,代码行数:18,代码来源:UnitTest1.cs

示例3: FindMultidocumentPatient

 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);
 }
开发者ID:nbIxMaN,项目名称:EMKT,代码行数:80,代码来源:PatientTests.cs

示例4: AddMinPatient

 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);
 }
开发者ID:nbIxMaN,项目名称:EMKT,代码行数:26,代码来源:UnitTest1.cs


注:本文中的PixServiseTests.TestPixServiceClient.UpdatePatient方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。