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 AddMedRecord_ToCase_StatCaseWithServiceFull() { using (TestPixServiceClient c = new TestPixServiceClient()) { PatientDto patient = (new SetData()).PatientSet(); c.AddPatient(Global.GUID, Data.idlpu, patient); } using (TestEmkServiceClient client = new TestEmkServiceClient()) { CaseStat caseStat = (new SetData()).MinCaseStatSet(); client.AddCase(Global.GUID, caseStat); MedRecord medRecord = MedRecordData.service; client.AddMedRecord(Global.GUID, Data.idlpu, caseStat.IdPatientMis, medRecord, caseStat.IdCaseMis); } if (Global.errors == "") { Assert.Pass(); } else { Assert.Fail(Global.errors); } }
public void AddDicpCase() { using (TestPixServiceClient c = new TestPixServiceClient()) { PatientDto patient = (new SetData()).PatientSet(); c.AddPatient(Global.GUID, "1.2.643.5.1.13.3.25.78.118", patient); } using (TestEmkServiceClient client = new TestEmkServiceClient()) { CaseAmb caseDisp = (new SetData()).FullCaseDispSet(); caseDisp.Guardian = null; caseDisp.OpenDate = new DateTime(2014, 06, 01); caseDisp.CloseDate = new DateTime(2014, 06, 10); caseDisp.MedRecords = new List <MedRecord> { GetDispanseryOne(), MedRecordData.clinicMainDiagnosis }; client.AddCase(Global.GUID, caseDisp); } if (Global.errors == "") { Assert.Pass(); } else { Assert.Fail(Global.errors); } }
public void _AddAmbCase() { using (TestPixServiceClient c = new TestPixServiceClient()) { PatientDto p = (new SetData()).PatientSet(); c.AddPatient(Global.GUID, "1.2.643.5.1.13.3.25.78.118", p); } using (TestEmkServiceClient c = new TestEmkServiceClient()) { CaseAmb p = (new SetData()).FullCaseAmbSet(); p.Guardian = null; p.OpenDate = new DateTime(2014, 06, 01); p.CloseDate = new DateTime(2014, 06, 10); p.MedRecords = new List <MedRecord> { MedRecordData.clinicMainDiagnosis, //GetEpic(), GetConsult() }; p.Steps[0].DateStart = new DateTime(2014, 06, 01); p.Steps[0].DateEnd = new DateTime(2014, 06, 10); p.Steps[0].MedRecords = new List <MedRecord> { GetGemotology(), GetBlood(), GetOnkomarkers(), MedRecordData.appointedMedication, MedRecordData.service }; c.AddCase(Global.GUID, p); string caseMis = p.IdCaseMis; p = (new SetData()).FullCaseAmbSet(); p.IdCaseMis = caseMis; p.Guardian = null; p.OpenDate = new DateTime(2014, 06, 01); p.CloseDate = new DateTime(2014, 06, 10); p.MedRecords = new List <MedRecord> { MedRecordData.clinicMainDiagnosis, GetConsult() }; p.Steps[0].DateStart = new DateTime(2014, 06, 01); p.Steps[0].DateEnd = new DateTime(2014, 06, 10); p.Steps[0].MedRecords = new List <MedRecord> { GetGemotology(), GetBlood(), GetOnkomarkers() }; c.UpdateCase(Global.GUID, p); } 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 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 AddMinStatCase() { using (TestPixServiceClient PixClient = new TestPixServiceClient()) { PatientDto patient = (new SetData()).PatientSet(); PixClient.AddPatient(Global.GUID, Data.idlpu, patient); } using (TestEmkServiceClient EmkClient = new TestEmkServiceClient()) { CaseStat caseStat = (new SetData()).MinCaseStatSet(); caseStat.PrehospitalDefects = new List <byte>() { 1, 2 }; EmkClient.AddCase(Global.GUID, caseStat); } if (Global.errors == "") { Assert.Pass(); } else { Assert.Fail(Global.errors); } }
public void UpdateMinStatCase_AfterClose() { using (TestPixServiceClient PixClient = new TestPixServiceClient()) { PatientDto patient = (new SetData()).PatientSet(); PixClient.AddPatient(Global.GUID, Data.idlpu, patient); } using (TestEmkServiceClient EmkClient = new TestEmkServiceClient()) { CaseStat caseStat = (new SetData()).MinCaseStatSetForCreate(); EmkClient.CreateCase(Global.GUID, caseStat); caseStat = (new SetData()).MinCaseStatSetForClose(); EmkClient.CloseCase(Global.GUID, caseStat); caseStat = (new SetData()).MinCaseStatSet(); EmkClient.UpdateCase(Global.GUID, caseStat); } if (Global.errors == "") { Assert.Pass(); } else { Assert.Fail(Global.errors); } }
public void AddPatientWithPrivilege() { 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"; 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 AddAmbStep_OtherIdFull() { using (TestPixServiceClient PixClient = new TestPixServiceClient()) { PatientDto patient = (new SetData()).PatientSet(); PixClient.AddPatient(Global.GUID, Data.idlpu, patient); } using (TestEmkServiceClient EmkClient = new TestEmkServiceClient()) { CaseAmb caseAmb = (new SetData()).MinCaseAmbSetForCreate(); EmkClient.CreateCase(Global.GUID, caseAmb); StepAmb stepAmb = CaseAmbData.otherStep; stepAmb.MedRecords = new List <MedRecord> { (new SetData()).MinService(), (new SetData()).MinAppointedMedication(), (new SetData()).MinDiagnosis(), MedRecordData.clinicMainDiagnosis, MedRecordData.referral, (new SetData()).MinLaboratoryReport() }; EmkClient.AddStepToCase(Global.GUID, Data.idlpu, caseAmb.IdPatientMis, caseAmb.IdCaseMis, stepAmb); } if (Global.errors == "") { Assert.Pass(); } else { Assert.Fail(Global.errors); } }
public void AddAmbStep_SameIdMin() { using (TestPixServiceClient PixClient = new TestPixServiceClient()) { PatientDto patient = (new SetData()).PatientSet(); PixClient.AddPatient(Global.GUID, Data.idlpu, patient); } using (TestEmkServiceClient EmkClient = new TestEmkServiceClient()) { CaseAmb caseAmb = (new SetData()).MinCaseAmbSetForCreate(); EmkClient.CreateCase(Global.GUID, caseAmb); StepAmb stepAmb = (new SetData()).MinOtherStepAmbSet(); stepAmb.IdStepMis = CaseAmbData.step.IdStepMis; EmkClient.AddStepToCase(Global.GUID, Data.idlpu, caseAmb.IdPatientMis, caseAmb.IdCaseMis, stepAmb); } if (Global.errors == "") { Assert.Pass(); } else { Assert.Fail(Global.errors); } }
public void TestDishargeSummary() { using (TestPixServiceClient c = new TestPixServiceClient()) { PatientDto patient = (new SetData()).PatientSet(); c.AddPatient(Global.GUID, Data.idlpu, patient); } CaseAmb caseAmb = (new SetData()).MinCaseAmbSet(); caseAmb.MedRecords = new List<MedRecord> { MedRecordData.dischargeSummary, (new SetData()).MinClinicMainDiagnosis() }; using (TestEmkServiceClient client = new TestEmkServiceClient()) { client.AddCase(Global.GUID, caseAmb); } using (TestMqProxyClient client = new TestMqProxyClient()) { client.GetResultDocument(Global.GUID, Data.idlpu, caseAmb.IdCaseMis, 1); } if (Global.errors == "") Assert.Pass(); else Assert.Fail(Global.errors); }
public void TestForConsultNote() { using (TestPixServiceClient c = new TestPixServiceClient()) { PatientDto patient = (new SetData()).PatientSet(); patient.IdPatientMIS = "TestForMq"; c.AddPatient(Global.GUID, Data.idlpu, patient); } CaseAmb caseAmb = (new SetData()).MinCaseAmbSet(); caseAmb.MedRecords = new List<MedRecord> { MedRecordData.consultNote, (new SetData()).MinClinicMainDiagnosis() }; caseAmb.IdCaseMis = "TestForMq"; caseAmb.IdPatientMis = "TestForMq"; using (TestEmkServiceClient client = new TestEmkServiceClient()) { client.AddCase(Global.GUID, caseAmb); } using (TestMqProxyClient client = new TestMqProxyClient()) { client.GetResultDocument(Global.GUID, Data.idlpu, caseAmb.IdCaseMis, 3); } if (Global.errors == "") Assert.Pass(); else Assert.Fail(Global.errors); }
public void UpdateStatCaseWithTfomsInfoFull() { using (TestPixServiceClient c = new TestPixServiceClient()) { PatientDto patient = (new SetData()).PatientSet(); c.AddPatient(Global.GUID, Data.idlpu, patient); } using (TestEmkServiceClient client = new TestEmkServiceClient()) { CaseStat caseStat = (new SetData()).MinCaseStatSet(); client.AddCase(Global.GUID, caseStat); caseStat.MedRecords = new List <MedRecord> { MedRecordData.tfomsInfo, (new SetData()).MinClinicMainDiagnosis() }; client.UpdateCase(Global.GUID, caseStat); } if (Global.errors == "") { Assert.Pass(); } else { Assert.Fail(Global.errors); } }
public void AddMedRecord_ToCase_AmbCaseWithTfomsInfoMin() { using (TestPixServiceClient c = new TestPixServiceClient()) { PatientDto patient = (new SetData()).PatientSet(); c.AddPatient(Global.GUID, Data.idlpu, patient); } using (TestEmkServiceClient client = new TestEmkServiceClient()) { CaseAmb caseAmb = (new SetData()).MinCaseAmbSet(); client.AddCase(Global.GUID, caseAmb); MedRecord medRecord = (new SetData()).MinTfomsInfo(); client.AddMedRecord(Global.GUID, Data.idlpu, caseAmb.IdPatientMis, medRecord, caseAmb.IdCaseMis); } if (Global.errors == "") { Assert.Pass(); } else { Assert.Fail(Global.errors); } }
public void CreateAmbCaseWithTfomsInfoMin() { using (TestPixServiceClient c = new TestPixServiceClient()) { PatientDto patient = (new SetData()).PatientSet(); c.AddPatient(Global.GUID, Data.idlpu, patient); } using (TestEmkServiceClient client = new TestEmkServiceClient()) { CaseAmb caseAmb = (new SetData()).MinCaseAmbSetForCreate(); caseAmb.MedRecords = new List <MedRecord> { (new SetData()).MinTfomsInfo() }; client.CreateCase(Global.GUID, caseAmb); } if (Global.errors == "") { Assert.Pass(); } else { Assert.Fail(Global.errors); } }
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); } }
public void AddDeathInfo() { using (TestPixServiceClient PixClient = new TestPixServiceClient()) { PatientDto patient = (new SetData()).PatientSet(); PixClient.AddPatient(Global.GUID, Data.idlpu, patient); } using (TestEmkServiceClient EmkClient = new TestEmkServiceClient()) { CaseStat caseStat = (new SetData()).MinCaseStatSet(); caseStat.IdCaseResult = 6; caseStat.MedRecords = new List <MedRecord> { MedRecordData.anatomopathologicalClinicMainDiagnosis, MedRecordData.deathInfo }; EmkClient.AddCase(Global.GUID, caseStat); } if (Global.errors == "") { Assert.Pass(); } else { Assert.Fail(Global.errors); } }
public void CreateAmbCaseWithServiceFull() { using (TestPixServiceClient c = new TestPixServiceClient()) { PatientDto patient = (new SetData()).PatientSet(); c.AddPatient(Global.GUID, Data.idlpu, patient); } using (TestEmkServiceClient client = new TestEmkServiceClient()) { CaseAmb caseAmb = (new SetData()).MinCaseAmbSetForCreate(); caseAmb.MedRecords = new List <MedRecord> { MedRecordData.service }; StepAmb stepAmb = (new SetData()).MinStepAmbSet(); stepAmb.MedRecords = new List <MedRecord> { MedRecordData.service, (new SetData()).MinService() }; caseAmb.Steps = new List <StepAmb> { stepAmb }; client.CreateCase(Global.GUID, caseAmb); } if (Global.errors == "") { Assert.Pass(); } else { Assert.Fail(Global.errors); } }
public void AddMinAmbCaseWithTrueKey() { using (TestPixServiceClient PixClient = new TestPixServiceClient()) { PatientDto patient = (new SetData()).PatientSet(); PixClient.AddPatient(Global.GUID, Data.idlpu, patient); } using (TestEmkServiceClient EmkClient = new TestEmkServiceClient()) { CaseAmb caseAmb = (new SetData()).MinCaseAmbSet(); caseAmb.MedRecords = new List <MedRecord> { MedRecordData.clinicMainDiagnosis, MedRecordData.TrueMedRecordDataWithKey }; EmkClient.AddCase(Global.GUID, caseAmb); } if (Global.errors == "") { Assert.Pass(); } else { Assert.Fail(Global.errors); } }
public void AddPatientWithContacts() { 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"; 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 }; 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 AddMinAmbCaseWithWrongKey() { using (TestPixServiceClient PixClient = new TestPixServiceClient()) { PatientDto patient = (new SetData()).PatientSet(); PixClient.AddPatient(Global.GUID, Data.idlpu, patient); } using (TestEmkServiceClient EmkClient = new TestEmkServiceClient()) { CaseAmb caseAmb = (new SetData()).MinCaseAmbSet(); caseAmb.MedRecords = new List <MedRecord> { MedRecordData.clinicMainDiagnosis, MedRecordData.WrongMedRecordDataWithKey }; EmkClient.AddCase(Global.GUID, caseAmb); } if (Global.errors.Contains("Data - Поле заполнено некорректно")) { Assert.Pass(Global.errors); } else { Assert.Fail(Global.errors); } }
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); } }
public void AddPatientWithAddress() { 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.AddressDto address = new PixServise.AddressDto(); address.StringAddress = "Улица Ленина 47"; address.IdAddressType = 1; PixServise.AddressDto address2 = new PixServise.AddressDto(); address2.StringAddress = "Улица Партизанская 47"; address2.IdAddressType = 2; patient.Addresses = new PixServise.AddressDto[] { address, address2 }; 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 TestForConsultNote() { using (TestPixServiceClient c = new TestPixServiceClient()) { PatientDto patient = (new SetData()).PatientSet(); patient.IdPatientMIS = "TestForMq"; c.AddPatient(Global.GUID, Data.idlpu, patient); } CaseAmb caseAmb = (new SetData()).MinCaseAmbSet(); caseAmb.MedRecords = new List <MedRecord> { MedRecordData.consultNote, (new SetData()).MinClinicMainDiagnosis() }; caseAmb.IdCaseMis = "TestForMq"; caseAmb.IdPatientMis = "TestForMq"; using (TestEmkServiceClient client = new TestEmkServiceClient()) { client.AddCase(Global.GUID, caseAmb); } using (TestMqProxyClient client = new TestMqProxyClient()) { client.GetResultDocument(Global.GUID, Data.idlpu, caseAmb.IdCaseMis, 3); } if (Global.errors == "") { Assert.Pass(); } else { Assert.Fail(Global.errors); } }
public void AddStepToCaseAmbCaseWithServiceMin() { using (TestPixServiceClient c = new TestPixServiceClient()) { PatientDto patient = (new SetData()).PatientSet(); c.AddPatient(Global.GUID, Data.idlpu, patient); } using (TestEmkServiceClient client = new TestEmkServiceClient()) { CaseAmb caseAmb = (new SetData()).MinCaseAmbSetForCreate(); client.CreateCase(Global.GUID, caseAmb); StepAmb stepAmb = (new SetData()).MinStepAmbSet(); stepAmb.MedRecords = new List <MedRecord> { (new SetData()).MinService() }; client.AddStepToCase(Global.GUID, Data.idlpu, caseAmb.IdPatientMis, caseAmb.IdCaseMis, stepAmb); } if (Global.errors == "") { Assert.Pass(); } else { Assert.Fail(Global.errors); } }
public void CloseStatCaseWithServiceMin() { using (TestPixServiceClient c = new TestPixServiceClient()) { PatientDto patient = (new SetData()).PatientSet(); c.AddPatient(Global.GUID, Data.idlpu, patient); } using (TestEmkServiceClient client = new TestEmkServiceClient()) { CaseStat caseStat = (new SetData()).MinCaseStatSetForCreate(); client.CreateCase(Global.GUID, caseStat); caseStat = (new SetData()).MinCaseStatSetForClose(); caseStat.MedRecords = new List <MedRecord> { (new SetData()).MinService(), (new SetData()).MinClinicMainDiagnosis() }; client.CloseCase(Global.GUID, caseStat); } if (Global.errors == "") { Assert.Pass(); } else { Assert.Fail(Global.errors); } }
public void TestDishargeSummary() { using (TestPixServiceClient c = new TestPixServiceClient()) { PatientDto patient = (new SetData()).PatientSet(); c.AddPatient(Global.GUID, Data.idlpu, patient); } CaseAmb caseAmb = (new SetData()).MinCaseAmbSet(); caseAmb.MedRecords = new List <MedRecord> { MedRecordData.dischargeSummary, (new SetData()).MinClinicMainDiagnosis() }; using (TestEmkServiceClient client = new TestEmkServiceClient()) { client.AddCase(Global.GUID, caseAmb); } using (TestMqProxyClient client = new TestMqProxyClient()) { client.GetResultDocument(Global.GUID, Data.idlpu, caseAmb.IdCaseMis, 1); } if (Global.errors == "") { Assert.Pass(); } else { Assert.Fail(Global.errors); } }
public void AddStepToCaseStatCaseWithAppointedMedicationMin() { using (TestPixServiceClient c = new TestPixServiceClient()) { PatientDto patient = (new SetData()).PatientSet(); c.AddPatient(Global.GUID, Data.idlpu, patient); } using (TestEmkServiceClient client = new TestEmkServiceClient()) { CaseStat caseStat = (new SetData()).MinCaseStatSetForCreate(); client.CreateCase(Global.GUID, caseStat); StepStat stepStat = (new SetData()).MinStepStatSet(); stepStat.MedRecords = new List <MedRecord> { (new SetData()).MinAppointedMedication() }; client.AddStepToCase(Global.GUID, Data.idlpu, caseStat.IdPatientMis, caseStat.IdCaseMis, stepStat); } if (Global.errors == "") { Assert.Pass(); } else { Assert.Fail(Global.errors); } }
public void AddDicpCase() { using (TestPixServiceClient c = new TestPixServiceClient()) { PatientDto patient = (new SetData()).PatientSet(); c.AddPatient(Global.GUID, "1.2.643.5.1.13.3.25.78.118", patient); } using (TestEmkServiceClient client = new TestEmkServiceClient()) { CaseAmb caseDisp = (new SetData()).FullCaseDispSet(); caseDisp.Guardian = null; caseDisp.OpenDate = new DateTime(2014, 06, 01); caseDisp.CloseDate = new DateTime(2014, 06, 10); caseDisp.MedRecords = new List<MedRecord> { GetDispanseryOne(), MedRecordData.clinicMainDiagnosis }; client.AddCase(Global.GUID, caseDisp); } if (Global.errors == "") Assert.Pass(); else Assert.Fail(Global.errors); }
public void UpdateAmbCaseWithMinDishargeSummary() { using (TestPixServiceClient c = new TestPixServiceClient()) { PatientDto patient = (new SetData()).PatientSet(); c.AddPatient(Global.GUID, Data.idlpu, patient); } using (TestEmkServiceClient client = new TestEmkServiceClient()) { CaseAmb caseAmb = (new SetData()).MinCaseAmbSet(); client.AddCase(Global.GUID, caseAmb); caseAmb.MedRecords = new List <MedRecord> { (new SetData()).MinDischargeSummary(), (new SetData()).MinClinicMainDiagnosis() }; client.UpdateCase(Global.GUID, caseAmb); } if (Global.errors == "") { Assert.Pass(); } else { Assert.Fail(Global.errors); } }
public void UpdateMinStatCase_AfterClose() { using (TestPixServiceClient PixClient = new TestPixServiceClient()) { PatientDto patient = (new SetData()).PatientSet(); PixClient.AddPatient("D500E893-166B-4724-9C78-D0DBE1F1C48D", "1.2.643.5.1.13.3.25.78.118", patient); } using (TestEmkServiceClient EmkClient = new TestEmkServiceClient()) { CaseStat caseStat = (new SetData()).MinCaseStatSetForCreate(); EmkClient.CreateCase("D500E893-166B-4724-9C78-D0DBE1F1C48D", caseStat); caseStat = (new SetData()).MinCaseStatSetForClose(); EmkClient.CloseCase("D500E893-166B-4724-9C78-D0DBE1F1C48D", caseStat); caseStat = (new SetData()).MinCaseStatSet(); EmkClient.UpdateCase("D500E893-166B-4724-9C78-D0DBE1F1C48D", caseStat); } if (Global.errors == "") { Assert.Pass(); } else { Assert.Fail(Global.errors); } }
public void AddAmbCaseWithMaxConsultNote() { using (TestPixServiceClient c = new TestPixServiceClient()) { PatientDto patient = (new SetData()).PatientSet(); c.AddPatient(Global.GUID, Data.idlpu, patient); } using (TestEmkServiceClient client = new TestEmkServiceClient()) { CaseAmb caseAmb = (new SetData()).MinCaseAmbSet(); caseAmb.MedRecords = new List <MedRecord> { MedRecordData.consultNote, (new SetData()).MinClinicMainDiagnosis() }; client.AddCase(Global.GUID, caseAmb); } if (Global.errors == "") { Assert.Pass(); } else { Assert.Fail(Global.errors); } }
public void AddAmbCaseWithAppointedMedicationMin() { using (TestPixServiceClient c = new TestPixServiceClient()) { PatientDto patient = (new SetData()).PatientSet(); c.AddPatient(Global.GUID, Data.idlpu, patient); } using (TestEmkServiceClient client = new TestEmkServiceClient()) { CaseAmb caseAmb = (new SetData()).MinCaseAmbSet(); caseAmb.MedRecords = new List<MedRecord> { (new SetData()).MinClinicMainDiagnosis(), (new SetData()).MinAppointedMedication() }; StepAmb stepAmb = (new SetData()).MinStepAmbSet(); stepAmb.MedRecords = new List<MedRecord> { (new SetData()).MinAppointedMedication() }; caseAmb.Steps = new List<StepAmb> { stepAmb }; client.AddCase(Global.GUID, caseAmb); } if (Global.errors == "") Assert.Pass(); else Assert.Fail(Global.errors); }
public void AddEmptyPatient() { TestPixServiceClient client = new TestPixServiceClient(); PatientDto patient = new PatientDto(); 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 UpdateFullAmbCase_AfterClose() { using (TestPixServiceClient PixClient = new TestPixServiceClient()) { PatientDto patient = (new SetData()).PatientSet(); PixClient.AddPatient(Global.GUID, Data.idlpu, patient); } using (TestEmkServiceClient EmkClient = new TestEmkServiceClient()) { CaseAmb caseAmb = (new SetData()).MinCaseAmbSetForCreate(); EmkClient.CreateCase(Global.GUID, caseAmb); caseAmb = (new SetData()).MinCaseAmbSetForClose(); EmkClient.CloseCase(Global.GUID, caseAmb); CaseAmb caseAmbUpdate = (new SetData()).FullCaseAmbSet(); SetData set = new SetData(); caseAmb.MedRecords = new List<MedRecord> { set.MinService(), set.MinTfomsInfo(), set.MinDiagnosis(), MedRecordData.clinicMainDiagnosis, set.MinRefferal(), set.MinSickList(), set.MinDischargeSummary(), set.MinLaboratoryReport(), set.MinConsultNote() }; StepAmb stepAmb = (new SetData()).MinStepAmbSet(); stepAmb.MedRecords = new List<MedRecord> { set.MinService(), set.MinAppointedMedication(), set.MinDiagnosis(), MedRecordData.clinicMainDiagnosis, set.MinRefferal(), set.MinLaboratoryReport(), }; caseAmbUpdate.Steps = new List<StepAmb> { stepAmb }; EmkClient.UpdateCase(Global.GUID, caseAmbUpdate); } if (Global.errors == "") Assert.Pass(); else Assert.Fail(Global.errors); }
public void UpdateFullAmbCase_AfterClose() { using (TestPixServiceClient PixClient = new TestPixServiceClient()) { PatientDto patient = (new SetData()).PatientSet(); PixClient.AddPatient("D500E893-166B-4724-9C78-D0DBE1F1C48D", "1.2.643.5.1.13.3.25.78.118", patient); } using (TestEmkServiceClient EmkClient = new TestEmkServiceClient()) { CaseAmb caseAmb = (new SetData()).MinCaseAmbSetForCreate(); EmkClient.CreateCase("D500E893-166B-4724-9C78-D0DBE1F1C48D", caseAmb); caseAmb = (new SetData()).MinCaseAmbSetForClose(); EmkClient.CloseCase("D500E893-166B-4724-9C78-D0DBE1F1C48D", caseAmb); CaseAmb caseAmbUpdate = (new SetData()).FullCaseAmbSet(); SetData set = new SetData(); caseAmb.MedRecords = new MedRecord[] { set.MinService(), set.MinTfomsInfo(), set.MinDiagnosis(), MedRecordData.clinicMainDiagnosis, MedRecordData.referral, MedRecordData.sickList, set.MinDischargeSummary(), set.MinLaboratoryReport(), set.MinConsultNote() }; StepAmb stepAmb = (new SetData()).MinStepAmbSet(); stepAmb.MedRecords = new MedRecord[] { set.MinService(), set.MinAppointedMedication(), set.MinDiagnosis(), MedRecordData.clinicMainDiagnosis, MedRecordData.referral, set.MinLaboratoryReport(), }; caseAmb.Steps = new StepAmb[] { stepAmb }; EmkClient.UpdateCase("D500E893-166B-4724-9C78-D0DBE1F1C48D", caseAmbUpdate); } if (Global.errors == "") Assert.Pass(); else Assert.Fail(Global.errors); }
public void UpdateFullAmbCase_AfterAdd() { using (TestPixServiceClient PixClient = new TestPixServiceClient()) { PatientDto patient = (new SetData()).PatientSet(); PixClient.AddPatient(Global.GUID, Data.idlpu, patient); } using (TestEmkServiceClient EmkClient = new TestEmkServiceClient()) { CaseAmb caseAmbAdd = (new SetData()).MinCaseAmbSet(); EmkClient.AddCase(Global.GUID, caseAmbAdd); CaseAmb caseAmb = (new SetData()).FullCaseAmbSet(); SetData set = new SetData(); caseAmb.MedRecords = new List<MedRecord> { MedRecordData.service, MedRecordData.tfomsInfo, MedRecordData.diagnosis, MedRecordData.clinicMainDiagnosis, MedRecordData.referral, MedRecordData.sickList, MedRecordData.dischargeSummary, MedRecordData.LaboratoryReport, MedRecordData.consultNote, }; StepAmb stepAmb = (new SetData()).MinStepAmbSet(); stepAmb.MedRecords = new List<MedRecord> { set.MinService(), set.MinAppointedMedication(), set.MinDiagnosis(), MedRecordData.clinicMainDiagnosis, MedRecordData.referral, set.MinLaboratoryReport(), }; caseAmb.Steps = new List<StepAmb> { stepAmb }; EmkClient.UpdateCase(Global.GUID, caseAmb); } if (Global.errors == "") Assert.Pass(); else Assert.Fail(Global.errors); }
public void AddFullStatCase() { using (TestPixServiceClient PixClient = new TestPixServiceClient()) { PatientDto patient = (new SetData()).PatientSet(); PixClient.AddPatient("D500E893-166B-4724-9C78-D0DBE1F1C48D", "1.2.643.5.1.13.3.25.78.118", patient); } using (TestEmkServiceClient EmkClient = new TestEmkServiceClient()) { CaseStat caseStat = (new SetData()).FullCaseStatSet(); SetData set = new SetData(); caseStat.MedRecords = new MedRecord[] { set.MinService(), set.MinTfomsInfo(), MedRecordData.deathInfo, set.MinDiagnosis(), MedRecordData.clinicMainDiagnosis, MedRecordData.anatomopathologicalClinicMainDiagnosis, MedRecordData.referral, MedRecordData.sickList, set.MinDischargeSummary(), set.MinLaboratoryReportSet(), set.MinConsultNote() }; StepStat stepStat = (new SetData()).MinStepStatSet(); stepStat.MedRecords = new MedRecord[] { set.MinService(), set.MinAppointedMedication(), set.MinDiagnosis(), MedRecordData.clinicMainDiagnosis, MedRecordData.referral, set.MinLaboratoryReportSet(), }; caseStat.Steps = new StepStat[] { stepStat }; EmkClient.AddCase("D500E893-166B-4724-9C78-D0DBE1F1C48D", caseStat); } if (Global.errors == "") Assert.Pass(); else Assert.Fail(Global.errors); }
public void AddAmbMedRecDiagnosis_OpenCase() { using (TestPixServiceClient PixClient = new TestPixServiceClient()) { PatientDto patient = (new SetData()).PatientSet(); PixClient.AddPatient(Global.GUID, Data.idlpu, patient); } using (TestEmkServiceClient EmkClient = new TestEmkServiceClient()) { CaseAmb caseAmb = (new SetData()).MinCaseAmbSetForCreate(); EmkClient.CreateCase(Global.GUID, caseAmb); EmkClient.AddMedRecord(Global.GUID, Data.idlpu, caseAmb.IdPatientMis, MedRecordData.diagnosis, caseAmb.IdCaseMis); } if (Global.errors == "") Assert.Pass(); else Assert.Fail(Global.errors); }
public void AddAmbMedAppointedMedication_CloseCase() { using (TestPixServiceClient PixClient = new TestPixServiceClient()) { PatientDto patient = (new SetData()).PatientSet(); PixClient.AddPatient(Global.GUID, Data.idlpu, patient); } using (TestEmkServiceClient EmkClient = new TestEmkServiceClient()) { CaseAmb caseAmb = (new SetData()).MinCaseAmbSet(); EmkClient.AddCase(Global.GUID, caseAmb); EmkClient.AddMedRecord(Global.GUID, Data.idlpu, caseAmb.IdPatientMis, MedRecordData.appointedMedication, caseAmb.IdCaseMis); } if (Global.errors == "") Assert.Pass(); else Assert.Fail(Global.errors); }
public void AddMaxConsultNote() { using (TestPixServiceClient c = new TestPixServiceClient()) { PatientDto patient = (new SetData()).PatientSet(); c.AddPatient(Global.GUID, Data.idlpu, patient); } using (TestEmkServiceClient client = new TestEmkServiceClient()) { CaseAmb caseAmb = (new SetData()).MinCaseAmbSet(); MedRecord r = MedRecordData.consultNote; client.AddCase(Global.GUID, caseAmb); client.AddMedRecord(Global.GUID, caseAmb.IdLpu, caseAmb.IdPatientMis, r, caseAmb.IdCaseMis); } if (Global.errors == "") Assert.Pass(); else Assert.Fail(Global.errors); }
public void AddMaxDispanseryOne() { using (TestPixServiceClient c = new TestPixServiceClient()) { PatientDto patient = (new SetData()).PatientSet(); c.AddPatient(Global.GUID, Data.idlpu, patient); } using (TestEmkServiceClient client = new TestEmkServiceClient()) { CaseAmb caseDisp = (new SetData()).MinCaseDispSet(); MedRecord r = MedRecordData.dispensaryOne; client.AddCase(Global.GUID, caseDisp); client.AddMedRecord(Global.GUID, caseDisp.IdLpu, caseDisp.IdPatientMis, r, caseDisp.IdCaseMis); } if (Global.errors == "") Assert.Pass(); else Assert.Fail(Global.errors); }
public void CreateFullAmbCase() { using (TestPixServiceClient PixClient = new TestPixServiceClient()) { PatientDto patient = (new SetData()).PatientSet(); PixClient.AddPatient(Global.GUID, Data.idlpu, patient); } using (TestEmkServiceClient EmkClient = new TestEmkServiceClient()) { CaseAmb caseAmb = (new SetData()).FullCaseAmbSetForCreate(); SetData set = new SetData(); caseAmb.MedRecords = new List<MedRecord> { set.MinService(), set.MinTfomsInfo(), set.MinDiagnosis(), MedRecordData.clinicMainDiagnosis, MedRecordData.referral, MedRecordData.sickList, set.MinLaboratoryReport(), }; StepAmb stepAmb = (new SetData()).MinStepAmbSet(); stepAmb.MedRecords = new List<MedRecord> { set.MinService(), set.MinAppointedMedication(), set.MinDiagnosis(), MedRecordData.clinicMainDiagnosis, MedRecordData.referral, set.MinLaboratoryReport(), }; caseAmb.Steps = new List<StepAmb> { stepAmb }; EmkClient.CreateCase(Global.GUID, caseAmb); } if (Global.errors == "") Assert.Pass(); else Assert.Fail(Global.errors); }
public void AddMedRecord_ToCase_AmbCaseWithTfomsInfoFull() { using (TestPixServiceClient c = new TestPixServiceClient()) { PatientDto patient = (new SetData()).PatientSet(); c.AddPatient(Global.GUID, Data.idlpu, patient); } using (TestEmkServiceClient client = new TestEmkServiceClient()) { CaseAmb caseAmb = (new SetData()).MinCaseAmbSet(); client.AddCase(Global.GUID, caseAmb); MedRecord medRecord = MedRecordData.tfomsInfo; client.AddMedRecord(Global.GUID, Data.idlpu, caseAmb.IdPatientMis, medRecord, caseAmb.IdCaseMis); } if (Global.errors == "") Assert.Pass(); else Assert.Fail(Global.errors); }
public void AddAmbCaseWithLaboratoryReportMin() { using (TestPixServiceClient c = new TestPixServiceClient()) { PatientDto patient = (new SetData()).PatientSet(); c.AddPatient(Global.GUID, Data.idlpu, patient); } using (TestEmkServiceClient client = new TestEmkServiceClient()) { CaseAmb caseAmb = (new SetData()).MinCaseAmbSet(); caseAmb.MedRecords = new List<MedRecord> { (new SetData()).MinLaboratoryReport(), (new SetData()).MinClinicMainDiagnosis() }; client.AddCase(Global.GUID, caseAmb); } if (Global.errors == "") Assert.Pass(); else Assert.Fail(Global.errors); }
public void AddDispCaseWithMinDispanseryOne() { using (TestPixServiceClient c = new TestPixServiceClient()) { PatientDto patient = (new SetData()).PatientSet(); c.AddPatient(Global.GUID, Data.idlpu, patient); } using (TestEmkServiceClient client = new TestEmkServiceClient()) { CaseAmb caseDisp = (new SetData()).MinCaseDispSet(); caseDisp.MedRecords = new List<MedRecord> { (new SetData()).MinDispensaryOne(), (new SetData()).MinClinicMainDiagnosis() }; client.AddCase(Global.GUID, caseDisp); } if (Global.errors == "") Assert.Pass(); else Assert.Fail(Global.errors); }
public void AddDeathInfo() { using (TestPixServiceClient PixClient = new TestPixServiceClient()) { PatientDto patient = (new SetData()).PatientSet(); PixClient.AddPatient(Global.GUID, Data.idlpu, patient); } using (TestEmkServiceClient EmkClient = new TestEmkServiceClient()) { CaseStat caseStat = (new SetData()).MinCaseStatSet(); caseStat.IdCaseResult = 6; caseStat.MedRecords = new List<MedRecord> { MedRecordData.anatomopathologicalClinicMainDiagnosis, MedRecordData.deathInfo }; EmkClient.AddCase(Global.GUID, caseStat); } 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 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); }
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); }
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); }
public void AddStatMedRecSickList_CloseCase() { using (TestPixServiceClient PixClient = new TestPixServiceClient()) { PatientDto patient = (new SetData()).PatientSet(); PixClient.AddPatient(Global.GUID, Data.idlpu, patient); } using (TestEmkServiceClient EmkClient = new TestEmkServiceClient()) { CaseStat caseStat = (new SetData()).MinCaseStatSet(); EmkClient.AddCase(Global.GUID, caseStat); EmkClient.AddMedRecord(Global.GUID, Data.idlpu, caseStat.IdPatientMis, MedRecordData.sickList, caseStat.IdCaseMis); } if (Global.errors == "") Assert.Pass(); else Assert.Fail(Global.errors); }
public void AddStatMedRecAnatomDiagnosis_CloseCase() { using (TestPixServiceClient PixClient = new TestPixServiceClient()) { PatientDto patient = (new SetData()).PatientSet(); PixClient.AddPatient(Global.GUID, Data.idlpu, patient); } using (TestEmkServiceClient EmkClient = new TestEmkServiceClient()) { CaseStat caseStat = (new SetData()).MinCaseStatSet(); EmkClient.AddCase(Global.GUID, caseStat); EmkClient.AddMedRecord(Global.GUID, Data.idlpu, caseStat.IdPatientMis, MedRecordData.anatomopathologicalClinicMainDiagnosis, caseStat.IdCaseMis); } if (Global.errors == "") Assert.Pass(); else Assert.Fail(Global.errors); }
public void AddStepToCaseStatCaseWithAppointedMedicationMin() { using (TestPixServiceClient c = new TestPixServiceClient()) { PatientDto patient = (new SetData()).PatientSet(); c.AddPatient(Global.GUID, Data.idlpu, patient); } using (TestEmkServiceClient client = new TestEmkServiceClient()) { CaseStat caseStat = (new SetData()).MinCaseStatSetForCreate(); client.CreateCase(Global.GUID, caseStat); StepStat stepStat = (new SetData()).MinStepStatSet(); stepStat.MedRecords = new List<MedRecord> { (new SetData()).MinAppointedMedication() }; client.AddStepToCase(Global.GUID, Data.idlpu, caseStat.IdPatientMis, caseStat.IdCaseMis, stepStat); } if (Global.errors == "") Assert.Pass(); else Assert.Fail(Global.errors); }
public void AddStatCaseWithAppointedMedicationFull() { using (TestPixServiceClient c = new TestPixServiceClient()) { PatientDto patient = (new SetData()).PatientSet(); c.AddPatient(Global.GUID, Data.idlpu, patient); } using (TestEmkServiceClient client = new TestEmkServiceClient()) { CaseStat caseStat = (new SetData()).MinCaseStatSet(); caseStat.MedRecords = new List<MedRecord> { (new SetData()).MinClinicMainDiagnosis(), MedRecordData.appointedMedication, }; StepStat stepStat = (new SetData()).MinStepStatSet(); stepStat.MedRecords = new List<MedRecord> { MedRecordData.appointedMedication, }; caseStat.Steps = new List<StepStat> { stepStat }; client.AddCase(Global.GUID, caseStat); } if (Global.errors == "") Assert.Pass(); else Assert.Fail(Global.errors); }
public void UpdateMinAmbCase_AfterAdd() { using (TestPixServiceClient PixClient = new TestPixServiceClient()) { PatientDto patient = (new SetData()).PatientSet(); PixClient.AddPatient("D500E893-166B-4724-9C78-D0DBE1F1C48D", "1.2.643.5.1.13.3.25.78.118", patient); } using (TestEmkServiceClient EmkClient = new TestEmkServiceClient()) { CaseAmb caseAmb = (new SetData()).MinCaseAmbSet(); EmkClient.AddCase("D500E893-166B-4724-9C78-D0DBE1F1C48D", caseAmb); caseAmb.Comment = "23123123123123123123"; EmkClient.UpdateCase("D500E893-166B-4724-9C78-D0DBE1F1C48D", caseAmb); } if (Global.errors == "") Assert.Pass(); else Assert.Fail(Global.errors); }
public void CreateMinStatCase() { using (TestPixServiceClient PixClient = new TestPixServiceClient()) { PatientDto patient = (new SetData()).PatientSet(); PixClient.AddPatient(Global.GUID, Data.idlpu, patient); } using (TestEmkServiceClient EmkClient = new TestEmkServiceClient()) { CaseStat caseStat = (new SetData()).MinCaseStatSetForCreate(); EmkClient.CreateCase(Global.GUID, caseStat); } if (Global.errors == "") Assert.Pass(); else Assert.Fail(Global.errors); }
public void UpdateMinStatCase_AfterClose() { using (TestPixServiceClient PixClient = new TestPixServiceClient()) { PatientDto patient = (new SetData()).PatientSet(); PixClient.AddPatient("D500E893-166B-4724-9C78-D0DBE1F1C48D", "1.2.643.5.1.13.3.25.78.118", patient); } using (TestEmkServiceClient EmkClient = new TestEmkServiceClient()) { CaseStat caseStat = (new SetData()).MinCaseStatSetForCreate(); EmkClient.CreateCase("D500E893-166B-4724-9C78-D0DBE1F1C48D", caseStat); caseStat = (new SetData()).MinCaseStatSetForClose(); EmkClient.CloseCase("D500E893-166B-4724-9C78-D0DBE1F1C48D", caseStat); caseStat = (new SetData()).MinCaseStatSet(); EmkClient.UpdateCase("D500E893-166B-4724-9C78-D0DBE1F1C48D", caseStat); } if (Global.errors == "") Assert.Pass(); else Assert.Fail(Global.errors); }