Produced by Araxis Merge on 7/10/2017 1:01:43 PM Central 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 | C:\AraxisMergeCompare\Pri_un\IV-ehmp_cif\HydraWebApp\main\generated\java\gov\va\med\imaging\hydra | HydraRouterTest.java | Thu Jun 29 17:22:08 2017 UTC |
| 2 | C:\AraxisMergeCompare\Pri_re\IV-ehmp_cif\HydraWebApp\main\generated\java\gov\va\med\imaging\hydra | HydraRouterTest.java | Thu Jul 6 15:02:03 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 340 |
| 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 | * 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: Oct 1, 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 g ov.va.med. imaging.hy dra; | |
| 25 | ||
| 26 | import ja va.util.Da te; | |
| 27 | import or g.apache.l og4j.*; | |
| 28 | import go v.va.med.i maging.*; | |
| 29 | import go v.va.med.i maging.cor e.interfac es.excepti ons.*; | |
| 30 | import go v.va.med.i maging.cor e.interfac es.router. Command; | |
| 31 | import go v.va.med.i maging.cor e.interfac es.router. CommandFac tory; | |
| 32 | import go v.va.med.i maging.cor e.CommandF actoryImpl ; | |
| 33 | import go v.va.med.i maging.cor e.interfac es.router. Asynchrono usCommandR esultListe ner; | |
| 34 | import go v.va.med.e xceptions. Validation Exception; | |
| 35 | import ja vax.annota tion.Gener ated; | |
| 36 | import go v.va.med.i maging.cor e.interfac es.router. CommandCon text; | |
| 37 | ||
| 38 | import go v.va.med.i maging.exc hange.busi ness.*; | |
| 39 | import go v.va.med.i maging.exc hange.busi ness.dicom .*; | |
| 40 | import go v.va.med.i maging.exc hange.busi ness.vista rad.*; | |
| 41 | import go v.va.med.i maging.art ifactsourc e.*; | |
| 42 | ||
| 43 | /* | |
| 44 | * This is generated code and is recreat ed on ever y build. | |
| 45 | * Do not make chang es directl y in this code, as t hey will b e lost (wi thout warn ing). | |
| 46 | * Changes may be ma de to the template t hat genera ted this c ode (Facad eRouterImp l.ftl in | |
| 47 | * the Cor eRouterAnn otationPro cessor pro ject), suc h changes will be re flected in | |
| 48 | * all fac ade router implement ations. | |
| 49 | * | |
| 50 | * This co de was gen erated usi ng FreeMar ker, an op en-source template p rocessing engine. | |
| 51 | * See htt p://www.fr eemarker.o rg for doc umentation on the te mplate syn tax. | |
| 52 | */ | |
| 53 | @Generate d(value="g ov.va.med. imaging.co re.codegen erator.Fac adeRouterC odeGenerat or") | |
| 54 | public cl ass HydraR outerTest | |
| 55 | //extends gov.va.me d.imaging. core.inter faces.rout er.Abstrac tFacadeRou terImpl | |
| 56 | { | |
| 57 | ||
| 58 | pr ivate Logg er logger = Logger.g etLogger(t his.getCla ss()); | |
| 59 | ||
| 60 | pr ivate Logg er getLogg er() | |
| 61 | { | |
| 62 | retu rn logger; | |
| 63 | } | |
| 64 | ||
| 65 | pr ivate Comm andFactory commandFa ctory = ne w CommandF actoryImpl ((CommandC ontext)nul l); | |
| 66 | pr ivate Comm andFactory getComman dFactory() | |
| 67 | { | |
| 68 | retu rn command Factory; | |
| 69 | } | |
| 70 | ||
| 71 | /* * | |
| 72 | * The constr uctor is p ublic so t his tester can be cr eated to t est | |
| 73 | */ | |
| 74 | pu blic Hydra RouterTest () | |
| 75 | { | |
| 76 | supe r(); | |
| 77 | } | |
| 78 | ||
| 79 | /* | |
| 80 | * Generated method, mo dification s will be overwritte n when pro ject is bu ilt | |
| 81 | * | |
| 82 | * The templa te for thi s method m ay be foun d in Facad eRouterSyn chronousMe thodImpl.f tl | |
| 83 | */ | |
| 84 | @S uppressWar nings("unc hecked") | |
| 85 | pu blic void getStudyWi thImages( | |
| 86 | gov.va .med.Routi ngToken ro utingToken | |
| 87 | , gov.va.m ed.Patient Identifier patientId entifier | |
| 88 | , gov.va.m ed.imaging .exchange. business.S tudyFilter filter | |
| 89 | , boolean includeRad iology | |
| 90 | , boolean includeDoc uments | |
| 91 | ) | |
| 92 | thro ws Validat ionExcepti on | |
| 93 | { | |
| 94 | getLog ger().info ("Searchin g for comm and 'GetSt udyWithIma gesArtifac tResultsBy SiteNumber Command' a nd paramet ers 'gov.v a.med.Rout ingToken, gov.va.med .PatientId entifier, gov.va.med .imaging.e xchange.bu siness.Stu dyFilter, boolean, b oolean'.") ; | |
| 95 | boolean result = g etCommandF actory().i sCommandSu pported( | |
| 96 | gov.va.me d.imaging. exchange.b usiness.Ar tifactResu lts.class, | |
| 97 | "GetStudyW ithImagesA rtifactRes ultsBySite NumberComm and", | |
| 98 | "", | |
| 99 | new Class< ?>[]{ | |
| 100 | g ov.va.med. RoutingTok en.class, gov.va.med .PatientId entifier.c lass, gov. va.med.ima ging.excha nge.busine ss.StudyFi lter.class , boolean. class, boo lean.class | |
| 101 | }, | |
| 102 | new Object []{ | |
| 103 | ro utingToken ,patientId entifier,f ilter,incl udeRadiolo gy,include Documents | |
| 104 | } | |
| 105 | ); | |
| 106 | if(!resu lt) | |
| 107 | throw new Validation Exception( "Cannot cr eate comma nd 'GetStu dyWithImag esArtifact ResultsByS iteNumberC ommand' in method 'g etStudyWit hImages' w ith parame ters 'gov. va.med.Rou tingToken, gov.va.me d.PatientI dentifier, gov.va.me d.imaging. exchange.b usiness.St udyFilter, boolean, boolean'." ); | |
| 108 | } | |
| 109 | ||
| 110 | /* | |
| 111 | * Generated method, mo dification s will be overwritte n when pro ject is bu ilt | |
| 112 | * | |
| 113 | * The templa te for thi s method m ay be foun d in Facad eRouterSyn chronousCo llectionMe thodImpl.f tl | |
| 114 | */ | |
| 115 | @S uppressWar nings("unc hecked") | |
| 116 | pu blic void getPatient List( | |
| 117 | java.l ang.String patientNa me | |
| 118 | , gov.va.m ed.Routing Token rout ingToken | |
| 119 | ) | |
| 120 | thro ws Validat ionExcepti on | |
| 121 | { | |
| 122 | getLog ger().info ("Searchin g for comm and 'GetPa tientListC ommand' an d paramete rs 'java.l ang.String , gov.va.m ed.Routing Token'."); | |
| 123 | boolea n result = getComman dFactory() .isCollect ionCommand Supported( | |
| 124 | java.ut il.List.cl ass, | |
| 125 | gov.va. med.imagin g.exchange .business. Patient.cl ass, | |
| 126 | "GetPati entListCom mand", | |
| 127 | "", | |
| 128 | new Clas s<?>[]{ | |
| 129 | java.lang. String.cla ss, gov.va .med.Routi ngToken.cl ass | |
| 130 | }, | |
| 131 | new Obje ct[]{ | |
| 132 | patientNam e,routingT oken | |
| 133 | } | |
| 134 | ); | |
| 135 | ||
| 136 | if(!re sult) | |
| 137 | throw ne w Validati onExceptio n("Cannot create com mand 'GetP atientList Command' i n method ' getPatient List' with parameter s 'java.la ng.String, gov.va.me d.RoutingT oken'."); | |
| 138 | } | |
| 139 | ||
| 140 | /* | |
| 141 | * Generated method, mo dification s will be overwritte n when pro ject is bu ilt | |
| 142 | * | |
| 143 | * The templa te for thi s method m ay be foun d in Facad eRouterSyn chronousMe thodImpl.f tl | |
| 144 | */ | |
| 145 | @S uppressWar nings("unc hecked") | |
| 146 | pu blic void getStudyOn lyArtifact ResultsFro mSite( | |
| 147 | gov.va .med.Routi ngToken ro utingToken | |
| 148 | , gov.va.m ed.Patient Identifier patientId entifier | |
| 149 | , gov.va.m ed.imaging .exchange. business.S tudyFilter filter | |
| 150 | , boolean includeRad iology | |
| 151 | , boolean includeDoc uments | |
| 152 | ) | |
| 153 | thro ws Validat ionExcepti on | |
| 154 | { | |
| 155 | getLog ger().info ("Searchin g for comm and 'GetSt udyOnlyArt ifactResul tsBySiteNu mberComman d' and par ameters 'g ov.va.med. RoutingTok en, gov.va .med.Patie ntIdentifi er, gov.va .med.imagi ng.exchang e.business .StudyFilt er, boolea n, boolean '."); | |
| 156 | boolean result = g etCommandF actory().i sCommandSu pported( | |
| 157 | gov.va.me d.imaging. exchange.b usiness.Ar tifactResu lts.class, | |
| 158 | "GetStudyO nlyArtifac tResultsBy SiteNumber Command", | |
| 159 | "", | |
| 160 | new Class< ?>[]{ | |
| 161 | g ov.va.med. RoutingTok en.class, gov.va.med .PatientId entifier.c lass, gov. va.med.ima ging.excha nge.busine ss.StudyFi lter.class , boolean. class, boo lean.class | |
| 162 | }, | |
| 163 | new Object []{ | |
| 164 | ro utingToken ,patientId entifier,f ilter,incl udeRadiolo gy,include Documents | |
| 165 | } | |
| 166 | ); | |
| 167 | if(!resu lt) | |
| 168 | throw new Validation Exception( "Cannot cr eate comma nd 'GetStu dyOnlyArti factResult sBySiteNum berCommand ' in metho d 'getStud yOnlyArtif actResults FromSite' with param eters 'gov .va.med.Ro utingToken , gov.va.m ed.Patient Identifier , gov.va.m ed.imaging .exchange. business.S tudyFilter , boolean, boolean'. "); | |
| 169 | } | |
| 170 | ||
| 171 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.