Produced by Araxis Merge on 6/9/2017 3:49:58 PM Eastern 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 | Fri Jun 9 19:49:58 2017 UTC | ||
| 2 | eHealth_Exch (eHealth Exchange Enhancements) Build 3 docs & code_May_2017.zip\VAP_CIF_CODE0502.zip\VAP_CIF_CODE0502\VAP_CIF_CODE0502\nvap-common\src\main\java\gov\va\nvap\common\transformer\hl7 | ER7ToXML.java | Fri Apr 21 20:03:26 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 0 | 0 |
| Changed | 0 | 0 |
| Inserted | 1 | 41 |
| 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 | package go v.va.nvap. common.tra nsformer.h l7; | |||||
| 2 | ||||||
| 3 | import gov .va.nvap.c ommon.tran sformer.Tr ansformer; | |||||
| 4 | import gov .va.nvap.c ommon.tran sformer.Tr ansformerE xception; | |||||
| 5 | import gov .va.nvap.c ommon.vali dation.Ass ert; | |||||
| 6 | ||||||
| 7 | import org .w3c.dom.D ocument; | |||||
| 8 | ||||||
| 9 | import ca. uhn.hl7v2. HL7Excepti on; | |||||
| 10 | import ca. uhn.hl7v2. model.Mess age; | |||||
| 11 | import ca. uhn.hl7v2. parser.Def aultXMLPar ser; | |||||
| 12 | import ca. uhn.hl7v2. parser.Enc odingNotSu pportedExc eption; | |||||
| 13 | import ca. uhn.hl7v2. parser.Pip eParser; | |||||
| 14 | import ca. uhn.hl7v2. parser.XML Parser; | |||||
| 15 | ||||||
| 16 | /** | |||||
| 17 | * The ER7 To XML Tr ansformer. | |||||
| 18 | * | |||||
| 19 | * @author Asha Amri traj | |||||
| 20 | */ | |||||
| 21 | public cla ss ER7ToXM L implemen ts Transfo rmer<Strin g, Documen t> { | |||||
| 22 | ||||||
| 23 | @O verride | |||||
| 24 | pu blic Docum ent transf orm(final String er7 Message) | |||||
| 25 | throws Transform erExceptio n { | |||||
| 26 | Asse rt.assertN otEmpty(er 7Message, "ER7 messa ge cannot be null!") ; | |||||
| 27 | fina l PipePars er pp = ne w PipePars er(); | |||||
| 28 | fina l XMLParse r xp = new DefaultXM LParser(); | |||||
| 29 | try { | |||||
| 30 | final Message me ss = pp.pa rse(er7Mes sage); | |||||
| 31 | final Document d oc = xp.en codeDocume nt(mess); | |||||
| 32 | return doc; | |||||
| 33 | } ca tch (final EncodingN otSupporte dException e) { | |||||
| 34 | throw new Transf ormerExcep tion(e); | |||||
| 35 | } ca tch (final HL7Except ion e) { | |||||
| 36 | throw new Transf ormerExcep tion(e); | |||||
| 37 | } | |||||
| 38 | ||||||
| 39 | } | |||||
| 40 | ||||||
| 41 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.