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


C# TestPixServiceClient.AddPatient方法代码示例

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


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

示例1: AddDicpCase

 public void AddDicpCase()
 {
     using (TestPixServiceClient c = new TestPixServiceClient())
     {
         PatientDto patient = (new SetData()).PatientSet();
         c.AddPatient(Global.GUID, "1.2.643.5.1.13.3.25.78.118", patient);
     }
     using (TestEmkServiceClient client = new TestEmkServiceClient())
     {
         CaseAmb caseDisp = (new SetData()).FullCaseDispSet();
         caseDisp.Guardian = null;
         caseDisp.OpenDate = new DateTime(2014, 06, 01);
         caseDisp.CloseDate = new DateTime(2014, 06, 10);
         caseDisp.MedRecords = new List<MedRecord>
         {
             GetDispanseryOne(),
             MedRecordData.clinicMainDiagnosis
         };
         client.AddCase(Global.GUID, caseDisp);
     }
     if (Global.errors == "")
         Assert.Pass();
     else
         Assert.Fail(Global.errors);
 }
开发者ID:nbIxMaN,项目名称:EMKT,代码行数:25,代码来源:UnitTest1.cs

示例2: AddAmbCaseWithAppointedMedicationMin

        public void AddAmbCaseWithAppointedMedicationMin()
        {
            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();
                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.AddCase(Global.GUID, caseAmb);
            }
            if (Global.errors == "")
                Assert.Pass();
            else
                Assert.Fail(Global.errors);
        }
开发者ID:nbIxMaN,项目名称:EMKT,代码行数:32,代码来源:AppointedMedicationTest.cs

示例3: TestDishargeSummary

 public void TestDishargeSummary()
 {
     using (TestPixServiceClient c = new TestPixServiceClient())
     {
         PatientDto patient = (new SetData()).PatientSet();
         c.AddPatient(Global.GUID, Data.idlpu, patient);
     }
     CaseAmb caseAmb = (new SetData()).MinCaseAmbSet();
     caseAmb.MedRecords = new List<MedRecord>
     {
             MedRecordData.dischargeSummary,
             (new SetData()).MinClinicMainDiagnosis()
     };
     using (TestEmkServiceClient client = new TestEmkServiceClient())
     {
         client.AddCase(Global.GUID, caseAmb);
     }
     using (TestMqProxyClient client = new TestMqProxyClient())
     {
         client.GetResultDocument(Global.GUID, Data.idlpu, caseAmb.IdCaseMis, 1);
     }
     if (Global.errors == "")
         Assert.Pass();
     else
         Assert.Fail(Global.errors);
 }
开发者ID:nbIxMaN,项目名称:EMKT,代码行数:26,代码来源:mqProxyTest.cs

示例4: TestForConsultNote

 public void TestForConsultNote()
 {
     using (TestPixServiceClient c = new TestPixServiceClient())
     {
         PatientDto patient = (new SetData()).PatientSet();
         patient.IdPatientMIS = "TestForMq";
         c.AddPatient(Global.GUID, Data.idlpu, patient);
     }
     CaseAmb caseAmb = (new SetData()).MinCaseAmbSet();
     caseAmb.MedRecords = new List<MedRecord>
     {
             MedRecordData.consultNote,
             (new SetData()).MinClinicMainDiagnosis()
     };
     caseAmb.IdCaseMis = "TestForMq";
     caseAmb.IdPatientMis = "TestForMq";
     using (TestEmkServiceClient client = new TestEmkServiceClient())
     {
         client.AddCase(Global.GUID, caseAmb);
     }
     using (TestMqProxyClient client = new TestMqProxyClient())
     {
         client.GetResultDocument(Global.GUID, Data.idlpu, caseAmb.IdCaseMis, 3);
     }
     if (Global.errors == "")
         Assert.Pass();
     else
         Assert.Fail(Global.errors);
 }
开发者ID:nbIxMaN,项目名称:EMKT,代码行数:29,代码来源:mqProxyTest.cs

示例5: AddEmptyPatient

 public void AddEmptyPatient()
 {
     TestPixServiceClient client = new TestPixServiceClient();
     PatientDto patient = new PatientDto();
     client.AddPatient(Global.GUID, "1.2.643.5.1.13.3.25.78.118", patient);
     if (Global.errors == "")
         Assert.Pass();
     else
         Assert.Fail(Global.errors);
 }
开发者ID:nbIxMaN,项目名称:EMKT,代码行数:10,代码来源:UnitTest1.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: 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

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

示例9: AddFullStatCase

 public void AddFullStatCase()
 {
     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()).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.MinLaboratoryReportSet(),
             set.MinConsultNote()
         };
         StepStat stepStat = (new SetData()).MinStepStatSet();
         stepStat.MedRecords = new MedRecord[]
         {
             set.MinService(),
             set.MinAppointedMedication(),
             set.MinDiagnosis(),
             MedRecordData.clinicMainDiagnosis,
             MedRecordData.referral,
             set.MinLaboratoryReportSet(),
         };
         caseStat.Steps = new StepStat[]
         {
             stepStat
         };
         EmkClient.AddCase("D500E893-166B-4724-9C78-D0DBE1F1C48D", caseStat);
     }
     if (Global.errors == "")
         Assert.Pass();
     else
         Assert.Fail(Global.errors);
 }
开发者ID:nbIxMaN,项目名称:EMKT,代码行数:46,代码来源:CreateCaseTests.cs

示例10: AddAmbMedRecDiagnosis_OpenCase

 public void AddAmbMedRecDiagnosis_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.diagnosis, caseAmb.IdCaseMis);
     }
     if (Global.errors == "")
         Assert.Pass();
     else
         Assert.Fail(Global.errors);
 }
开发者ID:nbIxMaN,项目名称:EMKT,代码行数:18,代码来源:PatientTests.cs

示例11: AddAmbMedAppointedMedication_CloseCase

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

示例12: AddMaxConsultNote

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

示例13: AddMaxDispanseryOne

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

示例14: CreateFullAmbCase

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

示例15: AddMedRecord_ToCase_AmbCaseWithTfomsInfoFull

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


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