Produced by Araxis Merge on 8/1/2019 1:42:43 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\main\java\gov\va\med\jmeadows\dao\provider | ProviderNotesDao.java | Mon Jul 8 19:18:50 2019 UTC |
2 | JLV_2_8_0_0_0_July_2019.zip\JLV_2_8_0_0_0_July_2019\jMeadows\src\main\java\gov\va\med\jmeadows\dao\provider | ProviderNotesDao.java | Wed Jul 31 18:41:36 2019 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 2 | 164 |
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.com mon.JMeado wsExceptio n; | |
15 | import gov .va.med.jm eadows.dao .beans.JMe adowsQuery ; | |
16 | import gov .va.med.jm eadows.dao .patient.D aoBase; | |
17 | import gov .va.med.jm eadows.dao .util.*; | |
18 | import gov .va.med.jm eadows.sma rtbeans.pa tient.Smar tProgressN ote; | |
19 | import gov .va.med.vd s.webservi ce.Progres sNote; | |
20 | import gov .va.med.vh ahon.commo n.Utils; | |
21 | ||
22 | import jav a.util.Arr ayList; | |
23 | import jav a.util.Arr ays; | |
24 | import jav a.util.Lis t; | |
25 | ||
26 | /** | |
27 | * | |
28 | * @author DNS | |
29 | */ | |
30 | public cla ss Provide rNotesDao extends Da oBase { | |
31 | ||
32 | /** | |
33 | * Ret urns the g iven provi ders unsig ned notes from a Vis tA system ONLY. | |
34 | * @pa ram queryB ean requir es user, o ptional da te range. If either the | |
35 | * beg inning or ending dat e range ar e null, th e range T- 2 thru T i s used. | |
36 | * @re turn a lis t of unsig ned progre ss notes | |
37 | * @th rows JMead owsExcepti on when th e data can not be fet ched | |
38 | * @th rows Illeg alArgument Exception if require d paramete rs are mis sing or in valid | |
39 | */ | |
40 | public List<Prog ressNote> getProvide rUnsignedN otes(JMead owsQuery q ueryBean) throws JMe adowsExcep tion { | |
41 | va lidateQuer yBean(quer yBean, Que ryBeanPara ms.USER); | |
42 | ||
43 | au ditQuery(" ProviderUn signedNote s", queryB ean); | |
44 | ||
45 | if (queryBea n.getStart Date() == null || qu eryBean.ge tEndDate() == null) { | |
46 | queryBea n.setStart Date(Utils .getCalend ar(Utils.p ushDateToS tartOfDay( Utils.getD ate(Utils. getRelativ eDate(0, - 2, 0))))); //(years, months,day s) | |
47 | queryBea n.setEndDa te(Utils.g etCalendar (Utils.pus hDateToEnd OfDay(new java.util. Date()))); | |
48 | } | |
49 | ||
50 | Li st<MultiLo cationQuer yConfig> c onfigs = | |
51 | new ArrayList< MultiLocat ionQueryCo nfig>(); | |
52 | ||
53 | Li st<UserLoc ation> loc ations; | |
54 | ||
55 | lo cations = LocationHe lper.getUs erLocation s(queryBea n.getUser( )); | |
56 | ||
57 | fo r (UserLoc ation loca tion : loc ations) { | |
58 | String s ystemType = location .getSystem Type(); | |
59 | String m ethod = "g etProvider UnsignedNo tes"; | |
60 | if (SYST EM_TYPE_VI STA.equals IgnoreCase (systemTyp e)) { | |
61 | conf igs.add( | |
62 | new Provid erMultiLoc QueryCfgBu ilder() | |
63 | .d ataService Handler(sm _vistaHand ler) | |
64 | .d ataService Method(met hod) | |
65 | .d ataService MethodArgs (VistaBean Factory.cr eate(query Bean)) | |
66 | .l ocation(lo cation) | |
67 | .b uild() | |
68 | ); | |
69 | } | |
70 | } | |
71 | ||
72 | Ob ject[] uns ignedNotes Object = M ultiLocati onQuery.ex ecute(conf igs, | |
73 | new SmartProgr essNote(), queryBean ); | |
74 | ||
75 | Li st<Progres sNote> uns ignedNotes = null; | |
76 | ||
77 | if (unsigned NotesObjec t != null) { | |
78 | unsigned Notes = Ar rays.asLis t((Progres sNote []) unsignedNo tesObject) ; | |
79 | } | |
80 | ||
81 | re turn unsig nedNotes; | |
82 | } | |
83 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.