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); } }
public void AddPatientWithPassport() { 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 = 14; document.DocS = "1311"; document.DocN = "113131"; document.ProviderName = "УФМС"; patient.Documents = new PixServise.DocumentDto[] { document }; client.AddPatient(Global.GUID, "1.2.643.5.1.13.3.25.78.118", patient); if (Global.errors == "") { Assert.Pass(); } else { Assert.Fail(Global.errors); } }
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); } }
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); } }
public PatientDto PatientSet() { PatientDto patient = new PatientDto(); patient.IdPatientMIS = PatientData.Patient.IdPatientMIS; patient.FamilyName = PatientData.Patient.FamilyName; patient.GivenName = PatientData.Patient.GivenName; patient.Sex = PatientData.Patient.Sex; patient.BirthDate = new DateTime(1990, 10, 10); patient.IdBloodType = 1; //PixServise.DocumentDto d = new PixServise.DocumentDto(); //d.DocN = DocumentData.PatientPassport.DocN; //d.IdDocumentType = DocumentData.PatientPassport.IdDocumentType; //d.ProviderName = DocumentData.PatientPassport.ProviderName; //d.DocS = DocumentData.PatientPassport.DocS; PixServise.DocumentDto s = new PixServise.DocumentDto(); s.DocN = DocumentData.PatientSNILS.DocN; s.IdDocumentType = DocumentData.PatientSNILS.IdDocumentType; s.ProviderName = DocumentData.PatientSNILS.ProviderName; patient.Documents = new PixServise.DocumentDto[] { s }; return(patient); }
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); }
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); }
public PatientDto PatientSet() { PatientDto patient = new PatientDto(); patient.IdPatientMIS = PatientData.Patient.IdPatientMIS; patient.FamilyName = PatientData.Patient.FamilyName; patient.GivenName = PatientData.Patient.GivenName; patient.Sex = PatientData.Patient.Sex; patient.BirthDate = new DateTime(1990, 10, 10); patient.IdBloodType = 1; //PixServise.DocumentDto d = new PixServise.DocumentDto(); //d.DocN = DocumentData.PatientPassport.DocN; //d.IdDocumentType = DocumentData.PatientPassport.IdDocumentType; //d.ProviderName = DocumentData.PatientPassport.ProviderName; //d.DocS = DocumentData.PatientPassport.DocS; PixServise.DocumentDto s = new PixServise.DocumentDto(); s.DocN = DocumentData.PatientSNILS.DocN; s.IdDocumentType = DocumentData.PatientSNILS.IdDocumentType; s.ProviderName = DocumentData.PatientSNILS.ProviderName; patient.Documents = new PixServise.DocumentDto[] { s }; return patient; }
public void AddFullPatient() { TestPixServiceClient client = new TestPixServiceClient(); PatientDto patient = new PatientDto(); patient.BirthDate = new DateTime(1983, 01, 07); patient.DeathTime = new DateTime(2020, 02, 15); patient.FamilyName = "Жукин"; patient.GivenName = "Дмитрий"; patient.IdBloodType = 1; patient.IdLivingAreaType = 1; patient.IdPatientMIS = "123456789010"; patient.MiddleName = "Артемович"; patient.Sex = 1; patient.SocialGroup = 2; patient.SocialStatus = "2.11"; PixServise.DocumentDto document = new PixServise.DocumentDto(); document.IdDocumentType = 14; document.DocS = "1311"; document.DocN = "113131"; document.ExpiredDate = new DateTime(1999, 11, 12); document.IssuedDate = new DateTime(2012, 11, 12); document.ProviderName = "УФМС"; document.RegionCode = "1221"; patient.Documents = new PixServise.DocumentDto[] { document }; PixServise.AddressDto address = new PixServise.AddressDto(); address.IdAddressType = 1; address.StringAddress = "Улица Ленина 47"; address.Street = "01000001000000100"; address.Building = "1"; address.City = "0100000000000"; address.Appartment = "1"; address.PostalCode = 1; address.GeoData = "1"; PixServise.AddressDto address2 = new PixServise.AddressDto(); address2.IdAddressType = 2; address2.StringAddress = "Улица Партизанская 47"; address2.Street = "01000001000000100"; address2.Building = "1"; address2.City = "0100000000000"; address2.Appartment = "1"; address2.PostalCode = 1; address2.GeoData = "1"; patient.Addresses = new PixServise.AddressDto[] { address, address2 }; BirthPlaceDto birthplace = new BirthPlaceDto(); birthplace.City = "Тутинск"; birthplace.Country = "маленькая"; birthplace.Region = "БОЛЬШОЙ"; patient.BirthPlace = birthplace; ContactDto contact = new ContactDto(); contact.IdContactType = 1; contact.ContactValue = "89626959434"; ContactDto contact2 = new ContactDto(); contact2.IdContactType = 1; contact2.ContactValue = "89525959544"; patient.Contacts = new ContactDto[] { contact, contact2 }; PixServise.JobDto job = new PixServise.JobDto(); job.OgrnCode = "0100000000000"; // некорректный код job.CompanyName = "OOO 'МИГ'"; job.Sphere = "Я"; job.Position = "Я"; job.DateStart = new DateTime(2003, 1, 1); job.DateEnd = new DateTime(2004, 1, 1); patient.Job = job; PrivilegeDto privilege = new PrivilegeDto(); privilege.DateStart = new DateTime(1993, 01, 02); privilege.DateEnd = new DateTime(2020, 01, 02); privilege.IdPrivilegeType = 10; patient.Privilege = privilege; client.AddPatient(Global.GUID, "1.2.643.5.1.13.3.25.78.118", patient); if (Global.errors == "") Assert.Pass(); else Assert.Fail(Global.errors); }
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); }
public void AddPatientWithPassport() { 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 = 14; document.DocS = "1311"; document.DocN = "113131"; document.ProviderName = "УФМС"; patient.Documents = new PixServise.DocumentDto[] { document }; client.AddPatient(Global.GUID, "1.2.643.5.1.13.3.25.78.118", patient); if (Global.errors == "") Assert.Pass(); else Assert.Fail(Global.errors); }
public void AddFullPatient() { TestPixServiceClient client = new TestPixServiceClient(); PatientDto patient = new PatientDto(); patient.BirthDate = new DateTime(1983, 01, 07); patient.DeathTime = new DateTime(2020, 02, 15); patient.FamilyName = "Жукин"; patient.GivenName = "Дмитрий"; patient.IdBloodType = 1; patient.IdLivingAreaType = 1; patient.IdPatientMIS = "123456789010"; patient.MiddleName = "Артемович"; patient.Sex = 1; patient.SocialGroup = 2; patient.SocialStatus = "2.11"; PixServise.DocumentDto document = new PixServise.DocumentDto(); document.IdDocumentType = 14; document.DocS = "1311"; document.DocN = "113131"; document.ExpiredDate = new DateTime(1999, 11, 12); document.IssuedDate = new DateTime(2012, 11, 12); document.ProviderName = "УФМС"; document.RegionCode = "1221"; patient.Documents = new PixServise.DocumentDto[] { document }; PixServise.AddressDto address = new PixServise.AddressDto(); address.IdAddressType = 1; address.StringAddress = "Улица Ленина 47"; address.Street = "01000001000000100"; address.Building = "1"; address.City = "0100000000000"; address.Appartment = "1"; address.PostalCode = 1; address.GeoData = "1"; PixServise.AddressDto address2 = new PixServise.AddressDto(); address2.IdAddressType = 2; address2.StringAddress = "Улица Партизанская 47"; address2.Street = "01000001000000100"; address2.Building = "1"; address2.City = "0100000000000"; address2.Appartment = "1"; address2.PostalCode = 1; address2.GeoData = "1"; patient.Addresses = new PixServise.AddressDto[] { address, address2 }; BirthPlaceDto birthplace = new BirthPlaceDto(); birthplace.City = "Тутинск"; birthplace.Country = "маленькая"; birthplace.Region = "БОЛЬШОЙ"; patient.BirthPlace = birthplace; ContactDto contact = new ContactDto(); contact.IdContactType = 1; contact.ContactValue = "89626959434"; ContactDto contact2 = new ContactDto(); contact2.IdContactType = 1; contact2.ContactValue = "89525959544"; patient.Contacts = new ContactDto[] { contact, contact2 }; PixServise.JobDto job = new PixServise.JobDto(); job.OgrnCode = "0100000000000"; // некорректный код job.CompanyName = "OOO 'МИГ'"; job.Sphere = "Я"; job.Position = "Я"; job.DateStart = new DateTime(2003, 1, 1); job.DateEnd = new DateTime(2004, 1, 1); patient.Job = job; PrivilegeDto privilege = new PrivilegeDto(); privilege.DateStart = new DateTime(1993, 01, 02); privilege.DateEnd = new DateTime(2020, 01, 02); privilege.IdPrivilegeType = 10; patient.Privilege = privilege; client.AddPatient(Global.GUID, "1.2.643.5.1.13.3.25.78.118", patient); if (Global.errors == "") { Assert.Pass(); } else { Assert.Fail(Global.errors); } }