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);
            }
        }
Exemple #2
0
 public void CreateStatCaseWithServiceFull()
 {
     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();
         caseStat.MedRecords = new List <MedRecord>
         {
             MedRecordData.service
         };
         StepStat stepStat = (new SetData()).MinStepStatSet();
         stepStat.MedRecords = new List <MedRecord>
         {
             MedRecordData.service,
             (new SetData()).MinService()
         };
         caseStat.Steps = new List <StepStat>
         {
             stepStat
         };
         client.CreateCase(Global.GUID, caseStat);
     }
     if (Global.errors == "")
     {
         Assert.Pass();
     }
     else
     {
         Assert.Fail(Global.errors);
     }
 }
Exemple #3
0
 public void CreateDispCaseWithMinDispanseryOne()
 {
     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()).MinCaseDispSetForCreate();
         caseDisp.MedRecords = new List <MedRecord>
         {
             (new SetData()).MinDispensaryOne(),
             (new SetData()).MinClinicMainDiagnosis()
         };
         client.CreateCase(Global.GUID, caseDisp);
     }
     if (Global.errors == "")
     {
         Assert.Pass();
     }
     else
     {
         Assert.Fail(Global.errors);
     }
 }
Exemple #4
0
 public void CreateAmbCaseWithLaboratoryReportFull()
 {
     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.LaboratoryReport
         };
         StepAmb stepAmb = (new SetData()).MinStepAmbSet();
         stepAmb.MedRecords = new List <MedRecord>
         {
             MedRecordData.LaboratoryReport,
             (new SetData()).MinLaboratoryReport()
         };
         caseAmb.Steps = new List <StepAmb>
         {
             stepAmb
         };
         client.CreateCase(Global.GUID, caseAmb);
     }
     if (Global.errors == "")
     {
         Assert.Pass();
     }
     else
     {
         Assert.Fail(Global.errors);
     }
 }
Exemple #5
0
 public void CloseAmbCaseWithLaboratoryReportMin()
 {
     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);
         caseAmb            = (new SetData()).MinCaseAmbSetForClose();
         caseAmb.MedRecords = new List <MedRecord>
         {
             (new SetData()).MinLaboratoryReport(),
             (new SetData()).MinClinicMainDiagnosis()
         };
         client.CloseCase(Global.GUID, caseAmb);
     }
     if (Global.errors == "")
     {
         Assert.Pass();
     }
     else
     {
         Assert.Fail(Global.errors);
     }
 }
Exemple #6
0
 public void AddStepToCaseStatCaseWithLaboratoryReportMin()
 {
     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()).MinLaboratoryReport()
         };
         client.AddStepToCase(Global.GUID, Data.idlpu, caseStat.IdPatientMis, caseStat.IdCaseMis, stepStat);
     }
     if (Global.errors == "")
     {
         Assert.Pass();
     }
     else
     {
         Assert.Fail(Global.errors);
     }
 }
Exemple #7
0
        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);
            }
        }
Exemple #8
0
 public void CloseStatCaseWithMaxDiagnosis()
 {
     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>
         {
             MedRecordData.diagnosis,
             (new SetData()).MinClinicMainDiagnosis()
         };
         client.CloseCase(Global.GUID, caseStat);
     }
     if (Global.errors == "")
     {
         Assert.Pass();
     }
     else
     {
         Assert.Fail(Global.errors);
     }
 }
Exemple #9
0
        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);
            }
        }
Exemple #10
0
        public void CreateAmbCaseWithTfomsInfoFull()
        {
            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.tfomsInfo
                };

                client.CreateCase(Global.GUID, caseAmb);
            }
            if (Global.errors == "")
            {
                Assert.Pass();
            }
            else
            {
                Assert.Fail(Global.errors);
            }
        }
Exemple #11
0
        public void AddStepToCaseAmbCaseWithAppointedMedicationMin()
        {
            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()).MinAppointedMedication()
                };

                client.AddStepToCase(Global.GUID, Data.idlpu, caseAmb.IdPatientMis, caseAmb.IdCaseMis, stepAmb);
            }
            if (Global.errors == "")
            {
                Assert.Pass();
            }
            else
            {
                Assert.Fail(Global.errors);
            }
        }
