Produced by Araxis Merge on 8/1/2019 1:42:45 PM Eastern Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
# | Location | File | Last Modified |
---|---|---|---|
1 | JLV_2_8_0_0_0_July_2019.zip\JLV_2_8_0_0_0_July_2019\jMeadows\src\test\integration\java\gov\va\med\jmeadows\dao\patient | LabsDaoTest.java | Mon Jul 8 19:18:48 2019 UTC |
2 | JLV_2_8_0_0_0_July_2019.zip\JLV_2_8_0_0_0_July_2019\jMeadows\src\test\integration\java\gov\va\med\jmeadows\dao\patient | LabsDaoTest.java | Wed Jul 31 18:41:37 2019 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 2 | 214 |
Changed | 1 | 2 |
Inserted | 0 | 0 |
Removed | 0 | 0 |
Whitespace | |
---|---|
Character case | Differences in character case are significant |
Line endings | Differences in line endings (CR and LF characters) are ignored |
CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
1 | /** | |
2 | * Janus 4 .0 (c) | |
3 | * Copyrig ht (c) 201 1 Hawaii R esource Gr oup LLC. A ll Rights Reserved. | |
4 | * Develop ed for the Pacific T elehealth & Technolo gy Hui and the Pacif ic Joint I nformation Technolog y Center | |
5 | * Contrib utors: | |
6 | * Hon orable Sen ator Danie l K. Inouy e | |
7 | * VA Pacific Is lands Heal th Care Sy stem | |
8 | * Tri pler Army Medical Ce nter | |
9 | */ | |
10 | ||
11 | ||
12 | package go v.va.med.j meadows.da o.patient; | |
13 | ||
14 | import gov .va.med.jm eadows.com mon.JMeado wsExceptio n; | |
15 | import gov .va.med.jm eadows.dao .beans.JMe adowsQuery ; | |
16 | import gov .va.med.jm eadows.dao .beans.JMe dResultCol lection; | |
17 | import gov .va.med.vd s.webservi ce.LabOrde r; | |
18 | import gov .va.med.vd s.webservi ce.LabResu lt; | |
19 | import org .junit.Tes t; | |
20 | ||
21 | import jav a.util.Cal endar; | |
22 | import jav a.util.Lis t; | |
23 | ||
24 | import sta tic org.ju nit.Assert .assertTru e; | |
25 | import sta tic org.ju nit.Assert .fail; | |
26 | ||
27 | /** | |
28 | * | |
29 | * @author DNS | |
30 | */ | |
31 | public cla ss LabsDao Test exten ds DaoBase Test | |
32 | { | |
33 | privat e LabsDao labsDao; | |
34 | ||
35 | public LabsDaoTe st() throw s JMeadows Exception | |
36 | { | |
37 | la bsDao = ne w LabsDao( ); | |
38 | } | |
39 | ||
40 | @Test | |
41 | public void test GetPatient LabsResult s() | |
42 | { | |
43 | tr y { | |
44 | startDat e = Calen dar.getIns tance(); | |
45 | startDat e.set(2012 , 0, 1); | |
46 | endDate = Calendar .getInstan ce(); | |
47 | endDate. set(2018, Calendar.A PRIL, 30); | |
48 | JMeadows Query qb = setupQuer y(user, pa tient, sta rtDate, en dDate); | |
49 | JMedResu ltCollecti on resultC ollection = labsDao .getPatien tLabResult s(qb); | |
50 | List<Lab Result> la bs = resul tCollectio n.getLabRe sults(); | |
51 | assertTr ue(labs.si ze() > 0); | |
52 | testForB eanMeta(la bs); | |
53 | } catch (JMe adowsExcep tion ex) { | |
54 | fail(ex. getMessage ()); | |
55 | } | |
56 | } | |
57 | ||
58 | @Test | |
59 | public void test GetPatient Labs() | |
60 | { | |
61 | tr y { | |
62 | JMeadows Query qb = setupQuer y(user, pa tient, sta rtDate, en dDate); | |
63 | JMedResu ltCollecti on resultC ollection = labsDao. getPatient Labs(qb); | |
64 | List<Lab Order> lab s = result Collection .getLabOrd ers(); | |
65 | assertTr ue(labs.si ze() > 0); | |
66 | testForB eanMeta(la bs); | |
67 | } catch (JMe adowsExcep tion ex) { | |
68 | fail(ex. getMessage ()); | |
69 | } | |
70 | } | |
71 | ||
72 | // @Tes t | |
73 | // publ ic void te stGetPatie ntLabTestR esultsFrom CHCS() | |
74 | // { | |
75 | // try | |
76 | // { | |
77 | // startD ate.set(20 11, 3, 1); | |
78 | // endDat e.set(2011 , 3, 30); | |
79 | // | |
80 | // JMeado wsQuery qb = setupQu ery(user, patient, s tartDate, endDate); | |
81 | // patien t.setPatie ntId("8181 63"); // C HCS Patien t Id | |
82 | // user.s etHostSite Id("A0101" ); // CHCS Site Setu p | |
83 | // //user .setLoginS iteName("C HCS"); | |
84 | // qb.set ItemId("1" ); // C HCS Lab Te st Id | |
85 | // qb.set RecordSite Code("A010 1"); // C HCS Site C ode | |
86 | // | |
87 | // LabRes ult[] lrb = labsDao. getPatient LabTestRes ults(qb); | |
88 | // assert True(lrb.l ength > 0) ; | |
89 | // logger .debug("-- LAB TEST RESULTS FR OM CHCS -- "); | |
90 | // logger .debug("Te stId / Tes tName / Re sult / Uni ts / Refer ence Range "); | |
91 | // for(La bResult lr : lrb) | |
92 | // { | |
93 | // lo gger.debug (lr.getTes tId() + " " + lr.g etTestName () | |
94 | // + " " + lr.g etResult() + " " + lr.getUni ts() | |
95 | // + " " + lr.g etReferenc eRange()); | |
96 | // if (ERROR_MSG _CONNECTIO N_UNAVAILA BLE.equals IgnoreCase (lr.getTes tName())) | |
97 | // { | |
98 | // Assert.f ail("Data retreival failed..." ); | |
99 | // } | |
100 | // } | |
101 | // } | |
102 | // catch(JMea dowsExcept ion e) | |
103 | // { | |
104 | // fail(e .getMessag e()); | |
105 | // } | |
106 | // } | |
107 | ||
108 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.