本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}