Produced by Araxis Merge on 6/9/2017 3:50:05 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:50:05 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-ext-svc-facades\src\main\java\gov\va\nvap\esr\adapter\impl | ESRAdapterImpl.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 | 67 |
| 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. esr.adapte r.impl; | |||||
| 2 | ||||||
| 3 | import org .springfra mework.bea ns.factory .annotatio n.Required ; | |||||
| 4 | ||||||
| 5 | import gov .va.med.es r.webservi ces.jaxws. schemas.Ge tEESummary Request; | |||||
| 6 | import gov .va.med.es r.webservi ces.jaxws. schemas.Ge tEESummary Response; | |||||
| 7 | import gov .va.nvap.e sr.adapter .data.ESRA ttributes; | |||||
| 8 | import gov .va.nvap.e sr.adapter .intf.ESRA dapter; | |||||
| 9 | import gov .va.nvap.s ervice.esr .Enrollmen tService; | |||||
| 10 | ||||||
| 11 | public cla ss ESRAdap terImpl im plements E SRAdapter { | |||||
| 12 | ||||||
| 13 | En rollmentSe rvice enro llmentServ iceProxy; | |||||
| 14 | ||||||
| 15 | @O verride | |||||
| 16 | pu blic ESRAt tributes g etESRAttri butes(Stri ng patient ICN) { | |||||
| 17 | Stri ng patient PreferredF acility = ""; | |||||
| 18 | // b uild Reque st | |||||
| 19 | fina l GetEESum maryReques t request = this.bui ldRequest( patientICN ); | |||||
| 20 | // i nvoke serv ice | |||||
| 21 | fina l GetEESum maryRespon se respons e = this.i nvokeWS(re quest); | |||||
| 22 | // G et patient 's preferr ed facilit y | |||||
| 23 | pati entPreferr edFacility = this.ex tractPrefe rredFacili ty(respons e); | |||||
| 24 | // P opulate ES R Attribut es | |||||
| 25 | ESRA ttributes esrAttribu tes = new ESRAttribu tes(); | |||||
| 26 | esrA ttributes. setPatient PreferredF acilitySta tionNumber (patientPr eferredFac ility); | |||||
| 27 | ||||||
| 28 | retu rn esrAttr ibutes; | |||||
| 29 | } | |||||
| 30 | ||||||
| 31 | pr ivate GetE ESummaryRe quest buil dRequest(f inal Strin g patientI CN) { | |||||
| 32 | fina l GetEESum maryReques t request = new GetE ESummaryRe quest(); | |||||
| 33 | requ est.setKey (patientIC N); | |||||
| 34 | requ est.setKey Type("VPID "); | |||||
| 35 | requ est.setReq uestName(" preferredF acility"); | |||||
| 36 | retu rn request ; | |||||
| 37 | } | |||||
| 38 | ||||||
| 39 | pr ivate Stri ng extract PreferredF acility(fi nal GetEES ummaryResp onse respo nse) { | |||||
| 40 | Stri ng patient PreferredF acility = ""; | |||||
| 41 | ||||||
| 42 | if ( (response != null) & & (respons e.getSumma ry() != nu ll) | |||||
| 43 | && (resp onse.getSu mmary().ge tDemograph ics() != n ull)) { | |||||
| 44 | final String fac ilityStrin g = respon se.getSumm ary() | |||||
| 45 | .getDemogr aphics().g etPreferre dFacility( ); | |||||
| 46 | if (fa cilityStri ng == null ) { | |||||
| 47 | return p atientPref erredFacil ity; | |||||
| 48 | } | |||||
| 49 | final String[] f acilityTok ens = faci lityString .split("-" ); | |||||
| 50 | if ((f acilityTok ens != nul l) && (fac ilityToken s.length = = 2)) { | |||||
| 51 | patientP referredFa cility = f acilityTok ens[0].tri m(); | |||||
| 52 | } | |||||
| 53 | } | |||||
| 54 | retu rn patient PreferredF acility; | |||||
| 55 | } | |||||
| 56 | ||||||
| 57 | pr ivate GetE ESummaryRe sponse inv okeWS(fina l GetEESum maryReques t request) { | |||||
| 58 | fina l GetEESum maryRespon se respons e = this.e nrollmentS erviceProx y | |||||
| 59 | .getEESu mmaryReque st(request ); | |||||
| 60 | retu rn respons e; | |||||
| 61 | } | |||||
| 62 | ||||||
| 63 | @R equired | |||||
| 64 | pu blic void setEnrollm entService Proxy(fina l Enrollme ntService enrollment ServicePro xy) { | |||||
| 65 | this .enrollmen tServicePr oxy = enro llmentServ iceProxy; | |||||
| 66 | } | |||||
| 67 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.