Exemple #12
0
        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 UpdateFullStatCase_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 caseStatUpdate = (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.MinLaboratoryReport(),
                        set.MinConsultNote()
                };
                StepStat stepStat = (new SetData()).MinStepStatSet();
                stepStat.MedRecords = new MedRecord[]
                {
                    set.MinService(),
                        set.MinAppointedMedication(),
                        set.MinDiagnosis(),
                        MedRecordData.clinicMainDiagnosis,
                        MedRecordData.referral,
                        set.MinLaboratoryReport(),
                };
                caseStat.Steps = new StepStat[]
                {
                    stepStat
                };

                EmkClient.UpdateCase("D500E893-166B-4724-9C78-D0DBE1F1C48D", caseStatUpdate);
            }
            if (Global.errors == "")
            {
                Assert.Pass();
            }
            else
            {
                Assert.Fail(Global.errors);
            }
        }
Exemple #14
0
        public void UpdateFullStatCase_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 caseStatUpdate = (new SetData()).FullCaseStatSet();
                SetData  set            = new SetData();
                caseStat.MedRecords = new List <MedRecord>
                {
                    set.MinService(),
                        set.MinTfomsInfo(),
                        MedRecordData.deathInfo,
                        set.MinDiagnosis(),
                        MedRecordData.anatomopathologicalClinicMainDiagnosis,
                        set.MinRefferal(),
                        set.MinSickList(),
                        set.MinDischargeSummary(),
                        set.MinLaboratoryReport(),
                        set.MinConsultNote(),
                        MedRecordData.form027U
                };
                StepStat stepStat = (new SetData()).MinStepStatSet();
                stepStat.MedRecords = new List <MedRecord>
                {
                    set.MinService(),
                        set.MinAppointedMedication(),
                        set.MinDiagnosis(),
                        set.MinRefferal(),
                        set.MinLaboratoryReport(),
                };
                caseStat.Steps = new List <StepStat>
                {
                    stepStat
                };

                EmkClient.UpdateCase(Global.GUID, caseStatUpdate);
            }
            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);
        }
Exemple #16
0
        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);
        }
Exemple #17
0
 public void _CreateStatCase()
 {
     using (TestPixServiceClient PixClient = new TestPixServiceClient())
     {
         PatientDto patient = (new SetData()).PatientSet();
         PixClient.AddPatient(Global.GUID, "1.2.643.5.1.13.3.25.78.118", patient);
     }
     using (TestEmkServiceClient EmkClient = new TestEmkServiceClient())
     {
         CaseStat caseStat = (new SetData()).FullCaseStatSetForCreate();
         caseStat.Guardian = null;
         caseStat.OpenDate = new DateTime(2014, 06, 01);
         SetData  set      = new SetData();
         StepStat stepStat = (new SetData()).MinStepStatSet();
         caseStat.Steps = new List <StepStat>
         {
             stepStat
         };
         caseStat.Steps[0].DateStart = new DateTime(2014, 06, 01);
         caseStat.Steps[0].DateEnd   = new DateTime(2014, 06, 04);
         EmkClient.CreateCase(Global.GUID, caseStat);
         StepStat s = CaseStatData.otherStep;
         s.MedRecords = new List <MedRecord>
         {
             MedRecordData.appointedMedication,
             MedRecordData.service
         };
         s.DateStart = new DateTime(2014, 06, 05);
         s.DateEnd   = new DateTime(2014, 06, 10);
         EmkClient.AddStepToCase(Global.GUID, caseStat.IdLpu, caseStat.IdPatientMis, caseStat.IdCaseMis, s);
         caseStat            = (new SetData()).FullCaseStatSetForClose();
         caseStat.Guardian   = null;
         caseStat.CloseDate  = new DateTime(2014, 06, 10);
         caseStat.MedRecords = new List <MedRecord>
         {
             MedRecordData.clinicMainDiagnosis,
             GetEpic()
         };
         EmkClient.CloseCase(Global.GUID, caseStat);
     }
     if (Global.errors == "")
     {
         Assert.Pass();
     }
     else
     {
         Assert.Fail(Global.errors);
     }
 }
Exemple #18
0
        public void CancelFullAmbCase()
        {
            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);
                EmkClient.CancelCase(Global.GUID, Data.idlpu, caseAmb.IdPatientMis, caseAmb.IdCaseMis);
            }

            if (Global.errors == "")
            {
                Assert.Pass();
            }
            else
            {
                Assert.Fail(Global.errors);
            }
        }
Exemple #19
0
 public void CreateMinAmbCase()
 {
     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);
     }
     if (Global.errors == "")
         Assert.Pass();
     else
         Assert.Fail(Global.errors);
 }
