當前位置: 首頁>>代碼示例>>C#>>正文


C# TestEmkServiceClient.UpdateCase方法代碼示例

本文整理匯總了C#中PixServiseTests.TestEmkServiceClient.UpdateCase方法的典型用法代碼示例。如果您正苦於以下問題:C# TestEmkServiceClient.UpdateCase方法的具體用法?C# TestEmkServiceClient.UpdateCase怎麽用?C# TestEmkServiceClient.UpdateCase使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在PixServiseTests.TestEmkServiceClient的用法示例。


在下文中一共展示了TestEmkServiceClient.UpdateCase方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: UpdateFullAmbCase_AfterAdd

        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);
        }
開發者ID:nbIxMaN,項目名稱:EMKT,代碼行數:48,代碼來源:UpdateCaseTest.cs

示例2: UpdateFullAmbCase_AfterAdd

        public void UpdateFullAmbCase_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 caseAmbAdd = (new SetData()).MinCaseAmbSet();
                EmkClient.AddCase("D500E893-166B-4724-9C78-D0DBE1F1C48D", caseAmbAdd);
                CaseAmb caseAmb = (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", caseAmb);
            }

            if (Global.errors == "")
                Assert.Pass();
            else
                Assert.Fail(Global.errors);
        }
開發者ID:nbIxMaN,項目名稱:EMKT,代碼行數:48,代碼來源:UpdateCaseTest-DESKTOP-JO693UV.cs

示例3: UpdateStatCaseWithAppointedMedicationMin

        public void UpdateStatCaseWithAppointedMedicationMin()
        {
            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);
                StepStat stepStat = (new SetData()).MinStepStatSet();
                stepStat.MedRecords = new List<MedRecord>
                {
                    (new SetData()).MinAppointedMedication()
                };

                caseStat.Steps = new List<StepStat>
                {
                    stepStat
                };
                client.UpdateCase(Global.GUID, caseStat);
            }
            if (Global.errors == "")
                Assert.Pass();
            else
                Assert.Fail(Global.errors);
        }
開發者ID:nbIxMaN,項目名稱:EMKT,代碼行數:28,代碼來源:AppointedMedicationTest.cs

示例4: UpdateAmbCaseWithAppointedMedicationMin

        public void UpdateAmbCaseWithAppointedMedicationMin()
        {
            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()).MinClinicMainDiagnosis(),
                    (new SetData()).MinAppointedMedication()
                };
                StepAmb stepAmb = (new SetData()).MinStepAmbSet();
                stepAmb.MedRecords = new List<MedRecord>
                {
                    (new SetData()).MinAppointedMedication()
                };

                caseAmb.Steps = new List<StepAmb>
                {
                    stepAmb
                };
                client.UpdateCase(Global.GUID, caseAmb);
            }
            if (Global.errors == "")
                Assert.Pass();
            else
                Assert.Fail(Global.errors);
        }
開發者ID:nbIxMaN,項目名稱:EMKT,代碼行數:33,代碼來源:AppointedMedicationTest.cs

示例5: UpdateStatCaseWithLaboratoryReportMin

 public void UpdateStatCaseWithLaboratoryReportMin()
 {
     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>
         {
             (new SetData()).MinLaboratoryReport(),
             (new SetData()).MinClinicMainDiagnosis()
         };
         client.UpdateCase(Global.GUID, caseStat);
     }
     if (Global.errors == "")
         Assert.Pass();
     else
         Assert.Fail(Global.errors);
 }
開發者ID:nbIxMaN,項目名稱:EMKT,代碼行數:23,代碼來源:LaboratoryReportTest.cs

示例6: 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

示例7: 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

示例8: _HashTest

 public void _HashTest()
 {
     using (TestPixServiceClient c = new TestPixServiceClient())
     {
         PatientDto p = (new SetData()).PatientSet();
         c.AddPatient(Global.GUID, Data.idlpu, 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);
         var x = GetConsult();
         x.Attachment.Hash = new byte[] { 1, 2, 3, 4, 5 };
         p.MedRecords = new List<MedRecord>
         {
             MedRecordData.clinicMainDiagnosis,
             //GetEpic(),
             //GetConsult()
             x
         };
         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()
             x
         };
         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.Fail("Кейс с левым хешом был добавлен");
     else
         Assert.Pass();
 }
開發者ID:nbIxMaN,項目名稱:EMKT,代碼行數:60,代碼來源:AddCaseTest.cs

示例9: UpdateMinAmbCase_AfterAdd

        public void UpdateMinAmbCase_AfterAdd()
        {
            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);

                caseAmb.Comment = "23123123123123123123";
                EmkClient.UpdateCase(Global.GUID, caseAmb);
            }
            if (Global.errors == "")
                Assert.Pass();
            else
                Assert.Fail(Global.errors);
        }
