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\provider | ProviderAdmissionDaoTest.java | Mon Jul 8 19:18:54 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\provider | ProviderAdmissionDaoTest.java | Wed Jul 31 18:41:37 2019 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 2 | 174 |
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.provider ; | |
13 | ||
14 | import gov .va.med.jm eadows.dao .patient.D aoBaseTest ; | |
15 | import gov .va.med.jm eadows.com mon.JMeado wsExceptio n; | |
16 | import gov .va.med.jm eadows.dao .beans.JMe adowsQuery ; | |
17 | import gov .va.med.jm eadows.dao .provider. ProviderAd missionsDa o; | |
18 | import gov .va.med.vd s.webservi ce.Patient Admission; | |
19 | import gov .va.med.vd s.webservi ce.User; | |
20 | import org .junit.Tes t; | |
21 | ||
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 Provide rAdmission DaoTest ex tends DaoB aseTest | |
32 | { | |
33 | privat e Provider Admissions Dao admDao ; | |
34 | ||
35 | public ProviderA dmissionDa oTest() th rows JMead owsExcepti on | |
36 | { | |
37 | su per(); | |
38 | ad mDao = new ProviderA dmissionsD ao(); | |
39 | } | |
40 | ||
41 | @Test | |
42 | public void test GetProvide rAdmission s() | |
43 | { | |
44 | tr y | |
45 | { | |
46 | JMeadows Query qb = setupQuer y(user, pa tient, sta rtDate, en dDate); | |
47 | User p = qb.getUse r(); | |
48 | ||
49 | mockProv iderBasedQ uery(p, "3 126", "226 10"); | |
50 | ||
51 | List<Pat ientAdmiss ion> admis sions = ad mDao.getPr oviderAdmi ssions(qb) ; | |
52 | assertTr ue(admissi ons.size() > 0); | |
53 | logger.d ebug("# of User Admi ssions: " + admissio ns.size()) ; | |
54 | for(Pati entAdmissi on admissi on : admis sions) | |
55 | { | |
56 | logg er.debug(" PatientNam e: " + adm ission.get PatientNam e()); | |
57 | logg er.debug(" PatientId: " + admis sion.getPa tientId()) ; | |
58 | logg er.debug(" PatientLoc ation: " + admission .getSite() .getSiteCo de()); | |
59 | } | |
60 | testForP roviderBea nMeta(admi ssions); | |
61 | } | |
62 | ca tch (JMead owsExcepti on ex) | |
63 | { | |
64 | fail(ex. getMessage ()); | |
65 | } | |
66 | } | |
67 | ||
68 | /** | |
69 | * Get s the loca l vista si te's curre nt ward ad missions | |
70 | */ | |
71 | @Test | |
72 | public void test GetWardAdm issions() | |
73 | { | |
74 | tr y | |
75 | { | |
76 | JMeadows Query qb = setupQuer y(user, pa tient, sta rtDate, en dDate); | |
77 | qb.setIt emId("24^2 7"); // S etup the q uery | |
78 | List<Pat ientAdmiss ion> admis sions = ad mDao.getWa rdAdmissio ns(qb); | |
79 | assertTr ue(admissi ons.size() > 0); | |
80 | logger.d ebug("# of Inpatient s: " + adm issions.si ze()); | |
81 | testForB eanMeta(ad missions,f alse); | |
82 | } | |
83 | ca tch (JMead owsExcepti on ex) | |
84 | { | |
85 | fail(ex. getMessage ()); | |
86 | } | |
87 | } | |
88 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.