Produced by Araxis Merge on 12/5/2017 12:06:34 PM 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 | IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\BaseWebFacade\main\src\java\gov\va\med\imaging\exchange\business\taglib\patient | PatientListTag.java | Mon Dec 4 21:35:30 2017 UTC |
| 2 | IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\BaseWebFacade\main\src\java\gov\va\med\imaging\exchange\business\taglib\patient | PatientListTag.java | Mon Dec 4 21:57:17 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 3 | 262 |
| Changed | 2 | 4 |
| 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 | * Package : MAG - Vi stA Imagin g | |
| 3 | * WARNING : Per VHA Directive 2004-038, this routi ne should not be mod ified. | |
| 4 | * Date Cr eated: Jan 30, 2008 | |
| 5 | * Site Na me: Washi ngton OI F ield Offic e, Silver Spring, MD | |
| 6 | * @author
|
|
| 7 | * @versio n 1.0 | |
| 8 | * | |
| 9 | * ------- ---------- ---------- ---------- ---------- ---------- ------- | |
| 10 | * Propert y of the U S Governme nt. | |
| 11 | * No perm ission to copy or re distribute this soft ware is gi ven. | |
| 12 | * Use of unreleased versions of this so ftware req uires the user | |
| 13 | * to exec ute a writ ten test a greement w ith the Vi stA Imagin g | |
| 14 | * Develop ment Offic e of the D epartment of Veteran s Affairs, | |
| 15 | * telepho ne (301) 7 34-0100. | |
| 16 | * | |
| 17 | * The Foo d and Drug Administr ation clas sifies thi s software as | |
| 18 | * a Class II medica l device. As such, it may not be change d | |
| 19 | * in any way. Modi fications to this so ftware may result in an | |
| 20 | * adulter ated medic al device under 21CF R820, the use of whi ch | |
| 21 | * is cons idered to be a viola tion of US Federal S tatutes. | |
| 22 | * ------- ---------- ---------- ---------- ---------- ---------- ------- | |
| 23 | */ | |
| 24 | package go v.va.med.i maging.exc hange.busi ness.tagli b.patient; | |
| 25 | ||
| 26 | import gov .va.med.Ro utingToken Impl; | |
| 27 | import gov .va.med.ex ceptions.R outingToke nFormatExc eption; | |
| 28 | import gov .va.med.im aging.Base WebFacadeR outer; | |
| 29 | import gov .va.med.im aging.Tran sactionCon textHelper ; | |
| 30 | import gov .va.med.im aging.core .FacadeRou terUtility ; | |
| 31 | import gov .va.med.im aging.core .interface s.exceptio ns.Connect ionExcepti on; | |
| 32 | import gov .va.med.im aging.core .interface s.exceptio ns.MethodE xception; | |
| 33 | import gov .va.med.im aging.exch ange.busin ess.Patien t; | |
| 34 | ||
| 35 | import jav a.util.Lis t; | |
| 36 | ||
| 37 | import jav ax.servlet .jsp.JspEx ception; | |
| 38 | import jav ax.servlet .jsp.tagex t.TryCatch Finally; | |
| 39 | ||
| 40 | import org .apache.lo gging.log4 j.Logger; | |
| 41 | import org .apache.lo gging.log4 j.LogManag er; | |
| 42 | ||
| 43 | /** | |
| 44 | * NOTE: t his class uses code from the S pring Fram ework to g et the | |
| 45 | * context . Because we must d erive from AbstractS tudyListTa g and | |
| 46 | * therefo re cannot derive fro m spring's RequestCo ntextAware Tag | |
| 47 | * we do t he stuff t hat Reques tContextAw areTag doe s for us i n the | |
| 48 | * doStart Tag() meth od. | |
| 49 | * | |
| 50 | * @author
|
|
| 51 | * | |
| 52 | */ | |
| 53 | public cla ss Patient ListTag | |
| 54 | extends Ab stractPati entListTag | |
| 55 | implements TryCatchF inally | |
| 56 | { | |
| 57 | pr ivate stat ic final l ong serial VersionUID = 1L; | |
| 58 | ||
| 59 | pr ivate Logg er logger = LogManag er.getLogg er(this.ge tClass()); | |
| 60 | ||
| 61 | pr ivate Stri ng siteNum ber; | |
| 62 | pr ivate Stri ng patient Name; | |
| 63 | ||
| 64 | // ========= ========== ========== ========== ========== ========== ========== ========= | |
| 65 | // Propertie s that may be set fr om the JSP | |
| 66 | // ========= ========== ========== ========== ========== ========== ========== ========= | |
| 67 | ||
| 68 | /* * | |
| 69 | * @re turn the s iteNumber | |
| 70 | */ | |
| 71 | public String ge tSiteNumbe r() | |
| 72 | { | |
| 73 | re turn siteN umber; | |
| 74 | } | |
| 75 | public void setS iteNumber( String sit eNumber) | |
| 76 | { | |
| 77 | th is.siteNum ber = site Number; | |
| 78 | } | |
| 79 | ||
| 80 | /* * | |
| 81 | * @re turn the p atientId | |
| 82 | */ | |
| 83 | public String ge tPatientNa me() | |
| 84 | { | |
| 85 | re turn patie ntName; | |
| 86 | } | |
| 87 | public void setP atientName (String pa tientName) | |
| 88 | { | |
| 89 | th is.patient Name = pat ientName; | |
| 90 | } | |
| 91 | ||
| 92 | @O verride | |
| 93 | protec ted List<P atient> ge tPatientLi st() | |
| 94 | throws JspExcept ion | |
| 95 | { | |
| 96 | tr y | |
| 97 | { | |
| 98 | if(g etPatientN ame() == n ull || get PatientNam e().length () < 1) | |
| 99 | return null; | |
| 100 | ||
| 101 | if(g etSiteNumb er() == nu ll || getS iteNumber( ).length() < 1) | |
| 102 | return null; | |
| 103 | ||
| 104 | Base WebFacadeR outer rout er; | |
| 105 | try | |
| 106 | { | |
| 107 | router = FacadeR outerUtili ty.getFaca deRouter(B aseWebFaca deRouter.c lass); | |
| 108 | } | |
| 109 | catc h (Excepti on x) | |
| 110 | { | |
| 111 | logger .error("Ex ception ge tting the facade rou ter implem entation." , x); | |
| 112 | throw new JspExc eption(x); | |
| 113 | } | |
| 114 | Tran sactionCon textHelper .setTransa ctionConte xtFields(" findPatien ts", ""); | |
| 115 | retu rn router. getPatient List( getP atientName (), Routin gTokenImpl .createVAR adiologySi te(getSite Number()) ); | |
| 116 | } | |
| 117 | ca tch(Method Exception mX) | |
| 118 | { | |
| 119 | logg er.error(m X); | |
| 120 | thro w new JspE xception(m X); | |
| 121 | } | |
| 122 | ca tch(Connec tionExcept ion mX) | |
| 123 | { | |
| 124 | logg er.error(m X); | |
| 125 | thro w new JspE xception(m X); | |
| 126 | } | |
| 127 | catc h (Routing TokenForma tException rtfX) | |
| 128 | { | |
| 129 | logg er.error(r tfX); | |
| 130 | thro w new JspE xception(r tfX); | |
| 131 | } | |
| 132 | } | |
| 133 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.