924. EPMO Open Source Coordination Office Redaction File Detail Report

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.

924.1 Files compared

# Location File Last Modified
1 ehmp.zip\ehmp\ehmp\product\production\vx-sync\tools\vista-sync-tools rpc-subscription-status.js Mon Jul 10 17:46:22 2017 UTC
2 ehmp.zip\ehmp\ehmp\product\production\vx-sync\tools\vista-sync-tools rpc-subscription-status.js Tue Oct 3 13:39:21 2017 UTC

924.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 3 128
Changed 2 8
Inserted 0 0
Removed 0 0

924.3 Comparison options

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

924.4 Active regular expressions

No regular expressions were active.

924.5 Comparison detail

  1   'use stric t';
  2  
  3   require('. ./../env-s etup');
  4   var inspec t = requir e('util'). inspect;
  5   var rpcUti l = requir e(global.V X_UTILS +  '/rpc-util ');
  6  
  7   var argv =  require(' yargs')
  8           .u sage('Usag e: $0 [opt ions...]')
  9           .d emand(['ho st', 'port '])
  10           .d escribe('h ost', 'IP  Address of  the VistA  host')
  11           .d escribe('p ort', 'Por t of the V istA host' )
  12           .d escribe('a ccessCode' , 'Value t o use for  accessCode  for valid ation. Def aults to  REDACTED ')
  13           .d escribe('v erifyCode' , 'Value t o use for  verifyCode  for valid ation. Def aults to  REDACTED ')
  14           .n args('acce ssCode', 1 )
  15           .n args('veri fyCode', 1 )
  16           .d escribe('c ontext', ' Context to  set for r unning the  RPC. Defa ults to VP R SYNCHRON IZATION CO NTEXT or H MP SYNCHRO NIZATION C ONTEXT')
  17           .d escribe('l astUpdate' , 'Value o f the last Update rec eived. Def aults to 0 ')
  18           .d escribe('h mpServerId ', 'Value  for the hm pServerId  parameter.  Defaults  to hmp-dev elopment-b ox')
  19           .d escribe('l ogLevel',  'bunyan lo g levels,  one of: tr ace, debug , info, wa rn, error,  fatal. De faults to  error.')
  20           .a rgv;
  21  
  22  
  23   var logger  = require ('bunyan') .createLog ger({
  24           na me: 'rpc',
  25           le vel: argv. logLevel | | 'error'
  26   });
  27  
  28   var config  = {
  29           ho st: argv.h ost,
  30           po rt: argv.p ort,
  31           ac cessCode:  argv.acces sCode || ' REDACTED ',
  32           ve rifyCode:  argv.verif yCode || ' REDACTED ',
  33           lo calIP: '12 7.0.0.1',
  34           lo calAddress : 'localho st',
  35           co ntext: arg v.context  || 'HMP SY NCHRONIZAT ION CONTEX T',
  36           co nnectTimeo ut: 3000,
  37           se ndTimeout:  10000
  38   };
  39  
  40   var rpc =  'HMP SUBSC RIPTION ST ATUS';
  41   var params  = {
  42           '" localId"':  String(ar gv.dfn) ,
  43           '" server"':  argv.hmpSe rverId ||  'hmp-devel opment-box '
  44   };
  45  
  46  
  47   rpcUtil.st andardRPCC all(logger , config,  rpc, param s, null, f unction(er ror, respo nse) {
  48           lo gger.debug ('Complete d calling  Fetch RPC  for dfn: % s; result:  %j', argv .dfn, resp onse);
  49           if  (error) {
  50                    cons ole.log('E rror calli ng Fetch') ;
  51                    cons ole.log(er ror);
  52                    if ( response)  {
  53                             consol e.log(resp onse);
  54                    }
  55                    proc ess.exit(1 );
  56           }
  57  
  58           co nsole.log( 'Called Fe tch');
  59           co nsole.log( 'Response: ');
  60           tr y {
  61                    cons ole.log(in spect(JSON .parse(res ponse), {
  62                             depth:  null
  63                    }));
  64           }  catch (err ) {
  65                    cons ole.log(re sponse);
  66           }
  67           pr ocess.exit (0);
  68   });