Produced by Araxis Merge on 10/3/2017 11:16:05 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 | ehmp.zip\ehmp\ehmp\product\production\vx-sync\tools\rpc | rpc-appointment.js | Mon Jul 10 17:46:22 2017 UTC |
| 2 | ehmp.zip\ehmp\ehmp\product\production\vx-sync\tools\rpc | rpc-appointment.js | Tue Oct 3 13:36:15 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 3 | 140 |
| Changed | 2 | 8 |
| 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 | 'use stric t'; | |
| 2 | ||
| 3 | require('. ./../env-s etup'); | |
| 4 | var _ = re quire('und erscore'); | |
| 5 | var inspec t = requir e('util'). inspect; | |
| 6 | var rpcUti l = requir e(global.V X_UTILS + '/rpc-util '); | |
| 7 | ||
| 8 | var argv = require(' yargs') | |
| 9 | .u sage('Usag e: $0 [opt ions...]') | |
| 10 | .d emand(['ho st', 'port ']) | |
| 11 | .d escribe('h ost', 'IP Address of the VistA host') | |
| 12 | .d escribe('p ort', 'Por t of the V istA host' ) | |
| 13 | .d escribe('a ccessCode' , 'Value t o use for accessCode for valid ation. Def aults to REDACTED ') | |
| 14 | .d escribe('v erifyCode' , 'Value t o use for verifyCode for valid ation. Def aults to REDACTED ') | |
| 15 | .n args('acce ssCode', 1 ) | |
| 16 | .n args('veri fyCode', 1 ) | |
| 17 | .d escribe('l ocalIP', ' Value to u se for the localIP p arameter i n the RPC call. Defa ults to 12 7.0.0.1') | |
| 18 | .d escribe('l ocalAddres s', 'Value to use fo r the loca lAddress p arameter i n the RPC call. Defa ults to lo calhost') | |
| 19 | .d escribe('c onnectTime out', 'Val ue in mill iseconds t o use for the connec tTimeout p arameter i n the RPC call. Defa ults to 30 00') | |
| 20 | .d escribe('s endTimeout ', 'Value in millise conds to u se for the sendTimeo ut paramet er in the RPC call. Defaults t o 10000') | |
| 21 | .d escribe('c ontext', ' Context to set for r unning the RPC. Defa ults to HM P SYNCHRON IZATION CO NTEXT') | |
| 22 | .d escribe('l ogLevel', 'bunyan lo g levels, one of: tr ace, debug , info, wa rn, error, fatal. De faults to error.') | |
| 23 | .a rgv; | |
| 24 | ||
| 25 | ||
| 26 | var logger = require ('bunyan') .createLog ger({ | |
| 27 | na me: 'rpc', | |
| 28 | le vel: argv. logLevel | | 'error' | |
| 29 | }); | |
| 30 | ||
| 31 | var rpc = 'HMP PATIE NT ACTIVIT Y'; | |
| 32 | ||
| 33 | ||
| 34 | var config = { | |
| 35 | ho st: argv.h ost, | |
| 36 | po rt: argv.p ort, | |
| 37 | ac cessCode: argv.acces sCode || ' REDACTED ', | |
| 38 | ve rifyCode: argv.verif yCode || ' REDACTED ', | |
| 39 | lo calIP: arg v.localIP || '127.0. 0.1', | |
| 40 | lo calAddress : argv.loc alAddress || 'localh ost', | |
| 41 | co ntext: arg v.context || 'HMP SY NCHRONIZAT ION CONTEX T', | |
| 42 | co nnectTimeo ut: argv.c onnectTime out || 300 0, | |
| 43 | se ndTimeout: argv.send Timeout || 10000 | |
| 44 | }; | |
| 45 | ||
| 46 | rpcUtil.st andardRPCC all(logger , config, rpc, null, function( error, res ponse) { | |
| 47 | lo gger.debug ('Complete d calling Patient Ac tivity. re sult: %j', response) ; | |
| 48 | if (error) { | |
| 49 | cons ole.log('E rror calli ng Patient Activity' ); | |
| 50 | cons ole.log(er ror); | |
| 51 | if ( response) { | |
| 52 | consol e.log(resp onse); | |
| 53 | } | |
| 54 | proc ess.exit(1 ); | |
| 55 | } | |
| 56 | ||
| 57 | co nsole.log( 'Called Pa tient Acti vity'); | |
| 58 | co nsole.log( 'Response: '); | |
| 59 | if (_.isEmpty (response) || _.isEm pty(respon se.trim()) ){ | |
| 60 | cons ole.log('( Empty Resp onse)'); | |
| 61 | proc ess.exit(0 ); | |
| 62 | } | |
| 63 | ||
| 64 | tr y { | |
| 65 | cons ole.log(in spect(JSON .parse(res ponse), { | |
| 66 | depth: null | |
| 67 | })); | |
| 68 | } catch (err ) { | |
| 69 | cons ole.log('< Invalid JS ON>'); | |
| 70 | cons ole.log(re sponse); | |
| 71 | } | |
| 72 | ||
| 73 | pr ocess.exit (0); | |
| 74 | }); |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.