Produced by Araxis Merge on 3/1/2018 12:13:18 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 | ehealth_xchange_cif.zip\NHIN_adapter\AdapterSubscriptionServiceWEB\src\main\java\gov\va\med\nhin\adapter\subscription\web\process | DocumentProcessor.java | Thu Feb 22 14:27:24 2018 UTC |
| 2 | ehealth_xchange_cif.zip\NHIN_adapter\AdapterSubscriptionServiceWEB\src\main\java\gov\va\med\nhin\adapter\subscription\web\process | DocumentProcessor.java | Tue Feb 27 14:30:00 2018 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 126 |
| 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 | * To chan ge this li cense head er, choose License H eaders in Project Pr operties. | |
| 3 | * To chan ge this te mplate fil e, choose Tools | Te mplates | |
| 4 | * and ope n the temp late in th e editor. | |
| 5 | */ | |
| 6 | package go v.va.med.n hin.adapte r.subscrip tion.web.p rocess; | |
| 7 | ||
| 8 | import gov .va.med.nh in.adapter .subscript ion.web.pr oxy.docume ntretrieve .DocumentR etriever; | |
| 9 | import gov .va.med.nh in.adapter .subscript ion.web.pr oxy.docume ntretrieve .DocumentR etrieverRe sponse; | |
| 10 | import gov .va.med.nh in.adapter .subscript ion.web.pr oxy.provid er.binary. BinaryProv ider; | |
| 11 | import gov .va.med.nh in.adapter .subscript ion.web.pr oxy.provid er.documen treference .DocumentR eferencePr ovider; | |
| 12 | import gov .va.med.nh in.adapter .subscript ion.web.pr oxy.provid er.subscri ption.Subs criptionPr ovider; | |
| 13 | import gov .va.med.nh in.adapter .subscript ion.web.re source.EHX DocumentRe ference; | |
| 14 | import gov .va.med.nh in.adapter .subscript ion.web.re source.EHX Subscripti on; | |
| 15 | import jav ax.enterpr ise.contex t.Applicat ionScoped; | |
| 16 | import jav ax.inject. Inject; | |
| 17 | import jav ax.inject. Named; | |
| 18 | import org .hl7.fhir. dstu3.mode l.Binary; | |
| 19 | import org .hl7.fhir. dstu3.mode l.IdType; | |
| 20 | ||
| 21 | /** | |
| 22 | * | |
| 23 | * @author DN S VAZQUD | |
| 24 | */ | |
| 25 | @Named("Ge tDocumentP rocessor") | |
| 26 | @Applicati onScoped() | |
| 27 | public cla ss Documen tProcessor | |
| 28 | { | |
| 29 | @Injec t | |
| 30 | privat e BinaryPr ovider bin aryProvide r; | |
| 31 | @Injec t | |
| 32 | privat e Document ReferenceP rovider do cumentRefe renceProvi der; | |
| 33 | @Injec t | |
| 34 | privat e Subscrip tionProvid er subscri ptionProvi der; | |
| 35 | @Injec t | |
| 36 | privat e Document Retriever documentRe triever; | |
| 37 | ||
| 38 | public Binary ge tDocument( String doc umentID) | |
| 39 | { | |
| 40 | Id Type binar yID = new IdType("Bi nary", doc umentID); | |
| 41 | Id Type docum entReferen ceID = new IdType("D ocumentRef erence", d ocumentID) ; | |
| 42 | Bi nary ret = binaryPro vider.read (binaryID) ; | |
| 43 | ||
| 44 | if (ret == n ull) { | |
| 45 | EHXDocum entReferen ce documen tReference = documen tReference Provider.r ead(docume ntReferenc eID); | |
| 46 | if (docu mentRefere nce != nul l) { | |
| 47 | ret = getDocum ent(docume ntReferenc e).getBina ry(); | |
| 48 | } | |
| 49 | } | |
| 50 | ||
| 51 | re turn ret; | |
| 52 | } | |
| 53 | ||
| 54 | public DocumentR etrieverRe sponse get Document(E HXDocument Reference documentRe ference) | |
| 55 | { | |
| 56 | Do cumentRetr ieverRespo nse ret; | |
| 57 | EH XSubscript ion subscr iption = s ubscriptio nProvider. read(new I dType(docu mentRefere nce.getSub scription( ).getRefer ence())); | |
| 58 | re t = docume ntRetrieve r.sendRetr ieveDocume nt(documen tReference , subscrip tion.getAs sertions() ); | |
| 59 | if (ret.getB inary() != null) { | |
| 60 | binaryPr ovider.cre ate(ret.ge tBinary()) ; | |
| 61 | } | |
| 62 | re turn ret; | |
| 63 | } | |
| 64 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.