123. EPMO Open Source Coordination Office Redaction File Detail Report

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

123.1 Files compared

# Location File Last Modified
1 rdk.zip\rdk\product\production\rdk\src\write\orders\common orders-common-sign-vista-writer-spec.js Mon Aug 21 12:51:00 2017 UTC
2 rdk.zip\rdk\product\production\rdk\src\write\orders\common orders-common-sign-vista-writer-spec.js Tue Oct 3 17:19:40 2017 UTC

123.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 3 198
Changed 2 4
Inserted 0 0
Removed 0 0

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

123.4 Active regular expressions

No regular expressions were active.

123.5 Comparison detail

  1   'use stric t';
  2  
  3   var signVi staWriter  = require( './orders- common-sig n-vista-wr iter'),
  4       crypto  = require ('crypto') ;
  5  
  6   describe(' Checks the  sign orde r paramete rs', funct ion() {
  7  
  8       it('te sts that g etSignOrde rSendParam eters retu rns a vali d paramete rs list',  function(d one) {
  9           va r model =  {
  10                'dfn': ' 100615',
  11                'provide r': '10000 000231',
  12                'locatio n': '285',
  13                  'eSig': ' PL      !!',
  14                'orderLi st': [{
  15                    'ord erId': '38 979;1',
  16                    'ord erDetailHa sh': 'foob ar'
  17                }, {
  18                    'ord erId': '38 980;1',
  19                    'ord erDetailHa sh': 'foob ar'
  20                }]
  21           };
  22           va r paramete rs = signV istaWriter ._getSignO rderSendPa rameters(m odel);
  23           ex pect(param eters).not .to.be.fal sy();
  24           ex pect(param eters.leng th).to.equ al(5);
  25           va r orderIds  = paramet ers[4];
  26           ex pect(order Ids['(1)'] ).to.be.eq ual('38979 ;1^1^1^E') ;
  27           ex pect(order Ids['(2)'] ).to.be.eq ual('38980 ;1^1^1^E') ;
  28           do ne();
  29       });
  30   });
  31  
  32   describe(' Checks the  validate  signature  parameters ', functio n() {
  33  
  34       it('te sts that g etParamete rs returns  a paramet er array o f size 1',  function( done) {
  35           va r model =  {
  36                'dfn': ' 100615',
  37                'provide r': '10000 000231',
  38                'locatio n': '285',
  39                  'eSig': ' PL      !!'
  40           };
  41           va r paramete rs = signV istaWriter ._getValid ateSignatu reParamete rs(model);
  42           ex pect(param eters).to. be.truthy( );
  43           ex pect(param eters.leng th).to.equ al(1);
  44           do ne();
  45       });
  46   });
  47  
  48   describe(' Checks the  order det ail compar ison funct ionality',  function( ) {
  49  
  50       var or derDetail  = 'GLUCOSE  BLOOD   S ERUM WC LB  #1917\r\n    \r\nAct ivity:\r\n 05/21/2000  08:00  Ne w Order en tered by P ATHOLOGY,O NE (COMPUT ER SPECIA) \r\n     O rder Text:         GL UCOSE BLOO D   SERUM  WC\r\n      Nature of  Order:    WRITTEN\r\ n     Orde red by:         VEHU, EIGHT (Phy sician)\r\ n        R eleased:        05/21 /2000 08:0 0\r\n      Signature:          O N CHART WI TH WRITTEN  ORDERS\r\ n   \r\nCu rrent Data :\r\nCurre nt Primary  Provider:      PROVI DER,TWENTY \r\nCurren t Attendin g Physicia n:  PROVID ER,THIRTY\ r\nTreatin g Specialt y:            \r\nOrd ering Loca tion:             ICU /CCU\r\nSt art Date/T ime:               05 /21/2000 0 8:00\r\nSt op Date/Ti me:                05 /21/2000 1 0:08\r\nCu rrent Stat us:                CO MPLETE\r\n   Orders t hat requir e no furth er action  by the anc illary ser vice. \r\n    e.g., L ab orders  are comple ted when r esults are  available , \r\n  Ra diology or ders are c omplete wh en results  are avail able.\r\nO rder #1251 9\r\n   \r \nOrder:\r \nLab Test :                       GLUCOSE  \r\nCollec ted By:                   Ward c ollect & d eliver \r\ nCollectio n Sample:              BLOOD  \r \nSpecimen :                       SERUM \r \nUrgency:                         ROUTINE  \r\n   \r\ n';
  51  
  52       it('te sts that c ompareOrde rDetailsWi thHash suc cessfully  compares d etail data  against a  hash valu e', functi on(done) {
  53           va r hash = c rypto.crea teHash('md 5').update (orderDeta il).digest ('hex');
  54  
  55           ex pect(signV istaWriter ._compareO rderDetail sWithHash( orderDetai l, hash)). to.be.trut hy();
  56  
  57           do ne();
  58       });
  59  
  60       it('te sts that c ompareOrde rDetailsWi thHash com pares deta il data ag ainst a ba d hash val ue', funct ion() {
  61           va r hash = ' badhashval ue';
  62  
  63           ex pect(signV istaWriter ._compareO rderDetail sWithHash( orderDetai l, hash)). not.to.be. truthy();
  64       });
  65   });
  66  
  67   describe(' Checks the  save orde r check pa rameters',  function( ) {
  68  
  69       it('te sts that g etParamete rs returns  a valid p arameter a rray', fun ction(done ) {
  70           va r model =  {
  71                'dfn': ' 100615',
  72                'provide r': '10000 000231',
  73                'locatio n': '285',
  74                'overrid eReason':  'Override  reason',
  75                'orderCh eckList':  [{
  76                    'ord erCheck':  '38958;1^1 1^2^Duplic ate order:  HEMOGLOBI N A1C BLOO D   SP LB  #18532 9/2 9/15 [UNCO LLECTED]^1 '
  77                }, {
  78                    'ord erCheck':  '38958;1^2 4^2^Max la b test ord er freq ex ceeded for : HEMOGLOB IN A1C^1'
  79                }, {
  80                    'ord erCheck':  '38959;1^1 1^2^Duplic ate order:  GENTAMICI N BLOOD    SERUM SP 9 /29/15 [UN COLLECTED] ^1'
  81                }]
  82           };
  83  
  84           va r paramete rs = signV istaWriter ._getSaveO rderCheckP arameters( model);
  85           ex pect(param eters).to. be.truthy( );
  86           ex pect(param eters.leng th).to.equ al(3);
  87  
  88           ex pect(param eters[0]). to.equal(' 100615');
  89           ex pect(param eters[1]). to.equal(' Override r eason');
  90           ex pect(param eters[2]). to.be.trut hy();
  91  
  92           va r orderChe ckObj = pa rameters[2 ];
  93  
  94           ex pect(order CheckObj[' "ORCHECKS" ']).to.equ al('3');
  95           ex pect(order CheckObj[' "ORCHECKS" , 1']).to. equal('389 58;1^11^2^ Duplicate  order: HEM OGLOBIN A1 C BLOOD    SP LB #185 32 9/29/15  [UNCOLLEC TED]^1');
  96           ex pect(order CheckObj[' "ORCHECKS" , 2']).to. equal('389 58;1^24^2^ Max lab te st order f req exceed ed for: HE MOGLOBIN A 1C^1');
  97           ex pect(order CheckObj[' "ORCHECKS" , 3']).to. equal('389 59;1^11^2^ Duplicate  order: GEN TAMICIN BL OOD   SERU M SP 9/29/ 15 [UNCOLL ECTED]^1') ;
  98  
  99           do ne();
  100       });
  101   });