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 | HydraRouterImpl.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 | HydraRouterImpl.java | Thu Jul 6 15:02:02 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 368 |
| 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. Asynchrono usCommandR esultListe ner; | |
| 32 | import ja vax.annota tion.Gener ated; | |
| 33 | import go v.va.med.i maging.exc hange.busi ness.*; | |
| 34 | import go v.va.med.i maging.exc hange.busi ness.dicom .*; | |
| 35 | import go v.va.med.i maging.exc hange.busi ness.vista rad.*; | |
| 36 | import go v.va.med.i maging.art ifactsourc e.*; | |
| 37 | ||
| 38 | /* | |
| 39 | * This is generated code and is recreat ed on ever y build. | |
| 40 | * Do not make chang es directl y in this code, as t hey will b e lost (wi thout warn ing). | |
| 41 | * Changes may be ma de to the template t hat genera ted this c ode (Facad eRouterImp l.ftl in | |
| 42 | * the Cor eRouterAnn otationPro cessor pro ject), suc h changes will be re flected in | |
| 43 | * all fac ade router implement ations. | |
| 44 | * | |
| 45 | * This co de was gen erated usi ng FreeMar ker, an op en-source template p rocessing engine. | |
| 46 | * See htt p://www.fr eemarker.o rg for doc umentation on the te mplate syn tax. | |
| 47 | */ | |
| 48 | @Generate d(value="g ov.va.med. imaging.co re.codegen erator.Fac adeRouterC odeGenerat or") | |
| 49 | public cl ass HydraR outerImpl | |
| 50 | extends g ov.va.med. imaging.co re.interfa ces.router .AbstractF acadeRoute rImpl | |
| 51 | implement s HydraRou ter | |
| 52 | { | |
| 53 | pr ivate stat ic HydraRo uterImpl s ingleton; | |
| 54 | ||
| 55 | /* | |
| 56 | * The getSin gleton() m ethod is t he only wa y to get a reference to the ro uter facad e. | |
| 57 | */ | |
| 58 | pu blic stati c synchron ized Hydra Router get Singleton( ) | |
| 59 | { | |
| 60 | if(s ingleton = = null) | |
| 61 | single ton = new HydraRoute rImpl(); | |
| 62 | ||
| 63 | retu rn singlet on; | |
| 64 | } | |
| 65 | ||
| 66 | pr ivate Logg er logger = Logger.g etLogger(t his.getCla ss()); | |
| 67 | ||
| 68 | pr ivate Logg er getLogg er() | |
| 69 | { | |
| 70 | retu rn logger; | |
| 71 | } | |
| 72 | ||
| 73 | /* * | |
| 74 | * The constr uctor is p rotected b ecause the class may be derive d from. | |
| 75 | */ | |
| 76 | pr otected Hy draRouterI mpl() | |
| 77 | { | |
| 78 | supe r(); | |
| 79 | } | |
| 80 | ||
| 81 | /* | |
| 82 | * Generated method, mo dification s will be overwritte n when pro ject is bu ilt | |
| 83 | * | |
| 84 | * The templa te for thi s method m ay be foun d in Facad eRouterSyn chronousMe thodImpl.f tl | |
| 85 | */ | |
| 86 | @S uppressWar nings("unc hecked") | |
| 87 | pu blic gov.v a.med.imag ing.exchan ge.busines s.Artifact Results ge tStudyWith Images( | |
| 88 | gov.va .med.Routi ngToken ro utingToken | |
| 89 | , gov.va.m ed.Patient Identifier patientId entifier | |
| 90 | , gov.va.m ed.imaging .exchange. business.S tudyFilter filter | |
| 91 | , boolean includeRad iology | |
| 92 | , boolean includeDoc uments | |
| 93 | ) | |
| 94 | thro ws MethodE xception, Connection Exception | |
| 95 | { | |
| 96 | Command< gov.va.med .imaging.e xchange.bu siness.Art ifactResul ts> comman d = (Comma nd<gov.va. med.imagin g.exchange .business. ArtifactRe sults>)get CommandFac tory().cre ateCommand ( | |
| 97 | gov.va.me d.imaging. exchange.b usiness.Ar tifactResu lts.class, | |
| 98 | "GetStudyW ithImagesA rtifactRes ultsBySite NumberComm and", | |
| 99 | "", | |
| 100 | new Class< ?>[]{ | |
| 101 | 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 | |
| 102 | }, | |
| 103 | new Object []{ | |
| 104 | ro utingToken ,patientId entifier,f ilter,incl udeRadiolo gy,include Documents | |
| 105 | } | |
| 106 | ); | |
| 107 | gov.va.m ed.imaging .transacti oncontext. Transactio nContext t ransaction Context = | |
| 108 | gov.va .med.imagi ng.transac tioncontex t.Transact ionContext Factory.ge t(); | |
| 109 | //transa ctionConte xt.setComm andClassNa me("GetStu dyWithImag esArtifact ResultsByS iteNumberC ommand"); | |
| 110 | ||
| 111 | ||
| 112 | go v.va.med.i maging.exc hange.busi ness.Artif actResults commandRe sult = get Router().d oSynchrono usly(comma nd); | |
| 113 | return c ommandResu lt; | |
| 114 | } | |
| 115 | ||
| 116 | /* | |
| 117 | * Generated method, mo dification s will be overwritte n when pro ject is bu ilt | |
| 118 | * | |
| 119 | * The templa te for thi s method m ay be foun d in Facad eRouterSyn chronousCo llectionMe thodImpl.f tl | |
| 120 | */ | |
| 121 | @S uppressWar nings("unc hecked") | |
| 122 | pu blic java. util.List< gov.va.med .imaging.e xchange.bu siness.Pat ient> getP atientList ( | |
| 123 | java.l ang.String patientNa me | |
| 124 | , gov.va.m ed.Routing Token rout ingToken | |
| 125 | ) | |
| 126 | thro ws MethodE xception, Connection Exception | |
| 127 | { | |
| 128 | Comman d<java.uti l.List> co mmand = ge tCommandFa ctory().cr eateCollec tionComman d( | |
| 129 | java.ut il.List.cl ass, | |
| 130 | gov.va. med.imagin g.exchange .business. Patient.cl ass, | |
| 131 | "GetPati entListCom mand", | |
| 132 | "", | |
| 133 | new Clas s<?>[]{ | |
| 134 | java.lang. String.cla ss, gov.va .med.Routi ngToken.cl ass | |
| 135 | }, | |
| 136 | new Obje ct[]{ | |
| 137 | patientNam e,routingT oken | |
| 138 | } | |
| 139 | ); | |
| 140 | ||
| 141 | gov.va .med.imagi ng.transac tioncontex t.Transact ionContext transacti onContext = | |
| 142 | gov. va.med.ima ging.trans actioncont ext.Transa ctionConte xtFactory. get(); | |
| 143 | //tran sactionCon text.setCo mmandClass Name("GetP atientList Command"); | |
| 144 | ||
| 145 | ||
| 146 | java.u til.List<g ov.va.med. imaging.ex change.bus iness.Pati ent> comma ndResult = getRouter ().doSynch ronously(c ommand); | |
| 147 | return commandRe sult; | |
| 148 | } | |
| 149 | ||
| 150 | /* | |
| 151 | * Generated method, mo dification s will be overwritte n when pro ject is bu ilt | |
| 152 | * | |
| 153 | * The templa te for thi s method m ay be foun d in Facad eRouterSyn chronousMe thodImpl.f tl | |
| 154 | */ | |
| 155 | @S uppressWar nings("unc hecked") | |
| 156 | pu blic gov.v a.med.imag ing.exchan ge.busines s.Artifact Results ge tStudyOnly ArtifactRe sultsFromS ite( | |
| 157 | gov.va .med.Routi ngToken ro utingToken | |
| 158 | , gov.va.m ed.Patient Identifier patientId entifier | |
| 159 | , gov.va.m ed.imaging .exchange. business.S tudyFilter filter | |
| 160 | , boolean includeRad iology | |
| 161 | , boolean includeDoc uments | |
| 162 | ) | |
| 163 | thro ws MethodE xception, Connection Exception | |
| 164 | { | |
| 165 | Command< gov.va.med .imaging.e xchange.bu siness.Art ifactResul ts> comman d = (Comma nd<gov.va. med.imagin g.exchange .business. ArtifactRe sults>)get CommandFac tory().cre ateCommand ( | |
| 166 | gov.va.me d.imaging. exchange.b usiness.Ar tifactResu lts.class, | |
| 167 | "GetStudyO nlyArtifac tResultsBy SiteNumber Command", | |
| 168 | "", | |
| 169 | new Class< ?>[]{ | |
| 170 | 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 | |
| 171 | }, | |
| 172 | new Object []{ | |
| 173 | ro utingToken ,patientId entifier,f ilter,incl udeRadiolo gy,include Documents | |
| 174 | } | |
| 175 | ); | |
| 176 | gov.va.m ed.imaging .transacti oncontext. Transactio nContext t ransaction Context = | |
| 177 | gov.va .med.imagi ng.transac tioncontex t.Transact ionContext Factory.ge t(); | |
| 178 | //transa ctionConte xt.setComm andClassNa me("GetStu dyOnlyArti factResult sBySiteNum berCommand "); | |
| 179 | ||
| 180 | ||
| 181 | go v.va.med.i maging.exc hange.busi ness.Artif actResults commandRe sult = get Router().d oSynchrono usly(comma nd); | |
| 182 | return c ommandResu lt; | |
| 183 | } | |
| 184 | ||
| 185 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.