923. 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.

923.1 Files compared

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

923.2 Comparison summary

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

923.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

923.4 Active regular expressions

No regular expressions were active.

923.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 ', 'dfn'])
  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('d fn', 'DFN  of the pat ient for t he subscri be request  (\'OP\' f or operati onal data) ')
  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 or  HMP SYNCH RONIZATION  CONTEXT')
  22           .d escribe('h mpServerId ', 'Value  for the hm pServerId  parameter.  Defaults  to hmp-dev elopment-b ox')
  23           .d escribe('l ogLevel',  'bunyan lo g levels,  one of: tr ace, debug , info, wa rn, error,  fatal. De faults to  error.')
  24           .a rgv;
  25  
  26  
  27   var logger  = require ('bunyan') .createLog ger({
  28           na me: 'rpc',
  29           le vel: argv. logLevel | | 'error'
  30   });
  31  
  32   var rpc =  'HMPDJFS A PI';
  33   var params  = {
  34           '" server"':  argv.hmpSe rverId ||  'hmp-devel opment-box '
  35   };
  36  
  37  
  38   if (argv.d fn === 'OP ') {
  39       params ['"command "'] = 'sta rtOperatio nalDataExt ract';
  40   } else {
  41           pa rams['"com mand"'] =  'putPtSubs cription';
  42           pa rams['"loc alId"'] =  String(arg v.dfn);
  43   }
  44  
  45  
  46   var config  = {
  47           ho st: argv.h ost,
  48           po rt: argv.p ort,
  49           ac cessCode:  argv.acces sCode || ' REDACTED ',
  50           ve rifyCode:  argv.verif yCode || ' REDACTED ',
  51           lo calIP: arg v.localIP  || '127.0. 0.1',
  52           lo calAddress : argv.loc alAddress  || 'localh ost',
  53           co ntext: arg v.context  || 'HMP SY NCHRONIZAT ION CONTEX T',
  54           co nnectTimeo ut: argv.c onnectTime out || 300 0,
  55           se ndTimeout:  argv.send Timeout ||  10000
  56   };
  57  
  58   rpcUtil.st andardRPCC all(logger , config,  rpc, param s, null, f unction(er ror, respo nse) {
  59           lo gger.debug ('Complete d calling  Subscribe  RPC for df n: %s; res ult: %j',  argv.dfn,  response);
  60           if  (error) {
  61                    cons ole.log('E rror calli ng Subscri be for dfn : %s', arg v.dfn);
  62                    cons ole.log(er ror);
  63                    if ( response)  {
  64                             consol e.log(resp onse);
  65                    }
  66                    proc ess.exit(1 );
  67           }
  68  
  69           co nsole.log( 'Called Su bscribe fo r dfn: %s' , argv.dfn );
  70           co nsole.log( 'Response: ');
  71           tr y {
  72                    cons ole.log(in spect(JSON .parse(res ponse), {
  73                             depth:  null
  74                    }));
  75           }  catch (err ) {
  76                    cons ole.log(re sponse);
  77           }
  78           pr ocess.exit (0);
  79   });