Example #1
0
 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);
 }
Example #2
0
        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);
            }
        }
Example #3
0
 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);
 }
Example #4
0
        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);
            }
        }