Exemplo n.º 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);
 }
Exemplo n.º 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);
            }
        }
Exemplo n.º 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);
 }
Exemplo n.º 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);
            }
        }