public void CloseStatCaseFull() { 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 CaseStatClose = (new SetData()).FullCaseStatSetForClose(); //CaseStatClose.Guardian = null; CaseStatClose.MedRecords = new List<MedRecord> { (new SetData()).MinService(), (new SetData()).MinTfomsInfo(), MedRecordData.deathInfo, (new SetData()).MinDiagnosis(), MedRecordData.anatomopathologicalClinicMainDiagnosis, MedRecordData.referral, MedRecordData.sickList, (new SetData()).MinDischargeSummary(), (new SetData()).MinLaboratoryReport(), (new SetData()).MinConsultNote(), MedRecordData.form027U }; EmkClient.CloseCase(Global.GUID, CaseStatClose); } if (Global.errors == "") Assert.Pass(); else Assert.Fail(Global.errors); }
public void CreateAmbCaseMinSick() { 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(); caseAmb.MedRecords = new List <MedRecord> { (new SetData()).MinSickList() }; EmkClient.CreateCase(Global.GUID, caseAmb); } if (Global.errors == "") { Assert.Pass(); } else { Assert.Fail(Global.errors); } }
public void UpdateStatCaseRef_ToStep() { 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); StepStat stepStat = (new SetData()).MinStepStatSet(); stepStat.MedRecords = new List <MedRecord> { MedRecordData.referral }; caseStat.Steps = new List <StepStat> { stepStat }; EmkClient.UpdateCase(Global.GUID, caseStat); } if (Global.errors == "") { Assert.Pass(); } else { Assert.Fail(Global.errors); } }
public void AddAmbCaseRef_ToStep() { 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(); StepAmb stepAmb = (new SetData()).MinStepAmbSet(); stepAmb.MedRecords = new List <MedRecord> { MedRecordData.referral }; caseAmb.Steps = new List <StepAmb> { stepAmb }; EmkClient.AddCase(Global.GUID, caseAmb); } if (Global.errors == "") { Assert.Pass(); } else { Assert.Fail(Global.errors); } }
public void AddStatStep_Ref() { 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); StepStat stepStat = (new SetData()).MinStepStatSet(); stepStat.MedRecords = new List <MedRecord> { MedRecordData.referral }; EmkClient.AddStepToCase(Global.GUID, Data.idlpu, caseStat.IdPatientMis, caseStat.IdCaseMis, stepStat); } if (Global.errors == "") { Assert.Pass(); } else { Assert.Fail(Global.errors); } }
public void AddAmbCaseFullSick() { 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.sickList, (new SetData()).MinClinicMainDiagnosis() }; EmkClient.AddCase(Global.GUID, caseAmb); } if (Global.errors == "") { Assert.Pass(); } else { Assert.Fail(Global.errors); } }
public void AddAmbCaseRef_ToStep() { 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(); StepAmb stepAmb = (new SetData()).MinStepAmbSet(); stepAmb.MedRecords = new List<MedRecord> { MedRecordData.referral }; caseAmb.Steps = new List<StepAmb> { stepAmb }; EmkClient.AddCase(Global.GUID, caseAmb); } if (Global.errors == "") Assert.Pass(); else Assert.Fail(Global.errors); }
public void UpdateStatCaseFullRef() { 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); caseStat.MedRecords = new List <MedRecord> { MedRecordData.referral, (new SetData()).MinClinicMainDiagnosis() }; EmkClient.UpdateCase(Global.GUID, caseStat); } if (Global.errors == "") { Assert.Pass(); } else { Assert.Fail(Global.errors); } }
public void CloseStatCaseMinSick() { 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(); caseStat.MedRecords = new List <MedRecord> { (new SetData()).MinSickList(), (new SetData()).MinClinicMainDiagnosis() }; EmkClient.CloseCase(Global.GUID, caseStat); } if (Global.errors == "") { Assert.Pass(); } else { Assert.Fail(Global.errors); } }
public void AddStatMedRecTfomfsInfo_nonexistentCase() { 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); EmkClient.AddMedRecord(Global.GUID, Data.idlpu, caseStat.IdPatientMis, MedRecordData.tfomsInfo, "nonexistentCase"); } Assert.IsTrue(Global.errors1.Contains(" - Случай обслуживания не найден"), "MedRecord был добавлен"); }
public void AddAmbMedRecClinicDiagnosis_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.clinicMainDiagnosis, caseAmb.IdCaseMis); } if (Global.errors == "") Assert.Pass(); else Assert.Fail(Global.errors); }
public void AddMedForm027U_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.form027U, caseStat.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 CloseAmbCaseMin() { 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 CaseAmbClose = (new SetData()).MinCaseAmbSetForClose(); EmkClient.CloseCase(Global.GUID, CaseAmbClose); } if (Global.errors == "") Assert.Pass(); else Assert.Fail(Global.errors); }
public void AddForm027U() { 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.MedRecords = new List<MedRecord> { MedRecordData.form027U }; EmkClient.AddCase(Global.GUID, caseStat); } if (Global.errors == "") Assert.Pass(); else Assert.Fail(Global.errors); }
public void AddMedForm027U_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.form027U, caseStat.IdCaseMis); } if (Global.errors == "") { Assert.Pass(); } else { Assert.Fail(Global.errors); } }
public void AddStatMedRecAnatomDiagnosis_OpenCase() { 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); EmkClient.AddMedRecord(Global.GUID, Data.idlpu, caseStat.IdPatientMis, MedRecordData.anatomopathologicalClinicMainDiagnosis, caseStat.IdCaseMis); } if (Global.errors == "") { Assert.Pass(); } else { Assert.Fail(Global.errors); } }
public void AddStatMedAppointedMedication_OpenCase() { using (TestPixServiceClient PixClient = new TestPixServiceClient()) { PatientDto patient = (new SetData()).PatientSet(); PixClient.AddPatient(Global.GUID, Data.idlpu, patient); } using (TestEmkServiceClient EmkClient = new TestEmkServiceClient()) { CaseAmb caseStat = (new SetData()).MinCaseAmbSetForCreate(); EmkClient.CreateCase(Global.GUID, caseStat); EmkClient.AddMedRecord(Global.GUID, Data.idlpu, caseStat.IdPatientMis, MedRecordData.appointedMedication, caseStat.IdCaseMis); } if (Global.errors == "") { Assert.Pass(); } else { Assert.Fail(Global.errors); } }
public void AddAmbMedRecClinicDiagnosis_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.clinicMainDiagnosis, caseAmb.IdCaseMis); } if (Global.errors == "") { Assert.Pass(); } else { Assert.Fail(Global.errors); } }
public void AddAmbMedRecReferral_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.referral, caseAmb.IdCaseMis); } if (Global.errors == "") { Assert.Pass(); } else { Assert.Fail(Global.errors); } }
public void AddAmbCaseMinRef() { 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> { (new SetData()).MinRefferal(), (new SetData()).MinClinicMainDiagnosis() }; EmkClient.AddCase(Global.GUID, caseAmb); } if (Global.errors == "") Assert.Pass(); else Assert.Fail(Global.errors); }
public void AddStatCaseFullSick() { 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.MedRecords = new List<MedRecord> { MedRecordData.sickList, (new SetData()).MinClinicMainDiagnosis() }; EmkClient.AddCase(Global.GUID, caseStat); } if (Global.errors == "") Assert.Pass(); else Assert.Fail(Global.errors); }
public void CloseStatCaseFull() { 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 CaseStatClose = (new SetData()).FullCaseStatSetForClose(); //CaseStatClose.Guardian = null; CaseStatClose.MedRecords = new List <MedRecord> { (new SetData()).MinService(), (new SetData()).MinTfomsInfo(), MedRecordData.deathInfo, (new SetData()).MinDiagnosis(), MedRecordData.anatomopathologicalClinicMainDiagnosis, MedRecordData.referral, MedRecordData.sickList, (new SetData()).MinDischargeSummary(), (new SetData()).MinLaboratoryReport(), (new SetData()).MinConsultNote(), MedRecordData.form027U }; EmkClient.CloseCase(Global.GUID, CaseStatClose); } if (Global.errors == "") { Assert.Pass(); } else { Assert.Fail(Global.errors); } }
public void AddStatMedRecConsultNote_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); //var x = N3.EMK.Infrastructure.Helpers.Md5Helper.VerifyGost3411Hash(MedRecordData.consultNote.Attachment.Data, MedRecordData.consultNote.Attachment.Hash); EmkClient.AddMedRecord(Global.GUID, Data.idlpu, caseStat.IdPatientMis, MedRecordData.consultNote, caseStat.IdCaseMis); } if (Global.errors == "") { Assert.Pass(); } else { Assert.Fail(Global.errors); } }
public void CloseStatCaseMin() { 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 CaseStatClose = (new SetData()).MinCaseStatSetForClose(); EmkClient.CloseCase(Global.GUID, CaseStatClose); } if (Global.errors == "") { Assert.Pass(); } else { Assert.Fail(Global.errors); } }
public void AddStatMedRecConsultNote_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); //var x = N3.EMK.Infrastructure.Helpers.Md5Helper.VerifyGost3411Hash(MedRecordData.consultNote.Attachment.Data, MedRecordData.consultNote.Attachment.Hash); EmkClient.AddMedRecord(Global.GUID, Data.idlpu, caseStat.IdPatientMis, MedRecordData.consultNote, caseStat.IdCaseMis); } if (Global.errors == "") Assert.Pass(); else Assert.Fail(Global.errors); }
public void CreateStatCaseMinSick() { 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(); caseStat.MedRecords = new List<MedRecord> { (new SetData()).MinSickList() }; EmkClient.CreateCase(Global.GUID, caseStat); } if (Global.errors == "") Assert.Pass(); else Assert.Fail(Global.errors); }
public void AddAmbStep_Ref() { 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.MedRecords = new List<MedRecord> { MedRecordData.referral }; EmkClient.AddStepToCase(Global.GUID, Data.idlpu, caseAmb.IdPatientMis, caseAmb.IdCaseMis, stepAmb); } if (Global.errors == "") Assert.Pass(); else Assert.Fail(Global.errors); }
public void UpdateStatCaseRef_ToStep() { 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); StepStat stepStat = (new SetData()).MinStepStatSet(); stepStat.MedRecords = new List<MedRecord> { MedRecordData.referral }; caseStat.Steps = new List<StepStat> { stepStat }; EmkClient.UpdateCase(Global.GUID, caseStat); } if (Global.errors == "") Assert.Pass(); else Assert.Fail(Global.errors); }
public void CreateAmbCaseFullRef() { 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(); caseAmb.MedRecords = new List<MedRecord> { MedRecordData.referral }; EmkClient.CreateCase(Global.GUID, caseAmb); } if (Global.errors == "") Assert.Pass(); else Assert.Fail(Global.errors); }
public void AddStatStep_OtherIdFull() { 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); StepStat stepStat = CaseStatData.otherStep; stepStat.MedRecords = new List<MedRecord> { MedRecordData.form027U }; EmkClient.AddStepToCase(Global.GUID, Data.idlpu, caseStat.IdPatientMis, caseStat.IdCaseMis, stepStat); } if (Global.errors == "") Assert.Pass(); else Assert.Fail(Global.errors); }
public void AddStatMedRecAnatomDiagnosis_OpenCase() { 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); EmkClient.AddMedRecord(Global.GUID, Data.idlpu, caseStat.IdPatientMis, MedRecordData.anatomopathologicalClinicMainDiagnosis, caseStat.IdCaseMis); } if (Global.errors == "") Assert.Pass(); else Assert.Fail(Global.errors); }
public void AddStatMedRecTfomfsInfo_OpenCase() { 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); EmkClient.AddMedRecord(Global.GUID, Data.idlpu, caseStat.IdPatientMis, MedRecordData.tfomsInfo, caseStat.IdCaseMis); } if (Global.errors == "") Assert.Pass(); else Assert.Fail(Global.errors); }