Produced by Araxis Merge on 12/5/2017 12:06:50 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\VistaImagingDataSourceProvider\main\src\java\gov\va\med\imaging\vistaimagingdatasource | AbstractVistaImagingVistaRadDataService.java | Mon Dec 4 21:34:52 2017 UTC |
| 2 | IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\VistaImagingDataSourceProvider\main\src\java\gov\va\med\imaging\vistaimagingdatasource | AbstractVistaImagingVistaRadDataService.java | Mon Dec 4 22:06:46 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 3 | 226 |
| 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 | * | |
| 3 | Package: MAG - Vis tA Imaging | |
| 4 | WARNING: Per VHA D irective 2 004-038, t his routin e should n ot be modi fied. | |
| 5 | Date Cre ated: Apr 4, 2011 | |
| 6 | Site Nam e: Washin gton OI Fi eld Office , Silver S pring, MD | |
| 7 | Developer:
|
|
| 8 | Descript ion: | |
| 9 | ||
| 10 | ;; +-------- ---------- ---------- ---------- ---------- ---------- ---------- + | |
| 11 | ;; Property of the US Government . | |
| 12 | ;; No permis sion to co py or redi stribute t his softwa re is give n. | |
| 13 | ;; Use of un released v ersions of this soft ware requi res the us er | |
| 14 | ;; to execu te a writt en test ag reement wi th the Vis tA Imaging | |
| 15 | ;; Developm ent Office of the De partment o f Veterans Affairs, | |
| 16 | ;; telephon e (301) 73 4-0100. | |
| 17 | ;; | |
| 18 | ;; The Food and Drug A dministrat ion classi fies this software a s | |
| 19 | ;; a Class I I medical device. A s such, it may not b e changed | |
| 20 | ;; in any wa y. Modifi cations to this soft ware may r esult in a n | |
| 21 | ;; adulterat ed medical device un der 21CFR8 20, the us e of which | |
| 22 | ;; is consid ered to be a violati on of US F ederal Sta tutes. | |
| 23 | ;; +-------- ---------- ---------- ---------- ---------- ---------- ---------- + | |
| 24 | ||
| 25 | */ | |
| 26 | package go v.va.med.i maging.vis taimagingd atasource; | |
| 27 | ||
| 28 | import jav a.io.IOExc eption; | |
| 29 | ||
| 30 | import org .apache.lo gging.log4 j.LogManag er; | |
| 31 | import org .apache.lo gging.log4 j.Logger; | |
| 32 | ||
| 33 | import gov .va.med.im aging.arti factsource .ResolvedA rtifactSou rce; | |
| 34 | import gov .va.med.im aging.core .interface s.exceptio ns.Connect ionExcepti on; | |
| 35 | import gov .va.med.im aging.core .interface s.exceptio ns.MethodE xception; | |
| 36 | import gov .va.med.im aging.data source.Abs tractVersi onableData Source; | |
| 37 | import gov .va.med.im aging.data source.exc eptions.In validCrede ntialsExce ption; | |
| 38 | import gov .va.med.im aging.exce ptions.URN FormatExce ption; | |
| 39 | import gov .va.med.im aging.exch ange.busin ess.Resolv edSite; | |
| 40 | import gov .va.med.im aging.exch ange.busin ess.Site; | |
| 41 | import gov .va.med.im aging.exch ange.busin ess.vistar ad.ExamIma ges; | |
| 42 | import gov .va.med.im aging.prot ocol.vista .VistaImag ingVistaRa dTranslato r; | |
| 43 | import gov .va.med.im aging.tran sactioncon text.Trans actionCont extFactory ; | |
| 44 | import gov .va.med.im aging.url. vista.Vist aQuery; | |
| 45 | import gov .va.med.im aging.url. vista.exce ptions.Inv alidVistaC redentials Exception; | |
| 46 | import gov .va.med.im aging.url. vista.exce ptions.Vis taMethodEx ception; | |
| 47 | import gov .va.med.im aging.vist adatasourc e.session. VistaSessi on; | |
| 48 | ||
| 49 | /** | |
| 50 | * This is an abstra ct base fo r both met adata and image requ ests for V istARad | |
| 51 | * | |
| 52 | * @author
|
|
| 53 | * | |
| 54 | */ | |
| 55 | public abs tract clas s Abstract VistaImagi ngVistaRad DataServic e | |
| 56 | extends Ab stractVers ionableDat aSource | |
| 57 | { | |
| 58 | pu blic final static St ring SUPPO RTED_PROTO COL = "vis taimaging" ; | |
| 59 | ||
| 60 | pr ivate fina l static b oolean use TgaImages = false; | |
| 61 | pr ivate fina l static L ogger logg er = LogMa nager.getL ogger(Abst ractVistaI magingVist aRadDataSe rvice.clas s); | |
| 62 | ||
| 63 | pu blic Abstr actVistaIm agingVista RadDataSer vice(Resol vedArtifac tSource re solvedArti factSource , String p rotocol) | |
| 64 | { | |
| 65 | supe r(resolved ArtifactSo urce, prot ocol); | |
| 66 | if(! (resolved ArtifactSo urce insta nceof Reso lvedSite) ) | |
| 67 | throw new Unsupp ortedOpera tionExcept ion("The a rtifact so urce must be an inst ance of Re solvedSite and it is a '" + re solvedArti factSource .getClass( ).getSimpl eName() + "'."); | |
| 68 | } | |
| 69 | ||
| 70 | pr otected Lo gger getLo gger() | |
| 71 | { | |
| 72 | retu rn logger; | |
| 73 | } | |
| 74 | ||
| 75 | pr otected Ex amImages g etExamImag esFromExam Id(VistaSe ssion vist aSession, String enc odedExamId , | |
| 76 | String patientIc n, Site si te, boolea n forceIma gesFromJb) | |
| 77 | th rows Metho dException , Connecti onExceptio n | |
| 78 | { | |
| 79 | logg er.info("g etExamImag esFromExam Id(" + enc odedExamId + ") Tran sactionCon text (" + Transactio nContextFa ctory.get( ).getDispl ayIdentity () + ").") ; | |
| 80 | try | |
| 81 | { | |
| 82 | // CTB 29Nov2009 | |
| 83 | //Stri ng examId = Base32Co nversionUt ility.base 32Decode(e ncodedExam Id); | |
| 84 | String examId = encodedExa mId; | |
| 85 | VistaQ uery image sQuery = g etExamImag esQuery(ex amId, useT gaImages, | |
| 86 | forceImage sFromJb); | |
| 87 | String result = vistaSessi on.call(im agesQuery) ; | |
| 88 | return VistaImag ingVistaRa dTranslato r.translat eExamImage sIntoExams Map(result , encodedE xamId, pat ientIcn, s ite); | |
| 89 | } | |
| 90 | catc h(URNForma tException iurnfX) | |
| 91 | { | |
| 92 | logger .error("Er ror gettin g exam ima ges for ex am [" + en codedExamI d + "]", i urnfX); | |
| 93 | throw new Method Exception( iurnfX); | |
| 94 | } | |
| 95 | catc h(VistaMet hodExcepti on vmX) | |
| 96 | { | |
| 97 | logger .error("Er ror gettin g exam ima ges for ex am [" + en codedExamI d + "]", v mX); | |
| 98 | throw new Method Exception( vmX); | |
| 99 | } | |
| 100 | catc h(InvalidV istaCreden tialsExcep tion ivcX) | |
| 101 | { | |
| 102 | logger .error("Er ror gettin g exam ima ges for ex am [" + en codedExamI d + "]", i vcX); | |
| 103 | throw new Invali dCredentia lsExceptio n(ivcX); | |
| 104 | } | |
| 105 | catc h(IOExcept ion ioX) | |
| 106 | { | |
| 107 | logger .error("Er ror gettin g exam ima ges for ex am [" + en codedExamI d + "]", i oX); | |
| 108 | throw new Connec tionExcept ion(ioX); | |
| 109 | } | |
| 110 | } | |
| 111 | ||
| 112 | pr otected ab stract Vis taQuery ge tExamImage sQuery(Str ing examId , boolean useTgaImag es, | |
| 113 | boolea n forceIma gesFromJb) ; | |
| 114 | ||
| 115 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.