Produced by Araxis Merge on 11/14/2017 6:57:21 AM Central Standard 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 | cbs.zip\cbs\cbs\src\main\java\gov\va\cpss\service | VistaAccountService.java | Thu Nov 9 14:19:42 2017 UTC |
| 2 | cbs.zip\cbs\cbs\src\main\java\gov\va\cpss\service | VistaAccountService.java | Tue Nov 14 12:27:17 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 192 |
| 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 | package go v.va.cpss. service; | |
| 2 | ||
| 3 | import org .apache.lo g4j.Logger ; | |
| 4 | import org .springfra mework.ste reotype.Se rvice; | |
| 5 | ||
| 6 | import gov .va.cpss.d ao.CBSAcco untDAO; | |
| 7 | import gov .va.cpss.d ao.Process StatusDAO; | |
| 8 | import gov .va.cpss.d ao.VistaAc countDAO; | |
| 9 | import gov .va.cpss.m odel.Proce ssStatus; | |
| 10 | import gov .va.cpss.m odel.icn.V istaAccoun t; | |
| 11 | ||
| 12 | /** | |
| 13 | * Service class for handling activities relating to consoli dating a p atient | |
| 14 | * stateme nt. | |
| 15 | * | |
| 16 | * @author DN S BROWNL | |
| 17 | */ | |
| 18 | @Service | |
| 19 | public cla ss VistaAc countServi ce { | |
| 20 | ||
| 21 | pr ivate stat ic final L ogger logg er = Logge r.getLogge r(VistaAcc ountServic e.class.ge tCanonical Name()); | |
| 22 | ||
| 23 | pr ivate CBSA ccountDAO cbsAccount DAO; | |
| 24 | ||
| 25 | pr ivate Vist aAccountDA O vistaAcc ountDAO; | |
| 26 | ||
| 27 | pr ivate Proc essStatusD AO process StatusDAO; | |
| 28 | ||
| 29 | pu blic CBSAc countDAO g etCbsAccou ntDAO() { | |
| 30 | retu rn cbsAcco untDAO; | |
| 31 | } | |
| 32 | ||
| 33 | pu blic void setCbsAcco untDAO(CBS AccountDAO cbsAccoun tDAO) { | |
| 34 | this .cbsAccoun tDAO = cbs AccountDAO ; | |
| 35 | } | |
| 36 | ||
| 37 | pu blic Vista AccountDAO getVistaA ccountDAO( ) { | |
| 38 | retu rn vistaAc countDAO; | |
| 39 | } | |
| 40 | ||
| 41 | pu blic void setVistaAc countDAO(V istaAccoun tDAO vista AccountDAO ) { | |
| 42 | this .vistaAcco untDAO = v istaAccoun tDAO; | |
| 43 | } | |
| 44 | ||
| 45 | pu blic Proce ssStatusDA O getProce ssStatusDA O() { | |
| 46 | retu rn process StatusDAO; | |
| 47 | } | |
| 48 | ||
| 49 | pu blic void setProcess StatusDAO( ProcessSta tusDAO pro cessStatus DAO) { | |
| 50 | this .processSt atusDAO = processSta tusDAO; | |
| 51 | } | |
| 52 | ||
| 53 | pu blic Vista Account ge tAccountRe cord(final long dfn, final Str ing statio nNum) { | |
| 54 | retu rn vistaAc countDAO.g etVistaAcc ount(dfn, stationNum ); | |
| 55 | } | |
| 56 | ||
| 57 | /* * | |
| 58 | * Get the a ccount num ber associ ated with this ICN. | |
| 59 | * | |
| 60 | * @param ic n | |
| 61 | * The ICN to associa te with an account n umber. | |
| 62 | * @return T he existin g or new a ccount num ber. | |
| 63 | * / | |
| 64 | pu blic long getAccount NumberForI CN(final S tring icn) { | |
| 65 | ||
| 66 | retu rn cbsAcco untDAO.get ByICN(icn) ; | |
| 67 | } | |
| 68 | ||
| 69 | pu blic Strin g getICNFo rAccountNu mber(final long cbss AcntId) { | |
| 70 | ||
| 71 | retu rn cbsAcco untDAO.sel ectICNById (cbssAcntI d); | |
| 72 | } | |
| 73 | ||
| 74 | /* * | |
| 75 | * Register the accoun t for the specified vista reco rd. | |
| 76 | * | |
| 77 | * @param ps Patient | |
| 78 | * The pati ent to reg ister. | |
| 79 | * @return F lag indica ting if su ccessfully registere d or not. | |
| 80 | * / | |
| 81 | pu blic boole an registe rAccount(f inal Vista Account vi staAccount ) { | |
| 82 | ||
| 83 | bool ean succes sful = fal se; | |
| 84 | ||
| 85 | Inte ger newSta tus = proc essStatusD AO.getStat usFromEnum (ProcessSt atus.Statu s.NEW); | |
| 86 | ||
| 87 | if ( newStatus != null) { | |
| 88 | succes sful = vis taAccountD AO.save(ne wStatus, v istaAccoun t.getDfn() , vistaAcc ount.getSt ationNum() , | |
| 89 | vistaAccou nt.getIcn( ), vistaAc count.getC bssAcntId( )); | |
| 90 | } el se { | |
| 91 | ||
| 92 | logger .error("Un able to ob tain statu s mapping for: " + P rocessStat us.Status. NEW); | |
| 93 | } | |
| 94 | ||
| 95 | retu rn success ful; | |
| 96 | } | |
| 97 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.