当前位置: 首页>>代码示例>>C#>>正文


C# TestEmkServiceClient.CloseCase方法代码示例

本文整理汇总了C#中PixServiseTests.TestEmkServiceClient.CloseCase方法的典型用法代码示例。如果您正苦于以下问题:C# TestEmkServiceClient.CloseCase方法的具体用法?C# TestEmkServiceClient.CloseCase怎么用?C# TestEmkServiceClient.CloseCase使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在PixServiseTests.TestEmkServiceClient的用法示例。


在下文中一共展示了TestEmkServiceClient.CloseCase方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: UpdateFullAmbCase_AfterClose

        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);
        }
开发者ID:nbIxMaN,项目名称:EMKT,代码行数:52,代码来源:UpdateCaseTest-DESKTOP-JO693UV.cs

示例2: UpdateFullAmbCase_AfterClose

        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);
        }
开发者ID:nbIxMaN,项目名称:EMKT,代码行数:52,代码来源:UpdateCaseTest.cs

示例3: UpdateMinStatCase_AfterClose

        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);
        }
开发者ID:nbIxMaN,项目名称:EMKT,代码行数:22,代码来源:UpdateCaseTest-DESKTOP-JO693UV.cs

示例4: CloseStatCaseWithLaboratoryReportMin

 public void CloseStatCaseWithLaboratoryReportMin()
 {
     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()).MinLaboratoryReport(),
             (new SetData()).MinClinicMainDiagnosis()
         };
         client.CloseCase(Global.GUID, caseStat);
     }
     if (Global.errors == "")
         Assert.Pass();
     else
         Assert.Fail(Global.errors);
 }
开发者ID:nbIxMaN,项目名称:EMKT,代码行数:24,代码来源:LaboratoryReportTest.cs

示例5: UpdateMinStatCase_AfterClose

        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);
        }
开发者ID:nbIxMaN,项目名称:EMKT,代码行数:23,代码来源:UpdateCaseTest.cs

示例6: _CreateStatCase

 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);
 }
开发者ID:nbIxMaN,项目名称:EMKT,代码行数:45,代码来源:UnitTest1.cs

示例7: CloseAmbCaseWithTfomsInfoFull

 public void CloseAmbCaseWithTfomsInfoFull()
 {
     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.tfomsInfo,
             (new SetData()).MinClinicMainDiagnosis()
         };
         client.CloseCase(Global.GUID, caseAmb);
     }
     if (Global.errors == "")
         Assert.Pass();
     else
         Assert.Fail(Global.errors);
 }
开发者ID:nbIxMaN,项目名称:EMKT,代码行数:24,代码来源:TfomsInfoTest.cs

示例8: CloseDispCaseWithMinDispanseryOne

 public void CloseDispCaseWithMinDispanseryOne()
 {
     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();
         client.CreateCase(Global.GUID, caseDisp);
         caseDisp = (new SetData()).MinCaseDispSetForClose();
         caseDisp.MedRecords = new List<MedRecord>
         {
             (new SetData()).MinDispensaryOne(),
             (new SetData()).MinClinicMainDiagnosis()
         };
         client.CloseCase(Global.GUID, caseDisp);
     }
     if (Global.errors == "")
         Assert.Pass();
     else
         Assert.Fail(Global.errors);
 }
开发者ID:nbIxMaN,项目名称:EMKT,代码行数:24,代码来源:DispensaryOneTests.cs


注:本文中的PixServiseTests.TestEmkServiceClient.CloseCase方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。