Exemple #20
0
 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);
 }
Exemple #21
0
        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);
        }
Exemple #22
0
 public void CreateFullStatCase()
 {
     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()).FullCaseStatSetForCreate();
         SetData set = new SetData();
         caseStat.MedRecords = new List<MedRecord>
         {
             set.MinService(),
             set.MinTfomsInfo(),
             set.MinDiagnosis(),
             MedRecordData.clinicMainDiagnosis,
             MedRecordData.referral,   
             MedRecordData.sickList,
             set.MinLaboratoryReport()
         };
         StepStat stepStat = (new SetData()).MinStepStatSet();
         stepStat.MedRecords = new List<MedRecord>
         {
             set.MinService(),
             set.MinAppointedMedication(),
             set.MinDiagnosis(),
             MedRecordData.clinicMainDiagnosis,
             MedRecordData.referral,
             set.MinLaboratoryReport(),
         };
         caseStat.Steps = new List<StepStat>
         {
             stepStat
         };
         EmkClient.CreateCase(Global.GUID, caseStat);
     }
     if (Global.errors == "")
         Assert.Pass();
     else
         Assert.Fail(Global.errors);
 }
Exemple #23
0
        public void CreateStatCaseWithAppointedMedicationMin()
        {
            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();
                caseStat.MedRecords = new List <MedRecord>
                {
                    (new SetData()).MinClinicMainDiagnosis(),
                    MedRecordData.appointedMedication,
                };
                caseStat.MedRecords = new List <MedRecord>
                {
                    (new SetData()).MinClinicMainDiagnosis(),
                    (new SetData()).MinAppointedMedication()
                };
                StepStat stepStat = (new SetData()).MinStepStatSet();
                stepStat.MedRecords = new List <MedRecord>
                {
                    (new SetData()).MinAppointedMedication()
                };

                caseStat.Steps = new List <StepStat>
                {
                    stepStat
                };
                client.CreateCase(Global.GUID, caseStat);
            }
            if (Global.errors == "")
            {
                Assert.Pass();
            }
            else
            {
                Assert.Fail(Global.errors);
            }
        }
Exemple #24
0
 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);
     }
 }
Exemple #25
0
        public void AddStatStep_OtherIdMin()
        {
            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()).MinOtherStepStatSet();
                EmkClient.AddStepToCase(Global.GUID, Data.idlpu, caseStat.IdPatientMis, caseStat.IdCaseMis, stepStat);
            }
            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);
        }
Exemple #27
0
 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);
 }
Exemple #28
0
        public void CreateStatCaseWithServiceFull()
        {
            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();
                caseStat.MedRecords = new List<MedRecord>
                 {
                     MedRecordData.service
                 };
                StepStat stepStat = (new SetData()).MinStepStatSet();
                stepStat.MedRecords = new List<MedRecord>
                {
                    MedRecordData.service,
                    (new SetData()).MinService()

                };
                caseStat.Steps = new List<StepStat>
                {
                    stepStat
                };
                client.CreateCase(Global.GUID, caseStat);
            }
            if (Global.errors == "")
                Assert.Pass();
            else
                Assert.Fail(Global.errors);
        }
Exemple #29
0
        public void CreateAmbCaseWithLaboratoryReportFull()
        {
            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.LaboratoryReport
                 };
                StepAmb stepAmb = (new SetData()).MinStepAmbSet();
                stepAmb.MedRecords = new List<MedRecord>
                {
                    MedRecordData.LaboratoryReport,
                    (new SetData()).MinLaboratoryReport()

                };
                caseAmb.Steps = new List<StepAmb>
                {
                    stepAmb
                };
                client.CreateCase(Global.GUID, caseAmb);
            }
            if (Global.errors == "")
                Assert.Pass();
            else
                Assert.Fail(Global.errors);
        }
        public void CreateStatCaseWithAppointedMedicationMin()
        {
            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();
                caseStat.MedRecords = new List<MedRecord>
                {
                    (new SetData()).MinClinicMainDiagnosis(),
                    MedRecordData.appointedMedication,
                };
                caseStat.MedRecords = new List<MedRecord>
                {
                    (new SetData()).MinClinicMainDiagnosis(),
                    (new SetData()).MinAppointedMedication()
                };
                StepStat stepStat = (new SetData()).MinStepStatSet();
                stepStat.MedRecords = new List<MedRecord>
                {
                    (new SetData()).MinAppointedMedication()
                };

                caseStat.Steps = new List<StepStat>
                {
                    stepStat
                };
                client.CreateCase(Global.GUID, caseStat);
            }
            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);
        }
