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\transceiver\hl7 | HL7MLLPTransceiver.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 | 42 |
| 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 nsceiver.h l7; | |||||
| 2 | ||||||
| 3 | /** | |||||
| 4 | * The HL7 MLLP Trans ceiver for communica tion with external s ystems ove r a | |||||
| 5 | * socket. | |||||
| 6 | * | |||||
| 7 | * @author Asha Amri traj | |||||
| 8 | */ | |||||
| 9 | public cla ss HL7MLLP Transceive r extends | |||||
| 10 | gov. va.nvap.co mmon.trans ceiver.cli ent.Socket Transceive r { | |||||
| 11 | ||||||
| 12 | pu blic stati c final St ring FSCR = "\u001C\ r"; | |||||
| 13 | pu blic stati c final St ring VT = "\u000B"; | |||||
| 14 | ||||||
| 15 | @O verride | |||||
| 16 | pr otected St ring forma tIncomingM essage(fin al String payload) { | |||||
| 17 | Stri ng ret; | |||||
| 18 | if ( payload.st artsWith(H L7MLLPTran sceiver.VT ) | |||||
| 19 | && paylo ad.endsWit h(HL7MLLPT ransceiver .FSCR)) { | |||||
| 20 | ret = payload.su bstring(1, payload.l ength() - 2); | |||||
| 21 | } el se { | |||||
| 22 | ret = payload; | |||||
| 23 | } | |||||
| 24 | retu rn ret; | |||||
| 25 | } | |||||
| 26 | ||||||
| 27 | @O verride | |||||
| 28 | pr otected St ring forma tOutgoingM essage(fin al String payload) { | |||||
| 29 | retu rn HL7MLLP Transceive r.VT + pay load + HL7 MLLPTransc eiver.FSCR ; | |||||
| 30 | } | |||||
| 31 | ||||||
| 32 | @O verride | |||||
| 33 | pr otected St ring getEn dMarker() { | |||||
| 34 | retu rn HL7MLLP Transceive r.FSCR; | |||||
| 35 | } | |||||
| 36 | ||||||
| 37 | @O verride | |||||
| 38 | pr otected in t getEndMa rkerPositi on() { | |||||
| 39 | retu rn 0; | |||||
| 40 | } | |||||
| 41 | ||||||
| 42 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.