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


C# TestPixServiceClient.GetPatient方法代码示例

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


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

示例1: FindPatientByIdMIS

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

示例2: SearchPatientByMinParametrAndDocument

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

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

示例5: SearchEmptyPatient

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

示例6: FindPatientBySnilsInReg

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

示例7: FindByFamilyAndName

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


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