117. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 10/4/2017 8:04:36 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.

117.1 Files compared

# Location File Last Modified
1 rdk.zip\rdk\product\production\rdk\src\write\orders\common orders-common-order-lock-itest-spec.js Mon Aug 21 12:51:00 2017 UTC
2 rdk.zip\rdk\product\production\rdk\src\write\orders\common orders-common-order-lock-itest-spec.js Tue Oct 3 19:00:58 2017 UTC

117.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 7 284
Changed 6 28
Inserted 0 0
Removed 0 0

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

117.4 Active regular expressions

No regular expressions were active.

117.5 Comparison detail

  1   'use stric t';
  2  
  3   var orderL ock = requ ire('./ord ers-common -order-loc k');
  4   var rpcCli entFactory  = require ('./../../ core/rpc-c lient-fact ory');
  5  
  6   var writeb ackContext  = {
  7         pid: ' R E D A CTED ;100615',
  8       vistaC onfig: {
  9             host: ' IP          ',
  10             port:  PORT ,
  11             accessCode : ' PL      ',
  12             verifyCode : ' PL      !!',
  13             localIP: ' IP        ',
  14           lo calAddress : 'localho st'
  15       },
  16       model:  {
  17           'd fn': '1006 15',
  18           'p rovider':  '100000002 38',
  19           'l ocation':  '285',
  20           'o rderDialog ': 'LR OTH ER LAB TES TS',
  21           'd isplayGrou p': '5',
  22           'q uickOrderD ialog': '2 ',
  23           'i nputList':  [
  24                {
  25                    'inp utKey': '4 ',
  26                    'inp utValue':  '350'
  27                },
  28                {
  29                    'inp utKey': '1 26',
  30                    'inp utValue':  '1'
  31                },
  32                {
  33                    'inp utKey': '1 27',
  34                    'inp utValue':  '72'
  35                },
  36                {
  37                    'inp utKey': '1 80',
  38                    'inp utValue':  '9'
  39                },
  40                {
  41                    'inp utKey': '2 8',
  42                    'inp utValue':  'SP'
  43                },
  44                {
  45                    'inp utKey': '6 ',
  46                    'inp utValue':  'TODAY'
  47                },
  48                {
  49                    'inp utKey': '2 9',
  50                    'inp utValue':  '28'
  51                }
  52           ],
  53           'l ocalId': ' 12519',
  54             'uid': 'ur n:va:order : R E D A CTED :100615:12 519',
  55           'k ind': 'Lab oratory'
  56       },
  57       logger : sinon.st ub(require ('bunyan') .createLog ger({name:  'patient- lock'}))
  58   };
  59  
  60   var writeb ackContext 2 = {
  61         pid: ' R E D A CTED ;100615',
  62       vistaC onfig: {
  63             host: ' IP          ',
  64             port:  PORT ,
  65             accessCode : ' REDACT ',
  66             verifyCode : ' REDACTED ',
  67             localIP: ' IP        ',
  68           lo calAddress : 'localho st'
  69       },
  70       model:  {
  71           'd fn': '1006 15',
  72           'p rovider':  '100000002 38',
  73           'l ocation':  '285',
  74           'o rderDialog ': 'LR OTH ER LAB TES TS',
  75           'd isplayGrou p': '5',
  76           'q uickOrderD ialog': '2 ',
  77           'i nputList':  [
  78                {
  79                    'inp utKey': '4 ',
  80                    'inp utValue':  '350'
  81                },
  82                {
  83                    'inp utKey': '1 26',
  84                    'inp utValue':  '1'
  85                },
  86                {
  87                    'inp utKey': '1 27',
  88                    'inp utValue':  '72'
  89                },
  90                {
  91                    'inp utKey': '1 80',
  92                    'inp utValue':  '9'
  93                },
  94                {
  95                    'inp utKey': '2 8',
  96                    'inp utValue':  'SP'
  97                },
  98                {
  99                    'inp utKey': '6 ',
  100                    'inp utValue':  'TODAY'
  101                },
  102                {
  103                    'inp utKey': '2 9',
  104                    'inp utValue':  '28'
  105                }
  106           ],
  107           'l ocalId': ' 12519',
  108             'uid': 'ur n:va:order : R E D A CTED :100615:12 519',
  109           'k ind': 'Lab oratory'
  110       },
  111       logger : sinon.st ub(require ('bunyan') .createLog ger({name:  'patient- lock'}))
  112   };
  113  
  114   var orderI d = '10061 5;12519'; 
  115  
  116  
  117   describe(' Checks the  order loc k function ality', fu nction() {
  118       afterE ach(functi on() {
  119           rp cClientFac tory.close RpcClient( writebackC ontext);
  120       });
  121  
  122       it('re turns 1 if  lock is s ucessful',  function( done) {
  123           th is.timeout (50000);
  124           or derLock.lo ckOrder(or derId, wri tebackCont ext, funct ion(err, r esult) {
  125                expect(r esult).to. match('1') ;
  126                expect(e rr).to.be. null();
  127                done();
  128           }) ;
  129       });
  130  
  131       it('re turns erro r message  if lock is  unsucessf ul', funct ion(done)  {
  132           th is.timeout (50000);
  133           or derLock.lo ckOrder(or derId, wri tebackCont ext, funct ion(err, r esult) {
  134                expect(r esult).to. match('1') ;
  135                expect(e rr).to.be. null();
  136                orderLoc k.lockOrde r(orderId,  writeback Context2,  function(e rr, result ) {
  137                    expe ct(err).to .match('XI U,MARGARET  is workin g on this  order.');
  138                    done ();  
  139                });
  140           }) ;
  141       });
  142  
  143       it('re turns 1 if  unlock is  sucessful ', functio n(done) {
  144           th is.timeout (50000);
  145           or derLock.lo ckOrder(or derId, wri tebackCont ext, funct ion(err, r esult) {
  146                expect(r esult).to. match('1') ;
  147                expect(e rr).to.be. null();
  148                orderLoc k.unlockOr der(orderI d, writeba ckContext)
  149                orderLoc k.lockOrde r(orderId,  writeback Context2,  function(e rr, result ) {
  150                    expe ct(result) .to.match( '1');
  151                    expe ct(err).to .be.null() ;
  152                    done ();  
  153                });
  154           }) ;
  155       });
  156   });