Produced by Araxis Merge on 3/25/2019 8:58:02 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\FederationWebApp\main\src\java\gov\va\med\imaging\federation\rest\v9 | FederationRestExternalPackageServiceV9.java | Mon Mar 18 20:39:15 2019 UTC |
2 | C:\AraxisMergeCompare\Pri_re\IMAG_Source\VISA\Java\FederationWebApp\main\src\java\gov\va\med\imaging\federation\rest\v9 | FederationRestExternalPackageServiceV9.java | Tue Mar 19 12:03:40 2019 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 3 | 206 |
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: Jun 8, 2018 | |
6 | Developer: DNS tjahjb | |
7 | Descript ion: | |
8 | ||
9 | ;; +-------- ---------- ---------- ---------- ---------- ---------- ---------- + | |
10 | ;; Property of the US Government . | |
11 | ;; No permis sion to co py or redi stribute t his softwa re is give n. | |
12 | ;; Use of un released v ersions of this soft ware requi res the us er | |
13 | ;; to execu te a writt en test ag reement wi th the Vis tA Imaging | |
14 | ;; Developm ent Office of the De partment o f Veterans Affairs, | |
15 | ;; telephon e (301) 73 4-0100. | |
16 | ;; | |
17 | ;; The Food and Drug A dministrat ion classi fies this software a s | |
18 | ;; a Class I I medical device. A s such, it may not b e changed | |
19 | ;; in any wa y. Modifi cations to this soft ware may r esult in a n | |
20 | ;; adulterat ed medical device un der 21CFR8 20, the us e of which | |
21 | ;; is consid ered to be a violati on of US F ederal Sta tutes. | |
22 | ;; +-------- ---------- ---------- ---------- ---------- ---------- ---------- + | |
23 | ||
24 | */ | |
25 | package go v.va.med.i maging.fed eration.re st.v9; | |
26 | ||
27 | import jav ax.ws.rs.C onsumes; | |
28 | import jav ax.ws.rs.D ELETE; | |
29 | import jav ax.ws.rs.G ET; | |
30 | import jav ax.ws.rs.P ath; | |
31 | import jav ax.ws.rs.P athParam; | |
32 | import jav ax.ws.rs.P roduces; | |
33 | import jav ax.ws.rs.Q ueryParam; | |
34 | import jav ax.ws.rs.c ore.MediaT ype; | |
35 | import jav ax.ws.rs.c ore.Respon se; | |
36 | ||
37 | import gov .va.med.im aging.core .interface s.exceptio ns.Connect ionExcepti on; | |
38 | import gov .va.med.im aging.core .interface s.exceptio ns.MethodE xception; | |
39 | import gov .va.med.im aging.fede ration.com mands.exte rnalpackag e.Federati onExternal PackageDel eteWorkIte mCommand; | |
40 | import gov .va.med.im aging.fede ration.com mands.exte rnalpackag e.Federati onExternal PackageGet WorkListCo mmand; | |
41 | import gov .va.med.im aging.fede ration.res t.endpoint s.Federati onExternal PackageRes tUri; | |
42 | import gov .va.med.im aging.fede ration.res t.endpoint s.Federati onRestUri; | |
43 | import gov .va.med.im aging.fede ration.res t.endpoint s.Federati onWorkList RestUri; | |
44 | import gov .va.med.im aging.fede ration.res t.v8.Feder ationRestE xternalPac kageServic eV8; | |
45 | ||
46 | ||
47 | /** | |
48 | * @author DNS tjahjb | |
49 | * | |
50 | */ | |
51 | @Path(Fede rationRest Uri.federa tionRestUr iV9 + "/" + Federati onExternal PackageRes tUri.exter nalPackage ServicePat h) | |
52 | public cla ss Federat ionRestExt ernalPacka geServiceV 9 | |
53 | extends Fe derationRe stExternal PackageSer viceV8 | |
54 | { | |
55 | @G ET | |
56 | @P ath(Federa tionWorkLi stRestUri. getRemoteW orkListMet hodPath) | |
57 | @P roduces(Me diaType.AP PLICATION_ XML) | |
58 | @C onsumes(Me diaType.AP PLICATION_ XML) | |
59 | pu blic Respo nse getWor kList( | |
60 | @PathP aram("rout ingToken") String ro utingToken , | |
61 | @Query Param("idT ype") Stri ng idType, | |
62 | @Query Param("pat ientId") S tring pati entId, | |
63 | @Query Param("cpt Code") Str ing cptCod e | |
64 | ) | |
65 | th rows Metho dException , Connecti onExceptio n | |
66 | { | |
67 | logg er.debug(" Federation getWorkLi st. routin gToken=" + routingTo ken + | |
68 | " idType =" + idTyp e + " pati entId=" + patientId + " cptCod e=" + cptC ode); | |
69 | Fede rationExte rnalPackag eGetWorkLi stCommand command = | |
70 | new Fede rationExte rnalPackag eGetWorkLi stCommand( | |
71 | ro utingToken , | |
72 | id Type, | |
73 | pa tientId, | |
74 | cp tCode, | |
75 | ge tInterface Version()) ; | |
76 | ||
77 | retu rn wrapRes ultWithRes ponseHeade rs(command .execute() ); | |
78 | } | |
79 | ||
80 | @D ELETE | |
81 | @P ath(Federa tionWorkLi stRestUri. deleteWork ItemMethod Path) | |
82 | @P roduces(Me diaType.AP PLICATION_ XML) | |
83 | @C onsumes(Me diaType.AP PLICATION_ XML) | |
84 | pu blic Respo nse delete WorkItem( | |
85 | @PathP aram("rout ingToken") String ro utingToken , | |
86 | @PathP aram("id") String id | |
87 | ) | |
88 | th rows Metho dException , Connecti onExceptio n | |
89 | { | |
90 | ||
91 | Fede rationExte rnalPackag eDeleteWor kItemComma nd command = | |
92 | new Fede rationExte rnalPackag eDeleteWor kItemComma nd( | |
93 | ro utingToken , id, | |
94 | ge tInterface Version()) ; | |
95 | ||
96 | retu rn wrapRes ultWithRes ponseHeade rs(command .execute() ); | |
97 | } | |
98 | ||
99 | pr otected St ring getIn terfaceVer sion() | |
100 | { | |
101 | retu rn "V9"; | |
102 | } | |
103 | ||
104 | } | |
105 |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.