Exemple #32
0
 public void CloseStatCaseWithTfomsInfoFull()
 {
     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>
         {
             MedRecordData.tfomsInfo,
             (new SetData()).MinClinicMainDiagnosis()
         };
         client.CloseCase(Global.GUID, caseStat);
     }
     if (Global.errors == "")
         Assert.Pass();
     else
         Assert.Fail(Global.errors);
 }
Exemple #33
0
        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);
        }
Exemple #34
0
 public void CreateStatCaseWithLaboratoryReportMin()
 {
     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();
         caseStat.MedRecords = new List<MedRecord>
          {
              (new SetData()).MinLaboratoryReport()
          };
         client.CreateCase(Global.GUID, caseStat);
     }
     if (Global.errors == "")
         Assert.Pass();
     else
         Assert.Fail(Global.errors);
 }
Exemple #35
0
 public void CloseAmbCaseWithMaxConsultNote()
 {
     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);
         caseAmb = (new SetData()).MinCaseAmbSetForClose();
         caseAmb.MedRecords = new List<MedRecord>
         {
             MedRecordData.consultNote,
             (new SetData()).MinClinicMainDiagnosis()
         };
         client.CloseCase(Global.GUID, caseAmb);
     }
     if (Global.errors == "")
         Assert.Pass();
     else
         Assert.Fail(Global.errors);
 }
Exemple #36
0
 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);
 }
Exemple #37
0
 public void CreateDispCaseWithMinDispanseryOne()
 {
     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()).MinCaseDispSetForCreate();
         caseDisp.MedRecords = new List<MedRecord>
         {
             (new SetData()).MinDispensaryOne(),
             (new SetData()).MinClinicMainDiagnosis()
         };
         client.CreateCase(Global.GUID, caseDisp);
     }
     if (Global.errors == "")
         Assert.Pass();
     else
         Assert.Fail(Global.errors);
 }
Exemple #38
0
        public void UpdateMinAmbCase_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 = (new SetData()).MinCaseAmbSet();
                EmkClient.UpdateCase(Global.GUID, caseAmb);
            }
            if (Global.errors == "")
                Assert.Pass();
            else
                Assert.Fail(Global.errors);
        }
Exemple #39
0
 public void _CreateStatCase()
 {
     using (TestPixServiceClient PixClient = new TestPixServiceClient())
     {
         PatientDto patient = (new SetData()).PatientSet();
         PixClient.AddPatient(Global.GUID, "1.2.643.5.1.13.3.25.78.118", patient);
     }
     using (TestEmkServiceClient EmkClient = new TestEmkServiceClient())
     {
         CaseStat caseStat = (new SetData()).FullCaseStatSetForCreate();
         caseStat.Guardian = null;
         caseStat.OpenDate = new DateTime(2014, 06, 01);
         SetData set = new SetData();
         StepStat stepStat = (new SetData()).MinStepStatSet();
         caseStat.Steps = new List<StepStat>
         {
             stepStat
         };
         caseStat.Steps[0].DateStart = new DateTime(2014, 06, 01);
         caseStat.Steps[0].DateEnd = new DateTime(2014, 06, 04);
         EmkClient.CreateCase(Global.GUID, caseStat);
         StepStat s = CaseStatData.otherStep;
         s.MedRecords = new List<MedRecord>
         {
             MedRecordData.appointedMedication,
             MedRecordData.service
         };
         s.DateStart = new DateTime(2014, 06, 05);
         s.DateEnd = new DateTime(2014, 06, 10);
         EmkClient.AddStepToCase(Global.GUID, caseStat.IdLpu, caseStat.IdPatientMis, caseStat.IdCaseMis, s);
         caseStat = (new SetData()).FullCaseStatSetForClose();
         caseStat.Guardian = null;
         caseStat.CloseDate = new DateTime(2014, 06, 10);
         caseStat.MedRecords = new List<MedRecord>
         {
             MedRecordData.clinicMainDiagnosis,
             GetEpic()
         };
         EmkClient.CloseCase(Global.GUID, caseStat);
     }
     if (Global.errors == "")
         Assert.Pass();
     else
         Assert.Fail(Global.errors);
 }