Produced by Araxis Merge on 6/9/2017 3:49:56 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 | Fri Jun 9 19:49:56 2017 UTC | ||
| 2 | eHealth_Exch (eHealth Exchange Enhancements) Build 3 docs & code_May_2017.zip\VAP_CIF_CODE0502.zip\VAP_CIF_CODE0502\VAP_CIF_CODE0502\nvap-common\src\main\java\gov\va\nvap\common\aggregator\map | MapAggregator.java | Fri Apr 21 20:03:26 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 0 | 0 |
| Changed | 0 | 0 |
| Inserted | 1 | 36 |
| 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 | package go v.va.nvap. common.agg regator.ma p; | |||||
| 2 | ||||||
| 3 | import gov .va.nvap.c ommon.aggr egator.Agg regator; | |||||
| 4 | import gov .va.nvap.c ommon.aggr egator.Agg regatorExc eption; | |||||
| 5 | import gov .va.nvap.c ommon.vali dation.Nul lChecker; | |||||
| 6 | import jav a.util.Dat e; | |||||
| 7 | ||||||
| 8 | import jav a.util.Has hMap; | |||||
| 9 | import jav a.util.Map ; | |||||
| 10 | ||||||
| 11 | public cla ss MapAggr egator imp lements | |||||
| 12 | Aggr egator<Map <String, O bject>, Ma p<String, ?>> { | |||||
| 13 | ||||||
| 14 | @O verride | |||||
| 15 | pu blic Map<S tring, Obj ect> aggre gate(final Map<Strin g, ?>... l ist) | |||||
| 16 | throws Aggregato rException { | |||||
| 17 | if ( NullChecke r.isEmpty( list)) { | |||||
| 18 | return null; | |||||
| 19 | } | |||||
| 20 | ||||||
| 21 | fina l Map<Stri ng, Object > newMap = new HashM ap<String, Object>() ; | |||||
| 22 | // W ill overwr ite elemen ts that ar e in list based on t he order r eceived | |||||
| 23 | Str ing dod = null;//dat e of death | |||||
| 24 | for (final Map <String, ? > map : li st) { | |||||
| 25 | newMap .putAll(ma p); | |||||
| 26 | if(map .containsK ey("dateof Death")){/ /if any fa cility has a date of death the n the pati ent is dea d | |||||
| 27 | do d = (Strin g) map.get ("dateofDe ath"); | |||||
| 28 | } | |||||
| 29 | } | |||||
| 30 | if(d od != null ){ | |||||
| 31 | newMap.put ("dateofDe ath", dod) ; | |||||
| 32 | } | |||||
| 33 | retu rn newMap; | |||||
| 34 | ||||||
| 35 | } | |||||
| 36 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.