開發者ID:nbIxMaN,項目名稱:EMKT,代碼行數:20,代碼來源:UpdateCaseTest.cs

示例10: UpdateFullStatCase_AfterAdd

 public void UpdateFullStatCase_AfterAdd()
 {
     using (TestPixServiceClient PixClient = new TestPixServiceClient())
     {
         PatientDto patient = (new SetData()).PatientSet();
         PixClient.AddPatient(Global.GUID, Data.idlpu, patient);
     }
     using (TestEmkServiceClient EmkClient = new TestEmkServiceClient())
     {
         CaseStat caseStatAdd = (new SetData()).MinCaseStatSet();
         EmkClient.AddCase(Global.GUID, caseStatAdd);
         CaseStat caseStat = (new SetData()).FullCaseStatSet();
         SetData set = new SetData();
         caseStat.MedRecords = new List<MedRecord>
         {
             set.MinService(),
             set.MinTfomsInfo(),
             MedRecordData.deathInfo,
             set.MinDiagnosis(),
             MedRecordData.clinicMainDiagnosis,
             MedRecordData.referral,
             MedRecordData.sickList,
             set.MinDischargeSummary(),
             set.MinLaboratoryReport(),
             set.MinConsultNote(),
             MedRecordData.form027U
         };
         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.UpdateCase(Global.GUID, caseStat);
     }
     if (Global.errors == "")
         Assert.Pass();
     else
         Assert.Fail(Global.errors);
 }
開發者ID:nbIxMaN,項目名稱:EMKT,代碼行數:48,代碼來源:UpdateCaseTest.cs

示例11: _UpdateAmbCase

 public void _UpdateAmbCase()
 {
     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.MedRecords = new List<MedRecord>
         {
             MedRecordData.clinicMainDiagnosis
         };
         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);
 }
開發者ID:nbIxMaN,項目名稱:EMKT,代碼行數:42,代碼來源:UnitTest1.cs

示例12: UpdateAmbCaseWithTfomsInfoFull

        public void UpdateAmbCaseWithTfomsInfoFull()
        {
            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>
                {
                    MedRecordData.tfomsInfo,
                    (new SetData()).MinClinicMainDiagnosis()
                };

                client.UpdateCase(Global.GUID, caseAmb);
            }
            if (Global.errors == "")
                Assert.Pass();
            else
                Assert.Fail(Global.errors);
        }
開發者ID:nbIxMaN,項目名稱:EMKT,代碼行數:24,代碼來源:TfomsInfoTest.cs

示例13: UpdateDispCaseWithOutMinDispanseryOne

 public void UpdateDispCaseWithOutMinDispanseryOne()
 {
     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()).MinClinicMainDiagnosis()
         };
         client.AddCase(Global.GUID, caseDisp);
         caseDisp.MedRecords = new List<MedRecord>
         {
             (new SetData()).MinDispensaryOne(),
             (new SetData()).MinClinicMainDiagnosis()
         };
         client.UpdateCase(Global.GUID, caseDisp);
     }
     if (Global.errors == "")
         Assert.Pass();
     else
         Assert.Fail(Global.errors);
 }
開發者ID:nbIxMaN,項目名稱:EMKT,代碼行數:27,代碼來源:DispensaryOneTests.cs

示例14: UpdateMinAmbCase_AfterAdd

 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);
 }
開發者ID:nbIxMaN,項目名稱:EMKT,代碼行數:19,代碼來源:UpdateCaseTest-DESKTOP-JO693UV.cs

示例15: UpdateMinStatCase_AfterAdd

 public void UpdateMinStatCase_AfterAdd()
 {
     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 = (new SetData()).MinCaseStatSet();
         caseStat.DoctorInCharge = new MedicalStaff
         {
             IdLpu = Data.idlpu,
             IdSpeciality = 31,
             IdPosition = 76,
             Person = new PersonWithIdentity
             {
                 IdPersonMis = "unknown1",
                 Sex = 2,
                 Birthdate = new DateTime(1976, 03, 09),
                 Documents = new List<IdentityDocument>
             {
                 DocumentData.SNILS,
             },
                 HumanName = new HumanName
                 {
                     FamilyName = "unknown1",
                     GivenName = "unknown1",
                     MiddleName = "unknown1",
                 },
             }
         };
         caseStat.DoctorInCharge.Person.Documents[0].DocN = "11111111549";
         EmkClient.UpdateCase(Global.GUID, caseStat);
     }
     if (Global.errors == "")
         Assert.Pass();
     else
         Assert.Fail(Global.errors);
 }
開發者ID:nbIxMaN,項目名稱:EMKT,代碼行數:42,代碼來源:UpdateCaseTest.cs


注:本文中的PixServiseTests.TestEmkServiceClient.UpdateCase方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。