本文整理汇总了C#中PixServiseTests.TestEmkServiceClient.AddCase方法的典型用法代码示例。如果您正苦于以下问题:C# TestEmkServiceClient.AddCase方法的具体用法?C# TestEmkServiceClient.AddCase怎么用?C# TestEmkServiceClient.AddCase使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PixServiseTests.TestEmkServiceClient
的用法示例。
在下文中一共展示了TestEmkServiceClient.AddCase方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: 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);
}
示例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);
}
示例3: 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);
}
示例4: 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);
}
示例5: 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);
}
示例6: 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);
}
示例7: AddAmbMedRecClinicDiagnosis_CloseCase
public void AddAmbMedRecClinicDiagnosis_CloseCase()
{
using (TestPixServiceClient PixClient = new TestPixServiceClient())
{
PatientDto patient = (new SetData()).PatientSet();
PixClient.AddPatient(Global.GUID, Data.idlpu, patient);
}
using (TestEmkServiceClient EmkClient = new TestEmkServiceClient())
{
CaseAmb caseAmb = (new SetData()).MinCaseAmbSet();
EmkClient.AddCase(Global.GUID, caseAmb);
EmkClient.AddMedRecord(Global.GUID, Data.idlpu, caseAmb.IdPatientMis, MedRecordData.clinicMainDiagnosis, caseAmb.IdCaseMis);
}
if (Global.errors == "")
Assert.Pass();
else
Assert.Fail(Global.errors);
}
示例8: 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);
}
示例9: 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);
}
示例10: 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);
}
示例11: AddDispCaseWithMinDispanseryOne
public void AddDispCaseWithMinDispanseryOne()
{
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()).MinDispensaryOne(),
(new SetData()).MinClinicMainDiagnosis()
};
client.AddCase(Global.GUID, caseDisp);
}
if (Global.errors == "")
Assert.Pass();
else
Assert.Fail(Global.errors);
}
示例12: AddAmbCaseWithLaboratoryReportMin
public void AddAmbCaseWithLaboratoryReportMin()
{
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()).MinLaboratoryReport(),
(new SetData()).MinClinicMainDiagnosis()
};
client.AddCase(Global.GUID, caseAmb);
}
if (Global.errors == "")
Assert.Pass();
else
Assert.Fail(Global.errors);
}
示例13: UpdateMinStatCase_AfterAdd
public void UpdateMinStatCase_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())
{
CaseStat caseStat = (new SetData()).MinCaseStatSet();
EmkClient.AddCase("D500E893-166B-4724-9C78-D0DBE1F1C48D", caseStat);
EmkClient.UpdateCase("D500E893-166B-4724-9C78-D0DBE1F1C48D", caseStat);
}
if (Global.errors == "")
Assert.Pass();
else
Assert.Fail(Global.errors);
}
示例14: _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();
}
示例15: AddStatCaseWithAppointedMedicationFull
public void AddStatCaseWithAppointedMedicationFull()
{
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();
caseStat.MedRecords = new List<MedRecord>
{
(new SetData()).MinClinicMainDiagnosis(),
MedRecordData.appointedMedication,
};
StepStat stepStat = (new SetData()).MinStepStatSet();
stepStat.MedRecords = new List<MedRecord>
{
MedRecordData.appointedMedication,
};
caseStat.Steps = new List<StepStat>
{
stepStat
};
client.AddCase(Global.GUID, caseStat);
}
if (Global.errors == "")
Assert.Pass();
else
Assert.Fail(Global.errors);
}