public void AddMedRecord_ToCase_AmbCaseWithLaboratoryReportMin() { 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()).MinLaboratoryReport(); client.AddMedRecord(Global.GUID, Data.idlpu, caseAmb.IdPatientMis, medRecord, caseAmb.IdCaseMis); } if (Global.errors == "") { Assert.Pass(); } else { Assert.Fail(Global.errors); } }
public void AddMedRecord_ToPatient_StatCaseWithLaboratoryReportFull() { 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.LaboratoryReport; client.AddMedRecord(Global.GUID, Data.idlpu, caseStat.IdPatientMis, medRecord); } if (Global.errors == "") { Assert.Pass(); } else { Assert.Fail(Global.errors); } }
public void AddMedRecord_ToCase_StatCaseWithTfomsInfoMin() { 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 = (new SetData()).MinTfomsInfo(); client.AddMedRecord(Global.GUID, Data.idlpu, caseStat.IdPatientMis, medRecord, caseStat.IdCaseMis); } if (Global.errors == "") { Assert.Pass(); } else { Assert.Fail(Global.errors); } }
public void AddAmbMedRecConsultNote_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.consultNote, caseAmb.IdCaseMis); } if (Global.errors == "") Assert.Pass(); else Assert.Fail(Global.errors); }
public void AddAmbMedRecClinicDiagnosis_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.clinicMainDiagnosis, 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 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 AddAmbMedRecTfomfsInfo_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.tfomsInfo, caseAmb.IdCaseMis); } if (Global.errors == "") { Assert.Pass(); } else { Assert.Fail(Global.errors); } }
public void AddStatMedAppointedMedication_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.appointedMedication, caseStat.IdCaseMis); } if (Global.errors == "") { Assert.Pass(); } else { Assert.Fail(Global.errors); } }
public void AddAmbMedRecClinicDiagnosis_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.clinicMainDiagnosis, caseAmb.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 AddMaxDiagnosis() { 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.diagnosis; 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 AddMinDispanseryOne() { 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 = (new SetData()).MinDispensaryOne(); 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 AddMedRecord_ToPatient_StatCaseWithLaboratoryReportMin() { 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 = (new SetData()).MinLaboratoryReport(); client.AddMedRecord(Global.GUID, Data.idlpu, caseStat.IdPatientMis, medRecord); } 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); }