Produced by Araxis Merge on 3/25/2019 8:58:08 AM 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\IMAG_Source\VISA\Java\VistaImagingDataSourceProvider\main\src\java\gov\va\med\imaging\vistaimagingdatasource | VistaImagingExternalPackageDataSourceServiceV0.java | Mon Mar 18 20:39:06 2019 UTC |
2 | C:\AraxisMergeCompare\Pri_re\IMAG_Source\VISA\Java\VistaImagingDataSourceProvider\main\src\java\gov\va\med\imaging\vistaimagingdatasource | VistaImagingExternalPackageDataSourceServiceV0.java | Tue Mar 19 12:04:24 2019 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 3 | 356 |
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: May 27, 2009 | |
6 | Site Nam e: Washin gton OI Fi eld Office , Silver S pring, MD | |
7 | Developer: DNS werfej | |
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 | import jav a.util.Lis t; | |
30 | import jav a.util.Sor tedSet; | |
31 | import jav a.util.Tre eSet; | |
32 | ||
33 | import gov .va.med.Ro utingToken ; | |
34 | import gov .va.med.im aging.arti factsource .ResolvedA rtifactSou rce; | |
35 | import gov .va.med.im aging.core .interface s.exceptio ns.Connect ionExcepti on; | |
36 | import gov .va.med.im aging.core .interface s.exceptio ns.MethodE xception; | |
37 | import gov .va.med.im aging.exce ptions.URN FormatExce ption; | |
38 | import gov .va.med.im aging.exch ange.busin ess.Image; | |
39 | import gov .va.med.im aging.exch ange.busin ess.Study; | |
40 | import gov .va.med.im aging.exch ange.busin ess.WorkIt em; | |
41 | import gov .va.med.im aging.prot ocol.vista .VistaImag ingTransla tor; | |
42 | import gov .va.med.im aging.prot ocol.vista .exception s.VistaPar singExcept ion; | |
43 | import gov .va.med.im aging.url. vista.Vist aQuery; | |
44 | import gov .va.med.im aging.url. vista.exce ptions.Inv alidVistaC redentials Exception; | |
45 | import gov .va.med.im aging.url. vista.exce ptions.Vis taMethodEx ception; | |
46 | import gov .va.med.im aging.vist adatasourc e.session. VistaSessi on; | |
47 | import gov .va.med.im aging.vist aimagingda tasource.c ommon.Vist aImagingCo mmonUtilit ies; | |
48 | import gov .va.med.im aging.vist aobjects.V istaImage; | |
49 | ||
50 | /** | |
51 | * This ve rsion uses RPC calls before Pa tch 83 to create a s tudy with a fake ser ies contai ning the i mages | |
52 | * | |
53 | * @author DNS werfej | |
54 | * | |
55 | */ | |
56 | public cla ss VistaIm agingExter nalPackage DataSource ServiceV0 | |
57 | extends Ab stractBase VistaImagi ngExternal PackageDat aSourceSer vice | |
58 | { | |
59 | // The requi red versio n of VistA Imaging n eeded to e xecute the RPC calls for this operation | |
60 | pu blic final static St ring MAG_R EQUIRED_VE RSION = "3 .0P45"; | |
61 | ||
62 | /* * | |
63 | * @param re solvedArti factSource | |
64 | * @param pr otocol | |
65 | * / | |
66 | pu blic Vista ImagingExt ernalPacka geDataSour ceServiceV 0(Resolved ArtifactSo urce resol vedArtifac tSource, S tring prot ocol) | |
67 | { | |
68 | supe r(resolved ArtifactSo urce, prot ocol); | |
69 | } | |
70 | ||
71 | /* (non-Java doc) | |
72 | * @see gov. va.med.ima ging.vista datasource .AbstractB aseVistaEx ternalPack ageDataSou rceService #getRequir edVistaIma gingVersio n() | |
73 | * / | |
74 | @O verride | |
75 | pr otected St ring getRe quiredVist aImagingVe rsion() | |
76 | { | |
77 | retu rn VistaIm agingCommo nUtilities .getVistaD ataSourceI magingVers ion( | |
78 | VistaIma gingDataSo urceProvid er.getVist aConfigura tion(), th is.getClas s(), | |
79 | MAG_REQU IRED_VERSI ON); | |
80 | } | |
81 | ||
82 | /* (non-Java doc) | |
83 | * @see gov. va.med.ima ging.vista datasource .AbstractB aseVistaEx ternalPack ageDataSou rceService #fullyPopu lateGroupI ntoStudy(g ov.va.med. imaging.vi stadatasou rce.sessio n.VistaSes sion, gov. va.med.ima ging.excha nge.busine ss.Study, java.lang. String) | |
84 | * / | |
85 | @O verride | |
86 | pr otected St udy fullyP opulateGro upIntoStud y( | |
87 | Vist aSession v istaSessio n, | |
88 | Stud y study, | |
89 | Stri ng patient Dfn) | |
90 | th rows Inval idVistaCre dentialsEx ception, V istaMethod Exception, IOExcepti on | |
91 | { | |
92 | Sort edSet<Imag e> images = null; | |
93 | ||
94 | // i f the stud y is a gro up study | |
95 | if(s tudy.getFi rstImage() == null) | |
96 | { | |
97 | // CTB 29Nov2009 | |
98 | //Stri ng groupSt udyId = Ba se32Conver sionUtilit y.base32De code(study .getStudyI en()); | |
99 | String groupStud yId = stud y.getStudy Ien(); | |
100 | // cre ate Vista query - MA GG GROUP I MAGES | |
101 | VistaQ uery group ImagesQuer y = VistaI magingQuer yFactory.c reateGetSt udyImagesV istaQuery( groupStudy Id); | |
102 | ||
103 | // get the group of images from Vist A | |
104 | String vistaResp onse = vis taSession. call(group ImagesQuer y); | |
105 | // con vert them into Image business objects | |
106 | try | |
107 | { | |
108 | SortedSe t<VistaIma ge> vistaI mages = | |
109 | VistaImagi ngTranslat or.createI mageGroupF romImageLi nes(vistaR esponse, s tudy); | |
110 | images = VistaImag ingTransla tor.transf orm(study. getSiteNum ber(), stu dy.getStud yIen(), st udy.getPat ientIdenti fier(), vi staImages) ; | |
111 | VistaIma gingCommon Utilities. addVistaIm agesToStud yAsSeries( study, vis taImages); | |
112 | } | |
113 | catch (URNFormat Exception urnfX) | |
114 | { | |
115 | throw ne w VistaMet hodExcepti on(urnfX); | |
116 | } | |
117 | catch (VistaPars ingExcepti on vpX) | |
118 | { | |
119 | throw ne w VistaMet hodExcepti on(vpX); | |
120 | } | |
121 | ||
122 | if(s tudy.getFi rstImage() == null & & images.s ize() > 0) | |
123 | { | |
124 | Image firstImage = images. first(); | |
125 | study. setFirstIm age(firstI mage); | |
126 | study. setFirstIm ageIen(fir stImage.ge tIen()); | |
127 | study. setPatient Name(first Image.getP atientName ()); | |
128 | } | |
129 | } | |
130 | else | |
131 | { | |
132 | images = new Tre eSet<Image >(); | |
133 | images .add(study .getFirstI mage()); | |
134 | VistaI magingComm onUtilitie s.addImage sToStudyAs Series(stu dy, images ); | |
135 | } | |
136 | ||
137 | // g et the rep ort for th e study | |
138 | try | |
139 | { | |
140 | study. setRadiolo gyReport(V istaImagin gCommonUti lities.get Report(vis taSession, study.get StudyIen() )); | |
141 | } | |
142 | catc h (MethodE xception m X) | |
143 | { | |
144 | getLog ger().warn ("Exceptio n retrievi ng radiolo gy report, " + mX.to String()); | |
145 | study. setRadiolo gyReport(" "); | |
146 | } | |
147 | catc h(VistaMet hodExcepti on rpcX) | |
148 | { | |
149 | getLog ger().warn ("Exceptio n retrievi ng radiolo gy report, " + rpcX. toString() ); | |
150 | study. setRadiolo gyReport(" "); | |
151 | } | |
152 | catc h (Connect ionExcepti on cX) | |
153 | { | |
154 | getLog ger().warn ("Exceptio n retrievi ng radiolo gy report, " + cX.to String()); | |
155 | study. setRadiolo gyReport(" "); | |
156 | } | |
157 | ||
158 | retu rn study; | |
159 | } | |
160 | ||
161 | @O verride | |
162 | pr otected St ring getDa taSourceVe rsion() | |
163 | { | |
164 | retu rn "0"; | |
165 | } | |
166 | ||
167 | @O verride | |
168 | pu blic List< WorkItem> getRemoteW orkItemLis tFromDataS ource(Rout ingToken g lobalRouti ngToken, S tring idTy pe, | |
169 | String patientId , String c ptCode) th rows Metho dException , Connecti onExceptio n { | |
170 | // T ODO Auto-g enerated m ethod stub | |
171 | retu rn null; | |
172 | } | |
173 | ||
174 | @O verride | |
175 | pu blic boole an deleteR emoteWorkI temFromDat aSource(Ro utingToken globalRou tingToken, String id ) | |
176 | throws MethodExc eption, Co nnectionEx ception { | |
177 | // T ODO Auto-g enerated m ethod stub | |
178 | retu rn false; | |
179 | } | |
180 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.